here is my code for some reason when I bind it immediately fires without me pressing the designated button. Why does this happen?
contextActionService:BindAction("inspectCancel", inspectItemCancel, false, Enum.KeyCode.Tab)
here is my code for some reason when I bind it immediately fires without me pressing the designated button. Why does this happen?
contextActionService:BindAction("inspectCancel", inspectItemCancel, false, Enum.KeyCode.Tab)
Do a search all (ctrl + shift + f) for inspectItemCancel and see if you’re calling the function somewhere else. ContextActionService shouldn’t call it without any input.
would my problem have anything to do with the fact that its being binded in another function that is called by context action service?
heres my first bind
contextActionService:BindAction("inspect", inspect, false, Enum.KeyCode.E)
this will fire a function that will also bind the inspectCancel
yep the problem was I was binding it in a function and for some reason that fires the other function too so I have it fixed now.