I tested the script only în windowed mode, but I will do a test later with it turned off.
Then I immediately return to the other window and I do not see the message in his head. The problem will be because a window is afk?
Btw, Is the client-side script even loaded?
You can check that by sending a message to the console when script loads.