it prints BINDING, but never the print inside the bind? The only time it prints inside is when I Unbind. Pressing A does nothing
print("BINDING")
ContextActionService:BindActionAtPriority("Yes_Prompt", function(actionName, inputState)
print("BIND", actionName, inputState) --? never prints?
if actionName ~= "Yes_Prompt" then
return
end
if inputState ~= Enum.UserInputState.Begin then
return
end
end, false, 3001, Enum.KeyCode.ButtonA)
It works if I change to ButtonX it works, so its just A that’s never working
i think that the roblox corescripts are taking this input and letting your character jump with it. consider changing the input priority so that it detects it regardless of context action service sinking.
ContextActionService = game:GetService("ContextActionService")
print("BINDING")
ContextActionService:BindActionAtPriority("Yes_Prompt", function(actionName, inputState)
print("BIND", actionName, inputState) --? never prints?
if actionName ~= "Yes_Prompt" then
return
end
if inputState ~= Enum.UserInputState.Begin then
return
end
end, false, 3001, Enum.KeyCode.ButtonA)
This is working for me (LocalScript inside StarterPlayerScripts).