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 + 5
- script.Sound:Play()
- wait(3) -- Tiempo en que volverá a aparecer
- db = true
- script.Parent.Transparency = 0
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement