Looking for how to make a character instantly stop moving

I want to know how to make a character instantly stop moving when they are in a velocity. I don’t mean destroying the velocity, I mean literally making them instantly stop in place.

Please help!

humanoid.WalkSpeed=0
HumanoidRootPart.Anchored=true

1 Like

this is confusing. to stop moving is to stop all velocity.

You’d need to cancel out the velocity on the root part to achieve this.

Example:

local rootPart = character.HumanoidRootPart
rootPart.AssemblyLinearVelocity *= 0

Of course, if the player is in freefall, they will start falling again, so if you want to truly stop them in place, you’d need to anchor the rootpart instantly after negating all velocity.

1 Like

I meant like stopping the character movement without doing Force:Destroy()

same for this (-----empty space-------)

I meant like stopping the character movement without doing Force:Destroy()

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