How do you make a mobile button function like a keyboard press & hold

I wanted to make a button for mobile players to use so they can do the same things pc users can do when playing

I wanted to make a button that only mobile players can see that functions like a keyboard press & hold or just press

Its like binding a keyboard key to that button for mobile players

I tried to do it before but it dont work
the button was there on the screen but it dont do anything it dont imitate what left shift does in game on pc where the player was suppose to do a run action

can anyone help me with this I dont have much knowledge on scripting so I find it hard to make it work

I also did tried to follow someone’s tutorial on youtube on how to do it but it dont work
this was the video I tried to follow

and the comment I added

Sir mine did worked on output its saying leftshift is pressed but when I try it in game on my phone it dont work im trying to use shift to sprint for both mobile and pc

1 Like

Scripting Support only helps developers with the errors of their scripts. Hope you understand, have a nice day!

Can you show us the script? You might’ve made a mistake on ur script