local mt = getrawmetatable(game) setreadonly(mt, false) local oldNewIndex = mt.__newindex local logged = {} local fileName = "StringDump_" .. tostring(math.random(1, 99999999)) .. ".txt" if not isfile(fileName) then writefile(fileName, "") end mt.__newindex = function(t, k, v) if typeof(v) == "string" then local key = tostring(t).."_"..tostring(k).."_"..v if not logged[key] then logged[key] = true local line = "[StringDump] "..tostring(t).."["..tostring(k).."] = \""..v.."\"\n" appendfile(fileName, line) warn(line) end end return oldNewIndex(t, k, v) end