Can you use :FindPartOnRayWithWhitelist in a model?

Looked everywhere for the solution. Can I for example do,

Model:FindPartOnRayWithWhitelist()

or does it have to be workspace? If anyone could answer I’d appreciate it :slight_smile:

Whitelist. The table type has an array/list part. Instead of using that function, which requires a table, mind you, use WorldRoot::FindPartOnRay, since its second argument is a single instance to ignore. You can still use WorldRoot::FindPartOnRayWithWhitelist if you wish for multiple items but if it’s just a single model then use the former.

Okay, I figured it would only be this way. I have tagged items in workspace, but i’m starting to get client side memory leaks because it’s trying to find the whitelisted parts constantly, and i think it would help immensely if it only looped through a model. I’ll try to look more more solutions.