Lets say a part gets destroyed which means it disappears.
Then after it disappears it will reward the player a certain amount of currency.
amount = 1
(SCRIPT FINDING IF IT IS DESTROYED?)
v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount
you can use :FindFirstChild(that part)
to see if it exists or notstarmaq 1269 — 8mo
answer is here ^
game.Players.PlayerAdded:connect(function(plr) local plrleader = plr.leaderstats.CURRENCYNAME.Value game.Workspace.Part:Remove() plrleader = plrleader + 5 end)