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