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

Is there a way to get rid of a Service?

Asked by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

I know that you can get a service by using the GetService method, but how do I get rid of it? I'm pretty sure you can't just use the remove or destroy method as it would error. Is there some method that I don't know about? Any tips?

0
game = {} game.GetService = function() return false end print(game:GetService("Players")) easy greatneil80 2647 — 2y

3 answers

Log in to vote
4
Answered by 9 years ago

Services are not the same as Objects. They are libraries that are built-in to ROBLOX's RBX.Lua API. You don't have to use a Service if you don't want to, but you can't delete it. That'd be like asking how to remove a part of a Swiss Army Knife - you really can't without breaking the whole thing.

Ad
Log in to vote
3
Answered by 9 years ago

You cannot remove/destroy a ROBLOX service.

Log in to vote
0
Answered by 9 years ago

I don't believe you can remove a ROBLOX service.

Answer this question