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.
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)
You do not need the "Player" argument. All other arguments are tuple.