Hi, recently I started thinking about the floor creation system and I need your help, because after 2 attempts I deleted all my code for 100+ lines. In general, there are several problems and I do not need a code, but only an explanation of what I should do. 1: How do I create the perfect tile equivalent from a roblox (which is on a BasePlate). 2: how do I actually implement the construction exactly according to the grids, if I am not sure about their positions and sizes? Like, I can sort through positions literally in a loop. It sounds like nonsense, I agree. That was the end of the questions. I am glad of any help, I will be grateful if you attach a couple of lines of code to your statement
1 Like
If you want to create grid, then there is simple mathmetical loop to do it:
for i = 1, GridSize ^ 2 do
local index = i - 1
local x = index % GridSize -- modulo returns division with rest
local z = math.floor(index / GridSize)
Parts[i].Position = Vector3.new(x, 10, z)
end