generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Check if someone is BC?

Previous Thread :: Next Thread 
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
21 Apr 2014 08:00 PM
I have two versions of a game: BC and NBC. I'd like to teleport the BC players to the BC game if they join the NBC version. Yeah, I'm greedy, I know. Is there a way to do this?
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
21 Apr 2014 08:04 PM
bump
Report Abuse
ImTrollinTheyHating is not online. ImTrollinTheyHating
Joined: 08 Jan 2014
Total Posts: 70
21 Apr 2014 08:05 PM
There are BC door's in model's you could examine.
Report Abuse
ImTrollinTheyHating is not online. ImTrollinTheyHating
Joined: 08 Jan 2014
Total Posts: 70
21 Apr 2014 08:05 PM
Or lemme search wiki 4 u
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
21 Apr 2014 08:07 PM
http://wiki.roblox.com/index.php?title=MembershipType_(Property)
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
21 Apr 2014 08:07 PM
I found it.
Report Abuse
GrantZX is not online. GrantZX
Joined: 18 Apr 2014
Total Posts: 19
21 Apr 2014 08:11 PM
Oooh, yay. I just saw something about Membership in the Object Browser! Put this in a Script. This is what will help:


obc = Enum.Membership.OutrageousBuildersClub
tbc = Enum.Membership.TurboBuildersClub
bc = Enum.Membership.BuildersClub

game.Players.PlayerAdded:connect(function(player)
if player.MembershipType == obc or player.MembershipType == tbc or player.MembershipType == bc then

'teleportation'

end
end)


Just to clarify, this piece of code does not contain the teleportation of the player. This just tests if the player has BC, TBC, or OBC.

The place where I put 'teleportation' was just to signify the place where you would put the teleportation code.
Report Abuse
ImTrollinTheyHating is not online. ImTrollinTheyHating
Joined: 08 Jan 2014
Total Posts: 70
21 Apr 2014 08:13 PM
obc = Enum.Membership.OutrageousBuildersClub
tbc = Enum.Membership.TurboBuildersClub
bc = Enum.Membership.BuildersClub
game.Players.PlayerAdded:connect(function(newP)
if player.MembershipType == obc or player.MembershipType == tbc or player.MembershipType == bc then
game:GetService'TeleportService':Teleport(0000000, newP.Character)
end
end)
Report Abuse
GrantZX is not online. GrantZX
Joined: 18 Apr 2014
Total Posts: 19
21 Apr 2014 08:14 PM
Whoops, where I stated the variables for 'obc', 'tbc', and 'bc', be sure to put "MembershipType", not "Membership".
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image