When run this command it gave me an error

When I run this script/code it gave me an error.

game:GetService("UserInputService"):GetConnectedGamepads()
-- : not . , it's a method, but you could even pass self yourself:
game.GetService(game, "UserInputService"):GetConnectedGamepads()