DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
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 |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
After some testing it still doesen't work. Bump? |
|
|
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 |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
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. |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
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 |
|
CheaterJoin Date: 2007-06-29 Post Count: 5258 |
Still using CFrames and Vector3s for that. Much easier than the newer scripts. |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
:/ 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. |
|
grimm343Join Date: 2008-09-18 Post Count: 2796 |
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. |
|
CheaterJoin Date: 2007-06-29 Post Count: 5258 |
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. |
|
grimm343Join Date: 2008-09-18 Post Count: 2796 |
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. |
|
|
Wait...Is the default team checked as 'AutoAssignable'? If so...That's bad. |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
@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? |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
Bump :/ |
|
CheaterJoin Date: 2007-06-29 Post Count: 5258 |
I think this is not allowed because of currency boosting. |
|
grimm343Join Date: 2008-09-18 Post Count: 2796 |
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.. |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
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 |
|
DylanpdxJoin Date: 2009-10-02 Post Count: 202 |
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 :/ |
|
|
I am having this same exact problem >_______< |
|