#help minigames round system roblox studio 2025 august

1 messages · Page 1 of 1 (latest)

dry chasm
#

how do you make it so the chosenmaps arent picked twice

#

cause the chosenmap2 or 3 might be the same as the other chosen maps

#

for example if i have 5 maps that are called "1" "2" "3" "4" "5"

#

the chosen maps would be like

#

"1" "4" "1"

#

theres two same maps

#

i dont want that

blazing oxide
#

Make a table that’s inside a copy of all maps, so you can randomly pick from it and remove each map after it's chosen

#

Preventing any duplicates

dry chasm
#

ok

blazing oxide
# dry chasm ok

inside the MapChooser function, u can declare a new variable with the same values as Maps and then select the map randomly using indexes, like

local MapsCopy = table.clone(Maps)
local MapIndex = math.random(1, #MapsCopy)
local SelectedMap = MapsCopy[MapIndex]
table.remove(MapsCopy, MapsIndex) -- remove it from the table afterwards