The question is pretty simple, how do I position these buttons for mobile. I read a lot of guides saying to use the local buttons or use a certain offset but none seem to be working, do you guys have any tips?
game:GetService("ContextActionService"):SetPosition(actionName, position)
The position is a Udim2 type so you can just construct one using Udim2.new()
.
The actionName is the string that you pass first to the BindAction parameter. This will let the game know which action’s button to move.
I know how to move it around but I am not sure how to position it consistently across all mobile devices
Use the scale parameters and not the offset parameters in Udim2.new()
?