How do I see if a player owns premium?

I was going to make a custom playerlist, but I still want the P showing next to the players name. I found this on scriptinghelpers, but im not sure how to use it:

Enum.MemberShipType.Premium

Any help would be appreciated.

4 Likes

MembershipType is a property of Player, so you can access it the same way you would access any other property, like the player’s UserId.

9 Likes

There is a property part of the Player class that you can use. The property is called MembershipType, and you will want to compare its value to the value of Enum.MembershipType.Premium.

for _, player in pairs(game:GetService('Players'):GetPlayers()) do
   if player.MembershipType == Enum.MembershipType.Premium then
      print(player.Name..' has premium!')
   end
end
13 Likes

Thanks for the help! :smiley: these are here so i have more than 40 characters

2 Likes

Sorry, but cowsoncows already answered

2 Likes