Skip to content

PurchasesService

Inherits Instance

Service responsible for handling in-game purchases and ownership verification.

Static Class

This object is a static class. It can be accessed like this: Purchases.

Additionally, it cannot be created in the creator menu or with Instance.New().

Not newable

This object cannot be created by scripts using Instance.New().

Methods

PromptAsync → boolean

Parameters

player [ Player ]

assetID [ number ]

Prompt the purchase prompt to player

OwnsItemAsync → boolean

Parameters

player [ Player ]

assetID [ number ]

Checks asynchronously if the specified player owns the asset with the given asset ID.