How to get a random room and place it within workspace

Hello!

I am trying to make a room randomisation script for my escape room. This script will get one of the premade rooms and place it on a placeholder/plot/part in a certain area. All rooms will be the same size and height, so they can spawn and line perfectly.

If you’re confused about the placeholders here’s how they would look:
Screenshot_305

Can anyone help make a system that gets six/more premade room from Replicated Storage or Server Storage and place them within these plots.

Anything will help! Thanks!

local YourRoomFolder = game.ServerStorage.Rooms -- Your Rooms Path
local RandomRoom = YourRoomFolder:GetChildren()[math.random(1,#YourRoomFolder:GetChildren()]
RandomRoom.Parent = workspace
2 Likes