This happened to me, it was because of the Animated Textures plugin. I uninstalled it and after that, everything was fine. No idea.
If youāre gonna do it like that, you may as well just not check every single thing in existance.
This will only check if the gameās children are StreamingService. So only about 110 instances rather than the 7000 I currently have in my game. And thatās a small one.
for _, service in ipairs(game:GetChildren()) do
if service == game.StreamingService then continue end
for _, descendant in ipairs(service) do
-- your code here
end
end
Also, the reason why this happens in the first place is because they changed the StreamingServiceās properties and functions to only be accessible to the AI assistant.
So for example, when you loop over all descendants and check their ClassName it tries to check the StreamingServiceās ClassName at some point.
Best regards,
Pinker