I'm trying to add +1 to my number value but it's not working here's the script
if game.ReplicatedStorage.Value.Value <9 then game.ReplicatedStorage.Value.Value = +1 wait(1) end
I'm trying to add +1 to my number value but it's not working here's the script
if game.ReplicatedStorage.Value.Value <9 then game.ReplicatedStorage.Value.Value = +1 wait(1) end
In Lua, it would be:
game.ReplicatedStorage.Value.Value = game.ReplicatedStorage.Value.Value + 1
Agreed.
the value still stays at 0
What value are you using? It should be a IntValue or NumberValue.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
im new to scripting sorry
Value.Value = Value.Value + 1
shows us the leaderboard script if it still doesn't work
Make sure it's in a Script not a Local script