generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: On-death audio play?

Previous Thread :: Next Thread 
Mike12cool is not online. Mike12cool
Joined: 29 Feb 2012
Total Posts: 88
01 Feb 2015 06:04 PM
How do I make it so an specific audio plays on the player's death?
Some audio that isn't the average "UUHHH", something like for example:
"GAME OVER YEEAAAAHHHHHHHHHH"
"You failed"
"[generic death music]"

Ya... :/
Report Abuse
Minecraftrulz94 is not online. Minecraftrulz94
Joined: 22 Feb 2014
Total Posts: 233
01 Feb 2015 06:06 PM
plr = game.players.LocalPlayer

if plr.humanoid.Health = 0 then
game.Workspace.Sound:play()
end

Something like that.
Report Abuse
Mike12cool is not online. Mike12cool
Joined: 29 Feb 2012
Total Posts: 88
01 Feb 2015 06:10 PM
Yes, could be but...Problem is where would I place the audio, leading myself from what you said.
Report Abuse
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
01 Feb 2015 08:56 PM
Insert an audio into the character, then put this into a script
char.Humanoid.Died:connect(function()
char.Sound:Play()
end)
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 Feb 2015 08:57 PM
'char.Humanoid.Died:connect(function()
char.Sound:Play()
end)'

It really bothers me when people do this because the event is only ever going to fire once per humanoid and after that it will just do nothing

humanoid.Died:wait()
sound:Play()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image