:InvokeServer doesn't work

For some reason the InvokeServer in the code below doesn’t work despite the print(“Works”) working.


“Blad” doesn’t print at all and I can spam print “Works” without blad ever printing “yurr again” also doesn’t print.

There are no errors in the output

1 Like

Can you confirm that your server code is in fact running? You’re actually running the code that is setting OnServerInvoke? Add a print statement at the bottom of that script to confirm.

1 Like

The server code isn’t running for some reason?

Where did you put the script? Is it somewhere where it can run? e.g. ServerScriptService and not ServerStorage.

If you’re just planning to print something and not return anything then use a RemoteEvent.

It’s in serverstorage which is why I assume it’s not running. I just know that invoking the server isn’t working. Also I forgot to mention that “yurr again” also doesn’t print.

Yeah put it in ServerScriptService. Scripts in ServerStorage won’t run

1 Like

Scripts don’t run in server storage unless you use run context.

1 Like

Yup it appears to work now thank you.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.