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
5 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

1function onPlayerEntered(newPlayer)
2wait()
3newPlayer.Character.Sound:Remove()
4end
5 
6game.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 — 5y

2 answers

Log in to vote
0
Answered by
ryan32t 306 Moderation Voter
5 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:

01local plr = game.Players.LocalPlayer
02-- defining local player
03local char = plr.Character
04-- defining local player's character
05local hpart = char:WaitForChild("HumanoidRootPart")
06-- defining local player's humanoid root part
07local head = char:WaitForChild("Head")
08-- defining local player's head
09wait()
10--wait
11for i,v in pairs(char:GetDescendants()) do
12-- for loop running through a table with all descendants of character
13if v:IsA("Sound") then
14-- checking if current descendant is a Sound
15v:Destroy()
16-- if current descendant is a sound then Destroy Sound
17-- sound no longer exists
18end
19end
Ad
Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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

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

Answer this question