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)
COMMUNITY QUESTION
ServerScriptService.Platform Detector:11: unexpected symbol near '?'???
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
UserInputService doesn't work from the server.
???