Ok so at the start everything works I do get teleported when the game starts but the game wont start ill show u the script.

running = false
script.PlayerCheck.Value = false


function run_game() --This is the game and its not starting
	wait(5)
	running = true
	wait(2)
	game.Workspace.Teleport.Value = false
	wait(2)
	game.Workspace.Music1:Play()
	script.Parent.Text = ("Oh come on! The car crashed... what will we do now!?")
	wait(4)
	script.Parent.Text = ("Lets go call for help in the other side of the city.")
	wait(3)
	script.Parent.Text = ("I have a feeling it won't be easy. We still have a long way from home.")
	wait(3)
	script.Parent.Text = ("")
	wait(1.5)
	script.Parent.Text = ("Wait a second... What are those things?!")
	game.Workspace.Items.Blocker1:Destroy()
	wait(3)
	script.Parent.Text = ("")
	if script.PlayersPlaying.Value <= 0 then
	print("Everybody died")
	end_game()
	else
	wait(1)
	local ZH1 = game.Lighting.ZombieHorde1:Clone()
	ZH1.Parent = game.Workspace
	ZH1:MakeJoints()
	wait(15)
	if script.PlayersPlaying.Value <= 0 then
	print("Everybody died")
	end_game()
	else
	wait(2)
	script.Parent.Text = ("That building blocked the road. Lets go to that library.")
	wait(6)
	script.Parent.Text = ("There are more zombies here!")
	wait(2)
	script.Parent.Text = ("")
	local ZH2 = game.Lighting.ZombieHorde2:Clone()
	ZH2.Parent = game.Workspace
	ZH2:MakeJoints()
	wait(15)
	if script.PlayersPlaying.Value <= 0 then
	print("Everybody died")
	end_game()
	else
	wait(2)
	game.Workspace.Items.Blocker2:Destroy()
	script.Parent.Text = ("Good. Now we should exit out of the back and into that warehouse.")
	wait(6)
	script.Parent.Text = ("Looks like somebody died... let's get that katana.")
	wait(5)
	script.Parent.Text = ("")
	wait(5)
	script.Parent.Text = (". . .")
	game.Workspace.Music1:Stop()
	game.Workspace.TankMoan:Play()
	wait(3)
	script.Parent.Text = ("That didn't sound too friendly...")
	wait(3)
	game.Workspace.Items.Blocker3:Destroy()
	script.Parent.Text = ("Ok now we are at the other side of the city.")
	game.Workspace.Music2:Play()
	wait(3)
	script.Parent.Text = ("Watch out! They're going to explode!")
	wait(4)
	script.Parent.Text = ("")
	local BS = game.Lighting.BoomerSwarm:Clone()
	BS.Parent = game.Workspace
	BS:MakeJoints()
	wait(10)
	if script.PlayersPlaying.Value <= 0 then
	print("Everybody died")
	end_game()
	else
	script.Parent.Text = ("Look over there! Those zombies are on fire!")
	wait(4)
	game.Workspace.InfernoSound:Play()
	script.Parent.Text = ("")
	local I1 = game.Lighting.Inferno1:Clone()
	I1.Parent = game.Workspace
	I1:MakeJoints()
	wait(15)
	if script.PlayersPlaying.Value <= 0 then
	print("Everybody died")
	end_game()
	else
	script.Parent.Text = ("Ok move on")
	wait(5)
	script.Parent.Text = ("*Radio makes a weird noise*")
	wait(3)
	script.Parent.Text = ("Radio: Hey everyone I'm Sp00ked1 and ill help you outta here.")
	wait(5)
	script.Parent.Text = ("Radio: I am waiting for you in a helicopter now.")
	wait(10)
	script.Parent.Text = ("Radio: There will be more inferno zombies so watch out!")
	wait(5)
	script.Parent.Text = ("Radio: THERE ARE MORE INFERNO ZOMBIES!")
	wait(3)
	game.Workspace.InfernoSound:Play()
	script.Parent.Text = ("")
	local I2 = game.Lighting.Inferno2:Clone()
	I2.Parent = game.Workspace
	I2:MakeJoints()
	script.Parent.Text = ("Ok good work they were fast!")
	wait(3)
	script.Parent.Text = ("Radio: Ill go explode the wall.")
	wait(3)
	game.Workspace.BreakWall:Destroy()
	game.Workspace.Explode:Play()
	wait(15)
	if script.PlayersPlaying.Value <= 0 then
	print("Everybody died")
	end_game()
    else
	script.Parent.Text = ("Radio: I will explode the wall.")
	game.Workspace.Explode:Play()
	game.Workspace.BreakWall2:Destroy()
	wait(10)
	script.Parent.Text = ("Ummm why is there a tank here!?!?!?")
	wait(3)
	script.Parent.Text = ("Radio: Oh shoot..!")
	wait(3)
	script.Parent.Text = ("Radio: I'll have to raise the helicopter up until you kill it.")
    wait(3)
    script.Parent.Text = ("")
    game.Workspace.TankMusic:Play()
    game.Workspace.Tank.Anchored = false
	wait(2)
	if script.PlayersPlaying.Value <= 0 then
	print("Everybody died")
	end_game()
	else
	wait(2)
	if not game.Workspace:FindFirstChild("Tank") then
	wait(1)
	game.Workspace.TankMusic:Stop()
	game.Workspace.TankScream:Play()
	wait(3)
	game.Workspace.VictoryMusic:Play()    
    script.Parent.Text = ("Sp00ked1: You killed it!")
    wait(3)
    script.Parent.Text = ("Sp00ked1: I am gonna lower the helicopter now.")
    wait(2)
	script.Parent.Text = ("")
	game.Workspace.Helicopter:Destroy()
    local H2 = game.Lighting.Helicopter2:Clone()
    H2.Parent = game.Workspace
    H2:MakeJoints()
    wait(6)
    game.Lighting.ExposureCompensation = -1 --This is basically like a bright light fade, like the one in Contamination when you win.
    wait(0.5)
	game.Lighting.ExposureCompensation = -2
    wait(0.5)
	game.Lighting.ExposureCompensation = -3
    wait(0.5)
	game.Lighting.ExposureCompensation = -4
    wait(0.5)
	game.Lighting.ExposureCompensation = -5
    wait(0.5)
	game.Lighting.ExposureCompensation = -6
    wait(0.5)
	game.Lighting.ExposureCompensation = -7
    wait(0.5)
	game.Lighting.ExposureCompensation = -8
    wait(7)
	win_game()
    end
	end
	end
	end
	end
	end
	end
	end
	end
	
	function win_game()
		game.Lighting.ExposureCompensation = 1
		script.PlayerCheck.Value = false
		wait(3)
		script.Parent.Text = ("Congratulations, you win!")
		wait(7)
		script.Parent.Text = ""
		game.Workspace.VictoryMusic:Stop()
		running = false
	end
	
	function end_game()
	script.Parent.Text = ("Everybody has died.")
	game.Workspace.GameOver:Play()
	game.Workspace.Music1:Stop()
	game.Workspace.Music2:Stop()
	game.Workspace.TankMusic:Stop()
	game.Workspace.VictoryMusic:Stop()
	wait(10)
	script.Parent.Text = ("")
	wait(2)
	game.Workspace.GameOver:Stop()
	running = false
	wait(2)
	end



	function start_game() --The Lobby
	game.Workspace.LobbyMusic:Play()
	running = true
	script.DeadPlayers.Value = 0
	script.StartPlayers.Value = 0
	wait(20)
	script.Parent.Text = ("The game will begin shortly...")
	wait(9)
	script.Parent.Text = ("The game has started!")
	game.Workspace.StartSound:Play()
	game.Workspace.LobbyMusic:Stop()
	wait(2)
	game.Workspace.Teleport.Value = true
	script.Game.Value = true
	script.StartPlayers.Value = game.Players.NumPlayers
	script.Parent.Text = ("")
	wait(1)
	end
	



    while true do --This is how the game starts.
	wait(5)
	if running == false then
	start_game()
	else
	wait(5)
	end
    end

	

2 comments

0

Can you show us where the problem is? It's difficult to look through a script with 239 lines.

0

at the bottom of function run_game() there is wait(5) running = true game.Workspace.Teleport.Value yada yada everything at the bottom of function run_game()