Advertisement
4zx16

Award Owner Badge v3 (WIP)

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