I tried this but my folders have spaces in their names and it won’t work?
for _, sound in game:QueryDescendants(
">ServerStorage > #My Folder A >> Sound,
>ReplicatedStorage > #My Folder B >> Sound"
) do print(sound) end
I tried this but my folders have spaces in their names and it won’t work?
for _, sound in game:QueryDescendants(
">ServerStorage > #My Folder A >> Sound,
>ReplicatedStorage > #My Folder B >> Sound"
) do print(sound) end
Seems to be intentional. If you want to query instances with spaces, then you have to instead use [name = property] syntax:
for i,v in game:QueryDescendants(">Workspace > [Name = \"Unique Folder\"] > #AnotherUniqueFolder > BasePart,>Lighting > #CoolFolder > Part") do
print(v:GetFullName())
end
I renamed the respective folder to “Unique Folder” and ran the test again:

Does anyone know if the collection callbacks can run synchronously after an instance is added to the collection. If I do something like
local Events = CollectionService:CreateCollection("BindableEvent", workspace)
Events.OnEvent = function(Event: BindableEvent, ...)
print("Event Fired: ", Event)
end
local event = Instance.new("BindableEvent")
event.Parent = workspace; event:Fire()
Would this 100% be safe as long as workspace.SignalBehavior is “Immediate”?