Here’s the script : db = false script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if db == false then db = true script.Parent.Transparency = 0 script.Parent.Cancollide = true player.leaderstats.Cash.Value = player.leaderstats.Cash.Value +5 script.Parent.Transparency = 1 script.Parent.Cancollide = false wait(5) end end end)

1 comment

0

Please properly format your code and indent it. You can use the script block tool and edit your question. It makes it easier for other people to read it.