Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Should you use .activated or just a mouse click event when using a tool?

Asked by 5 years ago

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?

0
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. NickAtNick 163 — 5y

1 answer

Log in to vote
0
Answered by
Amiaa16 3227 Moderation Voter Community Moderator
5 years ago

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.

Ad

Answer this question