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
It should be OnInvoke, not onInvoke:
function Functions.PickUp.OnInvoke(id)