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 6 years ago
Edited 6 years ago

my code:

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

Answer this question