Problem With ContextActionService Positioning

So I made a button with ContextActionService for mobile and I noticed a problem, is that whenever I position my button or scale the button, it will have a different outcome on different devices I do not why this is happening and be trying to fix this issue but to no prevail. Can somebody please help me with this problem, thanks for reading. (I put my scaling and positioning in offset value by the way)

Images:


The positioning of ContextActionService is very hard to get right, I would just use this instead so you don’t have to worry about it:

https://developer.roblox.com/en-us/api-reference/function/ContextActionService/SetPosition
You can manually set the position via SetPosition, just pass your action’s name (string) and the button’s desired position (UDim2).

1 Like