Thank you for the report. We’ve identified the issue and expect a fix to ship with the Studio release next week. This issue should only affect Studio sessions and not production servers.
If you need a workaround in the meantime, you can wrap the if statement in a pcall:
for _, v in game:GetDescendants() do
pcall(function()
if v:IsA("BasePart") then
print("Test")
end
end)
end