Hey guys, so, I think most of it says the title.
I have a LocalScript, and a Script. The script checks for new player and fires the LocalScipt for every player FireAllClients. Now, I need to edit the GUI text (through localscript) according to the players name. So I ask, does FireAllClients() pass the player or do I have to think of another workaround? Thanks in advance.
✓ ANSWER ACCEPTED
Does Event:FireAllClients() automatically include a "player" parameter?
2 answers
✓ Accepted answer
To answer your question, yes.FireAllClients() fires a RemoteEvent to all the Clients. You can still send stuff through the function. Here's an example;
game.Players.PlayerAdded:Connect(function(Player)
game:GetService("ReplicatedStorage").NewPlayerEvent:FireAllClients(Player) -- This will send the Player who just joined to all the clients
end)
2 comments
1
You didn't directly answer my question, but I see you can pass stuff through FireAllClient
0
Sorry about that, but glad you understood.
You do not need the "Player" argument. All other arguments are tuple.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
usually that is used for exploiting