Add footsteps to dummy

  1. What do you want to achieve? I’d like to add default footsteps to a dummy but I don’t know how to script it or how to get the script from my player and integrate it into the dummy. I got the sounds and everything though.

When do footsteps play? – A question you should ask yourself
When you walk

Okay, so how do I figure out when the player walks? – These are the questions you should ask

The answer?

There are two ways, first you can check the dummies movedirection and see if its magnitude is greater than 0

https://create.roblox.com/docs/reference/engine/classes/Humanoid#MoveDirection

Or

You can get the humanoids state, and see if its walking/running

Humanoid.StateChanged:Connect(function(old, new)

if new == Enum.HumanoidStateType.Running then
-- Play walking sound
end

end)

I tried to use .StateChanged with Enum.HumanoidStateType.Running and here’s the thing: Even when the player’s standing still, the player’s state will still be on running. I also tried using MoveDirection but that always returns 0, 0, 0 in Vector3 and 0 as magnitude, even though the entity is moving towards the player.

image