Is there a replacement for Mouse.Target that can select a BasePart inside a Model (instead of selecting the model instance only)? I think this is done using raycasts but unfortunately I don’t have a clue on how raycasting works (and not the math for it aswell)
I do not think there is a replacement for it if you don’t want to look into raycasting, what are you trying to achieve exactly? You can just use :FindFirstChild
to look for the basepart inside the model that Mouse.Target
returns. If you can maybe give a little more info about what it is that you exactly want, maybe I can try my best to help.
Im 100% sure that mouse.Target returns the basepart clicked and not the model because im using it right now. Check on canQuery and the collision group.
I wasn’t saying I didn’t want to use raycast, I’m open to using raycasts, it’s just that I don’t understand it even from reading the documentation
Seeing this, I rechecked my code and turns out I had a code where it would use the ancestor if the ancestor was a model but not Workspace, so turns out it was just me forgetting my own code, thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.