im breaking my head to try and figure this out but i cant!!!!
Leaderboard script
function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local cash = Instance.new("IntValue")
cash.Name = "Money"
cash.Value = 0
cash.Parent = stats
stats.Parent = newPlayer
end
game.Players.ChildAdded:connect(onPlayerEntered)
so that's that. I have a block deleter and I want it so when ever a block gets removed the leaderboard gives the player +1 Money
The block deleter script
local function Check(hit)
if hit.Name == "Brick" then
wait(0.2) hit:Remove("Brick")
end
end
script.Parent.Touched:connect(Check)
Help please?

4 comments
game.Players.leaderstats.Money.Value = game.Players.leaderstats.Money.Value + 1 -- Place this after line 3
You should also use Destroy() instead of Remove()
Line 3 on which script?
Nvm I got it