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

OnServerEvent error always popping up?

Asked by 5 years ago
Edited 5 years ago

Whenever i run my game an error will always pop up, It says:

15:09:08.552 - OnServerEvent can only be used on the server

Since i became a bit annoyed and worried because of the error i tried to create a "Test place" with no scripts, Even when i run it there the problem still remains.

Is there anything i can do about it?

There's more lines of code in the console that suggests that the error is in a core script which explains why it happens in every game.

Has anyone else encountered the same problem lately?

1
i think it might be bause you are running it in studio pressing the play button, and not the Server Test button under TEST<CLIENTS AND SERVER tonyv537 95 — 5y
0
The problem still remains, I've tried so many different things but none of them work. Vinceberget 1420 — 5y

2 answers

Log in to vote
0
Answered by
gitrog 326 Moderation Voter
5 years ago
Edited 5 years ago

OnServerEvent is the event that tells the server that an event has been sent from the client. OnServerEvent can only be used in Scripts, not LocalScripts, as it is server-side, not client side. For more information, view this article.

http://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events

Ad
Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
5 years ago

You might want to browse through your plugins; if you did as you claimed, which is open up a completely empty place, with no script, and roblox still gives you that error/warning; you might have a corrupt/virus plugin.

Answer this question