TheRealEprent

try

Apr 10th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. local Egg = script.Parent
  2.  
  3. Egg:FindFirstChild("BadgeAwarderScript").Disabled = true
  4. Egg:FindFirstChild("PlayerPointGiver").Disabled = true
  5. Egg:FindFirstChild("TouchedScript").Disabled = true
  6.  
  7. local b = game:GetService("BadgeService")
  8.  
  9. local badgeId = '236480990'
  10.  
  11. local badgeList = {
  12. ["Eyegg"] = 234674281,
  13. ["Apocalypse Rising Sugar Egg"] = 225840571,
  14. ["Dodge The Teapots Sugar Egg"] = 226765633,
  15. ["Rainbow Egg of Vibrant Hues"] = 226957072,
  16. ["Old Artifact Faberge Egg"] = 223105804,
  17. ["Glow-Stick Egg"] = 223525508,
  18. ["Meteorite Faberge Egg"] = 222839177,
  19. ["Sugar Rush Egg"] = 222296327,
  20. ["Black and White Egg"] = 221715867,
  21. ["Stone Egg of I Chiseled It"] = 221861964,
  22. ["Adurite Faberge Egg of Summers Past"] = 221860907,
  23. ["Sinister Egg"] = 221856064,
  24. ["Static Electricity Egg of Lightning"] = 221703455,
  25. ["Black Iron Egg of Infinite Pwnage"] = 221752249,
  26. ["Hivermind Egg II: The Return of the Bees"] = 221851696,
  27. ["Splintered Skies Faberge Egg"] = 222600013,
  28. ["Hand-Painted Egg"] = 236484546,
  29. ["Nuke the Whales! Sugar Egg"] = 236483570,
  30. ["Noob Egg"] = 236482208,
  31. }
  32.  
  33. Egg.Touched:connect(function(hit)
  34. if hit and hit.Parent then
  35. local humanoid = hit.Parent:FindFirstChild("Humanoid")
  36. if humanoid then
  37. local vPlayer = game.Players:GetPlayerFromCharacter(humanoid.Parent)
  38. for k,v in ipairs(badgeList) do
  39. if not game:GetService('BadgeService'):UserHasBadge(vPlayer.userId, v) then
  40. local check=true
  41. break -- fuck you loop
  42. end
  43. end
  44.  
  45. -- If check is nil
  46. if check==nil then -- It wouldn't have set to true
  47. vPlayer:AwardBadge(ID HERE)
  48. end
  49.  
  50. end
  51. end
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment