Hello PandaGamer101.
Thank you for using Apple Support Communities. It sounds like you'd like to know if it's possible to create an auto clicker or have something click for a specific period of time without you touching your device. Allow us to assist in any way we can. We also notice that you're already coming from a helpful resource below:
Use Switch Control to navigate your iPhone, iPad, or iPod touch - Apple Support
Depending on your iPadOS version, you can create specific gestures that allow you to auto click. However, it won't be for a very long period of time. You apply a loop to your gesture, and it will loop up to 10 times. If you're on iPadOS 14, you can go to Settings > Accessibility > Switch Control. Select Switches > Add New Switch > Screen > Full Screen > Select Item. Once you've done this, go back to Accessibility > Recipes > Create New Recipe > Name your recipe then select the Switch you had created, followed by custom gesture. This option will allow you to tap on your display "click" the number of clicks you want.
Just be sure that "Launch Recipe" is showing the auto-clicker gesture you had created. While in your game, you should be able to triple-click your Home button to launch the gesture you created. Just remember, it's not for a very long period of time, just loops up to 10 times. Just in case, here is another resource below:
Set up Switch Control on iPhone - Apple Support
We hope this information is useful. Cheers.