What is CanQuery, and what does it do?

Hello there!, I was looking through a basepart’s properties, I found a property called “CanQuery”, I searched on https://developer.roblox.com, I didn’t find anything, I searched on google and I found it [BasePart | Roblox Creator Documentation] , but it was empty, Anyone know what this does?

27 Likes

found it in the release notes for 484

that explains why there isn’t anything on BasePart.CanQuery
it’s still new

71 Likes

I just wanna make sure I understand, is it like the “Ignore Raycast” layer in unity?

14 Likes

Does GetPartsInPart() also ignore this?

5 Likes

If a part’s CanQuery property is set to false, then yes it will be ignored by GetPartsInPart().

6 Likes

its raycast only i guess, but idk i’ll try

1 Like

Well my Losense Vehicles Ampere EV uses Raycasting as part of its PCAS system (Part Collision Avoidance System). Setting CanQuery to false prevents PCAS from detecting that part.

1 Like

It detects if raycast is able to see/pass parts that are in the workspace

CanQuery true

CanQuery false