Hello there,
I have a stamina-based sprint script in my game which only works for pc using ctrl. I was wondering if anyone could tell me how to add a mobile only button that holds ctrl and you can tap to enable it and disable it. I would rather have a circle-button like jump on mobile than a screengui.
Thanks!
You can do this by making a script that causes the the gui to only appear for mobile users from using this code in a local script (you can modify this to your liking) youre able to add th rest of the code for making your character sprint BUT you have to change the function of userinputservice into mousebutton1click
local UserInputService = game:GetService("UserInputService") local ismobile = uis.TouchEnabled