Reproduction Steps
This has happened a few times when I play my project in development, in Studio: I get this error:
MessagingService: Service disconnected
But this occurs many lines after the service has been started.
For example, in the first lines of my script I have:
local MessagingService = game:GetService("MessagingService")
And at the end of the script, I have:
MessagingService:SubscribeAsync('MyMsg', function(Msg)
and here I (rarely) get this error.
But if I run the project again, no errors.
What could it be?
Any way to avoid this?
Expected Behavior
No error, since MessagingService = game:GetService("MessagingService")
is correctly declared.
Actual Behavior
Described above
Line 1454 of log file (sent in PM), shows:
2022-03-21T18:34:10.770Z,1956.770142,4bd4,6 [FLog::Error] Error: MessagingService: Service disconnected.
Workaround
As described, I have to stop and play the project again.
Issue Area: Studio
Issue Type: Other
Impact: Moderate
Frequency: Rarely
A private message is associated with this bug report