generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Egg Script

Previous Thread :: Next Thread 
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
20 Apr 2014 10:07 AM
I wander why it keep going to a grey texture on the egg?

---I hope you enjoy, this took AGES to make!---
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=110788681"
if Random==1 then
Mesh.TextureId="http://www.roblox.com/asset/?id=110788623"

local scri=script.Count:clone()
scri.Name = "110789152"
scri.Disabled = false
scri.Parent = Egg
Egg.Name = "Basic Egg"
game.Debris:AddItem(Egg,10)
elseif Random==5 then
if math.random(1,3)~=2 then Egg:Remove() return end
Mesh.TextureId="http://www.roblox.com/asset/?id=110788623"
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,10))
end
Report Abuse
NumeriusValerius is not online. NumeriusValerius
Joined: 28 Dec 2009
Total Posts: 3089
20 Apr 2014 10:10 AM
Change the
Mesh.TextureId="http://www.roblox.com/asset/?id=110788623"
Part of the script
Report Abuse
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
20 Apr 2014 10:27 AM
To what?
Report Abuse
NumeriusValerius is not online. NumeriusValerius
Joined: 28 Dec 2009
Total Posts: 3089
20 Apr 2014 10:28 AM
Your texture....
Report Abuse
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
20 Apr 2014 11:41 AM
I copied the textures from ROBLOX's account. Do I need to put them in my account? To make it work.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image