Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

OnServerInvoke is not a valid member of RemoteEvent?

Asked by 5 years ago
Edited 5 years ago

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

0
You asked this yesterday, send me a Team Create invite if you want me to help. BuDeep 214 — 5y
0
Did you check that there isn't another object called "arrowevent" that is a RemoteEvent in that location? SimplifiedCode 227 — 5y
0
Yes I did. MajinBluee 80 — 5y
0
BuDeep accept my friend request MajinBluee 80 — 5y
View all comments (5 more)
0
In my replication, I found no problems, with the formation you provided with the communication between the client and server boundary. SimplifiedCode 227 — 5y
0
That's weird. MajinBluee 80 — 5y
0
Use a remote Event and use OnServerEvent. AdminAyush 10 — 5y
0
You need to use a RemoteFunction and make it remoteFunctionName.OnServerInvoke = functionToRun neoSunny 1 — 5y
0
You need to use a RemoteFunction and make it remoteFunctionName.OnServerInvoke = functionToRun neoSunny 1 — 5y

Answer this question