Advertisement
RandomLuaScripter

[ROBLOX] Meet The Creator Badge

Feb 8th, 2018
2,656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. -- WARNING: Be sure to make this a Script and place it in ServerScriptStorage if you want it to work!
  2.  
  3. owner = "RandomLuaScripter" -- Your name here.
  4.  
  5. BadgetId =  (204567109) -- Badge id here. If you do not know your badge id watch a tutorial on YT to find it.
  6.  
  7. game.Players.PlayerAdded:connect(function(p)
  8. if game.Players:findFirstChild(owner) then
  9. b = game:GetService("BadgeService")
  10. b:AwardBadge(p.userId,BadgetId)
  11. end
  12. end)
  13.  
  14. game.Players.PlayerAdded:connect(function(p)
  15. if p.Name == owner then
  16. local ap = game.Players:GetChildren()
  17. for i=1,#ap do
  18. b = game:GetService("BadgeService")
  19. b:AwardBadge(ap[i].userId,BadgetId)
  20. end
  21. end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement