So, I want to learn about Gamepad input, I have an Logitech G29, it acts like a PS4 controller and is fully compatible with my Computer.

Here is a picture

Here a picture of the programable buttons https://ibb.co/jSziHa

I tried this,

It's a local script in PlayerGui

wait(1)

local UIS = game:GetService("UserInputService")
 
UIS.GamepadConnected:connect(function(gamepad)
	print("Player has plugged in controller: " .. tostring(gamepad))
end)
 
UIS.GamepadDisconnected:connect(function(gamepad)
	print("Player has unplugged in controller: " .. tostring(gamepad))
end)


local availableInputs = game:GetService("UserInputService"):GetSupportedGamepadKeyCodes(Enum.UserInputType.Gamepad2)
print("This controller supports the following controls:")
for _, control in pairs(availableInputs) do
	print(control)
end

I've copied it from the Wiki to test, and I tried to change some things but it didn't work, can someone help me?