All services should be referenced using game:GetService at the top of the file.
As such, it makes sense to use this snippet at the beginning of a file, then access the service somewhere else in the file. It is annoying to have to type a variable of the same name, almost eliminating all the time saved by the snippet. This PR modifies the snippet to also set the variable name:
game:GetService("ReplicatedStorage")
...now becomes...
local ReplicatedStorage = game:GetService("ReplicatedStorage")
It may be more appropriate to create an entirely separate snippet for this, but I don't see much point in an inline call to GetService, and it also seems like its against the style guide recommendations.
According to the Roblox Lua Style guide:
As such, it makes sense to use this snippet at the beginning of a file, then access the service somewhere else in the file. It is annoying to have to type a variable of the same name, almost eliminating all the time saved by the snippet. This PR modifies the snippet to also set the variable name:
...now becomes...
It may be more appropriate to create an entirely separate snippet for this, but I don't see much point in an inline call to
GetService
, and it also seems like its against the style guide recommendations.