Just to make it easier... for me, lets run through this shall we?
01 | P = script.Parent.Parent.Parent.Parent.Character.Humanoid |
02 | while true do wait( 0.1 ) |
04 | script.Parent.Visible = true |
06 | script.Parent.Script.Death:play() |
07 | script.Parent.Script.Death 2 :play() |
Notice why is there a math.random? That's my question, also you don't need a wait 0.1 or a wait(100) afterwards. Just do this:
01 | game.Players.PlayerAdded:connect( function (plr) |
02 | plr.CharacterAdded:connect( function (char) |
03 | repeat wait() until char.Humanoid |
04 | char.Humanoid.Died:connect( function () |
05 | a = script.Death:clone() |
06 | a.Parent = plr.PlayerGui |
07 | b = script.Death 2 :clone() |
08 | b.Parent = plr.PlayerGui |
09 | repeat a:Play() b:Play() until a.Playing = = true and b.Playing = = true |
Just make this a script in workspace, and add your sounds into that script.