I don't really need help fixing a script, I just need someone to help me with an addition to it

mapc.Value = (math.random(2))
	wait(1)
	if mapc.Value == 1 then
	  print(mapc.Value)
      player.Character.Torso.CFrame = ToMapOne + Vector3.new(0, i * 5, 0)
      player.TeamColor = game.Teams["Playing"].TeamColor
		for i, m1 in ipairs(game.Workspace.MapOne:GetChildren()) do
    m1.Transparency = 0
    m1.CanCollide = true
end
	    end 
	if mapc.Value == 2 then
		print(mapc.Value)
		player.Character.Torso.CFrame = ToMapTwo + Vector3.new(0, i * 5, 0)
		player.TeamColor = game.Teams["Playing"].TeamColor
		for i, m2 in ipairs(game.Workspace.MapTwo:GetChildren()) do
    m2.Transparency = 0
    m2.CanCollide = true
end

The above isn't the entire script, it's just the segment of the script that chooses a random map by a math.random IntValue variable. The only problem is that this part of the script runs through each player and has everyone choose a random number, which then loads multiple maps and glitches the match. Can someone help me fix it to have the script only choose 1 number, rather than it choosing a number for each player?