Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible assigning a number to string in table?

Trying to do what I explained in the title.

This is what I tried:

local tab = {}
table.insert(tab, ["123456789"] = "123")

Andd.. it errored. Is there a solution for this problem, or a different method of doing this?

1 answer

✓ Accepted answer
local tab = {}
tab["123456789"] = "123"

2 comments

0

This just overwrites, I need to use a table.insert like function.

0

Fixed

This discussion is preserved as it was. New answers, comments, and votes are closed.