I tried to do it with a script but it doesn’t work.
local UIS = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
if UIS.TouchEnabled and not UIS.KeyboardEnabled and not UIS.MouseEnabled
and not UIS.GamepadEnabled and not GuiService:IsTenFootInterface() then
script.Parent.Position = UDim2.new(0.979, 0, 0.686, 0)
end
If anyone knows how to make the script work somehow or has another solution feel free to reply.
Thanks!
If you want GuiObjects to be sized the same respective to the dimensions of the screen for every device then you need to size GuiObjects using the scale components only, as offset is a pixel count which means that for larger devices (with greater screen resolutions) a pixel offset will have a less obvious impact as opposed to the same pixel offset used on smaller devices (with lesser screen resolutions), when you size/position GuiObjects according to scale they will as its name suggests scale according to the dimensions of the native device.