of     2   
chevron_rightchevron_rightchevron_right

Firebeats121
#140031973Friday, July 11, 2014 11:00 PM GMT

for i,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == BrickColor.new("White") then v.Character.Torso.CFrame = CFrame.new(Spot1) elseif v.TeamColor == BrickColor.new("Bright red") then v.Character.Torso.CFrame = CFrame.new(Spot2) elseif v.TeamColor == BrickColor.new("Dark Green") then v.Character.Torso.CFrame = CFrame.new(Spot3) end end its not teleporting at all.... I have no idea why its not (It works in solo mode)
Lacryma
#140032197Friday, July 11, 2014 11:03 PM GMT

what is spot1 spot2 spot3 how many times are you running this or is this linked to an event.
AnonyAnonymous
#140032217Friday, July 11, 2014 11:03 PM GMT

Is it killing the "Character"?.
Firebeats121
#140032734Friday, July 11, 2014 11:09 PM GMT

Here is the whole script. The teleportation doesn't kill but the fall does. It is also supposed to be a one time event. Spot1= Vector3.new(10,10,10) Spot2= Vector3.new(30,30,30) Spot3= Vector3.new(20,20,20) --[[game.Players.PlayerAdded:connect(function() local num = game.Players:GetPlayers() -- num is an array if num[1] == nil then -- If there is no more than 1 Player in the array script.Parent.Sound:Play() wait(20) script.Parent.Sound:Stop() end end)--]] for i,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == BrickColor.new("White") then v.Character.Torso.CFrame = CFrame.new(Spot1) elseif v.TeamColor == BrickColor.new("Bright red") then v.Character.Torso.CFrame = CFrame.new(Spot2) elseif v.TeamColor == BrickColor.new("Dark Green") then v.Character.Torso.CFrame = CFrame.new(Spot3) end end function GameGuns() wait(3) end wait() function GameEnd() wait(3) end
LegendaryAccount
#140034725Friday, July 11, 2014 11:29 PM GMT

why not :MoveTo(Spot)
Firebeats121
#140035531Friday, July 11, 2014 11:38 PM GMT

how would I change the right cframe then?
Firebeats121
#140035602Friday, July 11, 2014 11:38 PM GMT

And besides I don't want the character to walk there. I want them to instantly teleport.
LegendaryAccount
#140035786Friday, July 11, 2014 11:40 PM GMT

if you do it to the humanoid it will walk there if you do it to the chatactor it will tele v.Character:MoveTo(Spot3)
LegendaryAccount
#140036296Friday, July 11, 2014 11:46 PM GMT

if it did not work above do v:MoveTo(Spot1)
Firebeats121
#140036757Friday, July 11, 2014 11:51 PM GMT

its still not working here is the whole thing... Spot1= Vector3.new(10,10,10) Spot2= Vector3.new(30,30,30) Spot3= Vector3.new(20,20,20) --[[game.Players.PlayerAdded:connect(function() local num = game.Players:GetPlayers() -- num is an array if num[1] == nil then -- If there is no more than 1 Player in the array script.Parent.Sound:Play() wait(20) script.Parent.Sound:Stop() end end)--]] for i,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == BrickColor.new("White") then v:MoveTo(Spot1) elseif v.TeamColor == BrickColor.new("Bright red") then v:MoveTo(Spot2) elseif v.TeamColor == BrickColor.new("Dark Green") then v:MoveTo(Spot3) end end function GameGuns() wait(3) end wait() function GameEnd() wait(3) end
sycips
#140037654Saturday, July 12, 2014 12:01 AM GMT

When a server starts online, there's only one player and no character. In other words, I suppose this is no local but normal script and youve put it in workspace or serverscriptstorage... Theres nothing to teleport! Instead, make a function and put the content of the for loop in the function. Make a connection to the function with the PlayerAdded event, and I think itll work! I hope youre following me :P ~sycips~
Firebeats121
#140037827Saturday, July 12, 2014 12:03 AM GMT

so what you are saying is put that small part in a local script, and add a PlayerAdded event? Right?
Firebeats121
#140038328Saturday, July 12, 2014 12:09 AM GMT

or do I trade it out
LegendaryAccount
#140038517Saturday, July 12, 2014 12:12 AM GMT

#IgnoreMe
Firebeats121
#140039043Saturday, July 12, 2014 12:18 AM GMT

I didn't ignore you I tried both things that you suggested.
AnonyAnonymous
#140039832Saturday, July 12, 2014 12:26 AM GMT

its still not working here is the whole thing... Spot1= Vector3.new(10,10,10) Spot2= Vector3.new(30,30,30) Spot3= Vector3.new(20,20,20) --[[game.Players.PlayerAdded:connect(function() local num = game.Players:GetPlayers() -- num is an array if num[1] == nil then -- If there is no more than 1 Player in the array script.Parent.Sound:Play() wait(20) script.Parent.Sound:Stop() end end)--]] for i,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == BrickColor.new("White") then v.Character:MoveTo(Spot1) elseif v.TeamColor == BrickColor.new("Bright red") then v.Character:MoveTo(Spot2) elseif v.TeamColor == BrickColor.new("Dark Green") then v.Character:MoveTo(Spot3) end end function GameGuns() wait(3) end wait() function GameEnd() wait(3) end
Firebeats121
#140040268Saturday, July 12, 2014 12:31 AM GMT

Didn't work should I instead do --[[game.Players.PlayerAdded:connect(function() local num = game.Players:GetPlayers() -- num is an array if num[1] == if v.TeamColor == BrickColor.new("White") then v.Character:MoveTo(Spot1) elseif v.TeamColor == BrickColor.new("Bright red") then v.Character:MoveTo(Spot2) elseif v.TeamColor == BrickColor.new("Dark Green") then v.Character:MoveTo(Spot3) -- If there is no more than 1 Player in the array script.Parent.Sound:Play() wait(20) script.Parent.Sound:Stop() end end end end)--]]
Firebeats121
#140040484Saturday, July 12, 2014 12:33 AM GMT

Nevermind that didn't work
AnonyAnonymous
#140040914Saturday, July 12, 2014 12:37 AM GMT

TeamOne = game.Teams.TeamNameHere for _,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == TeamOne.TeamColor then v.Name.Character:MoveTo(Spot1) end end
Firebeats121
#140041686Saturday, July 12, 2014 12:45 AM GMT

woudl I do. TeamOne.TeamColor("White") ?
Firebeats121
#140041738Saturday, July 12, 2014 12:46 AM GMT

and its multiple people, so that could also be an issue.
AnonyAnonymous
#140041937Saturday, July 12, 2014 12:48 AM GMT

No, using something like, if v.TeamColor == game.Teams.TeamNameHere.Teamcolor then end will already retrieve and match the TeamColors.
AnonyAnonymous
#140042018Saturday, July 12, 2014 12:48 AM GMT

*TeamColor
Firebeats121
#140043261Saturday, July 12, 2014 1:00 AM GMT

well now I am lost for _,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == game.Teams.Cool.TeamColor then if v.TeamColor == TeamOne.TeamColor then v.Name.Character:MoveTo(Spot1) end end end
Lacryma
#140085451Saturday, July 12, 2014 12:33 PM GMT

You need to connect the tp'ing to an actual event. When do you need it to function? And don't use the recent code, it's stupid.

    of     2   
chevron_rightchevron_rightchevron_right