How to promote Premium for players in your roblox game?

Hey Devs!

This is what I am talking about if you don’t understand:

Let me know how I can do that. Thanks!

Sincerely,

papahetfan

local MPS = game:GetService("MarketplaceService")
local plr = -- directory
MPS:PromptPremiumPurchase(plr)

More documentations such as request methods, and if the player has premium or not, etc etc; here:

1 Like
local MPS = game:GetService("MarketplaceService")

script.Parent.MouseButton1Click:Connect(function()
	MPS:PromptPremiumPurchase(game.Players.LocalPlayer)
end)
1 Like

https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/PromptPremiumPurchase
To prompt a premium membership purchase.
https://developer.roblox.com/en-us/api-reference/property/Player/MembershipType
To retrieve a player’s membership type.
https://developer.roblox.com/en-us/api-reference/event/Players/PlayerMembershipChanged
To detect when a player’s membership type changes.