How do I detect if player is on mobile?
5 Likes
You can’t detect if a player is on a mobile using Roblox APIs, but you can detect the input mode and the screen size.
I’d recommend you check the following to see if your player is using Touch:
11 Likes
Like what daronion said,
But there is stuff like
local UIS = game:GetService("UserInputService")
UIS.TouchEnabled -- If you want to use this, you will have to combine it with UIS.KeyboardEnabled as I heard there are touch screen laptops.
UIS.KeyboardEnabled
UIS.MouseEnabled
9 Likes
I would also suggest doing a search before posting a question, as in this case, it’s already been asked before.
2 Likes
Here’s what I found that maybe help you.
How to detect if Player is using a Phone?
Is there a way to detect if a player is on a tablet or phone?
Both were solved so you may find an answer there x
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.