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 » Scripting Helpers
Home Search
 

Re: HELP!! Play Audio On Player Death

Previous Thread :: Next Thread 
GodOfAllLimiteds is not online. GodOfAllLimiteds
Joined: 13 Nov 2011
Total Posts: 4667
06 Apr 2014 05:20 PM
Can someone write a basic code for that?
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
06 Apr 2014 05:24 PM
yes
Report Abuse
KingJacko is not online. 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 is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
06 Apr 2014 05:29 PM
incorrect ^
Report Abuse
KingJacko is not online. 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
GodOfAllLimiteds is not online. GodOfAllLimiteds
Joined: 13 Nov 2011
Total Posts: 4667
06 Apr 2014 05:35 PM
Thank you. Testing it right now. Hope it works.
Report Abuse
GodOfAllLimiteds is not online. GodOfAllLimiteds
Joined: 13 Nov 2011
Total Posts: 4667
06 Apr 2014 05:37 PM
Should it be a script or local script?
Report Abuse
Bebee2 is not online. 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 is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
06 Apr 2014 05:43 PM
local script.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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