I'm currently creating a skill tree but when I try to find a variable inside of the dictionary and print it, it prints out "nil" and not what's inside of Character
local Skills = {
Character = {
PointsRequired = 0,
};
Skill1 = {
PointsRequired = 1,
};
}
Skills.putPoint = function(plr,Target,TargetName)
local node = table.find(Skills,"Character")
print(node)
end
return Skills
any idea why?

7 comments
so is there another way to find what's inside of a table and to print out Character = { PointsRequired = 0, }?
You can also use next or pairs loop for that, however just indexing it like Skills["Character"] is a lot more efficient.
ok i'll try it out
because i'm trying to find it using TargetName so i don't have to make it if TargetName == "Character" then Skills["Character"] end
oh i see, indexing tables is same as indexinng Instances, so just do Skills[TargetName] without quotes. My bad i explained horribly.
ok
Thank you