Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I implement FireAllClients in a script?

How would I use FireAllClients to replace these lines of code?

for i,v in pairs (game.Workspace.Votes:GetChildren())do
		game.Players[v.Name]:FindFirstChild("Ready").FireClient(v, Mode1, Mode2, Mode3, Map1, Map2, Map3)
	end

1 answer

✓ Accepted answer

You would have to place the 'Ready' remote in ReplicatedStorage in order to take advantage of the FireAllClients function.

local remote = game.ReplicatedStorage:FindFirstChild("Ready");

for i,v in pairs (workspace.Votes:GetChildren()) do
	remote:FireAllClients(v,Mode1,Mode2,Mode3,Map1,Map2,Map3);
end

2 comments

0

I was about to answer this until I thought "Didn't I just see Goul on the site?"

0

Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.