Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there anyway to override a xbox button?

Asked by 3 years ago

I wanted to make it where if someone is on something and they press the "A" button, it'll fire climb(). This works on PC for "space" but for XBox, the "A" button doesn't seem to work on that. Is there anyway to override the "A" button so it works?

UIS.InputBegan:Connect(function(input,Chat)
    if not holding then return end 
        if input.UserInputType == Enum.UserInputType.Gamepad1 and not Chat then
            if input.KeyCode == Enum.KeyCode.ButtonA and not Chat then
                climb()
            SG:SetCoreGuiEnabled("Backpack", true)
            end
        end
    end)
end

Answer this question