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

How can you access to see if a player is Builder Club or not?

Asked by 6 years ago
Edited 6 years ago

I wanted to have a special area just for builder club. But I don't know hot to check if they are.

2 answers

Log in to vote
0
Answered by
OfcPedroo 396 Moderation Voter
6 years ago
Edited 6 years ago

I'll help ya, NewRobloxhighschool!

So, I'll give an example there down.

function code()
    --code goes here
    print("code!")
end



--when a player is added, get the player.
game.Players.PlayerAdded:connect(function(p)
    --the actual part that you want, where it checks if player has builder's club.
    if p.MembershipType == Enum.MembershipType.BuildersClub then
        function code()

--But i'll also add to obc and tbc, so

    elseif p.MembershipType == Enum.MembershipType.TurboBuildersClub then
        function code()

    elseif p.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
        function code()

--but if player hasn't builders club, then do nothing
--actually this last part isn't necessary and you could just remove! XD
    elseif p.MembershipType == Enum.MembershipType.None then

    end
end)
0
If this works (and I'm sure it works, because it's tested), please mark as the correct answer! :D OfcPedroo 396 — 6y
0
d'aw, you sniped me. good job, though. DropshipPilot 148 — 6y
0
xD thx ;) OfcPedroo 396 — 6y
Ad
Log in to vote
1
Answered by 6 years ago

This is easy!

Every Player object has a property called "Membership Type" that denotes what level of membership a player has.

If this area features a touch door, you'd likely want to use :GetPlayerFromCharacter() to find the player, and then .MembershipType to go from there.

You'll have to use a MembershipType Enum though when checking it with logic statements like "if/then".

Search for "membershipType" on this page under "properties", and click on it: http://wiki.roblox.com/index.php?title=API:Class/Player

Also, looking through the Class Reference on the Wiki will show you tons of stuff you can do with Roblox objects you might not have originally thought possible. I recommend doing some exploring!

Hope this helped!

Answer this question