I want to find the largest integer in a table, and I’ve tried
for c, b in pairs(k.Waypointl:GetChildren()) do
local maths = math.max(c)
print(maths)
end
I also tried
math.max(unpack(k.Waypointl:GetChildren()))
for more reference “k.Waypointl:GetChildren()” is a table that returns a value 1 - 84, but this is a dynamic value and I need to find the largest integer in this table, how would I accomplish this?
Great Question, this is getting a table of objects, but c also grabs the index # of those objects and that also works for what i’m trying to do, all I need to do now is find the largest integer in that table