Collection of methods that allows you to track how users interact with your experiences.
- Memory category
- Instances
- Own members
- 17
- Inherited members
- 75
- Subclasses
- 0
- Siblings
- 608
Properties24
Property categoryBehavior
- Determines if an
Instanceand its descendants can be cloned usingInstance:Clone(), and can be saved/published. - Deprecated: This deprecated property is a variant of
Instance.Archivablewhich should be used instead.Use Archivable instead.
Property categoryData
Property categoryPermissions
- The set of capabilities allowed to be used for scripts inside this container.
- Indicates whether the instance is inside a sandboxed container.
- When enabled, the instance can only access abilities in its
Capabilitieslist.
Defined byAnalyticsService1
No properties match the filters.
Methods58
Object:GetPropertyChangedSignal( property: string): RBXScriptSignal Get an event that fires when a given property of the object changes.Parameters Parameter Description property: stringThe property to connect to.Returns Type Description RBXScriptSignalA signal that fires whenever the property changes.- Returns true if an object's class matches or inherits from a given class.
Parameters Parameter Description className: stringThe class against which the Object's class will be checked. Case-sensitive.Returns Type Description booleanDescribes whether the Object's class matched or is a subclass of the given class. - Deprecated: This deprecated function is a variant of
Object:IsA()which should be used instead.Parameters Parameter className: stringReturns Type booleanUse IsA instead.
- Applies a tag to the instance.
Parameters Parameter Description tag: stringThe tag to apply to the instance. - This method destroys all of an instance's children.
- Create a copy of an instance and all its descendants, ignoring instances that are not
Archivable.Returns Type Description InstanceA copy of the instance, ornilif the instance is notArchivable. - Sets the
Instance.Parentproperty tonil, locks theInstance.Parentproperty, disconnects all connections, and callsDestroy()on all children. Instance:FindFirstAncestor( name: string): Instance Returns the first ancestor of theInstancewhoseInstance.Nameis equal to the given name.Parameters Parameter Description name: stringTheInstance.Nameto be looked for.Instance:FindFirstAncestorOfClass( className: string): Instance Returns the first ancestor of theInstancewhoseObject.ClassNameis equal to the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstAncestorWhichIsA( className: string): Instance Returns the first ancestor of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChild( name: string, recursive: boolean? = false): Instance Returns the first child of theInstancefound with the given name.Parameters Parameter Description name: stringTheInstance.Nameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstChildOfClass( className: string): Instance Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChildWhichIsA(className: string,recursive: boolean? = false,): Instance Returns the first child of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstDescendant( name: string): Instance Returns the first descendant found with the givenInstance.Name.Parameters Parameter Description name: stringTheInstance.Nameto search for.- Returns the
Actorassociated with the Instance, if any. Instance:GetAttribute( attribute: string): any Returns the value which has been assigned to the given attribute name.Parameters Parameter Description attribute: stringThe name of the attribute being retrieved.Returns Type Description anyThe value which has been assigned to the given attribute name. If no attribute has been assigned,nilis returned.Instance:GetAttributeChangedSignal( attribute: string): RBXScriptSignal Returns an event that fires when the given attribute changes.Parameters Parameter Description attribute: stringThe name of the specified attribute for which the change signal is being returned.Returns Type Description RBXScriptSignalAn event that fires when the given attribute changes.- Returns a dictionary of the instance's attributes.
Returns Type Description { [string]: any }A dictionary of string → variant pairs for each attribute where the string is the name of the attribute and the variant is a non-nil value. - Returns an array containing all of the instance's children.
Returns Type Description { Instance }An array containing the instance's children. Instance:GetDebugId( scopeLength: number? = 4): string Returns a coded string of the debug ID used internally by Roblox.Parameters Parameter Description scopeLength: number? = 4The scope length.Returns Type Description stringThe Debug ID string.- Returns an array containing all of the descendants of the instance.
Returns Type Description { Instance }An array containing the instance's descendants. - Returns a string describing the instance's ancestry.
- Returns the styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified.
Parameters Parameter Description name: stringName of the property to query.selector: string?Optional selector for the pseudo instance you are targeting on the instance.Returns Type Description anyThe styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified. Instance:GetStyledPropertyChangedSignal( property: string): RBXScriptSignal Returns an event that fires when the given style property changes on the instance.Parameters Parameter Description property: stringName of the style property for which to listen for changes.Returns Type Description RBXScriptSignalEvent that fires when the given style property changes.- Gets an array of all tags applied to the instance.
Returns Type Description { any }An array of strings, each representing a tag applied to the instance. - Check whether the instance has a given tag.
Parameters Parameter Description tag: stringThe tag to check for on the instance.Returns Type Description booleantrueif the instance has the given tag,falseotherwise. Instance:IsAncestorOf( descendant: Instance): boolean Returns true if anInstanceis an ancestor of the given descendant.Instance:IsDescendantOf( ancestor: Instance): boolean Returnstrueif anInstanceis a descendant of the given ancestor.Instance:IsPropertyModified( property: string): boolean Returnstrueif the value stored in the specified property is not equal to the code-instantiated default.Parameters Parameter Description property: stringName of the property to query.Returns Type Description booleanBoolean indicating whether the property is modified from its code‑instantiated default.Instance:QueryDescendants( selector: string): { Instance } Returns an array containing all descendants of the instance that match theselectorstring.Parameters Parameter Description selector: stringSelector string used to filter elements.Returns Type Description { Instance }An array of instances (empty if nothing matched the selector).- Removes a tag from the instance.
Parameters Parameter Description tag: stringThe tag to remove from the instance. Instance:ResetPropertyToDefault( property: string) Resets a property to its default value.Parameters Parameter Description property: stringName of the property to reset.Instance:SetAttribute( attribute: string, value: any) Sets the attribute with the given name to the given value.Instance:WaitForChild( childName: string, timeOut: number): Instance Returns the child of theInstancewith the given name. If the child does not exist, it will yield the current thread until it does.Parameters Parameter Description childName: stringTheInstance.Nameto be looked for.timeOut: numberAn optional time out parameter.- Deprecated: This item is deprecated in favor of
Instance:Destroy()andInstance:ClearAllChildren(). If you must remove an object from the game, and wish to use the object later, set itsParentproperty tonilinstead of using this method.
Sets the object'sParenttonil, and does the same for all its descendants. - Deprecated: This item has been superseded by
Instance:GetChildren()which should be used in all new work.
Returns an array of the object's children.Returns Type Description { Instance }Array of child objects/instances.Use GetChildren instead.
- Deprecated: This deprecated function is a variant of
Instance:Clone()which should be used instead.Returns Type InstanceUse Clone instead.
- Deprecated: This deprecated function is a variant of
Instance:Destroy()which should be used instead.Use Destroy instead.
Instance:findFirstChild( name: string, recursive: boolean? = false): Instance Deprecated: This deprecated function is a variant ofInstance:FindFirstChild()which should be used instead.Returns Type InstanceUse FindFirstChild instead.
- Deprecated: This deprecated function is a variant of
Instance:GetChildren()which should be used instead.Returns Type { Instance }Use GetChildren instead.
Instance:isDescendantOf( ancestor: Instance): boolean Deprecated: This deprecated function is a variant ofInstance:IsDescendantOf()which should be used instead.Parameters Parameter ancestor: InstanceReturns Type booleanUse IsDescendantOf instead.
- Deprecated: This deprecated function is a variant of
Instance:Remove()which has also been deprecated. Neither function should be used in new work.Use Remove instead.
Defined byAnalyticsService16
AnalyticsService:GetDurationLoggerTimestamp( ): number Returns Type numberAnalyticsService:GetPlayerSegmentsAsync( player: Player): { [string]: any } Returns coarse player segment buckets for the current experience.Parameters Parameter Description player: PlayerThe player whose segment buckets should be returned.Returns Type Description { [string]: any }A dictionary containing coarse player segment buckets for the current experience.AnalyticsService:LogCustomEvent(player: Player,eventName: string,value: number? = 1,customFields: { [string]: any }? = nil,) Logs an event used to track custom metrics of a user in experience.Parameters Parameter Description player: PlayerThe user who triggered the event.eventName: stringThe name of the custom event.value: number? = 1The value of the event that will be used in aggregation.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogEconomyEvent(player: Player,flowType: Enum.AnalyticsEconomyFlowType,currencyType: string,amount: number,endingBalance: number,transactionType: string,itemSku: string? = "",customFields: { [string]: any }? = nil,) Logs an event used to track player actions related in experience.Parameters Parameter Description player: PlayerThe user who triggered the event.flowType: Enum.AnalyticsEconomyFlowTypeShould specify the direction that currency is flowing usingAnalyticsEconomyFlowType.currencyType: stringThe name of the currency being added or removed, for example"gold","gems", or"energy". Limited to 5 unique currency types per experience.amount: numberThe amount of currency being added or removed. This value should always be positive.endingBalance: numberThe user's balance after the currency has been added or removed. This value should always be greater than or equal to0.transactionType: stringThe type of transaction that occurred. While you're free to use any transaction type, it's recommended to use the provided types fromAnalyticsEconomyTransactionTypesuch as"IAP"or"ContextualPurchase"to enable future insights from Roblox tools and charts. Because this field type is a string, you'll need to pass theNamevalue of the enum. For exampleEnum.AnalyticsEconomyTransactionType.IAP.Name. Limited to 20 unique types per experience.itemSku: string? = ""Optional SKU of the item or bundle being purchased. This is a unique identifier for the item being purchased. Limited to 100 unique SKUs per experience.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogFunnelStepEvent(player: Player,funnelName: string,funnelSessionId: string? = "",step: number? = 1,stepName: string? = "",customFields: { [string]: any }? = nil,) Logs an event used to track user actions stepping through a pre-planned funnel.Parameters Parameter Description player: PlayerThe user who triggered the event.funnelName: stringThe name of the funnel. This should be the same for all steps in the funnel. Limited to 10 unique funnels per experience.funnelSessionId: string? = ""Optional unique identifier for the funnel session. This should be the same for all steps in the funnel. Note that this field is only necessary for recurring funnels, for example a purchase flow funnel or an item upgrade funnel. If you don't have a natural funnel session identifier, it's recommended to useHttpService:GenerateGUID().step: number? = 1The step number in the funnel. This should be unique for each step in the funnel. All funnels start at step 1. Limited to steps 1-100. Repeated steps by the same user in the same funnel session, or whenfunnelSessionIdisnilwill be ignored. Note that if any steps are skipped, the intermediate steps will be considered completed.stepName: string? = ""Optional name of the step in the funnel. This field is only used for display purposes in Roblox-provided charts.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogJourneyEvent(player: Player,journeyName: string,nodeName: string,journeySessionId: string? = "",customFields: { [string]: any }? = nil,) Logs a journey event used to track non-linear player paths through an experience.Parameters Parameter Description player: PlayerThe player who triggered the journey event.journeyName: stringThe name of the journey. This should be the same for all nodes in the journey. Cannot be empty and cannot contain a comma,, double quote", single quote', or newline character.nodeName: stringThe name of the node the player reached in the journey. Cannot be empty, cannot contain a comma,, double quote", single quote', or newline character, and cannot start with__(double underscore), which is reserved.journeySessionId: string? = ""Optional unique identifier for the journey session. This should be the same for all nodes in a single session of the journey. If provided, cannot contain a comma,, double quote", single quote', or newline character.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogOnboardingFunnelStepEvent(player: Player,step: number,stepName: string? = "",customFields: { [string]: any }? = nil,) Logs an event used to track user actions stepping through an onboarding funnel.Parameters Parameter Description player: PlayerThe user who triggered the event.step: numberThe step number in the funnel. This should be unique for each step in the funnel. All funnels start at step 1. Limited to steps 1-100. Note that if any steps are skipped, the intermediate steps will be considered completed.stepName: string? = ""Optional name of the step in the funnel. This field is only used for display purposes in Roblox-provided charts.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogProgressionCompleteEvent(player: Player,progressionPathName: string,level: number,levelName: string? = "",customFields: { [string]: any }? = nil,) Logs an event for when a user has completed a level attempt.Parameters Parameter Description player: PlayerThe player who triggered the event.progressionPathName: stringThe name of the progression path this event belongs to, such as a world, chapter, or level group. This groups related progression events together. Cannot be empty and cannot contain a comma,, double quote", single quote', or newline character.level: numberThe numeric level the player is progressing through within the progression path.levelName: string? = ""The name of the level associated with this event. This field is used for display purposes in Roblox-provided charts.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogProgressionEvent(player: Player,progressionPathName: string,status: Enum.AnalyticsProgressionType,level: number,levelName: string? = "",customFields: { [string]: any }? = nil,) Logs an event for when a user has started, completed, or failed a level attempt.Parameters Parameter Description player: PlayerThe player who triggered the event.progressionPathName: stringThe name of the progression path this event belongs to, such as a world, chapter, or level group. This groups related progression events together. Cannot be empty and cannot contain a comma,, double quote", single quote', or newline character.status: Enum.AnalyticsProgressionTypeThe progression status to record, provided as anAnalyticsProgressionTypevalue such asStart,Complete, orFail. TheAnalyticsService:LogProgressionStartEvent(),AnalyticsService:LogProgressionCompleteEvent(), andAnalyticsService:LogProgressionFailEvent()methods are shortcuts that set this status for you.level: numberThe numeric level the player is progressing through within the progression path.levelName: string? = ""The name of the level associated with this event. This field is used for display purposes in Roblox-provided charts.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogProgressionFailEvent(player: Player,progressionPathName: string,level: number,levelName: string? = "",customFields: { [string]: any }? = nil,) Logs an event for when a user has failed a level attempt.Parameters Parameter Description player: PlayerThe user who triggered the event.progressionPathName: stringThe name of the progression path this event belongs to, such as a world, chapter, or level group. This groups related progression events together. Cannot be empty and cannot contain a comma,, double quote", single quote', or newline character.level: numberThe numeric level the player is progressing through within the progression path.levelName: string? = ""The name of the level associated with this event. This field is used for display purposes in Roblox-provided charts.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.AnalyticsService:LogProgressionStartEvent(player: Player,progressionPathName: string,level: number,levelName: string? = "",customFields: { [string]: any }? = nil,) Logs an event for when a user has started a level attempt.Parameters Parameter Description player: PlayerThe player who triggered the event.progressionPathName: stringThe name of the progression path this event belongs to, such as a world, chapter, or level group. This groups related progression events together. Cannot be empty and cannot contain a comma,, double quote", single quote', or newline character.level: numberThe numeric level the player is progressing through within the progression path.levelName: string? = ""The name of the level associated with this event. This field is used for display purposes in Roblox-provided charts.customFields: { [string]: any }? = nilOptional dictionary of custom fields that will provide breakdowns in Roblox-provided charts. Only specific keys, provided byAnalyticsCustomFieldKeys, will be used for these breakdowns. Limited to 8,000 unique combinations of values across the three custom fields per experience.- Deprecated: This deprecated function is a variant of
AnalyticsService:LogCustomEvent()which should be used instead.
Fires a custom event with a custom event name and data. - Deprecated: This function has been deprecated in favor of more descriptive methods, including
AnalyticsService:LogCustomEvent(),AnalyticsService:LogEconomyEvent(), andAnalyticsService:LogProgressionEvent().
Report a custom event to PlayFab. AnalyticsService:FireInGameEconomyEvent(player: Instance,itemName: string,economyAction: Enum.AnalyticsEconomyAction,itemCategory: string,amount: number,currency: string,location: any,customData: any,) Deprecated: This deprecated function is a variant ofAnalyticsService:LogEconomyEvent()which should be used instead.
Fire an event used to track player actions pertaining to the in-gameParameters Parameter Description player: InstanceThe player who triggered the economy event.itemName: stringThe name of the item.economyAction: Enum.AnalyticsEconomyActionIndicates the acquisition or spending of an in game resource.itemCategory: stringA user defined category for items such as "Vehicle," "Weapon.".amount: numberThe amount of the currency.currency: stringThe currency used. Examples: 'gold', 'gems', 'life.'.location: anyThe event location. A dictionary that each key-value represents an entry of location data. The key-value is a string-string pair. With this you can query which are the most popular "stores" then maybe you want to increase/lower the price for the stores. See the example below:local location = { ["placeDesc"] = "Dungeon1", ["levelDesc"] = "level2", ["mapDesc"] = "LeftChamberMap", ["storeName"] = "DarkSmith", ["userDefinedKey"] = "0005" }customData: anyOptional. User defined data, could be a string, a number or a table.AnalyticsService:FireLogEvent(player: Instance,logLevel: Enum.AnalyticsLogLevel,message: string,debugInfo: any,customData: any,) Deprecated: This method is deprecated. Do not use it for new work.
Fire a log event used to track errors and warnings experienced by players.Parameters Parameter Description player: InstanceThe player who triggered the error event,nilif not player related.logLevel: Enum.AnalyticsLogLevelThe specified log level (e.g. Debug, Error).message: stringUser defined message.debugInfo: anyOptional. A dictionary which contains predefined keys including "errorCode" and "stackTrace". Both keys values are strings. stackTrace is a traceback of the current function call stack.customData: anyOptional. User defined data, could be a string, a number or a table.AnalyticsService:FirePlayerProgressionEvent(player: Instance,category: string,progressionStatus: Enum.AnalyticsProgressionStatus,location: any,statistics: any,customData: any,) Deprecated: This deprecated function is a variant ofAnalyticsService:LogProgressionEvent()which should be used instead.
Fire an event used to track player progression through the game.Parameters Parameter Description player: InstanceThe player who triggered the event.category: stringA user defined category for progression.progressionStatus: Enum.AnalyticsProgressionStatusIndicates the status of the progression.location: anyThe event location. A dictionary that each key-value represents an entry of location data. The key-value is a string-string pair. With this developers can query where is the most frequent location for a specific progression event category. For example, the category could be "LevelUp".statistics: anyOptional. A dictionary that each key-value represents an entry of statistics data that allows developers to track any specific data that they want to collect as players progress through their game. Key-Value is a string-number pair.customData: anyOptional. User defined data, could be a string, a number or a table.
No methods match the filters.
Events10
Object.Changed: RBXScriptSignal<( property: string)> Fires immediately after a property of the object changes, with some limitations.Parameters Parameter property: string
Instance.AncestryChanged: RBXScriptSignal<( child: Instance, parent: Instance)> Fires when theInstance.Parentproperty of this object or one of its ancestors is changed.Instance.AttributeChanged: RBXScriptSignal<( attribute: string)> Fires whenever an attribute is changed on theInstance.Parameters Parameter attribute: stringInstance.ChildAdded: RBXScriptSignal<( child: Instance)> Fires after an object is parented to thisInstance.Parameters Parameter child: InstanceInstance.ChildRemoved: RBXScriptSignal<( child: Instance)> Fires after a child is removed from thisInstance.Parameters Parameter child: InstanceInstance.DescendantAdded: RBXScriptSignal<( descendant: Instance)> Fires after a descendant is added to theInstance.Parameters Parameter descendant: InstanceInstance.DescendantRemoving: RBXScriptSignal<( descendant: Instance)> Fires immediately before a descendant of theInstanceis removed.Parameters Parameter descendant: Instance- Fires immediately before (or is deferred until after) the instance is destroyed via
Instance:Destroy(). - Fires whenever any style property is changed on the instance, including when a property is set to
nil. Instance.childAdded: RBXScriptSignal<( child: Instance)> Deprecated: This deprecated event is a variant ofInstance.ChildAddedwhich should be used instead.Parameters Parameter child: InstanceUse ChildAdded instead.
No events match the filters.