v = game.Part x = v.Name
{ [tostring(x)] = Workspace.Monsters["A1-A2"][tostring(x)] }
I need it to become a table..
Assuming you have the part in workspace, you can use either of these to make a reference to it:
local v = workspace.Part -- OR local v = game.Workspace.Part
And no need to use the tostring() function on x, as it is already associated with a string(.Name)
local v = workspace.Part local x = v.Name local tab = { [x] = workspace.Monsters["A1-A2"][x] }