Advertisement
InTesting

Badge Script Fragment

Jan 27th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local BadgeService = game:GetService("BadgeService")
  2. function Givebadgeto(tarplyr,Id)
  3.     local hasBadge = false
  4.     hasBadge = BadgeService:UserHasBadgeAsync(tarplyr.UserId, Id)
  5.     if hasBadge == false then
  6.         BadgeService:AwardBadge(tarplyr.UserId, Id)
  7.     end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement