What do you want to achieve? a player key sprint effect
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.
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)