Making run/walk ContextActionService

So I’m currently trying to make a run button for mobile users, but I have never used ContextActionService and I don’t know how it would work at all, can someone may possibly teach me or show me how?

1 Like

I don’t do mobile buttons myself, either, but it seems like ContextActionService:BindAction may be what you’re looking for. The third parameter dictates whether it creates a touch button for available devices. If you read through its documentation a bit, you should be able to get what you need, assuming you have your run function ready.

1 Like

If it helps an API reference for it can be found here

2 Likes

I’ve recently made a sprint script that you can check out.

You can build off of the script, and make sure to read through the ContextActionService documentation as well.

1 Like