Force player to run in a direction!

Hi! I wanted to make an ability where the player can run in a direction like in a rush, but I was struggling to find any ways to do it. I’ve tried using things such as Linear Velocity, but it’s not what I am looking for.

Underneath, I attached 3 videos, 2 being of what I would wish for (taken from the games Centaura and Ready 2 Die) and a video of me trying to use Linear Velocity, alongside a screenshot of what the script does upon pressing the ability key.

I am still pretty new at these sorts of stuff, so I would love if you could send me a video and/or blog guide alongside your explanation. Thanks!




image_2024-03-28_224908254

1 Like

If you want them to move to a specific coordinate, then do this:

plr.Character:FindFirstChild('Humanoid'):MoveTo(Vector3.new(10,10,10)) --Replace (10,10,10) with the coordinates you want to move them to

If you want to move them in a specific direction, do this instead:

plr.Character:FindFirstChild('Humanoid'):MoveTo(plr.Character.PrimaryPart.Position + Vector3.new(10,10,10)) --Replace (10,10,10) with the movement direction and magnitude you want them to move