So I want to make a script that changes the position of the gui depending if the player is on pc or mobile.
I want it to look like this on pc:
and this on mobile:
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.