The current thread cannot access 'StreamingService' (lacking capability Assistant)

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.

-- Works in both studio and roblox player
local StreamingService = game:FindFirstChild("StreamingService")

for _, service in ipairs(game:GetChildren()) do
	if service == StreamingService then continue end
	for _, descendant in ipairs(service:GetDescendants()) 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

2 Likes

Also, make sure you have some sort of check to make sure its studio in the first place since this only happens in studio and if you run this in the actual roblox it will result in an error because streamingservice doesnt exist there.

you can use RunService:IsStudio for this

so modify the line to:

EDIT - Made slight error in the code, you need to wrap the said line in an if statement

if game:GetService("RunService"):IsStudio() then 
if v == game:GetService("StreamingService") then continue end
end
3 Likes

Actually, Iā€™d like to add on to this. The game that I have been developing has ran into an issue with one of the core scripts doing this. This error seems to be affecting more than just scripts that people make on their own games, but some of the core features in the engine. Iā€™ll provide an image below of my error. For context, I disabled every script in my game from running and this error still occurred. The entire basis of my game uses voice chat so a fix is quite needed.

Edit: This error occurs when I enable ā€œUseAudioApiā€ in VoiceChatService.

I fixed this day ago, you need just turn AudioApi to automatic or just disable. (game.VoiceChatService.UseAudioApi)

some people may need it so that isnt a reliable fix, but its luckily getting a patch if it hasent been already

Yeah, i know, just saying how i fixed this

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.