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…
local UserInputService = game:GetService(“UserInputService”)
if UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled and not UserInputService.MouseEnabled then
return
elseif not UserInputService.TouchEnabled and UserInputService.KeyboardEnabled and UserInputService.MouseEnabled then
--Code goes here
end
Its a local script and put it in the seat, or somewhere.