|
| 06 Apr 2014 05:20 PM |
| Can someone write a basic code for that? |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
| |
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
|
| 06 Apr 2014 05:25 PM |
Make this a local script and put it in starterpack. Put the audio's parent as the script and name it audio
local player = Game.Players.LocalPlayer while true do if player.Character.Humanoid.Health == 0 then script.Audio:Play() wait(.01) end
hey if anyone else is looking did i do this right? |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
| |
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
|
| 06 Apr 2014 05:31 PM |
| dayum... i just typed that off the top of my head. What did i do wrong? Maybe itll awnser his question also |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2014 05:35 PM |
| Thank you. Testing it right now. Hope it works. |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2014 05:37 PM |
| Should it be a script or local script? |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 06 Apr 2014 05:38 PM |
Try incorporating this:
http://wiki.roblox.com/index.php?title=Died |
|
|
| Report Abuse |
|
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
| |
|