setreadonly
Sets or clears the read-only (frozen) flag on a table.
function setreadonly(tttableThe table to modify.: table, valuevaluebooleantrue to freeze, false to unfreeze.: boolean): ()Usage
Unfreeze a game metatable
local mt = getrawmetatable(game)
setreadonly(mt, false)
mt.__tostring = function() return "Hacked!" end
setreadonly(mt, true)
print(tostring(game)) --> Hacked!