local FloaterYLimit = 0.826
local function Constraints() --- This only gets used once
local ViewportSize = script.Parent.AbsoluteSize -- Yes, I know that ScreenGui.AbsoluteSize is not a ViewportSize
if ViewportSize.X <= 800 and ViewportSize.Y <= 500 and Players.LocalPlayer.PlayerGui.ScreenOrientation == "LandscapeSensor" then
FloaterYLimit = 0.75
end
end
Constraints()
local function foo()
-- Omitted variables
if tonumber(y) <= FloaterYLimit then
return
end
-- If the above statement is false continue with script..
end
Does that statement apply to my function?