I have a script (local) that changed the player's main gui size to fit the 16:9 ratio. BUT, for some reason it goes crazy and keeps going between two sizes and won't stop.
Here's the script:
local width = 16
local height = 9
local parent = script.Parent.Main
local running = false
local storedSize = parent.AbsoluteSize
local rs = game:GetService("RunService")
rs.RenderStepped:connect(function ()
if running then return end
storedSize = parent.AbsoluteSize
if checkSize() then return end
running = true
parent.Size = UDim2.new(
1,
-(storedSize.X%width),
1,
-(storedSize.Y%height))
running = false
end)
function checkSize()
if storedSize.X%width ~= 0 or storedSize.Y%height ~= 0 then
return false
else
return true
end
end
I may have to do with how I make it get to the 16:9 ratio....

1 comment
Mabye try a different ratio and see if it happens to that?