Hello,
The goal of this code is that every time you press "LeftControl", the leg should switch to the opposite.
Instead, once the BindAction is triggered, the legs keep changing constantly and not stopping.
local function footFunction(actionName, inputState, inputObject)
if currentFoot == 'Right Leg' then
currentFoot = 'Left Leg'
else
currentFoot = 'Right Leg'
end
end
CAS:BindAction('changeFoot', footFunction, false, Enum.KeyCode.LeftControl)
I've tried adding a way of unbinding the action I just can't get my head around how to achieve my goal.
I'm curious to see other methods of how this can be achieved. Any help is much appreciated.
