I’m wanting to order a list of plot points/positions to be in an order than goes from lowest x and z to highest x and z
local OrderToSplit = {}
for i, info in pairs(WallsToSplit) do
local Wall = info.Wall
local Position = info.Position
if Wall == WallModel then
--// Add to OrderToSplit table and sort table
end
end
I’m aware of table.sort, but don’t believe this would solve my issues in this sense. The idea is, Position of all these walls is a bunch of random coordinates. I need the positions to be sorted in an order so every time I play test in studio it does what I need in the right order everytime. Atm, it just does random points everytime I play