local Maps = game.ServerStorage.Maps:GetChildren()
local collected = {}
for count = 1, 3, 1 do
local Picked = tostring(Maps[math.random(1,#Maps)])
if #collected <= 3 then
if collected[Picked] == nil then
collected[#collected+1] = Picked
else
collected[#collected+1] = tostring(Maps[math.random(1,#Maps)])
end
end
end
print(collected[1])
print(collected[2])
print(collected[3])
Basically I'm trying to get it to print 3 different and randomized map names, but sometimes it gets a map twice... Is there's a way to fix it?
