my code:
01 | game.Players.PlayerAdded:Connect( function () |
02 | ismobile = game:GetService( 'UserInputService' ).TouchEnabled |
03 | if ismobile = = true then |
04 | print ( 'mobile' ) |
05 | end |
06 |
07 | isonpc = game:GetService( "UserInputService" ).KeyboardEnabled |
08 |
09 | if isonpc = = true then |
10 | print ( 'Pc' ) |
11 | end |
12 |
13 | isconsole = game:GetService( 'UserInputService' ).GamepadEnabled |
14 |
15 | if isconsole = = true then |
16 | print ( 'xbox' ) |
17 | end |
18 | end ) |