The player’s membership has changed to Premium. ![]() You’ll need to use an event called PlayerMembershipChanged, which detects when a Let’s the say a player bought Premium with the PromptPremiumPurchase Modal, and you want to apply the Benefit to them as soon as they purchase it. You can read more about PromptPremiumPurchase here. Game:GetService("MarketplaceService"):PromptPremiumPurchase(player) If you want to prompt the player to buy Premium if they don’t have it, then use the PromptPremiumPurchase Method: You can read more about checking if a player has Premium here. If the Player does not have Premium, then the player will not receive the benefit. The code above checks if the player has a Premium, and gives the benefit. There’s a specific method that all scripters use in order to give only Roblox Premium Members the benefits: if player.MembershipType = then This tutorial assumes you know the basics of Roblox Luau scripting.Īn Explanation on how Developers Give Benefits to Premium Members ![]() Some of you will probably know these methods, but this is a tutorial for those who don’t. I figured it would be nice to show others some ways you could give Roblox Premium Members in-game benefits for your game. ![]() A Guide to Providing Benefits for Roblox Premium Members
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |