The title explains itself. I don’t understand the difference.
By using game:GetService(“ReplicatedStorage”) it creates the requested service if it doesn’t already exist whereas game.ReplicatedStorage will get the service but if it doesn’t exist it will return an error instead of creating it.
2 Likes
Ohh. It’s like a waitforchild.
Pretty much. Your script will yield until the method returns with the class instance. Once it returns, the instance is guaranteed to be there.
2 Likes
There are many services that can only be accessed by the :GetService() method. But let’s say you renamed the ReplicatedStorage service name to “a”, you can simply do game.a, and that’s ok, but you gotta change all your old scripts where you required that service without :GetService method. In short words, it’s a good practice.
4 Likes