Does not recognize "Running"

I want to make him recognize “Running”

He says he doesn’t recognize “Running” I already did everything

image

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local char = script.Parent
local Hum = char:WaitForChild("HumanoidRootPart")
local FootstepsSoundGroup = game:GetService("SoundService"):WaitForChild("Footsteps")
local Humanoid = char:WaitForChild("Humanoid")
local RunningSound = Hum:WaitForChild("Running")

Can someone help me?

I didn’t understand you can explain a little more and thanks for answering

image

I did a test and he doesn’t recognize it anyway

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:connect(function(char)
		print(char.Name)
		local Hum = char:WaitForChild("HumanoidRootPart")
		local FootstepsSoundGroup = game:GetService("SoundService"):WaitForChild("Footsteps")
		local Humanoid = char:WaitForChild("Humanoid")
		for i, v in pairs(Hum:GetChildren()) do
			print(v.Name)
		end

Alright thank you very much anyway

I don’t know what the customer

I don’t understand the part of putting it on the client, I know what the client is but I put it inside the startercharacterscripts but it still doesn’t work

Character sounds are created on the client, not the server. The server is not able to change character sounds anymore. You have to do this from a LocalScript and make some accommodations.

You can see how character sounds are made by forking RbxCharacterSounds from PlayerScripts. It may help you to find out how to structure your own code if you want to work with sounds. If you don’t know how to fork, the source code is here:

About your PlayerAdded approach: this is good, but you always want to make sure to used a named function so that you can connect it to PlayerAdded and run it for all players in the game as well.

local function playerAdded(player)
    -- Script content
end

Players.PlayerAdded:Connect(playerAdded)
for _, player in ipairs(Players:GetPlayers()) do
    playerAdded(player)
end
3 Likes