menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Need help with a sound script
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Need help with a sound script
palk47
Join Date: 2009-05-07
Post Count: 508
#44597459
Saturday, 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.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
goldfriend10
Join Date: 2009-03-13
Post Count: 524
#44598070
Saturday, March 26, 2011 3:43 AM GMT
p = game.Workspace.palk47 if p.Humanoid.Health == 0 then sound.play()
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
palk47
Join Date: 2009-05-07
Post Count: 508
#44598227
Saturday, March 26, 2011 3:46 AM GMT
It needs to be any player, not just me :/
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
palk47
Join Date: 2009-05-07
Post Count: 508
#44598774
Saturday, March 26, 2011 3:56 AM GMT
Please reply, Im tired of waiting D:
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
TigerBloodd
Join Date: 2010-10-24
Post Count: 2430
#44602146
Saturday, March 26, 2011 5:09 AM GMT
p = game.Workspace:GetChildren() for i= 1, #p if p.Humanoid.Health == 0 sound:play() Try that.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
DeadPanTutor
Join Date: 2010-12-31
Post Count: 1166
#44602681
Saturday, 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
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right