How to make Map Generation match the Image?

I’m creating a game about the “fear of Bananas”, how do I make the Map look like this image?

Banana Batch Script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local CollectionService = game:GetService("CollectionService")
local RunService = game:GetService("RunService")

local bananaTreesFolder = ReplicatedStorage.BananaTrees
local bananaTree = bananaTreesFolder.BananaTrees:GetChildren()
local bananaTreeBananas = bananaTreesFolder["BananaTrees(Bananas)"]:GetChildren()

local batchLocations = ServerStorage.BatchLocations
local spawn1 = batchLocations["Spawn[1]"]

local batchSize = 50

local columns = 30
local rows = 60
local spacingColumn = 13

local maxSpace = 13
local minSpace = 10

local bananaPrevalence = 0.15

local totalTrees = columns * rows

-- Pick random tree
local function RandomBananaTree()
	local model
	local isBananaTree = false

	if math.random() < bananaPrevalence and #bananaTreeBananas > 0 then
		model = bananaTreeBananas[math.random(1, #bananaTreeBananas)]:Clone()
		isBananaTree = true
	elseif #bananaTree > 0 then
		model = bananaTree[math.random(1, #bananaTree)]:Clone()
	end

	if model then
		for _, part in ipairs(model:GetDescendants()) do
			if CollectionService:HasTag(part, "Banana") then
				CollectionService:RemoveTag(part, "Banana")
			end
		end
	end

	return model, isBananaTree
end

-- Spawn origin
local spawnOrigin = spawn1.Position
local startZ = spawnOrigin.Z - ((columns - 1) * spacingColumn) / 2
local startY = 6.279
local startX = spawnOrigin.X

-- Folder setup
local function ReplicateToFolder()
	local bananaTreesFolder = workspace.BananaTrees.BananaTrees
	if not bananaTreesFolder then
		bananaTreesFolder = Instance.new("Folder")
		bananaTreesFolder.Name = "BananaTrees"
		bananaTreesFolder.Parent = workspace
	end

	local bananaTreesBananasFolder = workspace.BananaTrees["BananaTrees(Bananas)"]
	if not bananaTreesBananasFolder then
		bananaTreesBananasFolder = Instance.new("Folder")
		bananaTreesBananasFolder.Name = "BananaTrees(Bananas)"
		bananaTreesBananasFolder.Parent = workspace
	end

	return bananaTreesFolder, bananaTreesBananasFolder
end

local bananaTreesFolder, bananaTreesBananasFolder = ReplicateToFolder()

-- Spawning logic
local function SpawnBatch(startIndex, endIndex)
	for i = startIndex, endIndex do
		local row = math.floor(i / columns)
		local col = i % columns

		local baseX = startX - (row * minSpace)

		local randomSpacing = minSpace + math.random() * (maxSpace - minSpace)
		local randomOffset = (randomSpacing - ((maxSpace + minSpace) / 2))

		local x = baseX + randomOffset
		local y = startY
		local z = startZ + (col * spacingColumn)

		local position = Vector3.new(x, y, z)
		local rotation = CFrame.Angles(0, math.rad(math.random(0, 359)), 0)
		local cframe = CFrame.new(position) * rotation

		local tree, isBananaTree = RandomBananaTree()
		if tree then
			tree.Parent = isBananaTree and bananaTreesBananasFolder or bananaTreesFolder

			if tree.PrimaryPart then
				tree:SetPrimaryPartCFrame(cframe)
			else
				tree:PivotTo(cframe)
			end
		end
	end
end

-- Spawn batches over time
local i = 0
coroutine.wrap(function()
	while i < totalTrees do
		local endIndex = math.min(i + batchSize - 1, totalTrees - 1)
		SpawnBatch(i, endIndex)
		i = endIndex + 1
		RunService.Heartbeat:Wait()
	end
end)()

Also another issue I’m experiencing intense lag when testing the game.

Current Map:


Other Images:

Well, starting off, for that lag you get, thats most definitely becaus eof the run service part of your script

How do I fix the lag without using RunService?

is there a reason you’re generating the map via a script and not just manually?

Because I would like the Map to be random each generation

randomly setting trees is not something really worth randomizing unless you do more beyond that.

as for generation though, can you explain what you mean by “this image”? like the realism? what about the image you provided are you trying to mimic? because to me it looks the same, its just trees.

I was trying to rows and columns match the images from above.

like you want the trees to be in rows and columns, neatly, rather than sporadic and unevenly placed?

I want them to be aligned in order but no have such wide gaps, however because of the Banana Tree Model I cannot do that because the leaf’s overlap.

@InfiniteYield
You can test the game here >