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)