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
keep in mind the print parts are for testing
end?
-_- lol opps.....
wait that isnt in my code??? (on studio)
UserInputService is clientsided. You can't use it from the server.
???