Are we talking about the .Touched event that fires when your character in game for example touches a part?
You can use UserInputService and the :IsMouseButtonPressed() method within it to detect whether a player is holding down the mouse as they touch a part in game.
Here’s a great old post that goes over how to use it.