Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to I make an int value count up?

Asked by 2 years ago

this is for a game not gonna say it here cuz i dont wana but you know how core games have a temp well im trying to do this but with an IntValue not a NumberValue if you can help please help

1 answer

Log in to vote
1
Answered by 2 years ago

Suppose the IntValue is called CoreTemp, this should work for you.

local incrementValue = 1 -- Change this to the amount you want it to go up
CoreTemp.Value += incrementValue

If it works, mark it as an answer. If not, let me know.

Ad

Answer this question