How to make a PC user only Seat?

I’m trying to make a seat that only people that are playing on a computer can sit on and mobile users cant. (if a mobile user goes on the seat they automatically get out of the seat)

But how do I make that? Is it even possible? What scripts to I have to make and where do I put them?

I’ve tried looking through the devforum and through youtube but found nothing at all…

Can anyone help?

1 Like

From my quick googling it seems that there is no good way to do this, but I did see this on another devforum post:

It’s not full proof because I assume it doesn’t account for mobile users using bluetooth keyboards, but I think this is the current best way to do it.

This should help you.

As an example you can do.

local UserInputService = game:GetService(“UserInputService”)

if UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled and not UserInputService.MouseEnabled then
elseif not UserInputService.TouchEnabled and UserInputService.KeyboardEnabled and UserInputService.MouseEnabled then
	--Code goes here

Its a local script and put it in the seat, or somewhere.

1 Like

Quick Question why is there an Error here?

Thats weird, replace it with this
local UserInputService = game:GetService("UserInputService")