PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

ServiceProvider

Show deprecated

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.

Properties

Functions

Instance

FindService ( string className )

Returns the service specified by the given className if it’s already created, errors for an invalid name.

Instance

GetService ( string className )

Returns the service with the requested class name, creating it if it does not exist.

Events

RBXScriptSignal

Close ( )

Fires when the current place is exited.

RBXScriptSignal

CloseLate ( )

Fired immediately after the ServiceProvider/Close signal is fired.

RBXScriptSignal

ServiceAdded ( Instance service )

Fired when a service is created.

RBXScriptSignal

ServiceRemoving ( Instance service )

Fired when a service is about to be removed.