Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I create a killsound?

Hey, I don't really see this question brought up commonly so I'm just bringing this up. Thanks if anyone can answer!

3 comments

0

To remove death sound oof put a local script in starterPlayer in StarterPlayerScripts and make it empty.

0

like for what

0

Like, when you kill somebody, it plays a sound for you and the normal deathsound plays for them

1 answer

 local Character = script.Parent 
 local player = Character.Parent

 local Humanoid = Character:WaitForChild("Humanoid")
 local sound = script.Parent:WaitForChild("Your sound name here”)
-- Sound must be parented to StarterCharacterScripts
 sound.Parent = script.Parent:WaitForChild("HumanoidRootPart")

  --// Function
   Humanoid.Died:Connect(function() -- only when player dies
     sound:Play()
	 wait(1)
  end)   

Make sure you replace the ‘your sound name here’ with the sound name you want to play and make sure the sound name is one string like: DeathSound well you can still rename the sound

But I don’t know how to make a audio.

Put a plain script into StarterCharacterScripts

2 comments

0

What kind of script do i put it as, and where do i put it?

0

I edited it

This discussion is preserved as it was. New answers, comments, and votes are closed.