Collapse Sidebar


Used to prompt a user to purchase Premium. If the user is already premium, the user will receive an error message “You are already subscribed to Roblox Premium! Please try again.”

To learn more about and incorporating Premium into your game, and monetizing your game with the Premium Payout system, take a look at this article.

See also

  • MarketplaceService/PromptPremiumPurchaseFinished, fires when the Premium purchase UI closes
  • Players/PlayerMembershipChanged, fires when the game server recognizes that a player’s membership has changed


Name Type Default Description

The player being prompted to purchase premium


Return Type Summary

No return

Code Samples

Prompt Premium Purchase

The following code will prompt a user to purchase Premium when their avatar touches the part that its containing Script is attached to, such as a teleporter that allows access to a Premium-only area.