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 » Scripters
Home Search
 

Re: How to make balls roll

Previous Thread :: Next Thread 
Karthon950 is not online. Karthon950
Joined: 30 May 2010
Total Posts: 75
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 is not online. 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 is not online. 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 is not online. 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
Karthon950 is not online. Karthon950
Joined: 30 May 2010
Total Posts: 75
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
Karthon950 is not online. Karthon950
Joined: 30 May 2010
Total Posts: 75
05 Jan 2015 08:29 PM
But thanks I got it, I totally forgot about the brick shape property :/
Report Abuse
Karthon950 is not online. Karthon950
Joined: 30 May 2010
Total Posts: 75
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 is not online. 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 is not online. Tauritaar
Joined: 30 Dec 2012
Total Posts: 1785
05 Jan 2015 08:37 PM
Read up on BodyVelocities.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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