Whenever you die for the first time the first script always fires, but after that the second script just straight up does not fire. But if you are in studio it works perfectly fine for some reason
game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"].DeathText.Text = deathMessages[13]
game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"].Position = UDim2.new(-1.08, 0, 0, 0)
game.Players.LocalPlayer.FOV.Value = 10
tweenService:Create(game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"], TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), finish):Play()
task.wait(1.5)
game.Players.LocalPlayer.FOV.Value = 70
tweenService:Create(game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"], TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), start):Play()
end)
game.Players.LocalPlayer.CharacterAdded:Connect(function()
game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"].DeathText.Text = deathMessages[math.random(1, #deathMessages)]
game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"].Position = UDim2.new(-1.08, 0, 0, 0)
game.Players.LocalPlayer.FOV.Value = 10
tweenService:Create(game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"], TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), finish):Play()
task.wait(1.5)
game.Players.LocalPlayer.FOV.Value = 70
tweenService:Create(game.Players.LocalPlayer.PlayerGui.ScreenFX["Death Frame"], TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), start):Play()
end)
end)