Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make a grid on your baseplate?

Asked by
Synth_o 136
5 years ago

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!

1 answer

Log in to vote
2
Answered by 5 years ago
Edited 5 years ago

So first, you could either go a few ways,

  1. Get a decal, Paste it on a tile and use that as a grid or,
  2. create parts and align them to make a grid or...
  3. create beams from one end to another to create grids!
  4. There are many ways to go actually, if you post code I will get into more depth!

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!

1
Thank you this really helped! Synth_o 136 — 5y
Ad

Answer this question