Hello, I want to position my GUI on a different place depending on the player’s device. This is so my mobile controls don’t appear like this for pc players:
and it will look like this for pc players:
I haven’t found a way to do so.
Hello, I want to position my GUI on a different place depending on the player’s device. This is so my mobile controls don’t appear like this for pc players:
and it will look like this for pc players:
I haven’t found a way to do so.
use UserInputService.KeyboardEnabled and UserInputService.TouchEnabled
local UIS = game:GetService("UserInputService")
if UIS.KeyboardEnabled then
print("Player is using PC")
elseif UIS.TouchEnabled then
print("Player is using mobile")
end
So you know how you have a position for each element? Change the position mode to the percentage by putting the GUI position to eg. {0.1,0,0.1,0} instead of {0,0.1,0,0.1}
just position the UIs using scale other than offset