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

How do you multiply a value from an int external value?

Asked by 8 years ago

I have been able to retrieve the value but I cannot seem to modify it (multiply to be specific)

1 answer

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

Hmm, since you provided no code, it'll be hard to answer this. Say if you had a leaderstat value named "Coins", and you wanted to double the value of it for a specific player, it'd go as so:

game.Players.Shawnyg.leaderstats.Coins.Value = game.Players.Shawnyg.leaderstats.Coins.Value * 2

This is the best I can give you, since you weren't specific.

Ad

Answer this question