SOLUTION HAS BEEN FOUND, TURNS OUT ITS BECAUSE I SET THEIR COLLISION GROUP.
item.CollisionGroup = Constants.COLLISION_GROUP_ITEM -- When I remove this piece of code, it's able to be detected.
I DONT KNOW WHY NON-DEFAULT COLLISION GROUP INSTANCES WONT GET DETECTED, BUT I AM IN ECSTASY FINDING THIS OUT.
You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
I just want to detect parts inside of a box. -
What is the issue?
They are somehow not able to be detected no matter what I do, I even enabledparams.BruteForceAllSlow
You can see there are 10 gray cubes, yet the result only shows 3, its just those specific cubes not being able to be detected.
-
What solutions have you tried so far?
params.BruteForceAllSlow, removing params entirely, enlarging the box till it engulfs the entire baseplate, and using GetPartsInPart([red part in the image]).
This is the code that creates those grey cubes.
local Item = Instance.new("Part")
Item.Name = "Stud"
Item.Size = Constants.SOURCE_PART_SIZE
Item.CFrame = partCFrame
Item.Material = Enum.Material.SmoothPlastic
Item.Parent = ItemContainer
Item:SetNetworkOwner(Player)
Item:AddTag(Constants.TAG_ITEM)
I HAVE NO CLUE WHAT IS CAUSING THIS, IT WON’T DETECT THOSE SPECIFIC CUBES FOR SOME REASON.
This is used to replace .Touched
event that is inconsistent.