You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
A way to decelerate a player after they stop moving, maybe slowly reduce velocity until the player is stationary (is that even possible?) or apply a force to the player, add a little slide like ice maybe.
What is the issue? Include screenshots / videos if possible!
Having trouble applying deceleration to character.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
No, I want the player to slow down after they stop moving like when you stop walking in real life you have a little bit of motion left after you stop moving, something like that. You can observe this “deceleration” in games like Team Fortress 2.
EDIT: sorry that I can’t provide an example right now as I am busy, I will try later.
Quick Update:
I was experimenting with LinearVelocity and it did bear a bit but I scrapped the script entirely as it was unreliable, janky, and just outright useless (mostly because I suck at coding.)
I was having this issue while making a click on object and move player to it. If the character’s walkspeed is too fast, the player will just speed right through the object or bounce off it if the object is collidable. I tried to set the walkspeed to zero when it reaches the goal, but it didn’t work. I also tried to turn off all animations and make the player platformstanding, anchoring the rootpart. The only solution for me was to set a magnitude.
repeat
humanoid:MoveTo(goal) -- goal is a Vector3 position
task.wait()
until (character.PrimaryPart.Position - goal).Magnitude <= 3
This way, when the player is close enough to the object, it will already stop pursuing it, so it makes it slow down before I do any other action to the player like make it play an animation or set its walkspeed.