game:GetService()

Hello. I have just recently thought of this, would it be better to just use:

local ReplicatedStorage = game:GetService("ReplicatedStorage")

or

local ReplicatedStorage = game.ReplicatedStorage

which would be more useful and why?

Canonically, you would use GetService as not all services are always available to use in the first place.

2 Likes

I’ve answered this question before here:

5 Likes