Hello,

How do I use a script to properly make the player press a click detector whilst holding a tool? I found a behavior that shows that you cannot click them with a tool equipped, how do I bypass this?

My code: https://hastebin.com/otivajuhav.php

4 comments

0

can you clearly explain your script? It doesn't make describe anything but a mouse detector is being clicked

0

^

0

The script plays an audio when touched, I want to make the player click the clickdetector with a tool out.

0

Use UserInputService to check if you clicked, then check if the Mouse.Target is equal to the part with the click detector.