Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BadgeID = 4234072313304229
- 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)
- game:GetService("BadgeService"):AwardBadge(player.UserId, BadgeID)
- wait(5)
- player.Character:WaitForChild("HumanoidRootPart").CFrame = game.Workspace.ReturnPart.CFrame
- Debounce = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement