Usually, when something is orbiting a planet, it gets closer, but once the player goes into orbit, they keep getting swung farther and farther away for some reason instead of landing back on the planet. I tried increasing gravity to something bigger (it's currently set at -4000) but doing that just makes the whole process of the player being flung farther into orbit even faster.

        --Aplication of gravity.
        local direction = -Functions.Direction(player.HumanoidRootPart.Position, planet.Position);
	bodyForce.Force = direction * gravity;

3 comments

0

Too much pressure?

0

What pressure?

0

Can you post a more detailed script?