How would I make a buy premium pop up when someone clicks on the gui?
2 Likes
I would suggest trying to look on Youtube for a better way of learning how to use premium benefits before making a post.
I dont want my game to be only premium though
It lists over how to use the prompt function for premium membership, not just game accesses.
Honestly its a poorly titled video.
you can use
game:GetService("MarketplaceService"):PromptPremiumPurchase(player)
you can also use this to check when the purchase is done
game:GetService("MarketplaceService").PromptPremiumPurchaseFinished(function(player)
if player.MembershipType == Enum.MembershipType.Premium then
--Player bought premium
end
end)
You can check out this page for more info on adding premium benefits to your game: MarketplaceService | Documentation - Roblox Creator Hub
2 Likes