Sending server message with gui

I am trying to make something simular to an admin panel, like kolh’s admin commands where the player can send a server message, im trying to do this in a gui but i dont know how to

If the command is through the GUI, you could use a remote event and handle it on the server side.

yes but i am unsure on how to do that, im not good at scripting and i havent used chatservice before, i have done the remote event part but dont know how to handle the rest

What is “the rest” ? The general idea would be something like this:

  1. A client sends the message to be sent server-wide to the server through a remote event.
  2. The server receives the event and checks if the sender is allowed to do this.
  3. If yes, the server filters the message and sends it out to every client.
  4. All clients get the event and display the message sent to them.

use remote event

if in textbox have text then fire remote event to server and there use loops to clone a text ui and make parent in all player