How do I get State when humanoid is standing still?

I am trying to fire some events when the plr’s character is standing still, but how would I do that? Humanoid.StateType.Running doesn’t help, because it runs both walking and still.
Any help?

You can possibly use Humanoid.Running and check if the return is 0, or check if the MoveDirection Property changed and check if it’s just an empty vector (0,0,0) to do something when they’re standing still

Humanoid.Running:Connect(function(speed)
	if speed == 0 then
		--Standing still code
	end
end)

--or

Humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
	if Humanoid.MoveDirection == Vector3.new() then
		--Standing still code
	end
end)

Think this is what you wanted

4 Likes

or humanoid.MoveDirection.Magnitude > 0 then they are moving

2 Likes