Advertisement
HowToRoblox

CheckBadgesScript

Dec 1st, 2019
1,988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local badgeservice = game:GetService("BadgeService")
  2. local id1 = 12345
  3. local id2 = 1234
  4.  
  5. game.Players.PlayerAdded:Connect(function(plr) 
  6.    
  7.     local int = Instance.new("IntValue",plr)
  8.     int.Name = "Badges"
  9.     int.Value = 0
  10.  
  11.     badgeservice:AwardBadge(plr.UserId, id1)
  12.     int.Value = int.Value + 1
  13.    
  14.     game.Players.CharacterAdded:Connect(function()
  15.         badgeservice:AwardBadge(plr.UserId, id2)
  16.         int.Value = int.Value + 1
  17.     end)
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement