Advertisement
hottrin

ROBLOX -How to award badges (From ZingoDev)

Mar 27th, 2020
2,364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local badgeservice = game:GetService("BadgeService")
  2. local id = 000 -- paste the badge id
  3.  
  4. script.Parent.Touched:Connect(function(hit)
  5.    
  6.     if hit.Parent:FindFirstChild("Humanoid") then
  7.        
  8.         local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
  9.         badgeservice:AwardBadge(plr.Userid,id)
  10.     end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement