Why use ContextActionService?

This post does not involve any scripts!

I was wondering the point of using ContextActionService over UserInputService. If I wanted to create my own mobile UI button I’d just see if the player is on mobile, create a button and script it. Why should I use the ContextActionService?

Along with this, doesn’t UserInputService bind to whatever happens after the input? They’re essentially the same thing but one has a bind function and the other doesn’t?

ContextActionService exists so you dont have to do that. With your logic you can also make your own TweenService, DataStoreService, etc. Services are here so you don’t have to do everything yourself. ContextActionService is a more advanced UIS that allows you to bind/unbind keys under certain contexts, as well as controlling whether keys are passed or sinked

1 Like