Skip to content
Roblox API Reference

ServiceProvider

A ServiceProvider is an abstract class, which stores, and provides certain singleton classes, depending on what inherited class you are using its members with.
  • Not browsable
  • Not creatable
Memory category
Instances
Own members
8
Inherited members
75
Subclasses
2
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods46

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byServiceProvider4
  • ServiceProvider:FindService(className: string): Instance
    Returns the service specified by the given className if it's already created, errors for an invalid name.
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class name of the service to find.
    Returns
    TypeDescription
    Instance
    The service instance if it has already been created, or nil if the service does not yet exist.
  • ServiceProvider:GetService(className: string): Instance
    Returns the service with the requested class name, creating it if it does not exist.
    Parameters
    ParameterDescription
    className: string
    The class name of the requested service.
    Returns
    TypeDescription
    Instance
    An instance of the requested service.
  • ServiceProvider:getService(className: string): Instance
    Deprecated: This deprecated function is a variant of ServiceProvider:GetService() which should be used instead.
    • Deprecated
    Parameters
    Parameter
    className: string
    Returns
    Type
    Instance

    Use GetService instead.

  • ServiceProvider:service(className: string): Instance
    Deprecated: This item has been superseded by ServiceProvider:GetService() which should be used in all new work.
    • Deprecated
    Parameters
    Parameter
    className: string
    Returns
    Type
    Instance

    Use GetService instead.

Events14

Inherited fromObject1
Inherited fromInstance9
Defined byServiceProvider4