Grid placement tool help

I need help on making a grid placement system. I know how to make a placement system but I do not know how to make a grid for the placement system. I’ve looked at a few videos of this and I can’t find a solution. Thank you, any help is appreciated.

– Client Script

local player = game.Players.LocalPlayer
local mouse = game.Players.LocalPlayer:GetMouse()
local off = false
script.Parent.Equipped:Connect(function()
	if mouse ~= nil then
		local clonedbrick = game.ReplicatedStorage.Brick:Clone()
		mouse.TargetFilter = clonedbrick
		clonedbrick.Transparency = .5
		clonedbrick.Parent = workspace
		while mouse ~= nil do
			clonedbrick.Position = mouse.Hit.p + Vector3.new(0,2,0)
			wait()
			if off then
				clonedbrick:Destroy()
				off = false
				break
			end
		end
	end
end)
script.Parent.Activated:Connect(function()
	local BrickToPlace = game.ReplicatedStorage.Brick:Clone()
	local pos = mouse.Hit.p + Vector3.new(0,2,0)
		if(pos - player.Character.HumanoidRootPart.Position).magnitude <= 4 then
		script.Parent.RemoteEvent:FireServer(pos)
	end
end)
script.Parent.Unequipped:Connect(function()
	off = true
end)


--- Server script:



script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr,pos)
	local BlocksFolder = game.Workspace.Blocks
	local BrickToPlace = game.ReplicatedStorage.Brick:Clone()
	BrickToPlace.Parent = BlocksFolder
	BrickToPlace.CanCollide = true
	BrickToPlace.Position = pos
	BrickToPlace.Name = plr.Name
end)

You can take look at this post:

It provides a lot of information on how to make a placement system.

I’m trying to make a placement system like the game “Skywars” on Roblox. Here’s some screenshots