In my script (a server script), I have this line:
game.ReplicatedStorage.Loaded.OnServerEvent:wait()
It's supposed to wait for the "Loaded" RemoteEvent to fire so it won't start running before the localscripts are loaded. However, it keeps coming up with this error on that line:
Cannot resume non-suspended coroutine.
Why?
I also had this issue. My situation was that I had a client call a remote event to let the server update a list, and then the server would call another remote event back to the client to confirm it was complete. I also got the error on my remoteEvent:wait() line in the client. I suspect it may have something to do with everything happening too quickly, because I was able to fix it by throwing in a wait() in the server script before it sent the remote event call back to the client.
As a note, if this is your setup, this isn't really an appropriate use of RemoteEvents. If you want the client to call the server and yield until the server has done its business, that's a job for RemoteFunctions. I'm going to change my setup to that.
Hope this helps!