Device Logger (Billboard)

Hi, I’m trying to find a way to accurately make a device checker. This will allow me to know what device the user is playing on so I can properly make my system that I would like to create.

As I know some of the methods can cause false positives, I’m looking to get the player’s device accurately.

1 Like

You could use UserInputService.TouchEnabled to detect if its mobile because if it returns true then that player is likely a mobile player, if not then its a computer player. If you want to detect if a player is on xbox then use this GuiService:IsTenFootInterface().

But what if the player changed from mobile to computer or the other way around?

Then you can use this as a remedy to that problem:
https://create.roblox.com/docs/reference/engine/classes/UserInputService#InputChanged

Hi, this is exactly what I’m talking about when I mean false positives I seen other users say that touch screen computers return this as a mobile device.

Touchscreen computers usually default to being registered as non-touch if they have a keyboard attached, and if not then they are basically playing on mobile/tablet anyways.

1 Like

I have never encountered such issues in my code, but if you still don’t believe me then you may use ContextActionService's BindAction with the createButton argument set as true which will only appear if a player is on mobile.

No no no, It’s not about not believing I’m just stating that this is what I’ve been told and experienced.

I don’t believe there is a way to get the device of a player, as this can be slightly personal information to some people.

This is used to primarily enhance the User Experience of the player.

Yes, I’m trying to like 100% accurately log whether or not the user is playing on a mobile or pc device. I know for xbox I can just simply use Gamepad.

What kind of system are you trying to make?

Basically the only way to do this is through UserInputService.TouchEnabled and UserInputService.GyroscopeEnabled. Roblox does not collect hardware information.

1 Like

No, this is not possible.

Use GuiService:IsTenFootInterface()

2 Likes

I’m trying to make something like arsenal a natural in game hitbox expander. Arsenal has it so if your on a mobile device/tablet the hitbox part is bigger for such users.

Okay, I was just hoping someone made something like this module wise etc.

It doesn’t have to be exact then. You could probably check every so often if the user is still on a keyboard/touch device. A touchscreen laptop is the equivalent of a tablet with a bluetooth keyboard, or a keyboard specially designed for say a USB-C.

Likes @2jammers stated, it is not possible to be 100% accurate in device-type detection.

Using UserInputService.TouchEnabled and UserInputService.GyroscopeEnabled as well as GuiService:IsTenFootInterface() for gamepads is as accurate as you can get. :man_shrugging:

Thank you so much, to both of you.

1 Like

The way Arsenal does it is exactly the way we already explained, it checks UIS.TouchEnabled

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.