thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 11 Oct 2013 01:32 PM |
How would I make this script so that if 1 of the players that was teleported to the """Chosen.Character:MoveTo(Vector3.new(-5, 43.6, -65.4))""" die then I want the other one that didn't die to teleport to " Character:MoveTo(Vector3.new(-49.6, 103.49, -114.4))" and makes the loop restart right then.
while true do wait(10) players = game.Players:GetChildren()
for i = 1, 2 do Chosen = players[math.random(1,#players)] Chosen.Character:MoveTo(Vector3.new(-5, 43.6, -65.4)) local h = Instance.new("Hint",Chosen.PlayerGui) local m = Instance.new("Message", Chosen.PlayerGui) for i = 60,0,-1 do wait(1) h.Text = i m.Text = i end
for _,v in pairs (game.Players:GetChildren()) do v.Character:BreakJoints() h.Text = "Back to the lobby to strategies!" m.Text = "Back to the lobby to strategies!" wait(3.5) m:Destroy() h:Destroy() wait(10) end end end |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 11 Oct 2013 01:52 PM |
| table(s), if statement, maybe for statement, condition, moveto, done. |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
Unication
|
  |
| Joined: 29 Mar 2013 |
| Total Posts: 5897 |
|
|
| 11 Oct 2013 02:40 PM |
Spamming help won't help. Logic.
http://www.youtube.com/watch?v=hod0WtYE4SA <-- What's really good!?!?!? |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 11 Oct 2013 03:14 PM |
| You don't help, then get out! |
|
|
| Report Abuse |
|
|