So im trying to make a game and as your crashing you black out, I have a local script as my main handler and another gui for black out. You can see in the following picture of what I mean.
My code for when it happens as following, I want it to happen where it says blackf.Visible = true
button.Activated:Connect(function()
elc.Playing = true
e2c.Playing = true
wait(1)
p1:Play()
wait(7)
game.Players.LocalPlayer.PlayerGui.LocalScript:Destroy()
wait(10)
fire1.Enabled = true
fire2.Enabled = true
fire3.Enabled = true
wait(.1)
elc.Playing = false
engined.Playing = true
fires.Playing = true
fires.Looped = true
e1b:Destroy()
wait(3)
warna.Playing = true
warna.Looped = true
p2.Playing = true
wait(8)
blackf.Visible = true
atc1.Playing = true
wait(4)
p3.Playing = true
wait(1)
end)