How to activate an animation on mobile

I previously requested help for adding a dive animation for my football game. This was solved, but I am now stuck on how to add this on mobile. Here is the script I currently have for mobile players:

This was helped made by @foxnoobkite noobkite
My question is, how do I make it so the dive animation button only shoes on mobile and how do I make it so when mobile players tab it they can dive?