Hello Everyone! So today is tumbled upon another problem. I’m not sure how other games do it, I’ve been searching the web but I cannot find a solution to my problem. In my game when the player presses the button “Play” [GUI] I want to check if the player is on mobile or PC. I have tried many methods But none avail. Can anyone please tell me a few methods about how to detect if the player is on a mobile device or Pc so that my script can either upload a few UI buttons instead of computer keybinds, I have thought of using ContextActionService however that doesn’t fit my purposes right now. Please and thank you for anyone who can help!!
I’m not sure if you can determine a player’s platform, but Roblox’s UserInputService does provide fields to determine the types of input the player’s device can give. Some include UserInputService.TouchEnabled
, UserInputService.MouseEnabled
, and UserInputService.GamepadEnabled
.
1 Like