Hey Devs!
This is what I am talking about if you don’t understand:
Let me know how I can do that. Thanks!
Sincerely,
Hey Devs!
This is what I am talking about if you don’t understand:
Let me know how I can do that. Thanks!
Sincerely,
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:
local MPS = game:GetService("MarketplaceService")
script.Parent.MouseButton1Click:Connect(function()
MPS:PromptPremiumPurchase(game.Players.LocalPlayer)
end)
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.