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: Teleporting

Previous Thread :: Next Thread 
xbladex7 is not online. xbladex7
Joined: 13 Mar 2009
Total Posts: 364
06 Oct 2012 02:28 PM
How would i teleport teams back to a spawn after a timer is up any help please i would really appreciate it :)
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
06 Oct 2012 02:57 PM
Okay, you figure the timer out yourself.

for i, v in pairs(game.Players:GetPlayers()) do
   pcall(function() v.Character.Torso.CFrame = INSERTCFRAMEVALUEHERE end)
end

ᶘ ᵒᴥᵒᶅ I'm a dog. Meow.
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
06 Oct 2012 03:00 PM
Loop through the players and use moveto

for i,v in pairs(game.Players:GetChildren()) do
v.Character.Humanoid:MoveTo(game.Workspace.INSERTPARTHERE)
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
06 Oct 2012 04:29 PM
You can do either mine or xxtherobotxx's.
Also, xx, you forgot an end, and GetChildren should be GetPlayers.

ᶘ ᵒᴥᵒᶅ I'm a dog. Meow.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
06 Oct 2012 04:33 PM
@DX, it doesent have to be GetPlayers(), getplayers is better, but doesent have to.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
06 Oct 2012 04:37 PM
It may error though, because if there is a Script inside of Players, it will try to get the Character from it, and fail. Thus, some people may not be teleported.

ᶘ ᵒᴥᵒᶅ I'm a dog. Meow.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
06 Oct 2012 04:44 PM
Ik, thats why i said its best using getplayers instead.Sometimes it works on children but not always....
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