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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Between Round Teleport

Previous Thread :: Next Thread 
dewd45 is not online. dewd45
Joined: 08 Mar 2009
Total Posts: 11180
19 Jul 2013 09:09 AM
while true do
wait(65) --time in seconds before the players are sent to location
for _, player in pairs(game.Players:GetPlayers()) do
if player.Character then
player.Character:MoveTo(Vector3.new(89, 7.4, -57)) --set as position for players to go
end
end
end

so i have this script and I'm trying to make it teleport different teams to different locations, but I don't know how.

#swagyolo
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
19 Jul 2013 09:38 AM
After you check to see if the Character exists, you can check the TeamColor property against the TeamColor of one team, then move the Character to that Team's location. Then, use an elseif (if you have more than two teams) to check for the next, and so-on, or (if you have two teams, or have reached your last one), you can use an else (which means 'in all other cases' and move those Players' Characters to their location(s).
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
19 Jul 2013 09:40 AM
Oh, and if you're having trouble figuring out how if-elseif-else or any variation of these work, here's a wiki page:
http://wiki.roblox.com/index.php/Conditional_statement
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