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
 

Re: How would I teleport someone to a certain..

Previous Thread :: Next Thread 
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
11 May 2014 04:28 PM
Location based on their team? I already got the teleport part down, but would I use

"if v.TeamColor = Teamcolor.new("Bright red")" or something?
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
11 May 2014 04:30 PM
nb`
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
11 May 2014 04:41 PM
b3
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
11 May 2014 04:46 PM
g = game.Players:GetPlayers()

for _, v in pairs(g) do
if v.TeamColor == "" then
v.Character.Torso.CFrame = CFrame.new(0,0,0)
elseif v.TeamColor == "" then
v.Character.Torso.CFrame = CFrame.new(0,0,0)
end


--edit the CFrame values and the TeamColor values. Add more elseifs for more teams.
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
11 May 2014 04:46 PM
^^^
Report Abuse
aleksa12432 is not online. aleksa12432
Joined: 07 Jun 2012
Total Posts: 81
11 May 2014 04:47 PM
TeamColor is a BrickColor value.
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
11 May 2014 04:47 PM
You dont need BrickColor.new("Color").
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
11 May 2014 05:09 PM
for _,v in ipairs(game.Players:GetPlayers()) do
if v.TeamColor == "Bright red" then
if v.Character.Parent == Workspace then
v.Character:MoveTo(Vector3.new(1,1,1)
end
elseif v.TeamColor == "Really black" then
if v.Character.Parent == Workspace then
v.Character:MoveTo(Vector3.new(10,10,10)
end
end
end
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