of     1   

YoBoiDevDerpy
#226085616Saturday, October 07, 2017 5:08 PM GMT

I have a remote function script that tries to set p as the player who invoked, it looks something like this: game.ReplicatedStorage.RemoteFunction.OnServerInvoke:connect(function(p) end) (by the way RemoteFunction is just example name) It gives me the output: "OnServerInvoke is a callback member of RemoteFunction; you can only set the callback value, get is not available." Any help would be greatly appreciated!
Mouse_Potatoe
#226085835Saturday, October 07, 2017 5:12 PM GMT

did u do InvokeServer from the client without passing args Cogito ergo sum
YoBoiDevDerpy
#226085903Saturday, October 07, 2017 5:13 PM GMT

Yeah, but I thought it automatically passed the player as an argument?
Mouse_Potatoe
#226085978Saturday, October 07, 2017 5:15 PM GMT

yea but i dont understand the problem. Try reading through this http://wiki.roblox.com/index.php?title=Callback Cogito ergo sum
LaeMVP
#226086581Saturday, October 07, 2017 5:27 PM GMT

function game.ReplicatedStorage.RemoteFunction.OnServerInvoke(p) end
YoBoiDevDerpy
#226086778Saturday, October 07, 2017 5:32 PM GMT

so I would use that then just call the function when the remote function is called or?
YoBoiDevDerpy
#226093675Saturday, October 07, 2017 8:09 PM GMT

bump I invoked the sever passing the player as an argument still doesn't seem to work
YoBoiDevDerpy
#226106343Sunday, October 08, 2017 1:24 AM GMT

boomp
YoBoiDevDerpy
#226141080Sunday, October 08, 2017 6:31 PM GMT

it says i can only set value not get it ?
Xizhang
#226143509Sunday, October 08, 2017 7:18 PM GMT

--a remote function is different from a remote event function game.ReplicatedStorage.RemoteFunction.OnServerInvoke(p) print("invoked") end

    of     1