I was messing around with my next big game, and I want only TBC and OBC members to be able to play to prevent guests from hacking/ruining others' game experience. Here is my script:
local player = game.Players.LocalPlayer
game.Players.PlayerAdded:connect(function(player)
if player.MembershipType == "None" or "BuildersClub" then
player:Destroy()
else
print (player.Name..'is a tbc/obc member!')
end
end)
Thanks for reading!

3 comments
Thanks, it really helped!
You're welcome.
Whoops, when I posted my answer I didn't see someone else had already posted.