So, when I'm testing and I'm the beast/killer and I die to test the end match, it doesn't work. No errors

--MAIN-- survivorpoints = 15 beastpoints = 20

local ugly_hint = Instance.new("Hint") function roundstart() local players = game.Players:GetChildren() ugly_hint.Parent = game.Workspace if game.Players.NumPlayers < 2 then ugly_hint.Text = "Starting!" wait(3) ugly_hint.Text = "Wait through intermission(10), use this time to do nothing!" wait(10) ugly_hint.Text = "Picking random map and killer, please wait!" local mg = game.ServerStorage.Minigames:GetChildren() local map = mg[math.random(1,#mg)] wait(2) ugly_hint.Text = "OK, found map! Finding player" wait(1) local killer = players[math.random(1, #players)] local colorchanger = killer:GetChildren() local tools = game.ServerStorage.Blade wait(2) ugly_hint.Text = "Found player! Thank you for waiting during this stupid process!" map.Parent = game.Workspace wait(5) ugly_hint.Text = "The killer is "..killer.Name wait(3) ugly_hint.Text = "Teleporting players!" for i = 1, #players do players[i].Character.Torso.CFrame = CFrame.new(0, 0, 0) players[i].Character.Torso.Anchored = true players[i].Backpack.swd.Disabled = false end killer.Character.Torso.CFrame = map.BeastSpawn.CFrame local backup = tools:clone() backup.Parent = killer.Backpack killer.Character.Torso.Anchored = true ugly_hint.Text = "Starting match in 5 seconds!" wait(5) for i = 1, #players do players[i].Character.Torso.Anchored = false end killer.Character.Torso.Anchored = false ugly_hint.Text = "Started!" wait(2) ugly_hint.Parent = game.Lighting if killer.Character.Humanoid.Health == 0 then killer.Backpack.Value.Value = false ugly_hint.Parent = game.Workspace ugly_hint.Text = "The beast has reset! Restarting game!" roundstart() for i = 1, #players do players:LoadCharacter() players[i].Backpack.swd.Disabled = false players[i].Backpack.Value.Value = false end end else ugly_hint.Text = "Need to players to start game!111!!11one" end end roundstart()