game.Players.PlayerAdded:Connect(function()
         ismobile = game:GetService('UserInputService').TouchEnabled
         if ismobile == true then
            print('mobile') 
         end

      isonpc = game:GetService("UserInputService").KeyboardEnabled

      if isonpc == true  then
         print('Pc') 
      end

   isconsole = game:GetService('UserInputService').GamepadEnabled

   if isconsole == true then
      print('xbox')
   end
end)


2 comments

0

UserInputService doesn't work from the server.

0

???