How to apply a stable Y velocity when a mass is in contact with the moving object

So, I have tried to make a stable platform (in this video, a sphere is an example) that a player can stand on to get onto the next stage.

The problem is, once a mass of the player makes contact, the Velocity can’t hold up and makes this effect with gravity.

Main question: How do I make it so that when another mass makes contact, the velocity stays the same and the ball does not ‘fall’?

local force = script.Parent.Force
local part = script.Parent.Parent

Force = Vector3.new(Force.X, part.Mass * game.Workspace.Gravity, Force.Z)

You should use an AlignPosition that will attempt to keep the part in the same spot.

How so? When I tried creating one, it just removed the velocity.

Could you explain how can I use it? I didn’t find much information on that page, and it’s pretty similar to VectorForce.

AlignPosition takes two attachments, and tries to give them the same position using forces. It’s possible to use One attachment, which will attempt to move the part to a fixed position. It doesn’t anchor the part, but loosely keeps it around a point.

Is that like a rope which makes the ball attached but the ball does not swing and just stays static in place?

1 Like