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

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

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

4 comments

0

loop through game.Players:GetPlayers()

0

I tried doing that but I probably done something wrong

0

Oh wait I was using get children

0

Still confused on what to do lol

1 answer

To others who don’t know it’s

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

1 comment

0

I would change the GetChildren with GetPlayers as a better method.

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