#Getting a variable name as a string.
1 messages · Page 1 of 1 (latest)
When I try it usually prints the actual table name which is just a long string of randomised numbers and letters
that's a non-indexed table, so you can't really get the variables name directly...
you can use a for loop though
for key, value in pairs(Foods) do
print(key) -- key is the variable name, value well.. the value
end
bro ofc u can
elaborate
Ty, I feel dumb now 😭
it's alr, everyone's been there, good thing you asked
and gl with your game
Tysm
mb, i misunderstood