
Key RequiredUniversal

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



You can detect this with a __tostring metatable function
not that good
add me on discord @goldenreal I have a request for a script.
@depso I can confirm it works on moonsec atleast