My script is to find the resolution of a device then set the x position as of the gui as the XOffset/2 position of the screen, doing the same with the Y axis but without dividing the value. But it does not show at all.
Localscript:
while wait() do
if game:IsLoaded()==true then
break
end
end
while true do
local screen = workspace.Camera.ViewportSize
script.Parent.Position = UDim2.new(0, screen.X/2, 0, screen.Y)
end

3 comments
Why don't you just use Scale? Its easier and is aways correct
Just use scale.
Okay