How would i detect if someone is holding down the use button on a tool (Like mousebutton1), ive seen runservice and stuff but i was wondering if there was a way i could keep activated so it could be used on more than just pc
There’s Tool.Deactivated for starters, which should be what you’re looking for.
Alternatively, you could wait for this event.
Hopefully those links work, I’m not too used to the new documentation website.
You could try the InputBegan
and InputEnded
events with UserInputService
.
Aren’t these mainly used for mouse input?
The thing im trying to avoid as of right now
Didnt know this, i think i can use this
Look into it, you’ll see it can be used for other stuff.
Aren’t you also trying to get Mouse inputs, though?
i was looking for a way to make a automatic gun, that works on all devices
I was jus saying i knew that you could use user input service with mouse to do it aswell
You can also use ContextActionService
in that case.
Alright ill check it out and get back to you whenever i can