Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make my tool always equipped and can cycle through my tools by pressing Q?

Usually you have to press a number on your keyboard to equip a tool but I want it so that I always have a tool I my hand just like in arsenal. I also want to be able to cycle through the tools by pressing Q. How might I do this?

1 comment

0

And you also might want to use for loops combined with tables to avoid having more elseif's than the chinese population

1 answer

ScriptingHelpers isn't a request site, but I can point you in the right direction with some things you can review.


'I want it so that I always have a tool I my hand just like in arsenal'


Welding could be used in this case to make the tool's parts effectively 'stick' to the player's arms, so you could make it look like the tool is constantly in your hand


' I also want to be able to cycle through the tools by pressing Q. '


UserInputService is useful here, as it can detect when a player presses something on their keyboard. For a more mobile-friendly approach, you could use Context Action Service to create a mobile button if the user is on mobile.

6 comments

0

ill give it a try

0

Ok!

0

wait, I don't actually think that welding it is a good idea because then i think I'd have to redo my entire gun script

0

Maybe try and do the userinputservice part first, making it so when you press q is switches to a new tool before the welding idea

0

Ok

0

hope this helped

This discussion is preserved as it was. New answers, comments, and votes are closed.