Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make rockets have gravity?

Asked by 6 years ago

I'm doing a test with the generic Roblox rocket and I'm trying to get the shot to loop/fall as if it has gravity instead of flying in a straight line. How would I do this?

1 answer

Log in to vote
0
Answered by 6 years ago

You can do this by making the force's downwards force gradually stronger as the rocket travels. Here's an example:

BV = Rocket.BodyVelocity

for i=1,10 do
BV.Velocity = BV.Velocity - Vector3.new(0,10,0)
wait(0.2)
end

The numbers can be adjusted if it's too much or too little. But essentially, this is how you can simulate gravity.

Ad

Answer this question