ButtonA binding

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.

My character isnt jumping tho.

how would i do this

Hello, looking at your code I saw there is no way it shouldn’t work.

Trying it on my end, I can confirm it works.

Considering your priority number is higher than the CoreScript one (3000), this isn’t the fault of any CoreScript.

This might mean that you have another script somewhere that binds Enum.KeyCode.ButtonA before this one or binds it at a higher priority.

Try to use the “Find All / Replace All” tool to find where the other script might be.

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)

image

This is working for me (LocalScript inside StarterPlayerScripts).