Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

The same errors, and no change?

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

✓ Accepted answer

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.

1 comment

0

Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.