local spawn[spawnIndex] Expected identifier got '['
line 60
-- Made By Dscpcheatsis10123
local roundTime = 60 * 5
local intermissionTime = 20
local serverstorage = game:GetService("ServerStorage")
local replicatedstorage = game:GetService("ReplicatedStorage")
local debris = game:GetService("Debris")
local remoteEvent = replicatedstorage:WaitForChild("RemoteEvent")
local maps = serverstorage:WaitForChild("Maps")
local mapHolder = game.Workspace:WaitForChild("MapHolder")
while true do
-- Map Chooser
mapHolder:ClearAllChilderen()
wait(2)
local allMaps = maps:GetChildren()
local newMap = allMaps[math.random(1, #allMaps)]
newMap.Parent = game.Workspace.MapHolder
wait(2)
-- wait for contestants
while true do
wait(5)
contestants = {}
for _, player in pairs (game.Players:GetPlayers()) do
if player and player.Character then
local humanoid = player.Character.WaitForChild("Humanoid")
if humanoid and humanoid.Health > 0 then
table.insert(contestants, player)
end
end
end
end
if #contestants >= 3 then
break
else
end
-- Chose Bloxxer
bloxxer = contestants[math.Random(1, #contestants)]
--Choose Sherif
while true do
randomPlayer = contestants[math.Random(1, #contestants)]
if randomPlayer == bloxxer then
sherif = randomPlayer
break
end
end
-- Telepoting Players to Map
local spawns = newMap:WaitForChild("Spawns"):GetChildren()
for _, player in pairs[contestants] do
if player and player.Character and #spawns > 0 then
torso = player.Character:WaitForChild("Torso")
local spawnedIndex = math.random(1, #spawns)
local spawn[spawnIndex]
if spawn and torso then
table.remove(spawns, spawnIndex)
torso.CFrame = CFrame.new(spawn.Position = Vector3.new(0,3,0))
local matchtag = Instance.new("StringValue")
matchtag.Name = "MatchTag"
matchtag.Parent = player.Character
local backpack = player:FindFirstChild("BackPack")
if backpack then
if player == bloxxer then
local sword = serverstorage:WaitForChild("Sword"):Clone()
sword.Parent = backpack
elseif player == sherif then
local netgun = serverstorage:WaitForChild("Gun"):Clone()
end
end
end
end
end
local localTimer = roundTime
while localTimer > 0
wait(1)
localTimer = localTimer - 1
activecontestants = ()
bloxxeractive = false
for _, players in pairs(contestants)do
if player then
local character = player.Character
if character then
local matchtag = character:FindFirstChild("MatchTag")
local humanoid = character:FindFirstChild("Humanoid")
if matchtag and humanoid and Humanoid.Health > 0 then
if player == bloxxer then
bloxxeractive = true
end
table.insert(activecontestants, player)
end
end
end
end
if activecontestants <= 1 or not bloxxer then
break
end
local gameResults = "PlayersWin"
if bloxxeractive then
if #contestants > 2 then
-- bloxxer failed
else
gameResults = "BloxxerWin"
else
--Bloxxer captured
end
end
end

2 comments
You can't just post a gigantic script and one error without even a line number and expect help
There I Updated it