Of all ways to get a player’s device, is this an alright way to do it?
function playerModule.getPlayerDevice()
if UserInputService.KeyboardEnabled and not UserInputService.TouchEnabled then
return "pc"
elseif UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled then
return "mobile"
end
end
some laptops have touch enabled or a mobile or tablet can have a keyboard connect, you shouldnt say its a pc just because it has no touch, you should make games for each and if you really wanna know, id suggest going with this method and checking for resolution, typically lower resolution means mobile and also ofcourse check documentation