Run it
Copy the script and paste it into your executor.
local Drawing = {}
Drawing.__index = Drawing
function Drawing.new(type)
if type == "Line" then
local self = setmetatable({}, Drawing)
-- Create UI frame for the line
self.Instance = Instance.new("Frame")
self.Instance.AnchorPoint = Vector2.new(0.5, 0.5)
self.Instance.BorderSizePixel = 0
self.Instance.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui"):FindFirstChild("ScreenGui") or Instance.new("ScreenGui", .Players.LocalPlayer:())
self.From = .(, )
self.To = .(, )
self.Thickness =
self.Color = .(, , )
self.Visible =
self:()
self
( .. )
:()
self.Instance
self.Visible
self.Instance.Visible =
distance = (self.To - self.From).Magnitude
direction = (self.To - self.From).Unit
angle = .(.(direction.Y, direction.X))
self.Instance.Size = .(, distance, , self.Thickness)
self.Instance.Position = .(, (self.From.X + self.To.X) / , , (self.From.Y + self.To.Y) / )
self.Instance.Rotation = angle
self.Instance.BackgroundColor3 = self.Color
self.Instance.Visible =
:()
self.Instance
self.Instance:()
self.Instance =
Replicates Drawing.new("Line") Purly with no unc reqiured needs to have Drawing:Update() do update drawing if you put new value

Universal