Why won't this custom sound script work?

I put this script in StarterPlayer>StarterCharacterScripts and it isn’t working. It used to work before sounds were moved from the Head to the HumanoidRootPart, which I tried to convert. The script is basically supposed to change the ID of the running sound and pitch the other avatar sounds so they sound unique.

local walk = script.Parent.HumanoidRootPart:WaitForChild("Running")

walk.SoundId = "rbxassetid://2653887376"

walk.Volume = .3

walk.PlaybackSpeed = 1.8

local splash = script.Parent.HumanoidRootPart:WaitForChild("Splash")

splash.PlaybackSpeed = .78

splash.Volume = 0

local swimming = script.Parent.HumanoidRootPart:WaitForChild("Swimming")

swimming.PlaybackSpeed = 1.1

local jumping = script.Parent.HumanoidRootPart:WaitForChild("Jumping")

jumping.PlaybackSpeed = .75

jumping.Volume = .4

local landing = script.Parent.HumanoidRootPart:WaitForChild("Landing")

landing.PlaybackSpeed = .82

This script was broken by this update. You will need to rewrite your code to work with the new system, or implement a custom sound system.

1 Like

Ohhh, that makes sense. Thank you.

1 Like