Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Head.Running returns infinite yield. How can I change the footsteps sound?

local Character = game.Players.LocalPlayer.Character
local walk = Character:WaitForChild("Head").Running
walk.Volume = 1

I also tried other tutorials from this site but they all used the same thing. This code is in the StartingGUI in a LocalScript. I get this error:

Infinite yield possible on 'Workspace.Railysse.Head:WaitForChild("Running")'

I tested the game, went into server mode and looked at the player model and it has no Running in the head. I've seen people use Humanoid.Running too but the same thing happens. How do I actually change the footstep sound? (I can't hear it at all)

1 answer

Infinite yields are not errors, they are warnings, to tell you that your script may freeze forever, if it never finds an child named Running, this usually happens when you use WaitForChild, without the second argument.

Have you turned up your Roblox’s volume slider? Or your PC’s volume bar?

This discussion is preserved as it was. New answers, comments, and votes are closed.