Not working for whatever reason, at the end of the script it says "Expected identifier, got 'end'", puts players into serverstorage, choses map, then selects random players to kill to become zombies.
local NE = Instance.new("Message") NE.Parent = game.Lighting NE.Name = "NotEnough" NE.Text = "You need at least two players to play!" local Map = Instance.new("Message") Map.Name = "MapSelection" Map.Text = "Current map" local function round() script.Mode.Value = "Preperation" local players = game.Players:GetChildren() for i,v in pairs(players) do game.Workspace[v.Name].Parent = game.ServerStorage end Map.Parent = game.Workspace local v = 25 repeat v = v - 1 wait(v/100) local Maps = game.Lighting.Maps:GetChildren() local Selection = math.random(1,#Maps) Map.Text = (Maps[Selection].Name) print(v) until v < 1 local map = game.Lighting[Map.Text]:clone() map.Parent = game.Workspace wait() local players = game.Players:GetChildren() for i,v in pairs(players) do game.ServerStorage[v.Name].Parent = game.Workspace end local People = game.Players:GetChildren() local Dead = math.random(1,#players) game.Workspace[players[Dead].Name].Humanoid.Health = 0 if #People >= 4 then repeat local Dead2 = math.random(1,#players) until Dead2 ~= Dead if #People >= 8 then repeat local Dead3 = math.random(1,#players) until Dead3 ~= Dead and Dead3 ~= Dead2 if #People >= 16 then repeat local Dead4 = math.random(1,#players) until Dead4 ~= Dead and Dead4 ~= Dead2 and Dead4 ~= Dead3 end if end if end if end