Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
quinzt 201 Moderation Voter
4 years ago

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)
0
sorry i meant walking in the title quinzt 201 — 4y

1 answer

Log in to vote
0
Answered by
cfiredog 274 Moderation Voter
4 years ago

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.

Ad

Answer this question