So Im using a while true and wait() do script, I want to be able to use scripts even after that one How would I go by doing that?

while true and wait() do
    if wag < MIN or wag > MAX then --If number is out of bounds
        bool = not bool --switch the bool
    end
    wag = (bool and wag + 1) or wag - 1 --increment value according to bool
end
print('1')

the print is in there as to show it wont print 1