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

[SOLVED] How do I gain access to all players through a SCRIPT?

Asked by 5 years ago
Edited 5 years ago

What I meant is a piece of code which will basically do this

game.Players (Calling for all players) .PlayerScripts

I’ve just been having difficulties finding this piece of code which if you could help me I’d be much great full if you could tell what the code is that I’m missing out

0
loop through game.Players:GetPlayers() theking48989987 2147 — 5y
0
I tried doing that but I probably done something wrong GizmoProductions 61 — 5y
0
Oh wait I was using get children GizmoProductions 61 — 5y
0
Still confused on what to do lol GizmoProductions 61 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

To others who don’t know it’s

while wait(0.1) do
      for i,v in pairs(game.Players:GetChildren()) do

      end
end
0
I would change the GetChildren with GetPlayers as a better method. Lugical 425 — 5y
Ad

Answer this question