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

What is the difference between :GetPlayers() and players:GetChildren()?

2 answers

✓ Accepted answer

The GetChildren() function is inherited by all instances, this includes objects such as Players, ReplicatedStorage, Lighting etc. And most objects you wouldn't normally think of as instances.

GetPlayers() on the other hand is only inherited by the Players object. I believe they've kept this function for backwards-compatability.

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