local replicatedstorage = game:GetService('ReplicatedStorage') local status = replicatedstorage:WaitForChild('InfoValue') local maps = game.Workspace:WaitForChild('maps') while true do --[[ while game.Players.NumPlayers < 2 do status.Value = 'Two Players are needed to play' repeat wait(2) until game.Players.NumPlayers >= 2 end ]]

for i = 30,0,-1 do status.Value ='Intermission '..i wait(1) end

_G.gameplayers = {} for i, v in pairs(game.Players:GetPlayers()) do

if v then table.insert(_G.gameplayers, v.Name) end end

local mapsinserverstorage = game:GetService('ServerStorage') local chosenmap = maps [math.random(1,#mapsinserverstorage)] chosenmap:Clone().Parent = maps status.Value ='Get Ready to get teleported' wait(3) local spawns = chosenmap:WaitForChild('Spawns'):GetChildren() for _, player in pairs(game.Players:GetPlayers())do if player and #spawns > 0 then local torso = player.Chracter:WaitForChild('Torso') local allspawns = math.random(1, #spawns) local randomspawn = spawns[allspawns] if randomspawn and torso then table.remove(spawns,allspawns) torso.CFrame = CFrame.new(randomspawn.Position + Vector3.new(0,2,0)) end end end local gun = game.ReplicatedStorage.Tool local newgun = gun:Clone() newgun.Parent = game.Players.player.Backpack

for i = 90,0,-1 do status.Value = i..'seconds left' if i == 0 then status.Value = 'Game Over! Telepoting all players to lobby' for _, player in pairs(game.Players:GetPlayers())do if player:FindFirstChild('leaderstats') then player.leaderstats.Cash.Value = player.leaderstats.Cash.Value + 5 end break end end wait(1) end

maps:ClearAllChildren()

end

1 comment

1

Please code block your script. To do this, press the blue Lua button above your text box then paste the code in-between the two ~~~~~~ lines.