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

What's the difference between game.Players and game:GetService("Players")?

Asked by 4 years ago

I have been thinking about this, and couldn't find an exact answer about the difference between getting the Players service from game.Players and game:GetService("Players")

2 answers

Log in to vote
0
Answered by 4 years ago

Using :GetService() is often times more reliable than directly referencing a service (such as game.Players). What I mean by this is that sometimes if the Service doesn't show up (or hasn't been created) yet in the game, it's always safe to use GetService, just so you know that it will work no matter what. Good question and I hope this answers it!

0
Thank you! Kataclysmix 23 — 4y
Ad
Log in to vote
0
Answered by
ScuffedAI 435 Moderation Voter
4 years ago

Your question has already been answered in a similar post.

Answer this question