• How to Target all Players?
    2 replies, posted
Hello, I am trying to target all the players to run a script clienside but I can't manage to do it. I don't know how to target every player on the server. [CODE]util.AddNetworkString("Count") net.Start("Count") net.WriteString("30") net.Send()[/CODE] what should I put in net.Send() to target every player? I tried: [CODE]net.Send(player.GetAll())[/CODE] and [CODE]for k, v in pairs(player.GetAll()) do net.Send(v) end[/CODE] I am new to lua, could anyone help me? It would be awesome!!
net.Broadcast
[QUOTE=txike;51912459]net.Broadcast[/QUOTE] [B]OMG[/B] [U]thank you so much[/U]!! I didn't know about this command even tought I saw it one or two times.
Sorry, you need to Log In to post a reply to this thread.