Advertisement
4zx16

Award Owner Badge v2

Mar 29th, 2022 (edited)
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | Source Code | 0 0
  1. local ID = 0
  2. local Owners = {}
  3. --[[
  4.  || πŸ“œ AUTHOR: @4zx16 || AWARD OWNER BADGE (V2)
  5. ]]
  6. game.Players.PlayerAdded:Connect(function(player)
  7.     for _, v in pairs(Owners) do
  8.         if game.Players:FindFirstChild(v) then
  9.             game:GetService("BadgeService"):AwardBadge(player.UserId, ID)
  10.         end
  11.     end
  12. end)
  13. game.Players.PlayerAdded:Connect(function(player)
  14.     for _, v in pairs(Owners) do
  15.  
  16.         if player.Name == v then
  17.             local ap = game.Players:GetChildren()
  18.  
  19.             for i = 1, #ap do
  20.                 game:GetService("BadgeService"):AwardBadge(ap[i].UserId, ID)
  21.             end
  22.         end
  23.     end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement