local protected = table.freeze({ foo = "bar" })print(pcall(function() protected.bar = "foo" end)) --> false, attempt to modify a readonly tablesetreadonly(protected, false) -- Makes the table writable; similar to makewritable(protected)protected.bar = "foo"print(protected.bar, table.isfrozen(protected)) --> foo, falsetable.freeze(protected) -- Sets the table back to read-only; similar to makereadonly(protected)