How do i make a random room generation script?

Hello. i have been creating a doors floor 2 concept game, and i made it as a challenge for myself to improve on scripting, and i have improved alot, but this room generation script, i knew it was gonna be a problem, so if anyone knows how to make it or knows a video that would be very helpful.

Thanks.

2 Likes

just make folder with completed rooms in replicatedstorage, select random room and then change position of the room as you want of course with script.
heres how you can pick random room from a folder.

local RoomFolder = game.ReplicatedStorage.Rooms:GetChildren()
local RandomRoom = RoomFolder[math.random(1, #RoomFolder)]
1 Like

alright imma try that when im done making my entity design

thank you so much this really helps me i already did so it can pick a random room