How can I find and loop through every player currently in the game? I have enabled filtering so I need to change a lot of my scripts.
And should this script be in "ServerScriptService"?
This could be in SeverScriptService or Workspace. If by "looping through every player", you mean using the GetChildren method, then I recommend using a for loop. The other for loop is pairs. Exmaple:
for i,v in pairs(game.Players:GetChildren()) do v:Kick() end
Sorry for the spacing. I'm not in studio.
The above script would kick each player in the game.
You would use a for loop and the GetChildren() method.
for i,v in pairs(game.Players:GetChildren()) do --States the for loop, which gets all the children's names and prints them in v print(v) --Prints the players names wait() --So the for loop doesn't crash end --Ends the for loop
VOTE +1 IF THIS HELPED :)