|
| 05 Jan 2015 08:19 PM |
Hey, I posted a thread earlier because my script wasn't working, I got it to work but the ball is just like a block that looks like a sphere. How can I make it so it's actually a ball and rolls and stuff, my script is...
while true do Size = (math.random(5)) Delayx = (math.random(2, 6)) Delay = Delayx / 5 Boulder = Instance.new("Part") BoulderMesh = Instance.new("SpecialMesh") wait(Delay)
Boulder.Parent = game.Workspace Boulder.Size = Vector3.new(Size, Size, Size) Boulder.Name = "Boulder" Boulder.Position = Vector3.new(0, 20, 0) BoulderMesh.MeshType = "Sphere" BoulderMesh.Parent = Boulder print(Size) end |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:20 PM |
| How about you make it an actual ball then just un-anchor it? |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 05 Jan 2015 08:20 PM |
wtf is this
'Size = (math.random(5)) Delayx = (math.random(2, 6)) Delay = Delayx / 5' |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:21 PM |
Exactly my point ^
Just make the bricktype a ball. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 08:26 PM |
| That's the part that randomizes the size of the boulder and the delay between which they spawn, between 0.4 and 1.2 seconds between spawns. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 08:29 PM |
| But thanks I got it, I totally forgot about the brick shape property :/ |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 08:29 PM |
For future reference if anybody needs it the working script was:
while true do Size = (math.random(5)) Delayx = (math.random(2, 6)) Delay = Delayx / 5 Boulder = Instance.new("Part") BoulderMesh = Instance.new("SpecialMesh") wait(Delay)
Boulder.Parent = game.Workspace Boulder.Size = Vector3.new(Size, Size, Size) Boulder.Name = "Boulder" Boulder.TopSurface = "Smooth" Boulder.BottomSurface = "Smooth" Boulder.Position = Vector3.new(0, 20, 0) BoulderMesh.MeshType = "Sphere" BoulderMesh.Parent = Boulder Boulder.Shape = "Ball" print(Size) end
I just added Boulder.Shape = "Ball" |
|
|
| Report Abuse |
|
|
jashwa
|
  |
| Joined: 08 Feb 2010 |
| Total Posts: 378 |
|
|
| 05 Jan 2015 08:30 PM |
| I was telling you the entire time to do that. |
|
|
| Report Abuse |
|
|
Tauritaar
|
  |
| Joined: 30 Dec 2012 |
| Total Posts: 1785 |
|
|
| 05 Jan 2015 08:37 PM |
| Read up on BodyVelocities. |
|
|
| Report Abuse |
|
|