Oops, I meant to add an initial set:
local UserInputService = game:GetService("UserInputService")
local seat = script.Parent
if UserInputService.TouchEnabled and (not UserInputService.KeyboardEnabled) and (not UserInputService.MouseEnabled) then
seat.Disabled = true
elseif (not UserInputService.TouchEnabled) and UserInputService.KeyboardEnabled and UserInputService.MouseEnabled then
seat.Disabled = false
end
seat:GetPropertyChangedSignal("Occupant"):Connect(function()
if UserInputService.TouchEnabled and (not UserInputService.KeyboardEnabled) and (not UserInputService.MouseEnabled) then
seat.Disabled = true
elseif (not UserInputService.TouchEnabled) and UserInputService.KeyboardEnabled and UserInputService.MouseEnabled then
seat.Disabled = false
end
end)
Let me test something on studio really fast and I might have a better solution.