I need to change the value of money in a script. This is what i've thought of
local Money = Player:WaitForChild("leaderstats").Money
I need to change the value of money in a script. This is what i've thought of
local Money = Player:WaitForChild("leaderstats").Money
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.