How would I make ContextActionService mobile buttons work like UserInputService's InputEnded and InputBegan?

I wanted to know how to make contextactionservices work like the following:
when you are holding the button, something happens. for example, when you are holding it, a gui becomes visible. then, when you let go of the button, its visibility returns to false.

Help appreciated!

You have taken a look into this?

Yes, and as far as i’m aware there isn’t anything there about this. Correct me if i’m wrong, lol.

Could you tell me where the part that shows how to do what i’m trying to do please?
I cant seem to find it