How would I use FireAllClients to replace these lines of code?
1 | for i,v in pairs (game.Workspace.Votes:GetChildren()) do |
2 | game.Players [ v.Name ] :FindFirstChild( "Ready" ).FireClient(v, Mode 1 , Mode 2 , Mode 3 , Map 1 , Map 2 , Map 3 ) |
3 | end |
You would have to place the 'Ready' remote in ReplicatedStorage in order to take advantage of the FireAllClients
function.
1 | local remote = game.ReplicatedStorage:FindFirstChild( "Ready" ); |
2 |
3 | for i,v in pairs (workspace.Votes:GetChildren()) do |
4 | remote:FireAllClients(v,Mode 1 ,Mode 2 ,Mode 3 ,Map 1 ,Map 2 ,Map 3 ); |
5 | end |