Hey, are you doing this because potentially the UI isn’t in the right place on different devices? I think an easier method would be for you to use UIAspectRatioConstraints. You can do this automatically with AutoScale Lite actually, which is the plugin you’re using. Select the UI element in question, convert both size and position to scale rather than offset, and then add a UIAspectRatioConstraint.
Anyways, answering your question. You can use UserInputService to check for properties a mobile device might have if you really wanted, although I’m not sure if this will be accurate 100% of the time. Try to following:
local UserIS = game:GetService("UserInputService")
if UserIS.TouchEnabled and not UserIS.KeyboardEnabled then
-- user is probably on a mobile device
print("mobile player")
end
You can replace my print statement with changing the position, but I’d urge you to try and make it work with AutoScale Lite using the steps I gave you if you’re simply doing this because the UI is offset on different devices.