ContextActionService fires when i press . even tho i binded my function to `

Hello i’ve been making my own gear/inventory system for a game im working on and ContextActionService’s been causing some problems.

ContextActionService:BindAction("Inventory", OnInventoryOpen, false, Enum.KeyCode.Backquote)

Am i doing something wrong? For some reason even tho i binded my function to Backquote it runs when i press period aka the keybind for emotes and removing it or changing it fixes the problem what could i do to fix this problem? Do i have to use user input service and is this a bug?

Not Understandable but i guess when you start input and end input, function does ends but should not, right?

it shouldnt run at all its binded to “`” not “.”
f9 shows it that way as well yet it still runs when i hit “.” on my keyboard

Were you able to figure it out? I have the same issue

I’m not sure but it might be something to do with the name “Inventory”.

I got some help from a friend and I kind of understand whats going on. The action will also fire when it is canceled so what I add at the beginning of every bindaction function is …

if input == Enum.UserInputState.Cancel or input == Enum.UserInputState.End then
		return
	end

hope this kind of helps!

1 Like