Random House Generation

–Introduction–

Hello! I am working on a game that has a very large map. The map is very simple, though, with the same house repeating over and over again. Similar to level 94 of the Backrooms. I was going to manually place every house, however, I want the game to feel different each time. The point is to explore and you can’t really do that if you literally know where everything is.

–What I Need Help With–

I wanted to create a feature where the house model I have built will spawn–say 100 times–on top of random hills throughout the map. I am using actual terrain so the grass and everything is already prebuilt.

–What I Tried–

I had the idea to place transparent bricks on top of hills throughout the map, and a script would pick about 100 of the bricks to spawn a house on. There would be a folder where the script would take a random house model from. This being said, I have no idea what would be the best way to do this. I feel like implementing this would cause an incomprehensible amount of lag. Would anyone be able to offer suggestions on how to do this. I am still learning how to script.


Use the Roblox streaming service to limit how much is being rendered by the client, and on the server, don’t spawn all the houses at once, but spawn them all in a span of a minute or two. Have the client have a render screen until all houses have spawned. You could do it better, but since we’re only spawning the houses once, this is alright.

1 Like