Quick question, I was trying to use :UnionAsync() to union a group of parts, and when its on a short scale it looks fine, but when I try a larger group, this happens
I dont know why this happens, because when I test without as many parts, this happens (I want it to be like this)
Theres not much code behind this, its very simple
local purchaseRemote = game.ReplicatedStorage.Remotes.PurchaseLand
purchaseRemote.OnServerEvent:Connect(function(player, allGrids)
--local price = #allGrids*100
--local cash = player.leaderstats.Money
local parts = {}
--if cash.Value >= price then
--cash.Value -= price
local f = Instance.new("Folder", workspace)
for i,v in ipairs(allGrids) do
local part = script.Building:Clone()
part.Parent = f
part.Position = v.ColorPart.Position + Vector3.new(0,10,0)
table.insert(parts, part)
end
local first = parts[1]
table.remove(parts, 1)
local totalBuildings = first:UnionAsync(parts)
totalBuildings.Parent = workspace
f:Destroy()
--end
end)
Anyone have a solution?