PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

MembershipType

Player

MembershipType

The MembershipType Player property can be used to determine the membership type of the player. It holds an Enum of the account’s membership type (NBC, BC, TBC and OBC). The enum held is Enum/MembershipType.

##Note
This property can only be read from to determine membership. It cannot be set to another membership type. The property can only be changed via CoreScripts using Player/SetMembershipType - which are not accessible.


Code Samples


How to Check Player Membership Status

The below example would print

User has regular Builder’s Club!

if the recently added player has a regular BC subscription.

game.Players.PlayerAdded:Connect(function(p)
	if p.MembershipType == Enum.MembershipType.BuildersClub then
		print("User has regular Builder's Club!")
	end
end)