Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is GetService even necessary?

Asked by
funyun 958 Moderation Voter
9 years ago

I don't use it for Players, or ServerScriptService, or ReplicatedStorage, or any of that really. Why use it?

2
Not sure...I don't use it either. I believe it's just another method of accessing the service. dyler3 1510 — 9y
2
Yes, Actually there are some services that are not listed that you can use :GetService() to obtain. HungryJaffer 1246 — 9y

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

It's not necessary in the same way that FindFirstChild is not necessary. I'm not sure if it's possible any more, but you used to be able to directly rename Services (i.e. game.Lighting.Name = "sasuage"), which would break all scripts trying to directly access it by assuming its name.

GetService is simply a 'safer' way to get Services from game.

Ad

Answer this question