If anyone knows how to make a TextLabel that looks something like in Bubble-Gum Simulator whenever a specific currency changes(increases).
I am trying to make something like that. Whenever the player gets a currency then an indicator pops up of how much they got.
The tweening and the transparency part is easy, I’m having issues with making the code for how much the player got. Example: The player sells their bag full of dirt, could be 1 or 100 or 1K. How would I make it say the right amount?
Best regards
-sardorking2005
3 Likes
Heres a quick example of how you would go about doing something like this.
local Amount = Money.Value
Money:GetPropertyChangedSignal("Value"):Connect(function()
if Money.Value > Amount then
local Increment = (Money.Value - Amount) --Amount of money you received
end
Amount = Money.Value
end)
5 Likes
--Oh thank you! Do you know if I can use
Money.Changed
--instead of
Money:GetPropertyChangedSignal
--to make this work, or if the second option is better than the first?
1 Like
Money.Changed
detects any property change which is not necessary.
Money:GetPropertyChangedSignal
only detects the Property given.
Performance wise you should use Money:GetPropertyChangedSignal
.
2 Likes
Thank you!
I was trying to make it so much more complicated than it’s supposed to be
1 Like
Please mark this topic as solved.
2 Likes
Already done
Thanks for the help again
1 Like