How do you add premium rewards to your game?

I want to make premium rewards.

I don’t know the script for it

I tried to making it but I don’t know what type of value it is.

If someone knows the value of roblox premium then please reply with a script.

Thank you for listening and have a nice day.

3 Likes
if player.MembershipType == Enum.MembershipType.Premium then

Can be used to check if a player has premium.

Got that line from here.

12 Likes

Using Roblox Engine API Reference | Documentation - Roblox Creator Hub you can find “Player” where you can check if a player has Premium using the script mentioned by @Blokav above.

If you want to give a player Premium (He needs to pay), again using Roblox Engine API Reference | Documentation - Roblox Creator Hub you can find “MarketplaceService” and its function called “PromptPremiumPurchase” you can use this script to give a Player a subscription:


game:GetService("MarketplaceService"):PromptPremiumPurchase(Player)

The script I gave you above will give the player the subscription even if the Player already have Premium

1 Like