Apologies if the title doesn't make entire sense, though I was just curious if it was possible to prevent any extra additions or changes to a table, let's say I did something like this:
local table1 = {
"Hello", "Hi"
};
I have my table with two Elements present, I'd set these and somehow locked the table so they're permanent, unamendable, and nothing new can be implemented. Like so:
table1[1] = "Cya"; table1[2] = "Goodbye"
table1[3] = --// Some random Element.
Basically, the end-goal I have is to reject all of the above, I'd assume it would require metamethods to do such a thing, or maybe I'm wrong? How would I go about doing this?

1 comment
i'm writing an answer for u