Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ServerScriptService.Platform Detector:11: unexpected symbol near '?'???

Asked by 5 years ago
Edited 5 years ago

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)


0
keep in mind the print parts are for testing stumplee555 4 — 5y
0
end? User#5423 17 — 5y
0
-_- lol opps..... stumplee555 4 — 5y
0
wait that isnt in my code??? (on studio) stumplee555 4 — 5y
View all comments (2 more)
0
UserInputService is clientsided. You can't use it from the server. User#19524 175 — 5y
0
??? stumplee555 4 — 5y

Answer this question