✓ Accepted answer
use math.random and follow the code, im not sure if it works
create a numberValue in Workspace, group the rooms into 3 different ones (like what you said, you had 3 different rooms)
name your numbervalue and replace each "YourNameOfYourValue" with the actual of the numbervalue.
local number = math.random(0, 2)
local buildingNumber1 =
local buildingNumber2 =
local buildingNumber3 =
game.Workspace.YourNameOfYourValue.Value = number
if game.Workspace.YourNameOfYourValue.Value == "0" then
buildingNumber1:Clone()
elseif game.Workspace.YourNameOfYourValue.Value == "1" then
buildingNumber2:Clone()
else
buildingNumber3:Clone
end
edit: use this script, I forgot some stuff
(also put your mazes into somewhere outside Workspace)
local number = math.random(0, 2)
local buildingNumber1 =
local buildingNumber2 =
local buildingNumber3 =
game.Workspace.YourNameOfYourValue.Value = number
if game.Workspace.YourNameOfYourValue.Value == "0" then
local clone1 = buildingNumber1:Clone()
clone1.Parent = workspace
elseif game.Workspace.YourNameOfYourValue.Value == "1" then
local clone2 = buildingNumber2:Clone()
clone2.Parent = workspace
else
local clone3 = buildingNumber3:Clone
clone3.Parent = workspace
end