Jumping on a moving platform

I’m trying to make it so when your standing on a moving platform, and you jump, you move with the platform and don’t fall off.

I couldn’t really find any post about it on the forum, and If I did then the post was probably years old.

This clip is from the game Desert Bus, you can see that when I jump, I don’t move back. This is exactly what I’m trying to replicate.

I’d appreciate some help! Thanks :slight_smile:

4 Likes

Maybe you could try adding the velocity of the part the player is standing on to their AssemblyLinearVelocity while the player is on the platform?

Do you think there is other ways? I’ve tried this before. It sorta worked but was really buggy

This post was linked in one of the topics you replied to recently. Have you tried the solution in here?
The solution seems to just calculate the difference in the platform’s previous and current CFrame and then apply that difference to the player (i think).

You might be able to find a solution in these forums

1 Like

Yeah this has been a tough problem for a while. Multiple games have coded their own fixes to this, such as Jail Break with their trains.

A very easy fix would be to use the new character controller (currently in beta):

Continuing the discussion from New Humanoid Physics Controller - Beta:

You can check that out here:

The other option is to program something to modify the physics a little (such as adding a CFrame to the character based on the change of the CFrame of what they last stood on and the position of the character relative to that). There are probably some things the forum’s resources that have this behavior.

I’ve read basically all of these forums, their outdated and I’ve tried doing what they did and it just doesn’t work.

I really tried this, and I think my issue was setting it up. I got really confused with it lol.

1 Like

It only works if the part is being moved with physics, if that helps.

It should work if the part is being moved by physics (and not the CFrame being directly modified).

Though it is in beta, so it might be hard to set up.

Yea it was using velocity. still didnt change anything.

I think i just set it up wrong, but theres really no tutorials showing how to do it so.

1 Like

You might find this article help:

The one I sent said it was now outdated and to go to the article above.

Specifically you might want to try out this part:

3 Likes

I believe BendsSpace’s linked articles would be a better solution overall, but what was the problem you faced when you had tried the post I linked? I tested the script just now to make sure and it seems to work for me(although I just tested it with a single part, using the primarypart of a model in the script should also work).


1 Like

ill try this out, thanks for the support

1 Like