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.
MarketplaceService/PromptPremiumPurchaseFinished, fires when the Premium purchase UI closes
Players/PlayerMembershipChanged, fires when the game server recognizes that a player’s membership has changed
The player being prompted to purchase premium
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.