Doesn't seem to save up on the leaderboard, answer?
03 | script.Parent.Touched:connect( function (hit) |
04 | humanoid = hit.Parent:FindFirstChild( "Humanoid" ) |
05 | if humanoid ~ = nil and enabled = = true then |
07 | player = game.Players:GetPlayerFromCharacter(hit.Parent) |
08 | cash = player.leaderstats.Points |
09 | cash.Value = cash.Value + 50000 |
This is a script i made for a tycoon. I have cash on the leaderboard, the dropper adds cash to a block, i can collect that cash, and it works with the upgrade buttons, but when i touch the brick to give me cash, the separate brick, it gives me 50,000 cash, but it doesn't save. So say i have 10 cash from the amount the dropper gave me, and then i go onto the brick that gives me 50,000 cash, it adds to the leaderboard, but then if i go get the cash from the dropper, say like 10 more cash, it switches from 50,010, to just 20. How do i fix this?