Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Project Nds---
- rare = 0
- function EGGY()
- local Ran = math.random(1,12)
- local Random = Ran
- Egg=Instance.new("Part")
- Egg.Shape = "Ball"
- Egg.Size = Vector3.new(2,2,2)
- Egg.Parent = workspace
- Egg.formFactor = 2
- Egg.TopSurface = 0
- Egg.BottomSurface = 0
- Egg.CFrame = CFrame.new(math.random(-200,200),math.random(0,99),math.random(-200,200))
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Egg
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId="http://www.roblox.com/asset/?id=1527559"
- if Random==1 then
- Mesh.TextureId="http://www.roblox.com/asset/?id=24825030"
- local scri=script.Count:clone()
- scri.Name = "24826800"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Specular Egg of Red, No Blue"
- g=script.C1:clone()
- g.Disabled = false
- g.Parent = Egg
- elseif Random==7 then
- if math.random(1,3)~=2 then Egg:Remove() return end
- Mesh.TextureId="http://www.roblox.com/asset/?id=24824983"
- local scri=script.Count:clone()
- scri.Name = "24826755"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Explosive Egg of Kaboom!"
- g=script.C7:clone()
- g.Disabled = false
- g.Parent = Egg
- game.Debris:AddItem(Egg,40)
- elseif Random==2 then
- Mesh.TextureId="http://www.roblox.com/asset/?id=24824969"
- local scri=script.Count:clone()
- scri.Name = "24826737"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "POW! To the Moon! Egg"
- elseif Random==8 then
- if math.random(1,5)~=3 then Egg:Remove() return end
- Mesh.TextureId="http://www.roblox.com/asset/?id=24829229"
- local scri=script.Count:clone()
- scri.Name = "24830979"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Blue Faberg� Egg"
- game.Debris:AddItem(Egg,40)
- elseif Random==4 then
- Mesh.TextureId="http://www.roblox.com/asset/?id=24825012"
- local scri=script.Count:clone()
- scri.Name = "24826787"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Rusty Egg of Magnetism"
- elseif Random==6 then
- if math.random(1,2)~=2 then Egg:Remove() return end
- Mesh.TextureId="http://www.roblox.com/asset/?id=24824960"
- local scri=script.Count:clone()
- scri.Name = "24826725"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Scenic Egg of the Clouds"
- game.Debris:AddItem(Egg,40)
- elseif Random==5 then
- if math.random(1,3)~=2 then Egg:Remove() return end
- Mesh.TextureId="http://www.roblox.com/asset/?id=24824874"
- local scri=script.Count:clone()
- scri.Name = "24826640"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Chrome Egg of Speeding Bullet"
- g=script.C5:clone()
- g.Disabled = false
- g.Parent = Egg
- elseif Random==3 then
- Mesh.TextureId="http://www.roblox.com/asset/?id=24825714"
- local scri=script.Count:clone()
- scri.Name = "24826811"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Agonizingly Ugly Egg of Screensplat"
- g=script.C3:clone()
- g.Disabled = false
- g.Parent = Egg
- elseif Random==9 then
- if rare == 1 then Egg:Remove() return end
- rare = 1
- Mesh.TextureId="http://www.roblox.com/asset/?id=24824948"
- local scri=script.Count:clone()
- scri.Name = "24826704"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Radioactive Egg of Undead Apochalypse"
- g=script.C9:clone()
- g.Disabled = false
- g.Parent = Egg
- smoke=Instance.new("Smoke")
- smoke.Parent = Egg
- smoke.Color = Color3.new(0,255/255,0)
- smoke.RiseVelocity = 4
- smoke.Size = .3
- elseif Random==10 then
- if math.random(1,2)~=2 then Egg:Remove() return end
- Mesh.TextureId="http://www.roblox.com/asset/?id=24824938"
- local scri=script.Count:clone()
- scri.Name = "24826693"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Shiny Gold Egg of Switcheroo"
- g=script.C10:clone()
- g.Disabled = false
- g.Parent = Egg
- elseif Random==11 then
- Mesh.TextureId="http://www.roblox.com/asset/?id=24825721"
- local scri=script.Count:clone()
- scri.Name = "24826823"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Arborist's Verdant Egg of Leafyness"
- g=script.Kick:clone()
- g.Disabled = false
- g.Parent = Egg
- game.Debris:AddItem(Egg,40)
- elseif Random==12 then
- Mesh.TextureId="http://www.roblox.com/asset/?id=24824896"
- local scri=script.Count:clone()
- scri.Name = "24826656"
- scri.Disabled = false
- scri.Parent = Egg
- Egg.Name = "Egg of Equinox: Day"
- game.Debris:AddItem(Egg,40)
- end
- end
- function enter(player)
- local eg = Instance.new("IntValue")
- eg.Name = "Eggs"
- eg.Value = 0
- eg.Parent = player
- end
- game.Players.ChildAdded:connect(enter)
- p = game.Players:GetChildren()
- for i = 1,#p do
- enter(p[i])
- end
- while true do
- EGGY()
- wait(math.random(0,.5))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement