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