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

The same errors, and no change?

Asked by
Vik954 48
5 years ago
Edited 5 years ago

I started a 10 minute project on a Baseplate template, I worked at it a bit and I played it, and it gave me some errors. Since I worked at it a little bit I exited it and created another project (again on a Baseplate template), I played it without making any change and it still got me the same errors!

Maybe it was a little bug, so I closed the studio and reopened it, I opened another project (still on a Baseplate template), I played it without making any change and it still gave me the exact same errors!

Here they are:

12:32:45.355 - OnServerInvoke can only be implemented on the server
12:32:45.358 - Stack Begin
12:32:45.358 - Script 'Script Context.ServerCoreScripts/ServerSocialScript', Line 176
12:32:45.358 - Stack End
12:32:45.358 - OnServerEvent can only be used on the server
12:32:45.359 - Stack Begin
12:32:45.359 - Script 'Script Context.ServerStarterScript', Line 58
12:32:45.359 - Stack End

Why?

1 answer

Log in to vote
1
Answered by
Kikitob 105
5 years ago

You are trying to use OnServerInvoke and OnServerEvent on the client, they can only be used on the server and you should use OnClientInvoke and OnClientEvent instead.

0
Thank you! Vik954 48 — 5y
Ad

Answer this question