|
| 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 |
|
|
| |
|
|
| 21 Apr 2014 08:05 PM |
| There are BC door's in model's you could examine. |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|