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

How do I remove the "ooh" death sound?

Asked by 8 years ago

I seriously don't know how to remove it. Can you provide me a script?

My attempt:

for _,chr in pairs(character:GetChildren()) do if chr.Head:FindFirstChild("Sound") then chr.Head.Sound:Destroy() end end

2 answers

Log in to vote
3
Answered by 8 years ago

This is only an example that I made in a short time, I don't like to give scripts but this is too simple to do:-

this script is a localscript that is placed in the started character scripts

local died = script.Parent.Head:WaitForChild("Died") -- all sounds are in the characters Head
died.Volume = 0 -- we could destroy it but ist safer to set the volume to 0 

It may be better to turn this into a normal script but you will need to wait for the character and then the characters head then sound.

Hope this helps.

Ad
Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

I know this was 3 years ago, but I would like to put an updated answer for this:

local sound = script.Parent.HumanoidRootPart:WaitForChild("Died") -- Find the Sound 
sound.Volume = 0 -- Mutes the Sound 

You have to put this as a LocalScript inside of StarterCharacterScripts, it cannot be turned into a Server Script like said in the previous answer because the sounds aren't actually shown on the Server Side. Luckily there's no need to put it as a Server Script though.

I know the answer is similar to the previous answer, but it's still an updated version of it and would be better to find rather than an answer that doesn't work.

Edit: That only works if you want only YOUR character to not have the death sound, you'll still hear others when they die, this goes for each character, they won't hear their own self dying, but others will hear it.

If you want to make it so the death sound is completely muted/gone, you have to do this instead (LocalScript inside of StarterCharacterScripts):

while true do 
    for i,v in pairs(game.Players:GetPlayers()) do 
        local character = workspace:WaitForChild(v.Name) 
        local root = character:WaitForChild("HumanoidRootPart") 
        local sound = root:WaitForChild("Died") 
        sound.Volume = 0 
    end 
    wait(1/4) 
end 

Answer this question