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
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
Maybe you can try doing this:
while true do
HumanoidRootPart.Position = position
wait(0.01)
end
Not sur if it works tho
anchor the humanoidrootpart -------------------
That’s literally what he doesn’t want to di
hes probably anchoring the whole character, that’s why the animations wont work.
Set the humanoid walkspeed to 0 and when you’re done set it to whatever it was before (default walkspeed is 16)
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.
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.
Anchor the HumanoidRootPart. It’s the best option.
No if you anchor the root it stops animations
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
no it doesnt? -----------------
I thought it did . . . oh well thx
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!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.