When i destroy i blocks i gain 10 points out of 150 (10/150) when reached 150 then it will stop adding in the leaderstat, anyone know how to this? i will make a multiplayer game like that lol hope you understand what i thinking haha, here is my code i use but nothing happens lol please help thanks!
Player = game:GetService("Player").LocalPlayer
money = Player.leaderstats.Money.Value
while true do
wait(1)
if money.Value >= 150 then
money.Value = 150
end
end)

1 comment
That's not very efficient, you should use money.Changed instead of a while true do