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

My walingg sound script has broken out of no where and I dont know why. Could anyone help?

So I have a script that changes the sound of your walking. It has been working just fine until like yesterday and it just broke out of nowhere and i dont know why. Help would be appreciated. And in case you're wondering what happened to it, it just doesnt play the sound anymore. All it does is plays the original roblox walking sound

local char = script.Parent
delay (0, function()
	while wait()do
		if char.Humanoid.FloorMaterial == Enum.Material.Marble then 
			char.Head.Running.SoundId = "rbxassetid://4231349974"
			char.Head.Running.Volume = 1
		end
	end	
end)

1 comment

0

sorry i meant walking in the title

1 answer

✓ Accepted answer

Roblox has recently re-written the character sound system. As a result, Avatar sounds are no longer located in the Head. They are now located in the HumanoidRootPart. If you change char.Head to char.HumanoidRootPart then your script should work again.

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