1 | function onPlayerEntered(newPlayer) |
2 | wait() |
3 | newPlayer.Character.Sound:Remove() |
4 | end |
5 |
6 | game.Players.PlayerAdded:connect(onPlayerEntered) |
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:
01 | local plr = game.Players.LocalPlayer |
02 | -- defining local player |
03 | local char = plr.Character |
04 | -- defining local player's character |
05 | local hpart = char:WaitForChild( "HumanoidRootPart" ) |
06 | -- defining local player's humanoid root part |
07 | local head = char:WaitForChild( "Head" ) |
08 | -- defining local player's head |
09 | wait() |
10 | --wait |
11 | for i,v in pairs (char:GetDescendants()) do |
12 | -- for loop running through a table with all descendants of character |
13 | if v:IsA( "Sound" ) then |
14 | -- checking if current descendant is a Sound |
15 | v:Destroy() |
16 | -- if current descendant is a sound then Destroy Sound |
17 | -- sound no longer exists |
18 | end |
19 | end |
Put this in a Local Script and put it in StarterPlayer>StarterCharacterScripts
1 | local walk = script.Parent.Head:WaitForChild( "Running" ) |
2 | walk.Volume = 0 |