|
| 08 Sep 2011 07:21 PM |
I've seen 2 methods of accessing 'Players'(The datamodel).
What's the difference?
Version A
game.Players
Version B
game:GetService("Players")
|
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 08 Sep 2011 07:23 PM |
Version A is faster. Version B gets the players service regardless of its name. |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2011 07:25 PM |
Use game.Players in regular scripts that you'd use in your game, because I doubt you'd change the name of Players. game:GetService("Players") will get you to Players, even if Players isn't named Players. Use this in script you use in script builders because some fr00b will probably change the name of Players.
~{::Epic Hologram Maker::}~ ~http://www.roblox.com/Hologramizer-item?id=60142277 |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2011 07:26 PM |
| Meh, okay. I've seen them do GetService, and it made no sense to do that in my opinion. :P |
|
|
| Report Abuse |
|
|