I tried making a regen gui, showing if the value is full or not and it seems it'snot working like it should. It'll work with 5 seconds but not 60 seconds

local time = 5 or 60
gui:TweenSize(UDim2.new(1,0,1,0),'Out','Quad',time)

4 comments

0

Is "5 or 60" what your code actually reads, or do you mean that you've tried versions of the code where one version has "5" and the other has "60"? Also, what happens when you try to use the script, and what are you expecting to happen?

0

it is.. I found out what my issue was 5 & 60 were both correct. I just didn't set the gui size to 0 before trying to move it to 1... But I'm still curious about there being a max to the time

0

I personally doubt that there would be a maximum time, or at least that it would ever present itself in reasonable use.

0

You'd never reach the max time, the biggest number roblox can compute is (2^31 - 1) and the lowest is -(2^31 - 1). In other words, very big...