Check out that last bit of my post. There isn’t only 1 reason.
Well the question is valid if someone who does that replies.
Again, as I’ve said before. If your service is renamed by you, and you use .
then yeah, that’s bad. But if you’re worrying about an exploiter I mean it’s really not that big of a deal because it doesn’t prevent them from being able to exploit at all.
Also, why are we so passionate about this? Can we talk like normal people.
Of course it’s not, but it’s 1 way of avoiding your scripts from breaking. And it’s a good practice to use :GetService
anyway like we know. Not only because some services aren’t available right away, some don’t even have the same name as their class name. (game["Run Service"]
vs game:GetService("RunService")
)
This analogy makes no sense. That’s all I’m gonna say.
I completely agree with you, I just wanted to point out that the differences aren’t that significant. You should use GetService.
So does yours… That was the point of the analogy to point out the irony. The meaning of doing this precaution is so that you prevent at least a few more exploiters from doing malicious acts. It is like obfuscation, it is easy to bypass for an exploiter but it does turn away some people that don’t know how to bypass an obfuscated code.
I never made an analogy, I stated that it is fine to use either.
The topic of this post isnt if you should use :GetService or not, its why people do it on hidden services but not on non hidden services.
You stated that it is not that big of a deal… which @sjr04 and I just said that it was. We have reiterated the same points a few times and I don’t think it is getting to your head. It is a very big deal in any serious project to establish how you should write code.
Which I answered previously…
Well, now you know why! Some people believe it’s wrong to use .
And again like I said, it is a valid question if someone who does that replies.
Thats true, although I do want to point out that an advanced exploit could rewrite the GetService
function to make it do something entirely different. However I still agree, it is good practice to use GetService
.
It is an invalid question to prompt the same question when has it already been answered.
I have never seen this been answered, all I have seen are people saying why it is good to use GetService (off the devforum)
even if the exploiter does that it won’t be replicated in the first place the filter is enabled it will only effect him/her
Get service gets the service no matter what.
If you changed the name of Lighting
to Light
, then doing game.Lighting
would error but game:GetService("Lighting")
because it returns the corresponding service regardless of name.
It is also better practice, although doing it the other way makes no difference.
… Lol I am done. Someone else take over for me.
Leaving remarks: Please read.
Hi, I have stated that I know this in my post, please re read thank you: