I have 2 functions one fired when Q is released and the other when E is released. Yet the E function only fires. Here is what i have:
function onQPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.End then
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.Angles(0,math.rad(30),0))
end
end
game.ContextActionService:BindAction(8, onQPress, true, "q")
function onEPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.End then
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.Angles(0,math.rad(330),0))
end
end
game.ContextActionService:BindAction(8, onEPress, true, "e")
There are no errors, it just doesn't work. I have even switched the code inside the If statement from the onEPress function with the code inside the If state of the onQPress function yet E is still the one that works.

1 comment
Wow.... I checked and double checked the Description of the BindAction... I now see i was looking at the wrong place. lel Thanks!