Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Check if a player has bc?

I have no knowledge about this, if anyone can teach me how I would appreciate it.

2 answers

✓ Accepted answer

###Player

The Player object has a property called MembershipType. This is a read-only property that returns a Enumerical Value (Enum) of their membership type.

It'll return the membership type that you are.

###Solution

We can hook it up to a PlayerAdded event to get their membership type.

game.Players.PlayerAdded:Connect(function(plr)
	print(plr.MembershipType) 
end)

5 comments

0

Is that correct? For me it returns Enum.MembershipType.None

0

The article i used was out of date, just updated it now to "None". In all their APIs it returns 1/2/3 so i;m certain thats right

0

Weird. For me it returns the enum. Not 1/2/3

0

That's pretty odd, i'll update it just incase. Either way it's still easy to tell which one it is lol

0

Aight man! Have a good one.

This is quite simple. A google search gave me the answer! Here's a link to a website I found that covers it. https://www.robloxdev.com/api-reference/property/Player/MembershipType

If you can't be bothered to read trough that here's the function I used that I called upon the player inside of players folder. MembershipType A example on how to see what Membership somebody is you can do it like this.

print(game.Players.LocalPlayer.MembershipType)

Have a great day!

2 comments

0

Thanks!

0

If this was the solution please Tick it as the answer.

This discussion is preserved as it was. New answers, comments, and votes are closed.