Technovalley = 0 while wait() do Technovalley + 1 if Technovalley == 5 then return end end end
I don't think you mean Bool
values, as those are just either values that equates to true
or false
. Rather, I think you mean you need help adding with the "Technovalley" variable, which holds an integer. Also, you cannot use return
to go out of the loop, as it only works for functions. You need to use break
.
To add to that variable, all you need to do is:
local Technovalley = 0 while wait() do --To add to a variable, do this: Technovalley = Technovalley + 1 if Technovalley == 5 then break end end