Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Does Event:FireAllClients() automatically include a "player" parameter?

Asked by 5 years ago

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.

0
usually that is used for exploiting HTHRWRU 6 — 5y

2 answers

Log in to vote
2
Answered by 5 years ago
Edited 5 years ago

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)
1
You didn't directly answer my question, but I see you can pass stuff through FireAllClient Doge_Brigade 94 — 5y
0
Sorry about that, but glad you understood. MRbraveDragon 374 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

You do not need the "Player" argument. All other arguments are tuple.

Answer this question