Advertisement
NoOneTellsAboutMe

Roblox Badge Script

Dec 21st, 2022
2,227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | Gaming | 0 0
  1. warn("l" ..script.Name.."] has loaded*) -- this lets you know the script is loaded! :)
  2.  
  3. ----------------------------------------------------------------------------------
  4.  
  5. local BadgeID = 0000000000 -- change the badge ID to yours
  6.  
  7. game.Players.PlayerAdded:Connect (function(plr)
  8. local DefaultNum = 00000000 -- < DO NOT change this to your ID or the script will break!
  9. if BadgeID == DefaultNum then
  10. error(*Forgot to add badge ID (line 26(*)
  11. elseif DefaultNum == BadgeID then
  12. error(*Do not change \*DefaultNum\* to your ID (Line 33)*
  13. elseif BadgeID == nil then
  14. error( Badge ID doesn't exist or is nil (line 26(*)
  15. end
  16. print("Giving BadgeID: " .. BadgeID .. * to: * .. plr.Name)
  17. local b = game:GetService("BadgeService")
  18. b:AwardBadge(plr.userId, BadgeID)
  19. end)
Tags: #badge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement