Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. ---Project Nds---
  2. rare = 0
  3. function EGGY()
  4. local Ran = math.random(1,12)
  5. local Random = Ran
  6. Egg=Instance.new("Part")
  7. Egg.Shape = "Ball"
  8. Egg.Size = Vector3.new(2,2,2)
  9. Egg.Parent = workspace
  10. Egg.formFactor = 2
  11. Egg.TopSurface = 0
  12. Egg.BottomSurface = 0
  13. Egg.CFrame = CFrame.new(math.random(-200,200),math.random(0,99),math.random(-200,200))
  14. Mesh = Instance.new("SpecialMesh")
  15. Mesh.Parent = Egg
  16. Mesh.MeshType = "FileMesh"
  17. Mesh.MeshId="http://www.roblox.com/asset/?id=1527559"
  18. if Random==1 then
  19. Mesh.TextureId="http://www.roblox.com/asset/?id=24825030"
  20.  
  21. local scri=script.Count:clone()
  22. scri.Name = "24826800"
  23. scri.Disabled = false
  24. scri.Parent = Egg
  25.  
  26. Egg.Name = "Specular Egg of Red, No Blue"
  27. g=script.C1:clone()
  28. g.Disabled = false
  29. g.Parent = Egg
  30. elseif Random==7 then
  31. if math.random(1,3)~=2 then Egg:Remove() return end
  32. Mesh.TextureId="http://www.roblox.com/asset/?id=24824983"
  33.  
  34. local scri=script.Count:clone()
  35. scri.Name = "24826755"
  36. scri.Disabled = false
  37. scri.Parent = Egg
  38.  
  39. Egg.Name = "Explosive Egg of Kaboom!"
  40. g=script.C7:clone()
  41. g.Disabled = false
  42. g.Parent = Egg
  43. game.Debris:AddItem(Egg,40)
  44. elseif Random==2 then
  45. Mesh.TextureId="http://www.roblox.com/asset/?id=24824969"
  46.  
  47. local scri=script.Count:clone()
  48. scri.Name = "24826737"
  49. scri.Disabled = false
  50. scri.Parent = Egg
  51.  
  52. Egg.Name = "POW! To the Moon! Egg"
  53. elseif Random==8 then
  54. if math.random(1,5)~=3 then Egg:Remove() return end
  55. Mesh.TextureId="http://www.roblox.com/asset/?id=24829229"
  56.  
  57. local scri=script.Count:clone()
  58. scri.Name = "24830979"
  59. scri.Disabled = false
  60. scri.Parent = Egg
  61.  
  62.  
  63. Egg.Name = "Blue Faberg� Egg"
  64. game.Debris:AddItem(Egg,40)
  65. elseif Random==4 then
  66. Mesh.TextureId="http://www.roblox.com/asset/?id=24825012"
  67.  
  68. local scri=script.Count:clone()
  69. scri.Name = "24826787"
  70. scri.Disabled = false
  71. scri.Parent = Egg
  72.  
  73. Egg.Name = "Rusty Egg of Magnetism"
  74. elseif Random==6 then
  75. if math.random(1,2)~=2 then Egg:Remove() return end
  76. Mesh.TextureId="http://www.roblox.com/asset/?id=24824960"
  77. local scri=script.Count:clone()
  78. scri.Name = "24826725"
  79. scri.Disabled = false
  80. scri.Parent = Egg
  81.  
  82. Egg.Name = "Scenic Egg of the Clouds"
  83. game.Debris:AddItem(Egg,40)
  84. elseif Random==5 then
  85. if math.random(1,3)~=2 then Egg:Remove() return end
  86. Mesh.TextureId="http://www.roblox.com/asset/?id=24824874"
  87. local scri=script.Count:clone()
  88. scri.Name = "24826640"
  89. scri.Disabled = false
  90. scri.Parent = Egg
  91.  
  92. Egg.Name = "Chrome Egg of Speeding Bullet"
  93. g=script.C5:clone()
  94. g.Disabled = false
  95. g.Parent = Egg
  96. elseif Random==3 then
  97. Mesh.TextureId="http://www.roblox.com/asset/?id=24825714"
  98. local scri=script.Count:clone()
  99. scri.Name = "24826811"
  100. scri.Disabled = false
  101. scri.Parent = Egg
  102.  
  103. Egg.Name = "Agonizingly Ugly Egg of Screensplat"
  104. g=script.C3:clone()
  105. g.Disabled = false
  106. g.Parent = Egg
  107. elseif Random==9 then
  108. if rare == 1 then Egg:Remove() return end
  109. rare = 1
  110. Mesh.TextureId="http://www.roblox.com/asset/?id=24824948"
  111. local scri=script.Count:clone()
  112. scri.Name = "24826704"
  113. scri.Disabled = false
  114. scri.Parent = Egg
  115.  
  116. Egg.Name = "Radioactive Egg of Undead Apochalypse"
  117. g=script.C9:clone()
  118. g.Disabled = false
  119. g.Parent = Egg
  120. smoke=Instance.new("Smoke")
  121. smoke.Parent = Egg
  122. smoke.Color = Color3.new(0,255/255,0)
  123. smoke.RiseVelocity = 4
  124. smoke.Size = .3
  125. elseif Random==10 then
  126. if math.random(1,2)~=2 then Egg:Remove() return end
  127. Mesh.TextureId="http://www.roblox.com/asset/?id=24824938"
  128. local scri=script.Count:clone()
  129. scri.Name = "24826693"
  130. scri.Disabled = false
  131. scri.Parent = Egg
  132.  
  133. Egg.Name = "Shiny Gold Egg of Switcheroo"
  134. g=script.C10:clone()
  135. g.Disabled = false
  136. g.Parent = Egg
  137. elseif Random==11 then
  138. Mesh.TextureId="http://www.roblox.com/asset/?id=24825721"
  139. local scri=script.Count:clone()
  140. scri.Name = "24826823"
  141. scri.Disabled = false
  142. scri.Parent = Egg
  143.  
  144. Egg.Name = "Arborist's Verdant Egg of Leafyness"
  145. g=script.Kick:clone()
  146. g.Disabled = false
  147. g.Parent = Egg
  148. game.Debris:AddItem(Egg,40)
  149. elseif Random==12 then
  150. Mesh.TextureId="http://www.roblox.com/asset/?id=24824896"
  151. local scri=script.Count:clone()
  152. scri.Name = "24826656"
  153. scri.Disabled = false
  154. scri.Parent = Egg
  155.  
  156. Egg.Name = "Egg of Equinox: Day"
  157. game.Debris:AddItem(Egg,40)
  158. end
  159. end
  160.  
  161. function enter(player)
  162. local eg = Instance.new("IntValue")
  163. eg.Name = "Eggs"
  164. eg.Value = 0
  165. eg.Parent = player
  166. end
  167.  
  168. game.Players.ChildAdded:connect(enter)
  169.  
  170. p = game.Players:GetChildren()
  171. for i = 1,#p do
  172. enter(p[i])
  173. end
  174.  
  175. while true do
  176. EGGY()
  177. wait(math.random(0,.5))
  178. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement