Every powerup should have a limit and we can easily create this limit in code.
Open the Player script and add an IEnumerator. Within this coroutine function, we will switch the bool to false after 5 seconds when active.
Then add a StartCoroutine callup in TripleShotActive().
Then it should work! We can play it to check the result.