I wanted to have a special area just for builder club. But I don't know hot to check if they are.
How can you access to see if a player is Builder Club or not?
2 answers
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)
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!
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
If this works (and I'm sure it works, because it's tested), please mark as the correct answer! :D
d'aw, you sniped me. good job, though.
xD thx ;)