I am trying to interfere Mobile Players to use a Mobile Input or an RunBind so that when the Player would to hold the Bind the Stamina will function to its correct extent just like when you hold Shift to Run, any idea of how I can achieve such task?
Stamina/Run System Script:
System.rbxm (10.6 KB)
I think a simplified described term on what I am asking for is that I am needing the Mobile input to work exactly in the right matter as the Shift to Run System.
I’ve replaced your InputBegan and InputEnded to use the function ‘toggleSprint’
I’ve added a placeholder button that will toggle the sprinting status each time it’s pressed!
If you need to change the sprint state anywhere else in the game you can just call toggleSprint(true or false)
SprintUI.rbxm (10.2 KB)
I appreciate that but is it possible to add Run Animation to the Mobile Input? Here’s the Animation ID “rbxassetid://15411322421”
This will call your ‘Handler’ function whenever the mobile input is pressed!
PlayerView.lua (6.2 KB)
Yeah but now there’s a bind and a Run Button I just want the Run Button, thank you.
I do very much appreciate your help though, so thank you!
@ObscureScrumptor are you understanding my issue?