Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Check if a player has bc?

Asked by
a4aw -5
5 years ago

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

2 answers

Log in to vote
1
Answered by
green271 635 Moderation Voter
5 years ago
Edited 5 years ago

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)
0
Is that correct? For me it returns Enum.MembershipType.None casper123123123 357 — 5y
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 green271 635 — 5y
0
Weird. For me it returns the enum. Not 1/2/3 casper123123123 357 — 5y
0
That's pretty odd, i'll update it just incase. Either way it's still easy to tell which one it is lol green271 635 — 5y
0
Aight man! Have a good one. casper123123123 357 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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!

0
Thanks! a4aw -5 — 5y
0
If this was the solution please Tick it as the answer. casper123123123 357 — 5y

Answer this question