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

How Would I Add A number to a Value?

Asked by 8 years ago
script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.MoneyValue.Value + 1
end)

that was what i had but i cant figure out how to add a number to this like Value + 1

1 answer

Log in to vote
0
Answered by
BlackJPI 2658 Snack Break Moderation Voter Community Moderator
8 years ago

You need to set the value to itself plus the amount you want to add:

value = value + amount
Ad

Answer this question