Are there any fireallclients alternatives for plugins?

i’m working on a team create chat plugin, but i don’t exactly know how i can send messages to the rest of the team create members

i went with making a remoteevent inside the plugin, then when a message is sent on the client fire the event, receive it on the main plugin script (which is a serverscript ofc), and use fireallclients to send it to every other member

the problem is, the plugin script can’t fireallclients because it’s technically a client sided script, so i’m looking for a different way to send events to the rest of the team create members

1 Like

bump i still need help, and ye i’ve searched it up no helpful results

Yes, there are alternative methods for sending messages between team create members in a Roblox plugin without using FireAllClients(). Here are a few options:

  1. Use the MessagingService: This is a Roblox service that allows communication between different instances of a game. You can use it to send messages between players, servers, and even across different places. To use it in your plugin, you would create a message channel and have each team create member subscribe to it. Then, when a message is sent from one member, it will be received by all the others subscribed to the channel.
  2. Use a server-to-client remote event: Instead of trying to use FireAllClients() from the plugin script, you can have the plugin create a remote event on the server and have each team create member’s client scripts listen for that event. When the event is fired on the server, it will be received by all the clients listening to it.
  3. Use a datastore: Another option is to use a datastore to store the chat messages and have each team create member’s client script read from the datastore to display the messages. When a new message is sent, the server can write it to the datastore, and all the clients will be able to read it.

These are just a few options, and the best approach will depend on the specific needs of your plugin.

bro i get you wanna help people but using a.i is going to generate incorrect and old solutions like 80% of the time like the one you just posted, also OP you can probably just change the UI from the person using the plugin since team create will apply that to every one? never made plugins so dont know much

3 Likes

the solutions seem like they’ll most likely work (can’t test them atm but all 3 of those solutions should work from what i’ve learned), and no, client side is client side.

I bet you are trying to create a team create chat without filtering.

I’m not sure if messaging service method would work, however you can create a folder for example in your game directory, use ChildAdded events and Instances to communicate (Make sure you use Debris to destroy old messages)

Looking forward to help with the project though, PM me on devforum or message dauser#1103

1 Like

Only the last option might work, but isnt even that great (due to polling). Please refrain from using ChatGPT on scripting forums as it usually doesnt provide great solutions!

1 Like

i’m just recreating discord as a team create chat plugin for fun lol, and i’ll try that out

ye, this won’t work
everything in the plugin seems to be done in the client, and i can’t find a way to connect to the server in any way without having the game creator make a folder themselves
checking the source code for wispy made me even more confused too

I’ve already tested things, the only way I came up with is creating a temp folder, automatically via a script. Sadly, folders located in game isn’t replicated.