Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i stop an IntValue from going negative?

I make money scripts a lot and I hate it when the intvalue goes negative, and i know theres a way to make it not go negative so, if anyone can help me out with this that would be great, thanks in advance?

1 answer

Since you haven't provided any script, here are some options: When you deduct cash, check if that have enough, OR just have a while loop, that if the values goes below 0, set it back to 0.

1 comment

0

well i want to keep the money going up, and not end at 2 billion

This discussion is preserved as it was. New answers, comments, and votes are closed.