Grid System, Easy grid making! (Ps its free lol)

Hello!

Today I was goofing around and decided to make a grid system.
And hey might as well make it free to use am I right?

What is a grid system?

This grid system basically allows you to make a grid made out of parts(Kinda obvious)
It contains custom details and what not!

It in action!

How to Use It!

First things first!
Take the module that is in the model and put it where ever!(I recommend ReplicatedStorage)

Next in any kind of script you can do this.

local module = require(game:GetService('ReplicatedStorage'):FindFirstChild('GridSystem')) -- make sure this is where the module is.

module.CreateGrid(CFRAME,X,Y,DETAILSNUMBER)

So here are what the values are for:

  • CFRAME, as you might guess is for a cframe. This is where the grid will appear.
  • X Is for the amount of squares it makes in the X direction
  • Y Is for the amount of squares it makes in the Y direction
  • DETAILESNUMBER is suppose to be a number. This is for customizing the grid, if you dont want to really customize it just set it to 1

How to Customize it!

So if you go and open up the module you will see a table called GridDetails:

-- gridDetails, Edit to your likings,
local gridDetails = {
	[1] = { -- copy and paste this in here to make more details. Just make sure you change the number!
		Material = Enum.Material.Neon,
		Color = Color3.new(0.333333, 1, 0),
		Transparency = 0.5
	},
}

You can change the values inside of it!
As you can see here:

-- gridDetails, Edit to your likings,
local gridDetails = {
	[1] =
}

This one is what you would set the DETAILSNUMBER to. So if you set it to 1. It will be neon, lime green,

Get it

MarketPlace: GridSystem - Roblox
File: GridSystem.rbxm (3.0 KB)

Well thats all!

If you have any questions regarding this feel free to tell me!
Until next time!

3 Likes

I love roblox recorder. I cannot describe in words how good the quality is.

3 Likes

You know, I got some explaining to do

Performance Issues

It creates parts in a grid, which is bad for performance, why not use a Texture and a sized part for performance??? like around 40% to 60% are mobile users or low end PC users which is a must have for performance

Customization

Why can’t you make a table which is better than modifying the module for the grid details???

2 Likes

True. I just wanted to make this.
Thanks for the feedback!

1 Like

Actually, Roblox is pretty optimized for part count, so this shouldn’t be an issue.

I think you’re overcomplicating it though.

local GridModel = Instance.new("Model",workspace)
for x=1,10 do
	for y=1,10 do
		local Part = Instance.new("Part")
		Part.Size = Vector3.new(.7,.7,.7)
		Part.Anchored = true
		Part.CFrame = CFrame.new(x,y,0)
		Part.Parent = GridModel
	end
end