Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

OnInvoke doesn't work with Bindable functions?

InputService.InputBegan:connect(function(input)
for _, v in pairs(Settings:GetChildren()) do
if input.KeyCode == v.Value then
Functions:findFirstChild(v.Name):Invoke(script.Parent:findFirstChild(v.Name).Value)
end
end
end)

function Functions.PickUp.onInvoke(id)
print(id)
end

Error message: OnInvoke is not a valid member of BindableFunction

1 answer

✓ Accepted answer

It should be OnInvoke, not onInvoke:

function Functions.PickUp.OnInvoke(id)

This discussion is preserved as it was. New answers, comments, and votes are closed.