Recently I discovered that you can use services via game.Service… e.g game.HttpService:PostAysnc()
instead of game:GetService("HttpService"):PostAsync()
. Is there a difference between the 2? Which one should I be using and why?
1 Like
well one will find the thing via a name one gets it via service name
so for example
if you were to name the Players to p
then to get the players you would have to do game.p, but game:GetService(“Players”) will still work as it gets it via a service name, therefore its better practice to use game:GetService so that if it were to be renamend midgame a script calling it via game.Players wont fail
1 Like