Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Debounce = false
- script.Parent.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- if Debounce == false then
- Debounce = true
- local character = hit.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- if player.MembershipType.EnumType == Enum.MembershipType.Premium then
- player.Coins.Value = player.Coins.Value + 100
- end
- wait(0.5)
- Debounce = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement