How to generate roof like Bloxburg

Hello!, im currently working on a grid system. It worked out really cool! However I realized that a house without a roof will be a bit messy. So I’ve been wondering. How to make a roof generation?

I’ve tried looking at the devforum and youtube so far but nothing seems to answer my question.

Thanks for reading! :slight_smile:

2 Likes

hi you have a floor? to clone position and create ceiling

you can use walls to make more precise

ceiling.Position = floor.Position+Vector3.new(0,closestwall.Size.Y,0)

No, the wall placing system is familiar like blox burg so it cannot generate a floor

1 Like

u can use grids

if is max or min then make it’s look 45° more up and down it a small cantity to adjust

u can use loop for

for x=wallsmallX,wallmaxX do
for z=wallsmallZ,wallmaxZ do
--Create ceil
end
end

sorry but i can’t make geometryc forms but you can get the center of all the walls
and make raycast to copy geometryc forms

3 Likes