TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
|
| 22 Dec 2013 05:49 AM |
hello guys, could one of u add a part of a script to this which would pick people every 30 secs, thx here is the script
players = game.Players:getPlayers() if #players >= 2 then pickedp1 = players[math.random(1,players)] pickedp2 = players[math.random(1,players)] while pickedp1.Name == pickedp2 do pickedp2 = players[math.random(1,players)] end game.Players:findFirstChild(pickedp1.Name).Character:MoveTo(-47, 35.4, -62.2)--ENTER LOCATION game.Players:findFirstChild(pickedp2.Name).Character:MoveTo(-47, 35.4, -62.2)--ENTER LOCATION end
|
|
|
| Report Abuse |
|
|
TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
| |
|
TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
|
| 22 Dec 2013 05:53 AM |
| btw after 30 secs i want the script to teleport the first 2 players back to a position and it would choose another 2 ect..... |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2013 05:56 AM |
math.random(1,#players)
# needed? |
|
|
| Report Abuse |
|
|
TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
|
| 22 Dec 2013 05:57 AM |
| thx but someone please help |
|
|
| Report Abuse |
|
|
TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
| |
|
|
| 22 Dec 2013 05:59 AM |
...
Did you even read my post? Try it maybe? We help you and not give scripts. |
|
|
| Report Abuse |
|
|
TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
|
| 22 Dec 2013 06:01 AM |
so for all math.random(1,players)] do i need a # ?
|
|
|
| Report Abuse |
|
|
|
| 22 Dec 2013 06:02 AM |
players = game.Players:GetPlayers() if #players >= 2 then pickedp1 = players[math.random(1,#players)] pickedp2 = players[math.random(1,#players)] repeat pickedp2 = players[math.random(1,#players)] until pickedp2.Name ~= pickedp1.Name pickedp1.Character:MoveTo(-47, 35.4, -62.2) pickedp2.Character:MoveTo(-47, 35.4, -62.2) end |
|
|
| Report Abuse |
|
|
TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
|
| 22 Dec 2013 06:03 AM |
| change the whole script to dat ? |
|
|
| Report Abuse |
|
|
TexasOp6
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 162 |
|
|
| 22 Dec 2013 06:04 AM |
| btw will dis teleport the players back to there original position |
|
|
| Report Abuse |
|
|
| |
|