How would I write a C# script that takes an input of a tap input and multiply it?

I want to attach a script to a game object that when activated through an input from a screen tap (is that GetButtonUp?), would run and perform the function of the button a preset amount of times with only 1 press.

ie.

Press button.

Button reference is called.

Button would usually only perform action once.

Button should perform action 5 times simulataneously but with only 1 press.

Any ideas?

Create a UI Button. if I’m not mistaken that automatically crates an event system and a canvas the button will be childed to.
add a script with a public method. within the method , create a for loop with 5 iterations for your code to execute on call.
then, add that method to the buttons OnClick event. Done.