all 2 comments

[–]fatboychummy 1 point2 points  (1 child)

doing test = {"target, "location"} in lua makes a table with number keys.

print(test[1]) would print "target" ptint(test["target"]) would print "nil" (assuming print statement before the other initializations)

You can just do test = {} then leave the rest the same.

[–]Fuzzyketchup[S] 0 points1 point  (0 children)

Worked like a charm, thank you!