I would like to create very realistic movement in a game. Now, I’ve got a lot of it handled already, but I am struggling in one little thing.
So, when the player stops sprinting, I would like them to immediately stop being able to move and slide forward a bit due to the momentum they had previously. Now, I’m not too sure how to apply such force to the player (note: I would also like for this “force” to be instantaneous, so no lag in-between), and some help would be appreciated.
1 Like
Could you provide more information? This thread contains little to no info other than what you want to achieve, and thus we cannot help you very well.
According to my understanding of what you said, perhaps you could set the force (that is moving the player) to 0
so it will stop moving the character?
I basically just want a way to apply a force onto a player to keep them moving towards a certain direction.
1 Like
If you want to apply a custom force you will probably have to change the humanoid state so it does not grip itself to the ground. HumanoidStateType | Documentation - Roblox Creator Hub. You might be able to do something as simple as putting a low friction part at the characters feet and running an animation.
1 Like
Wait, when the player stops sprinting? Please elaborate
What have you tried to make the player move? I suggest using Body Movers to move the player.