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

How do I add a money amount on a text label that will save and rise?

Asked by 6 years ago

Hey Guys I have been trying to deal with this for a long time and I can not seem to find the solution. Currently I have a rising money script that saves and works great but it is being displayed in the lead board. I want to display the money on a text label. Anyone able to help?

1 answer

Log in to vote
0
Answered by
Avigant 2374 Moderation Voter Community Moderator
6 years ago

If you are using an IntValue event, perhaps consider using the IntValue.Changed event like so:

IntValue.Changed:Connect(function(NewValue)
    -- set text here
end)
-- set text here

Because the event does not fire until it is changed, first we set the text outside of the even listener.

Ad

Answer this question