Say I have this 'thing': ( [1] What is the correct term for it?)
local Level = {
{1, 0, 500},
{2, 500, 1000},
{3, 1000, 2000}
}
I also have an IntValue called Exp:
local Exp = Player:WaitForChild("Exp")
[2] How would I 'scan' the table/dictionary/whatever to be able to get Level[?][1] where the Integer is in the range Levels[?][2] < Exp < Levels[?][3] (<-- That's the best way I know how to explain it)
E.g.
Exp = 560
The program would output
print("Level: "..--something)
>>> Level: 2

1 comment
This works perfectly, thanks!