Advertisement
DragonGaming101YT

Script 2 For Badge Making Tutorial Video

Oct 8th, 2022
2,980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | Gaming | 0 0
  1. local badgeservice = game:GetService("BadgeService")
  2. local id = 1234567890 -- Put your badge ID here.
  3.  
  4. script.Parent.Touched:Connect(function(hit)
  5. if hit.Parent:FindFirstChild("Humanoid")then
  6. local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
  7.  
  8. if plr then
  9. badgeservice:AwardBadge(plr.UserId,id)
  10. end
  11. end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement