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)
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.