2D Grid Placement System

Hello! I need help because I don’t know how to make a 2D grid placement system. I started with this:


for x = 1, SlotsX do
	for y = 1, SlotsY do
		
		local Slot = Instance.new('Frame')
		Slot.Parent = SlotsFolder
		Slot.Name = 'Slot'
		
	end
end

Can anyone help me?

Could you elaborate more on what you’re trying to do with this script?

Did you mean like Vector3? [character]

Basically, I’m asking for a more in-depth description of what you want to do with this script. (eg how it should function)

It should be a scripted UIGridLayout