What is the difference in getting the player

It’s all in the title, what’s the difference between game:GetService(“Players”) vs game.Players?

The former gets the service by class name, whereas the latter gets the service just by name. It is always good practice to obtain services via game:GetService.

The official Luau style guide encourages this as well.


This answer also explains it pretty well

1 Like