Roblox Introduces API to Sell Private Servers Mid-Game

Developers can now use PromptVIPServerPurchase to offer private servers without forcing players to leave the experience.

THE SHORT ANSWER

Roblox released a new API called PromptVIPServerPurchase that allows developers to prompt players to purchase private servers directly from within their games. The feature offers a 70% revenue share and supports both paid and free private servers, though limitations exist regarding existing server access and invite notifications.

  • New API: MarketplaceService:PromptVIPServerPurchase() enables mid-game server purchases.
  • Revenue Model: Creators earn a 70% share of paid private server subscriptions.
  • Implementation: Requires enabling private servers in Creator Dashboard and using a LocalScript.
  • Limitations: No method to list existing servers yet, and invite notifications are pending.

Roblox developers now have a new tool to monetize private servers without forcing players to leave the game session. The platform announced the availability of MarketplaceService:PromptVIPServerPurchase(), an API that allows creators to trigger a purchase prompt directly from within their experiences.

This change addresses a common workflow issue where players often want to start a private server while actively playing with friends. The new function lets creators place a button in the lobby or trigger the prompt after a round ends, offering a streamlined path from gameplay to private hosting.

How the API Works

The PromptVIPServerPurchase() function requires a target player argument. When called, it opens a native Roblox interface that handles the purchase flow. Developers can use this function in either a LocalScript or a Script, depending on whether the logic needs to run on the server or the client.

The prompt automatically pulls the pricing settings defined in the game's Creator Dashboard. If the developer has set the private server to be free, the prompt will not ask for Robux. If it is paid, the player sees the price and can complete the transaction immediately.

Roblox Plus subscribers receive special access to this feature. Even if a private server costs Robux, Roblox Plus members can access paid private servers at no cost. However, the revenue share model remains intact; developers are still paid for the time Roblox Plus users spend on their paid servers.

Implementation Steps

To add this functionality to a game, developers must first enable private servers in the Creator Dashboard. The process requires navigating to the game's settings under Audience > Advanced Settings > Private Servers. Once enabled, developers can integrate the purchase prompt using a LocalScript.

The example provided by Roblox demonstrates how to attach the prompt to a UI button. The script calls MarketplaceService:PromptVIPServerPurchase() and wraps the call in a pcall function to handle errors gracefully.

Local MarketplaceService = game:GetService("MarketplaceService")
Local Players = game:GetService("Players")

Local localPlayer = Players.LocalPlayer
Local buyButton = script.Parent.BuyPrivateServerButton

BuyButton.Activated:Connect(function()
	Local ok, err = pcall(function()
		MarketplaceService:PromptVIPServerPurchase(localPlayer)
	End)
	If not ok then
		Warn("Failed to open private server purchase prompt:", err)
	End
End)

This setup ensures that the prompt is available immediately to the player once they interact with the trigger, such as clicking a button.

Known Limitations and Future Plans

While the API solves the issue of prompting new purchases, several limitations are currently present. Developers cannot query a list of private servers a player already owns. This means players must use the new prompt to create a net-new server even if they have an active subscription for a different server instance.

Roblox has confirmed that this functionality is in development. The team is working on a way for players to view and join their existing private servers from within the game interface.

Another missing feature is the notification system for invites. Currently, if a player is invited to a private server, they do not receive an in-game alert. Friends must join through the server owner's profile until this notification system is implemented.

Developers have also noted potential utility for console players. As console users do not have access to the traditional Roblox server list, the ability to purchase a private server from a button within the game could provide a necessary workaround for console-exclusive experiences.

KEEP READING

More from this desk