How to make a floating platform/model?

Hello, I am making a airship in roblox studio, sadly I have no idea how to make the floating system, I find out vector force that could do it with math but there is a problem that this only works until player will jump on it and now I have probably 2 possible ways

1st dynamically change force - this would be really hard and unoptimilized

2nd some class that would do it, I though about AlignPosition but I have no idea how to set it correctly

1 Like

Linear velocity should work.

Fundamentally your target goal is Y velocity equal to 0. This requires PID or other calculations if you are doing it manually.

i tried that and every time it just flew to the map center and didn’t worked much

I would recomend you to combine AllignPosition+PrismaticConstraint+VectorForce that is relative to world axis and has force: Vector3.new(0,part:GetMass()*workspace.Gravity,0)
If you want this model to react to player standing on it however you probably want to make it client sided physics as since handeling network ownership will get problematic if 2 players is standing on the same platform.

1 Like

It could also be the humanoid characters causing all the problems.

Roblox’s new character controller seems more promising with the example of standing on a moving car.