How do i table.insert a string and number?

What I’m trying to do.

table.insert(TempStats, (Category.Name) == Lvl.Value)

Thank’s in advance!

It’s not very clear, what is the issue here?

I’m trying to insert a number variable into a table via table.insert() but i cant figure out how to assign a name to said number value inside of the table.

I don’t think you can do that with table.insert, you should do TempStats[Category.Name] = Lvl.Value

1 Like