I have this table
local MagnitudeList = {}
When there is a target in the table, it gets added with Magnitude with this script:
for Target, Value in pairs(TargetList) do
table.insert(MagnitudeList, (Target.HumanoidRootPart.Position - script.Parent.Actor.PrimaryPart.Position).Magnitude)
print((Target.HumanoidRootPart.Position - script.Parent.Actor.PrimaryPart.Position).Magnitude)
end
How can I sort everything in the table from smallest to greatest?
Thanks in advance!
WilliApple