The code goes in your remote scripts. Press Alt +R, then File > New and paste the code. If you want to add it to perform, then add this line

sayall your message