How can I get the part of the location a player clicked on? I am trying to make a tool that will need to determine where you clicked is a part of a model with a humanoid or not. Which is the most efficient way to do this? player: GetMouse().hit can get the location of a part when the player clicked, but how can I get the object of the player when clicked on? Also, I need it to work on filtering enabled. I don't want to use click detectors either. Click detectors don't work with tools and I am not going to insert click detectors in every part. I also want to ignore parts that have a value object in them to determine whether to ignore them or not.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.