Okay so I'm trying to use a RemoteFunction to return the number of available slots in my custom inventory thingamadoohickey, but it's outputting some sort of weird error that I can't comprehend. Could someone help me with this?
Error: 09:06:21.275 - OnServerInvoke is a callback member of RemoteFunction; you can only set the callback value, get is not available
Error line: script:FindFirstChild("GetSlots").OnServerInvoke:connect(function(player, arg)
Client line: local slots = Workspace.CoreGUIReplace.GetSlots:InvokeServer("Sending slots...")
I'd be very grateful if someone were to help me with this, thanks!

1 comment
Nevermind, figured out the error