hi iv'e made a map changer that randomize maps but some time it repeat doing the same map again how do i make it randomize numbers that werent?
local map1 = game.ServerStorage.Maps.Map1
local map2 = game.ServerStorage.Maps.Map2
local map3 = game.ServerStorage.Maps.Map3
local map4 = game.ServerStorage.Maps.Map4
local map5 = game.ServerStorage.Maps.Map5
local map6 = game.ServerStorage.Maps.Map6
local map7 = game.ServerStorage.Maps.Map7
local map8 = game.ServerStorage.Maps.Map8
while true do
local random = math.random(1, 8)
if random == 1 then
map1:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map1:Destroy()
end
if random == 2 then
map2:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map2:Destroy()
end
if random == 3 then
map3:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map3:Destroy()
end
if random == 4 then
map4:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map4:Destroy()
end
if random == 5 then
map5:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map5:Destroy()
end
if random == 6 then
map6:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map6:Destroy()
end
if random == 7 then
map7:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map7:Destroy()
end
if random == 8 then
map8:Clone().Parent = game.Workspace
wait(360)
game.Workspace.Map8:Destroy()
end
end
thanks :D

3 comments
btw i dont know how to use code block
click the blue lua icon, then paste your self inside the ~~~~
ohhh ok thx and can u help me please?