Creating an auto generating grid system

You can write your topic however you want, but you need to answer these questions:

  1. I want to create an auto generating grid system. I have a large baseplate created, all I want is for individual tiles to appear on that baseplate in an orderly manner.

  2. I need help creating one. I am not asking for full code, just asking for solutions :slight_smile:

  3. Searched around dev forum for a little while, nothing found but some topics were close.

There are various ways to achieve it. A very simple way is to use for loops for number incrementations giving u ordered positions. A basic e.g

for x = 1,50,5 do
	for z = 1,50,5 do
		local GridPart = Instance.new("Part",workspace)
		GridPart.Anchored = true
		GridPart.Size = Vector3.new(5,1,5)
		GridPart.BrickColor = BrickColor.random()
		GridPart.Position = Vector3.new(x,0,z)
	end
end
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.