Issues with UserInputService

I’m trying to port my game to Xbox and while trying to do so I ran into an issue with UserInputService. For some reason every time I press the Left DPad it doesn’t do anything. My script is in StarterGui and is a local script so I’m not really sure what is going on here. I know this may not be useful, but any help would be gladly appreciated. Thanks!

uis.InputBegan:connect(function(key)
							if key.UserInputType == Enum.UserInputType.Gamepad1 then
								if key.KeyCode == Enum.KeyCode.DPadLeft and not ads and not stunned and not holding and not cooldown and not ability and tool.Parent == char then
								if animations:FindFirstChild("inspect") then
								print("hello")		
								script.Animator.Disabled = true
								script.Animator.Disabled = false
								script.Event:Fire("animateanim",animations,"inspect",hands)
								game.ReplicatedStorage.animate:FireServer(animations.Name,"inspect")
							    end
					         end
				          end
		               end)

Are you able to check whether all of your debounces are allowing it to play?

1 Like

Yes, I have. UIS in my game works with everything else besides this.

Dumb question, but does it detect other inputs? If so, you can also try to check what the Keycode is identifying whenever you press the left dpad, like printing key.Keycode

No, I just checked and it isn’t detecting any other inputs.