Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 19 Feb 2012 01:03 PM |
Is there any way to use the teleport service that when the player goes to another place it puts them on a specific team? Because when I type
game:GetService("TeleportService"):TeleportToSpawnByName(18824987, "TeleportSpawn")
and TeleportSpawn on the other place is a team, it still goes to the first spawn. It's spelled correctly and AllowTeamChangeOnTouch is checked.
The reason why I need this is that I have a game that is split in 2 parts. In part 1 the player goes through a cave that teleports them to part 2. Part 2 makes sure that they completed part 1 by checking if teleport service teleported the player to the right team. Part 1 is supposed to teleport the player to spawn "TeleportSpawn", but if the player joins without finishing part 1, it goes to the default spawn. Don't know if this makes sense xD |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 23 Feb 2012 10:27 AM |
| After some testing it still doesen't work. Bump? |
|
|
| Report Abuse |
|
|
|
| 23 Feb 2012 11:18 AM |
This is why I don't use spawns...
Put this script into the spawn:
script.Parent.Touched;connect(function(hit) if hit.Parent:findFirstChild("Humanoid") and game.Players:findFirstChild(hit.Parent.Name) then game.Players:findFirstChild(hit.Parent.Name).TeamColor = game.Teams["TeamNameHere"].TeamColor end end)
And put this script directly into the workspace:
while true do wait(.1) local plrs = game.Players:GetChildren() for i=1,#plrs do if plrs[i].TeamColor == game.Teams["DefaultTeamColorHere"] then plrs[i].Character.Humanoid.Walkspeed = 0 end end end |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 23 Feb 2012 11:47 PM |
That's not the problem I'm having. Here is an example.
I set Place 1 to teleport player to spawn B in place 2.
game:GetService("TeleportService"):Teleport(18824987, "B") spawn B in place 2 is not the default spawn (teams). And it is named B, nothing else in workspace named b. Instead, teleport service sends me directly to spawn A instead of spawn B.
So, Teleport service isnt letting me teleport to spawn B.. How come? By the way, each spawn has a team for it. |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 24 Feb 2012 12:00 AM |
Also tried changing the spawn name to ABC and changing the script to game:GetService("TeleportService"):Teleport(18824987, "ABC")
It teleports me to the correct place, just not the correct spawn |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 24 Feb 2012 04:49 AM |
| Still using CFrames and Vector3s for that. Much easier than the newer scripts. |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 24 Feb 2012 10:32 AM |
:/ I don't think anyone understands me.
I want to use TeleportService to move a player to a different place. The teleport service is set to put the player in spawn B but the game puts the player in spawn A (default spawn). I don't mean teleporting from position to position. Its teleporting from place to place using TeleportService. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 24 Feb 2012 10:42 AM |
Because I don't know how to fix your issue, as I never dealt with TeleportService, before, I normally would not post on a topic like this.
However, the previous answers are all ridiculous and the writers seemed to ignore what you said, except for 'teleport' and 'spawn'. >.>
As he said multiple times...
Let's say that you are in one of his games. He has a teleporter (teleports to another game) on that level. When you walk into that teleporter, the person is moved to a different game, and is placed on a spawn specifically for those that teleport. This means that ONLY the people that teleport using this out-of-game teleporter will be assigned to this team. You can't do that with simply moving the character to the spawn in the game that the person is being teleported to, because you will have no way of knowing that he/she teleported. Again, he wants to use TeleportService and set the person a certain team, when they are moved to the other game, from a different game. |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 24 Feb 2012 10:43 AM |
| What's the difference between Plac and Position? By using Vectro3 you could say Vector3.new(LOCATIONOFSPANWA) and you never will have problems anymore. Just use the torso of your character. That works everytime. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 24 Feb 2012 11:55 AM |
By place we mean GAME. Gah. >.>
A place teleporter! TeleportService..
The difference between place and Position is like saying..
What's the difference between Sword Fight on the Heights IV and Vector3.new(0,5,0)?
There's a HUGE difference. |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 07:48 PM |
| Wait...Is the default team checked as 'AutoAssignable'? If so...That's bad. |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 24 Feb 2012 08:56 PM |
@grimm343 Thanks for making it clear :)
@bballer13sn well i want it so that when the player joins the game, if the player was not teleported from place 1, it sends them to a team called "Do part 1 first!". Because some players can join part 2 without doing part 1 and miss the storyline :/
Is there a way of doing this without checking autoassignable on any of the teams? |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
| |
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 25 Feb 2012 02:15 AM |
| I think this is not allowed because of currency boosting. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 25 Feb 2012 10:13 AM |
The TeleportToSpawnByName method only works on spawns with the Neutral property set to true (checked).
Unfortunately, this means that all teams will usually teleport to one of these Neutral spawns.. |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 25 Feb 2012 08:01 PM |
| Ohh, so what if I put a neutral spawn next to the team spawn that I want to teleport to and make both cancollide false? That may work.. I'm going to go test |
|
|
| Report Abuse |
|
|
Dylanpdx
|
  |
| Joined: 02 Oct 2009 |
| Total Posts: 202 |
|
|
| 25 Feb 2012 08:17 PM |
| Nope, now it only spawns on the neutral spawn. I just wish there was a way to send messages through games.. I'm going to have to give up on this :/ |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2013 04:59 PM |
| I am having this same exact problem >_______< |
|
|
| Report Abuse |
|
|