UserInputService.GamepadEnabled false on startup in local testing

I have a localscript that controls a GUI. I want to show gamepad buttons when a gamepad is present and hide them otherwise.

I have a gamepad connected and I test my place locally and GamepadEnabled = false when my script runs.

local UIS = game:GetService("UserInputService")
if (UIS.GamepadEnabled == true) then
	print("Gamepad found")
	script.Parent.ShopButton.YButton.Visible = true
	script.Parent.ShopDialog.BButton.Visible = true
end
1 Like

This gem prints out “false” and then “true”