So basically, I am trying to bind an action using ContextActionService, and I get the error: "Argument 2 missing or nil"

Here is the line that seems to have the error:

ContextActionService:BindAction("Interact", DivePlayer, true, Enum.KeyCode.LeftShift)

What causes the error to happen?

2 comments

0

uh u hav a function called DivePlayer in script above dat line?

0

Yup, right above. I can share it if it's necessary.