local oldFs = fs
local oldOs = os
fs.open = function(file,method)
if method == 'w' and file == 'your_read_only_file_here' then
error('File is read only!')
else
return oldFs.open(file,method)
end
end
os.run = function(env,path,...)
local args = {...}
env.fs = fs
env.os = os
oldOs.run(env,path,...)
end
Note: I haven't tested this



















