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()
game:GetService("UserInputService"):GetConnectedGamepads()
-- : not . , it's a method, but you could even pass self yourself:
game.GetService(game, "UserInputService"):GetConnectedGamepads()