Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- WARNING: Be sure to make this a Script and place it in ServerScriptStorage if you want it to work!
- owner = "RandomLuaScripter" -- Your name here.
- BadgetId = (204567109) -- Badge id here. If you do not know your badge id watch a tutorial on YT to find it.
- game.Players.PlayerAdded:connect(function(p)
- if game.Players:findFirstChild(owner) then
- b = game:GetService("BadgeService")
- b:AwardBadge(p.userId,BadgetId)
- end
- end)
- game.Players.PlayerAdded:connect(function(p)
- if p.Name == owner then
- local ap = game.Players:GetChildren()
- for i=1,#ap do
- b = game:GetService("BadgeService")
- b:AwardBadge(ap[i].userId,BadgetId)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement