Manually Edit The ContextServiceAction UI

Hi all,

I’m making a button for mobile players that makes them equip a tool on touch. However I struggle with positioning and resizing the button correctly. I noticed that the ContextActionGui GUI gets automaticly generated in my playerGui. How would I go about resizing the frame (not the button)?

 contextActionService:SetPosition()

This line would only affect the button, not the Frame.

image

If you have any other suggestions on how to do that more efficiently, I’d greatly appreciate it even if it’s not a solution to my problem.

Thanks!

1 Like

This function might be of help but just beware if touch isn’t enable this function will yield forever

https://developer.roblox.com/en-us/api-reference/function/ContextActionService/GetButton

You can edit the button when it returns it

2 Likes

Thank you for making our lives easier. God bless you. :heart:

1 Like