Voting table system and then loading in a new map won't work

you can just ask me what you need to see the script or the explorer whatever

Interesting Script…

Summary

Yes

This is the script where there is an error on line 72

local Players = game:GetService(“Players”)
local Rep = game:GetService(“ReplicatedStorage”)
local ServerStorage = game:GetService(“ServerStorage”)

local events = Rep:WaitForChild(“Events”)

local mob = require(script.Parent.Mob)
local info = workspace.Info

local round = {}
local votes = {}

function round.LoadMap()
local votedMap = round.ToggleVoting()
local mapFolder = ServerStorage.Maps:FindFirstChild(votedMap)
if not mapFolder then
mapFolder = ServerStorage.Maps.Mansion
end

local newMap = mapFolder:Clone()
newMap.Parent = workspace

workspace.SpawnBox.Floor:Destroy()

newMap.Base.Humanoid.HealthChanged:Connect(function(health)
	if health <= 0 then
		info.GameRunning.Value = false
		info.Message.Value = "GAME OVER"
	end
end)

return newMap

end

function round.ToggleVoting()
local maps = ServerStorage.Mobs:GetChildren()
votes = {}
for i, map in ipairs(maps) do
votes[map.Name] = {}
end

for i=10, 1, -1 do
	info.Message.Value = "Map voting (" .. i .. ")"
	task.wait(1)
end

local winVote = nil
local winScore = 0
for name, map in pairs(votes) do
	if #map > winScore then
		winScore = #map
		winVote = name
	end
end

return winVote

end

function round.ProcessVote(player, vote)

for name, mapVotes in pairs(votes) do
	local oldVote = table.find(mapVotes, player.UserId)
	if oldVote then
		table.remove(mapVotes, oldVote)
		print("Old vote found", oldVote)
		break
	end
end

print("Processed vote for", vote)
table.insert(votes[vote], player.UserId)

end
events:WaitForChild(“VoteForMap”).OnServerEvent:Connect(round.ProcessVote)

function round.GetWave(wave, map)
if wave == 1 then
mob.Spawn(“Enconn”, 4, map)
else
if wave == 2 then
mob.Spawn(“Enconn”, 6, map)
else
if wave == 3 then
mob.Spawn(“Enconn”, 4, map)
mob.Spawn(“QuickEnconn”, 2, map)
else
if wave == 4 then
mob.Spawn(“Enconn”, 15, map)
else
if wave == 5 then
mob.Spawn(“EnconnHeavy”, 5, map)
else
if wave == 6 then
mob.Spawn(“QuickEnconn”, 6, map)
mob.Spawn(“EnconnHeavy”, 4, map)
mob.Spawn(“Enconn”, 4, map)
else
if wave == 7 then
mob.Spawn(“Enconn”, 4, map)
mob.Spawn(“QuickEnconn”, 4, map)
mob.Spawn(“EnconnHeavy”, 4, map)
else
if wave == 8 then
mob.Spawn(“Enconn”, 30, map)
else
if wave == 9 then
mob.Spawn(“QuickEnconn”, 20, map)
mob.Spawn(“EnconnHeavy”, 10, map)
mob.Spawn(“Enconn”, 15, map)
else
if wave == 10 then
mob.Spawn(“EnconnBoss”, 1, map)
mob.Spawn(“QuickEnconn”, 5, map)
mob.Spawn(“Enconn”, 4, map)
mob.Spawn(“EnconnHeavy”, 5, map)
else
if wave == 11 then
mob.Spawn(“ZoomEnconn”, 1, map)
else
if wave == 12 then
mob.Spawn(“ZoomEnconn”, 2, map)
mob.Spawn(“EnconnBoss”, 2, map)
mob.Spawn(“EnconnHeavy”, 5, map)
else

													if wave == 13 then
														mob.Spawn("ZoomEnconn", 5, map)
														mob.Spawn("EnconnBoss", 2, map)
														mob.Spawn("EnconnHeavy", 5, map)
														mob.Spawn("QuickEnconn", 20, map)
														mob.Spawn("Enconn", 30, map)
													else

														if wave == 14 then
															mob.Spawn("ZoomEnconn", 10, map)
														else
															if wave == 15 then
																mob.Spawn("ZoomEnconn", 12, map)
																mob.Spawn("QuickBoss", 1, map)
																mob.Spawn("QuickEnconn", 50, map)
															else
																if wave == 16 then
																	mob.Spawn("LightSpeedEnconn", 10,map)
																else 
																	if wave == 17 then
																		mob.Spawn("ZoomEnconn", 50, map)
																		mob.Spawn("EnconnBoss", 5, map)
																	else 
																		if wave == 18 then
																			mob.Spawn("QuickBoss", 2, map)
																			mob.Spawn("EnconnHeavy", 50, map)
																		else
																			if wave == 19 then
																				mob.Spawn("LightSpeedEnconn", 20, map)
																			else																				
																				if wave == 20 then
																					mob.Spawn("HeavyBoss", 1, map)
																				else if wave == 21 then
																						mob.Spawn("QuickBoss", 4, map)
																						mob.Spawn("HeavyBoss", 1, map)
																					else
																						if wave == 22 then
																							mob.Spawn("HeavyBoss", 1, map)
																							mob.Spawn("QuickBoss", 3, map)
																							mob.Spawn("ZoomEnconn", 50, map)
																							mob.Spawn("Enconn", 100, map)
																						else
																							if wave == 23 then
																								mob.Spawn("Overdrive", 10, map)
																							else
																								if wave == 24 then
																									mob.Spawn("Overdrive", 20, map)
																									mob.Spawn("HeavyBoss", 1, map)
																								else
																								if wave == 25 then
																									mob.Spawn("SuperHeavy", 2, map)
																										 mob.Spawn("Overdrive", 30, map)
																						
																									end
																								end
																							end

																						end
																					end


																				end
																			end
																		end
																	end
																end


															end
														end

													end
												end

											end
										end
									end
								end

							end
						end
					end
				end
			end
		end
	end
end
return round

do you need to see the explorer?

table.insert(votes[vote], player.UserId) is the line 72