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

Am I adding to a number correctly?

Asked by 3 years ago

Heres my code. I just want to know if anything wrong is happening.

game.Players[name].leaderstats.Wins.Value = game.Players[name].leaderstats.Value + 1

Any help?

1 answer

Log in to vote
0
Answered by 3 years ago

You forgot "Wins.Value" on the second part

game.Players[name].leaderstats.Wins.Value = game.Players[name].leaderstats.Wins.Value + 1

Does this answer your question?

0
Oh, that was pathetic. AviaCheddar 41 — 3y
Ad

Answer this question