Skip to content
Roblox API Reference

ReflectionService

A service that allows scripts to query the engine's API at runtime for information about classes, properties, methods, and events.
  • Not creatable
  • Not replicated
  • Service
Memory category
Instances
Own members
7
Inherited members
75
Subclasses
0
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods49

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 byReflectionService7
  • ReflectionService:GetClass(className: string,filter: { [string]: any }? = nil,): { [string]: any }?
    Returns information about a class when given its name, assuming that class is accessible.
    • Custom Lua state
    Parameters
    ParameterDescription
    className: string
    The name of the class for which you wish to retrieve information.
    filter: { [string]: any }? = nil
    An optional filter to restrict or expand the set of classes that this method can return and change the method's behavior.
    Returns
    TypeDescription
    { [string]: any }?
    A ReflectedClass dictionary with reflection information if the class exists; otherwise, nil.
  • ReflectionService:GetClasses(filter: { [string]: any }? = nil): { any }
    Returns a list of all classes accessible with filters applied.
    • Custom Lua state
    Parameters
    ParameterDescription
    filter: { [string]: any }? = nil
    An optional filter to restrict or expand the set of classes that this method can return and change the method's behavior.
    Returns
    TypeDescription
    { any }
    A list of ReflectedClass dictionaries with reflection information for each class that matches the filter criteria.
  • ReflectionService:GetEventsOfClass(className: string,filter: { [string]: any }? = nil,): { any }
    Returns a list of events for a given class with filters applied.
    • Custom Lua state
    Parameters
    ParameterDescription
    className: string
    The name of the class for which you wish to retrieve events.
    filter: { [string]: any }? = nil
    An optional filter to restrict or expand the set of events that this method can return and change the method's behavior.
    Returns
    TypeDescription
    { any }
    A list of ReflectedEvent dictionaries with reflection information for each event of the class that matches the filter criteria.
  • ReflectionService:GetMethodsOfClass(className: string,filter: { [string]: any }? = nil,): { any }
    Returns a list of methods for a given class with filters applied.
    • Custom Lua state
    Parameters
    ParameterDescription
    className: string
    The name of the class for which you wish to retrieve methods.
    filter: { [string]: any }? = nil
    An optional filter to restrict or expand the set of methods that this method can return and change the method's behavior.
    Returns
    TypeDescription
    { any }
    A list of ReflectedMethod dictionaries with reflection information for each method of the class that matches the filter criteria.
  • ReflectionService:GetPropertiesOfClass(className: string,filter: { [string]: any }? = nil,): { any }
    Returns a list of properties for a given class with filters applied.
    • Custom Lua state
    Parameters
    ParameterDescription
    className: string
    The name of the class for which you wish to retrieve properties.
    filter: { [string]: any }? = nil
    An optional filter to restrict or expand the set of properties that this method can return and change the method's behavior.
    Returns
    TypeDescription
    { any }
    A list of ReflectedProperty dictionaries with reflection information for each property of the class that matches the filter criteria.
  • ReflectionService:GetPropertyNames(name: string): { any }
    • Custom Lua state
    • Roblox script security
    Parameters
    Parameter
    name: string
    Returns
    Type
    { any }
  • ReflectionService:GetStyledPropertyNames(name: string): { any }
    • Custom Lua state
    • Roblox script security
    Parameters
    Parameter
    name: string
    Returns
    Type
    { any }

Events10

Inherited fromObject1
Inherited fromInstance9