i want to make a game in which you can point at a location in the map and a tool will be thrown there with and parabola curve but i could not think of a way to do this in roblox
✓ ANSWER ACCEPTED
How to calculate a ball throw?
1 answer
✓ Accepted answer
there is easy way to do it.
- Roblox has gravity, when the ball moves, the gravity will pull the ball to the ground.
- You set a speed to the ball, the ball will move through the space without your control.
so one script
ball.Velocity = directionVector * speed
-- something like Vector3.new(0.5,0.2,0.5) * 200
will make your ball fly.
However, it you have to make the tool hit that target, it will not be easy. you need to build the formula,
- calculate how many seconds it takes the ball from current height to hit the ground
- how fast the speed needs to be in order for the ball to reach the target in that many seconds you just calculated above.
- make sure you ball fly out flat, if you throw the ball up an angle, you just make the calculation more complicated.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
https://developer.roblox.com/articles/Bezier-curves https://developer.roblox.com/articles/Raycasting those two wiki pages can help you
https://scriptinghelpers.org/blog/modeling-a-projectiles-motion theres a page in the news section