I have a custom animation and wanted to implement it for the player. a Humanoid has its own Event which is Running or StateChanged.
The only way I can manage to do this is by checking the player is running or using the StateChanged event.
Humanoid.Running:Connect(function()
-- Insert animation here
end)
--OR
Humanoid.StateChanged:Connect(function(OldState, NewState)
-- Insert animation here
end)
I tried various options:
I tried to check if the player's velocity is equal to 0 (for some reason the velocity never gets to 0)
I tried to check if the NewState will changed to Nil or None when doing nothing (After Running) Since there is a Enum.HumanoidStateType.None but the "NewState" always prints out as Running or nothing at all when stopped running.
I'm just having trouble finding ways to check if the playing is idle.. Or is there a thing out there that I don't know.. to easily check if the player is idle/not moving.
Thanks!

1 comment
I have never thought of that! Thank you for this answer! would definitely try both options to see what's more consistent Thanks!