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!