So basically the problem is when the player clicks play they die and respawn even though the if statement isn’t supposed to run if they are alive.
The Player spawns in a lobby so they aren’t dead but the if statement runs anyway.
MainMenu.MouseButton1Click:Connect(function()
--- things
if Character:WaitForChild("Humanoid").Died then
wait(0.5)
player.Character.Humanoid.Health = 0
end
--- spawn
end)
This is in a Local Script.