I usually use userinputservice and then check when the mouse has been clicked. But I saw you can also use .activated
Which should I use and why?
I usually use userinputservice and then check when the mouse has been clicked. But I saw you can also use .activated
Which should I use and why?
Unless you're somehow forced to use UserInputService, you should use Activated . Mainly because it was made for this purpose, and it can be used on the server, so you have to spend less time adding checks to see if the tool was actually used or if it was an exploiter firing your remote.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Can be both, but I think the .Activated would be more accurate hence needn't to disable the script or needn't to detect if the player is equipping the tool.