my code:

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)


6 comments

0

keep in mind the print parts are for testing

0

end?

0

-_- lol opps.....

0

wait that isnt in my code??? (on studio)

0

UserInputService is clientsided. You can't use it from the server.

0

???