Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why are arguments in ContextActionService:BindAction giving me an error?

Asked by 3 years ago

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?

0
uh u hav a function called DivePlayer in script above dat line? BulletproofVast 1033 — 3y
0
Yup, right above. I can share it if it's necessary. ms_chillwoman 0 — 3y

Answer this question