I have this script that makes a Gui Appear and a Sound to play when you die.
The problem is, the Gui Appears, but the Sound plays only after respawn.
I have tried waiting longer times and dying many times, but it still plays after the respawn.
This is the script I used:
P = script.Parent.Parent.Parent.Parent.Character.Humanoid
while true do
if P.Health == 0 then
script.Parent.Parent.Parent.Death:Play()
script.Parent.Visible = true
end
wait()
end
