Hello, I'm Making a JoJo game and I stumbled upon a little error in my script: OnServerInvoke is not a valid member of RemoteEvent. I'm using a RemoteFunction but it does this error, I really don't understand what's the problem.
local ArrowEvent = game:GetService("ReplicatedStorage").Logic.arrowevent
ArrowEvent.OnServerInvoke = function(Player,Arrow,Character,action,hitpos)
-- My Code
end
This is a server script.
Proof that it's in the right spot: https://imgur.com/a/DPOFU5N
Help Would Be Really Appreciated

3 comments
check this video out by alvin blox on how to make it work https://www.youtube.com/watch?v=-KqiPiE5P74&t=1014s
Are you invoking the function from client to server or server to client? If client to server, are you using a Localscript to invoke on a server script? (Vice versa for the latter)
There is not enough information to determine anything other than that ArrowEvent is not the RemoteFunction in the picture.