Advertisement
4zx16

Award Badge Part

Dec 15th, 2021 (edited)
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || AWARD BADGE PART
  3. ]]
  4. local id = 0
  5. local Timeout = false
  6.  
  7. local function onTouched(hit)
  8.     if hit.Parent:FindFirstChild('Humanoid') then
  9.         if Timeout == false then
  10.             Timeout = true
  11.             local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  12.             game:GetService("BadgeService"):AwardBadge(player.UserId,id)
  13.             wait(1)
  14.             Timeout = false
  15.         end
  16.     end
  17. end
  18. script.Parent.Touched:Connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement