How to get player gui and modify it
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')