How to get player gui and modify it

Back
Pun
Join Date:
Posts:
Mar 2022
15
3 months ago | 15 • By Pun

code :


local label


function Engine.get_label(game_label)
label = game_label
end


function Engine.line(start, end_pos, thickness, color)
local line = label


local distance = (end_pos - start).Magnitude

local angle = math.atan2(end_pos[2] - start[2], end_pos[1] - start[1])

line.SizeOffset = Vector2.new(distance, thickness)

line.PositionOffset = start

line.PivotPoint = Vector2.new(0, 0.5)

line.Rotation = angle

line.Color = Color.FromHex(color)
line.BorderWidth = 0

end


Engine.get_label(self)
Engine.line({0,0}, {100,100}, 1, '000000FF')


RonaIdOMG
Join Date:
Posts:
Aug 2024
10
2 months ago • By RonaIdOMG

OMG why thank you!