Some problems about how to make a player button sprint System?

  1. What do you want to achieve? a player key sprint effect

  2. What is the issue? I really don’t know how to implement it. I tried to add 10 to the player’s current coordinates and play a sprint animation, but the final direction is not the direction the player is looking at, and it will penetrate other parts. So should I apply a force to him? If so, what should I do, or is there another good way?

I am really desperate, hoping to get some advice or related scripts

You should just set the ‘walkspeed’ property of the player’s humanoid. Normally, this’ll be 16. But when you’re holding your sprintkey you could set it to 20.

Thanks your reply,I probably didn’t describe it clearly enough.
Actually, what I would prefer is a sprint with just one press of the E key instead of a continuous run with the W key pressed.

So you want a dash, not a sprint? That’s significantly more difficult, but there’s some good resources already on the devforums, just search for dash.

I think so. I’ll give it a try now. I’m sorry for the misunderstanding caused by my poor English

No worries friend. But in general, sprint = hold to go fast. Dash = press, to go in a certain direction for a certain time (depending on animation a dash can also be a roll)

OK,thanks ,it is so clear for your nice explanation,I have got ‘sprint’ and ‘dash’ totally

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.