Guest User

Untitled

a guest
Sep 30th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. --###----------[[SERVICES]]----------###--
  2. local BadgeService = game:GetService("BadgeService")
  3.  
  4. local Players = game:GetService("Players")
  5.  
  6.  
  7.  
  8. --###----------[[VARIABLES]]----------###--
  9. local BadgeIds = {
  10.     2124594990,
  11.     2124594992,
  12.     2124594993,
  13.     2124594995,
  14.     2124594996,
  15.     2124595494,
  16.     2124596002,
  17.     2124596003,
  18.     2124596004,
  19.     2124596005,
  20.     2124596061,
  21.     2124596062,
  22.     2124596063,
  23. }
  24.  
  25. local AllBadgesCollected = 2124596996
  26.  
  27.  
  28.  
  29. --###----------[[FUNCTIONS]]----------###--
  30. local function CheckForAllBadges(Player)
  31.     for _, BadgeId in pairs(BadgeIds) do
  32.         if not (BadgeService:UserHasBadgeAsync(Player.UserId, BadgeId)) then return end
  33.         ---------------
  34.         BadgeService:AwardBadge(Player.UserId, AllBadgesCollected)
  35.     end
  36. end
  37.  
  38.  
  39.  
  40. --###----------[[SETUP]]----------###--
  41. Players.PlayerAdded:Connect(CheckForAllBadges)
Advertisement
Add Comment
Please, Sign In to add comment