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

How Do I Remove Walking Sounds?

Asked by
Dr_0wn -16
4 years ago

How Do I Fully Remove Walking Sounds, I've tried my best to remove them with local scripts that are placed inside starter player scripts here they are

function onPlayerEntered(newPlayer)
wait()
newPlayer.Character.Sound:Remove()
end

game.Players.PlayerAdded:connect(onPlayerEntered)
0
Do you want it to be where only one player can't hear it, or where everybody in the server cannot hear footsteps? DeceptiveCaster 3761 — 4y

2 answers

Log in to vote
0
Answered by
ryan32t 306 Moderation Voter
4 years ago

Please accept my answer so i can get reputation, thank you!

Sometimes sounds are stored in the head or in the humanoid root part.

Just use this in a LocalScript:

local plr = game.Players.LocalPlayer
-- defining local player
local char = plr.Character
-- defining local player's character
local hpart = char:WaitForChild("HumanoidRootPart")
-- defining local player's humanoid root part
local head = char:WaitForChild("Head")
-- defining local player's head
wait()
--wait
for i,v in pairs(char:GetDescendants()) do
-- for loop running through a table with all descendants of character
if v:IsA("Sound") then
-- checking if current descendant is a Sound
v:Destroy()
-- if current descendant is a sound then Destroy Sound
-- sound no longer exists
end
end
Ad
Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

Put this in a Local Script and put it in StarterPlayer>StarterCharacterScripts

local walk = script.Parent.Head:WaitForChild("Running")
walk.Volume = 0

Answer this question