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

How do I change the value of this?

I need to change the value of money in a script. This is what i've thought of

local Money = Player:WaitForChild("leaderstats").Money

1 answer

✓ Accepted answer

I am assuming this is an IntValue/NumberValue

You can do

local Money = Player:WaitForChild("leaderstats").Money
Money.Value = 15 -- will change the value to 15
--To add to the current value do
Money.Value = Money.Value + 15 -- adds 15 to current value

Hope I helped, if you have any questions please let me know!

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