How can I force a player to move forward?

I’m trying to figure out how I can force a player to move forward with some sort of Velocity when they hold on a button. I know I should use something like BodyVelocity, but it would only be a temporary force. How can I do this?

1 Like

You could modify the players HumanoidRootPart CFrame with a small vector3 increment repeating whilst the button is held down but it would give a sliding effect.

I tried bodyVelocity, but the problem with that is the fact that it’s limited. I’m trying to find a way where it won’t stop adding force unless you let go of the button. I don’t know how I can do that. I can’t use loops, because they either are limited, or uncontrollable. I don’t really know where to start.

I used a UserInput.InputBegan event, am I on the right track?

As long as I know BodyVelocity is actually infinite until you delete it, unless I’m missing something?

If anything helps, there’s the alternative of using VectorForce on the player which is very similar to BodyVelocity, I haven’t used it a lot so I can’t really explain how to use it.

1 Like

Oh I forgot, lol sorry I’m dumb. It’s been a while since I’ve worked with Body Movers, so memory is a bit fuzzy

1 Like

Don’t worry, everyone does forget things at times, it did happen to me once, however always try it yourself before asking!

2 Likes