This is just a general question that I have had for a while, how would you make a grid in your game?
I have no clue how to go about doing this, so any help would be greatly appreciated!
This is just a general question that I have had for a while, how would you make a grid in your game?
I have no clue how to go about doing this, so any help would be greatly appreciated!
So first, you could either go a few ways,
A grid system is pretty good for placement games btw
here is a rough example that I randomly just created:
local rows = 5 -- set to X length
local columns = 5 -- set to Z length
local counter = 10 -- set to the grid size
local start = Vector3.new(0,0,0)
repeat wait()
local new = Instance.new("Part")
new.Parent = workspace
new.Position = start
new.Size = Vector3.new(5,5,5)
new.Position = start + Vector3.new(rows,0,columns)
new.Name = "Position_Grid"
counter = counter - 1
until counter < 1
Hopefully this helped you, goodbye!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you this really helped!