I want to try to change the size/position of a ScreenGui Object using a script. Though I have found that you can't, because:
local startergui = game:GetService("StarterGui") a = Instance.new("TextLabel", startergui) a.size = ____ --The problem is here--
I thought I could use Vector2
to change the size, but there is the "Offset" property too. Please help. Thanks in advance.
Hello. You have to use UDim2 Here is an example:
local StarterGui = game:GetService("StarterGui") local ScreenGui = Instance.new("ScreenGui", StarterGui) local TextLabel = Instance.new("TextLabel", ScreenGui) TextLabel.Size = UDim2.new(1,0,1,0)
That code will create a TextLabel on fullscreen.