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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Ball catching

Previous Thread :: Next Thread 
CondemmedDemon is not online. CondemmedDemon
Joined: 07 Nov 2012
Total Posts: 19
23 Sep 2013 07:17 PM
I'm working on a marble run, and I'm trying to make a pad that catches falling balls, without it bouncing. How would I do that?
Report Abuse
Excellus is not online. Excellus
Joined: 17 Jun 2013
Total Posts: 3939
23 Sep 2013 07:18 PM
Set ball to Anchored = true

Not that hard.
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
23 Sep 2013 07:18 PM
Do you mean:
The ball falls and it sticks to the ground?
Report Abuse
CondemmedDemon is not online. CondemmedDemon
Joined: 07 Nov 2012
Total Posts: 19
23 Sep 2013 07:20 PM
Yup.
Report Abuse
sunday1520 is not online. sunday1520
Joined: 23 Aug 2012
Total Posts: 693
23 Sep 2013 07:20 PM
put this in the catcher

script.Parent.Touched:connect(function(hit)
if hit.Name=="WhateverTheNameOfYourBallsAre" then
hit.Anchored=true
end
end)
Report Abuse
CondemmedDemon is not online. CondemmedDemon
Joined: 07 Nov 2012
Total Posts: 19
23 Sep 2013 07:21 PM
Thank you so much! :D
Report Abuse
fathawks is not online. fathawks
Joined: 08 Jul 2012
Total Posts: 506
23 Sep 2013 07:43 PM
Yeah but unanchor it over a (0.01) wait or so...
Report Abuse
DoctorEvo is not online. DoctorEvo
Joined: 22 Apr 2008
Total Posts: 199
24 Sep 2013 07:03 AM
Or you could just set the pad's Elasticity to zero...
Report Abuse
Zomebody is not online. Zomebody
Joined: 01 Jun 2010
Total Posts: 789
24 Sep 2013 08:04 AM
...and the ball's velocity to Vector3.new(0, 0, 0)?
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
24 Sep 2013 08:07 AM
Elasticity is what controls parts to bounce. Both parts Elasticity have to be > 0 in order for them bounce, assuming that they are unanchored. So setting velocity is uncessary.
Report Abuse
DoctorEvo is not online. DoctorEvo
Joined: 22 Apr 2008
Total Posts: 199
24 Sep 2013 11:19 AM
Zomebody,

No, but why are we assuming that's what Demon was going for? When have you ever seen a marble run that does anything like that?

Dragon,

That's patently incorrect. And yes, the wiki is wrong as well. I believe ROBLOX uses a geometric mean to determine the coefficient of restitution from Elasticity settings. Setting merely one of them to zero DOES eliminate all bounce.

-DoctorEvo
Report Abuse
DoctorEvo is not online. DoctorEvo
Joined: 22 Apr 2008
Total Posts: 199
24 Sep 2013 11:23 AM
Err.

I think I *slightly* misread Dragon's post. Sorry about that. But the wiki is still wrong.
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