Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This script is created by Joriangames/Problox Studio Scripts
- --If you want to know how this works, watch the tutorial: https://youtu.be/24vBNhkcq-E
- local debounce = true
- script.Parent.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if debounce == true then
- debounce = false
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value +1
- script.Parent.Transparency = 1
- wait(.5)
- script.Parent:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement