New issue around game:GetDescendants() indexing

This bug report was written by and posted on behalf of @babyboucher20

Expectation
Running the following code in command bar should return the name of every object in the game.

for _,obj in pairs(game:GetDescendants()) do
	print(obj)
end

Actual
Code results in an error

“The current thread cannot access ‘StreamingService’ (lacking capability Assistant)”

This error appears to happen whenever StreamingService is accessed. For example running the same code as above with the inside of the loop replaced with “obj:IsA(“StreamingService”)” will yield the same error. This error started around a week ago. This error only happens in Studio.

2 Likes

Hi, this issue should be fixed in this week’s Studio release as explained here: The current thread cannot access 'StreamingService' (lacking capability Assistant) - #10 by NotANumeral

3 Likes