I explain the problem in the script.

local Storage = game.ServerStorage
game.Workspace.Timer.Countdown.Value = 300

function markDoom () --This is the function that does not work, scroll to the bottom for more information.
	local Mark = Storage.SuddenDeathMarker:Clone()
	Mark.Parent = game.Workspace
	local doomScroll = Instance.new("Message")
	doomScroll.Text = "Hurry! All players must enter the red box in the center of the map or they will be DESTROYED!!"
	wait(7)
	doomScroll:Destroy()
end

function suddenDeath ()
	game.Workspace.SuddenDeathMarker:Destroy()
	local x = Instance.new("Message")
	x.Text = "Sudden Death--2 Minutes Remaining"
	game.Lighting.ChangeColor.TintColor = Color3.new(255, 0, 0)
	wait(5)
	x.Parent = game.Workspace
	wait(5)
	x:Destroy()
	Storage.SuddenDeathWall.Parent = game.Workspace
	game.Workspace.Zone:Destroy()
end

function movezone ()
	local ZoneClone = Storage.Zone:Clone()
	ZoneClone.Parent = game.Workspace
	ZoneClone.Posision = CFrame.new(-12.355, -128.196, 209.416)
end

function spawnplayers ()
	Storage.GameSpawn.Parent = game.Workspace.Spawns
	wait(1)
	
	for i, player in ipairs(game.Players:GetPlayers()) do
		player.RespawnLocation = game.Workspace.Spawns.GameSpawn
		if player.Character then
			local hum = player.Character:FindFirstChild('Humanoid')
			if hum then
				hum.Health = 0
			end	
		end
	end
	
	local information = Instance.new("Message")
	information.Text = "Run For Your Life, The Hounds Have Benn RELEASED!!!"
	information.Parent = game.Workspace
	wait(5)
	information:Destroy()
	
	wait(3)
	
	game.Workspace.Timer.Countdown.Value = 300
	
	game.Workspace.Spawns.GameSpawn.Parent = Storage
	movezone()

end

function resetplayers ()
	for i, player in ipairs(game.Players:GetPlayers()) do
		if player.Character then
			local hum = player.Character:FindFirstChild('Humanoid')
			if hum then
				hum.Health = 0
			end	
		end
	end
	
	game.Lighting.ChangeColor.TintColor = Color3.new(255, 255, 255)
	
end
	
game.Workspace.Test.Touched:Wait()
spawnplayers()
wait(143)
markDoom()--This is the function that does not work and it is the same thing with everything after it. Can someone help me fix this.
wait(30)
suddenDeath()
wait(120)
resetplayers()

4 comments

0

pretty sure instance.new message was removed. it will only work in scripts made before they removed it. youll have to use guis

0

and you also used the destroy command. you should almost NEVER do that because it can currupt completely unrelated things that you wouldnt expect, its made my whole games stop working before

0

thx

0

I just tested it, didn't work, you got another idea