Advertisement
Sungmingamerpro13

BadgeScript (STORY GAME OBBY)

Feb 12th, 2024
1,341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.53 KB | None | 0 0
  1. local BadgeID = 4234072313304229
  2.  
  3. local Debounce = false
  4.  
  5. script.Parent.Touched:Connect(function(hit)
  6.     if hit.Parent:FindFirstChild("Humanoid") then
  7.        
  8.         if Debounce == false then
  9.            
  10.             Debounce = true
  11.            
  12.             local character = hit.Parent
  13.             local player = game.Players:GetPlayerFromCharacter(character)
  14.  
  15.             game:GetService("BadgeService"):AwardBadge(player.UserId, BadgeID)
  16.  
  17.             wait(5)
  18.  
  19.             player.Character:WaitForChild("HumanoidRootPart").CFrame = game.Workspace.ReturnPart.CFrame
  20.            
  21.             Debounce = false
  22.         end
  23.     end
  24. end)
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement