ServiceProvider
Show Deprecated
A ServiceProvider is an abstract class, which stores, and provides certain singleton classes, depending on what inherited class you are using its members with.
Summary
Methods
Returns the service specified by the given className if it's already created, errors for an invalid name.
Returns the service with the requested class name, creating it if it does not exist.
Events
Fires when the current place is exited.
Fired when a service is created.
Fired when a service is about to be removed.
Properties
Methods
FindService
Parameters
Returns
Code Samples
ServiceProvider:FindService
print(game:FindService("Part"))
--> nil
print(game:FindService("Workspace"))
--> Workspace