How do I make a player stop moving(Including falling/jumping) with out anchoring the character?

I want to make it so when an animation plays the player will not move.
Such as falling,
They will just float there in the air.

I cant just anchor the character cause then the animation wont work,
So how would I do this

2 Likes

Maybe you can try doing this:

while true do
HumanoidRootPart.Position = position
wait(0.01)
end

Not sur if it works tho

2 Likes

anchor the humanoidrootpart -------------------

1 Like

That’s literally what he doesn’t want to di

hes probably anchoring the whole character, that’s why the animations wont work.

1 Like

Set the humanoid walkspeed to 0 and when you’re done set it to whatever it was before (default walkspeed is 16)

1 Like

As @temporaryacount101 said set the walkspeed to 0 and jump height / power to 0. Then the character can’t move. After you can set the player’s walkspeed and jump height to the game’s default using the starter player settings.

1 Like

If you want them to stay floating in the air, the only way it to either anchor the HumanoidRootPart or to make an invisible barrier along with 0 walkspeed and jump height.

2 Likes

Anchor the HumanoidRootPart. It’s the best option.

No if you anchor the root it stops animations

1 Like

Hi, if you are using the roblox default movement module. You can change the player movement mode to scriptable using server script, to prevent movement.

Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
player.DevComputerMovementMode = Enum.DevComputerMovementMode.Scriptable
player.DevTouchMovementMode = Enum.DevTouchMovementMode.Scriptable
	end)
end))

This will disable movement input keys like walking and jumping

2 Likes

no it doesnt? -----------------

I thought it did . . . oh well thx

1 Like

You can use a “linear velocity”:

First, insert the linear velocity in the player with an attachment.

Second, set the max force to a really high number.

Third, set the force equal to the player’s position.

This should work and if you are inserting the LinearVelocity in a script, then make sure it’s disabled
when you don’t want to use it and enable it when you do!

3 Likes

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