Replacing footstep sounds

So I’m making silent dark redux, Im fixing everything broken but how do I fix this:

repeat wait() until game.Players.LocalPlayer.Character ~= nil

g = Instance.new("Sound")
g.Name = "Walk"
g.Parent = script
g.Looped = true
g.Pitch = .77
g.Volume = .45
g.SoundId = "rbxassetid://190126294"
b = Instance.new("Sound")
b.Name = "WalkShoes"
b.Parent = script
b.Looped = true
b.Pitch = .77
b.Volume =0
b.SoundId = "rbxassetid://311349802"

game.Players.LocalPlayer.Character.Sound:Destroy()

game.Players.LocalPlayer.Character:WaitForChild("Humanoidd").Running:connect(function(speed)
    if speed > 3 then
       script.Walk:Resume()
		script.WalkShoes:Resume()
    else
        script.Walk:Pause()
		script.WalkShoes:Pause()
    end
end)

The client still makes the default sounds

I’m not on my laptop rn to test but from what I can remember there is a sound is added to the HumanoidRootPart. Try deleting it?

1 Like

I have no idea how this worked since “Humanoidd” isn’t a valid child of the player’s character, nor does the player’s character have a sound instance named “Sound” which the instance method “:Destroy()” can be called on, anyway, here is the fixed script for anyone who needs it.

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

local Sound1 = Instance.new("Sound")
Sound1.Name = "Walk"
Sound1.Parent = script
Sound1.Looped = true
Sound1.Pitch = .77
Sound1.Volume = .45
Sound1.SoundId = "rbxassetid://190126294"

local Sound2 = Instance.new("Sound")
Sound2.Name = "WalkShoes"
Sound2.Parent = script
Sound2.Looped = true
Sound2.Pitch = .77
Sound2.Volume = 0
Sound2.SoundId = "rbxassetid://311349802"

Humanoid.Running:Connect(function(Speed)
	if Speed > 3 then
		Sound1:Resume()
		Sound2:Resume()
	elseif Speed <= 3 then
		Sound1:Pause()
		Sound2:Pause()
	end
end)

Create a blank baseplate and run it, navigate to StarterPlayer > StarterPlayerScripts > RbxCharacterSounds and copy that.

Once that’s done, paste it into the StarterPlayerScripts folder in your game.

You should be able to modify all of the global character sounds from that script.

1 Like