Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local db = true
- script.Parent.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if db == true then
- db = false
- script.Parent.Transparency = 1
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 100
- script.Sound:play()
- wait (1)
- script.Parent:Remove()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement