currently I am making a custom gui which takes a folder of int values and displays them from highest to lowest.
the gui has 10 textlabels to display each int value
each int value's name has a players name and its value is a number.
the server is taking care of the int values themselves so they are not the current concern only the gui.
im trying to get a table with two things each index, the int values name and its number but its not working out. heres the script:
local numindex = 1
local slotindex = 1
local leadertable = {}
function maketable()
leadertable = {}
numindex = 1
local list = game.ServerScriptService.LeaderStats.List:GetChildren()
for i = 1, #list do
table.insert(leadertable,numindex,list[i].Value)
numindex = numindex + 1
end
print(unpack(leadertable))
end
while true do
wait(3.1)
maketable()
end
