I want to block the movement of the humanoid, but there is a strange defect. Is there a way to solve this?

I made an animation where I lie face down.
I want to block the movement of the humanoid, but there is a strange defect. Is there a way to solve this?

When installing a humanoid.There is also a way to use WalkSpeed=0, but there is a bug that walks strangely when you lie down with a weapon.
Humanoid.Platformstand = true I used this.

But it falls like a video.

mouse.KeyDown:Connect(function(Key) 
	if Key == "c" then
	
		Humanoid.AutoJumpEnabled =false
		local Animation = Instance.new("Animation", player.Character)
	
		Animation.AnimationId = "rbxassetid://12784449345" -- Paste your ID
		Animate = Humanoid:LoadAnimation(Animation)
		Animate:Play()
	
		Humanoid:UnequipTools() 
		Humanoid.PlatformStand = true
		StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

robloxapp-20230315-0109474.wmv (1.3 MB)

1 Like

mouse.KeyDown has been superseded by UserInputService and ContextActionService. You should look into those instead.