How do I fix this saying I am PC?

Alright, so I have this problem where I join on my phone and somehow it says I am mobile.


	if UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled and not UserInputService.MouseEnabled then
		print("Mobile device")
		NameTag.Text = NameTag.Text.." 📱"
	elseif not UserInputService.TouchEnabled and UserInputService.KeyboardEnabled and UserInputService.MouseEnabled then
		print("Computer device")
		NameTag.Text = NameTag.Text.." 💻"
		NameTag.Text = NameTag.Text.." 🎮"
1 Like

You are on your phone and your code says you are on your phone, I don’t see the issue.

Also, I would not recommend getting players’ devices like that because you have to think that people can connect keyboards to their phones and that there are touch screen computers.

1 Like

If you do not think you should get devices like that then how would you get a players device?

For console: GuiService:IsTenFootInterface() (guaranteed to be console)
For mobile and PC: GetLastInputType


I meant it says I am on pc. my bad

Well, I’m willing to bet you have a touch screen laptop or something, that would explain why it thinks you’re on a phone.