What does this error mean, and how do I fix it?

I got this error:

OnClientInvoke is a callback member of RemoteFunction; you can only set the callback value, get is not available

Not sure what it means nor how to fix it, this is the code where the error triggers:

event2.OnClientInvoke:Connect(function(char:Model,anim:Animation,Mark)

Thanks!

Remote functions are not handled in the same way as remote events. Try this format

event2.OnClientInvoke = function(char, anim, Mark)
--stuff here
return (value or nil)
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.