I don’t know how why i get warnings, the script still works.
One of the descendants of game is CoreGui, you are unable to access these objects which is why you get the warnings.
Put your code inside a pcall, some objects are locked.
I think pcalls will still output the warning, since the documentation doesn’t state anything about warnings, just errors.
Unless you use the error message when it fails, it won’t print out anything.
for i, v in pairs(game:GetDescendants()) do pcall(function() if v:IsA("LuaSourceContainer") then print(v:GetFullName()) end end) end
It will skip some of the services such as CoreGui, CorePackages and will continue with the others.