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
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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
I was about to answer this until I thought "Didn't I just see Goul on the site?"
Thanks