of     1   

palk47
#44597459Saturday, March 26, 2011 3:32 AM GMT

I tried making a script, but it failed >:( I need help making a script where if someone dies, A sound plays. Please, I really need your help.
goldfriend10
#44598070Saturday, March 26, 2011 3:43 AM GMT

p = game.Workspace.palk47 if p.Humanoid.Health == 0 then sound.play()
palk47
#44598227Saturday, March 26, 2011 3:46 AM GMT

It needs to be any player, not just me :/
palk47
#44598774Saturday, March 26, 2011 3:56 AM GMT

Please reply, Im tired of waiting D:
TigerBloodd
#44602146Saturday, March 26, 2011 5:09 AM GMT

p = game.Workspace:GetChildren() for i= 1, #p if p.Humanoid.Health == 0 sound:play() Try that.
DeadPanTutor
#44602681Saturday, March 26, 2011 5:25 AM GMT

Incorrect. Not every object possesses a humanoid. while true do G = game.Workspace:GetChildren() for i=1, #G do if G[i]:findFirstChild("Humanoid") and G[i].Humanoid.Health == 0 then sound:play() end end wait(0.01) end

    of     1