Hello guys!
I have a question regarding CollectionService:
-
What do you want to achieve? I want to ask if I can use Collection Service with Spatial Queries.
-
What is the issue? I am not sure if this could work
-
What solutions have you tried so far? I googled and looked through the devforum
I wanted to ask if you can use Collection Service with Spatial Queries like this<:
local collectionService = game:GetService("CollectionService")
for i, part in pairs(collectionService:GetTagged("Mine")) do
local overlapParams = OverlapParams.new()
overlapParams. FilterDescendantsInstances = {part}
overlapParams.FilterType = Enum.RaycastFilterType.Exclude
local parts = game.Workspace:GetPartsBoundInRadius(part.PrimaryPart.Position, 5, overlapParams)
print(parts)
end
Can this work?
Thank you very much for your answers!