
13.0k Views
783 Executions
Better Drawing
Universal Script π
CatBoyPublished 50
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
What is Better-Drawing? Better-Drawing is a custom wrapper for Roblox's Drawing API that makes it way easier to work with visuals like ESPs, boxes, text, and more. The main benefit is that it automatically handles cleanup so you donβt have to manually remove elements or clear them every frame. Once you're done using a drawing (like when a player disappears), it gets deleted automatically. That means cleaner code and fewer performance issues. Credits to dementia enjoyer check out his GitHub here: https://github.com/dementiaenjoyer/Better-Drawing
-- example ussage:
local BetterDrawing = loadstring(game:HttpGet("https://raw.githubusercontent.com/dementiaenjoyer/Better-Drawing/refs/heads/main/Main.lua"))();
local Players = game:GetService("Players");
local Workspace = game:GetService("Workspace");
local Camera = Workspace.CurrentCamera;
local LocalPlayer = Players.LocalPlayer;
local Round = math.round;
local function Update()
for _, Player in Players:GetChildren() do
local Character = Player.Character;
local Root = Character and Character:FindFirstChild("HumanoidRootPart");
if (not Root) or (Player == LocalPlayer) then
continue;
end
local ScreenPosition, OnScreen = Camera:WorldToViewportPoint(Root.Position - Vector3.new(0, 0.5, 0));
local Distance = ScreenPosition.Z;
if (not OnScreen) then
continue;
end
local Scale = (2 * Camera.ViewportSize.Y) / ((2 * Distance * math.tan(math.rad(Camera.FieldOfView) / 2)) * 1.5); -- Found this somewhere cant remember where
local Width, Height = Round(3 * Scale), Round(4 * Scale);
local Size = Vector2.new(Width, Height);
local Position = Vector2.new(Round(ScreenPosition.X - (Width / 2)), Round(ScreenPosition.Y - (Height / 2)));
local Outline = Drawing.new("Square");
Outline.Visible = true;
local Box = Drawing.new("Square");
Box.Visible = true;









@Onzabirr really?
It's for wich game
Gangalang
@gorillatagplayer555 Yes, Makes drawing simpler
This is cool