Run it
Copy the script and paste it into your executor.
local player = game:GetService("Players").LocalPlayer
local replicatedStorage = game:GetService("ReplicatedStorage")
local placeBlock = replicatedStorage:WaitForChild("RE"):WaitForChild("PlaceBlock")
local workspace = game:GetService("Workspace")
local bases = workspace:WaitForChild("Bases")
local base = bases:WaitForChild(player.Name)
local step = 4
local startY = 6
local minX = base.Position.X - base.Size.X / 2
local maxX = base.Position.X + base.Size.X / 2
local minZ = base.Position.Z - base.Size.Z /
maxZ = base.Position.Z + base.Size.Z /
startX = .(minX / step) * step
startZ = .(minZ / step) * step
endX = .(maxX / step) * step
endZ = .(maxZ / step) * step
size_blocks_x = .((endX - startX) / step) +
size_blocks_z = .((endZ - startZ) / step) +
(x, y, z)
x >= minX x <= maxX z >= minZ z <= maxZ
args = {player, vector.(x, y, z), }
placeBlock:((args))
current_iy =
y = startY + current_iy * step
ix = , size_blocks_x -
x = startX + ix * step
iz = , size_blocks_z -
z = startZ + iz * step
(ix + current_iy + iz) % ==
(x, y, z)
current_iy = current_iy +