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.
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.
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.
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
Thanks for the help! these are here so i have more than 40 characters