So here the example;
Cash = 10,
Cash get added with some value,
Now Cash = 100,
Question:
How to know when the Cash value changed?
How to know how much Value that has been added to Cash?
Thank's for Reading!
cashbefore = game.Players.LocalPlayer.leaderstats.Cash game.Players.LocalPlayer.leaderstats.Cash.Changed:Connect(function() -- if a property is changed on the value print(tonumber(game.Players.LocalPlayer.leaderstats.Cash) - tonumber(cashbefore)) -- prints the cash how many it added cashbefore = game.Players.LocalPlayer.leaderstats.Cash -- updates the cash currently end)
Mistake some people will do: Value.Value.Changed
, Value:Changed
or any kind.