toflyc
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 985 |
|
|
| 07 Aug 2013 02:33 AM |
| I don't understand how to get random players teleported. If you can send me the script. |
|
|
| Report Abuse |
|
|
WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 07 Aug 2013 02:45 AM |
local randomplayer = game.Players[math.random(1,game.Players:GetPlayers())].Character
there, a random player |
|
|
| Report Abuse |
|
|
toflyc
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 985 |
|
| |
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 07 Aug 2013 02:50 AM |
player = game.Players:GetPlayers() local randomPlayer = players[math.random(1,#players)] if randomPlayer.Character then local randomCharacter = randomPlayer.Character |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 07 Aug 2013 02:51 AM |
player = game.Players:GetPlayers() local randomPlayer = players[math.random(1,#players)] if randomPlayer.Character then local randomCharacter = randomPlayer.Character end
-- Forgot an end. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 02:51 AM |
@wishnite At least help him out -.- local randomplayer = game.Players[math.random(1,game.Players:GetPlayers())].Character randomplayer:MoveTo(Vector3.new(1,1,1)) |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
| |
|
toflyc
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 985 |
|
|
| 07 Aug 2013 02:57 AM |
| Now, how do you get it to teleport? |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 07 Aug 2013 03:01 AM |
player = game.Players:GetPlayers() local randomPlayer = players[math.random(1,#players)] if randomPlayer.Character then local randomCharacter = randomPlayer.Character randomCharacter:MoveTo(Vector3.new(0,0,0)) end
|
|
|
| Report Abuse |
|
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 07 Aug 2013 03:02 AM |
| randomCharacter:MoveTo(Vector3.new(0, 0, 0)) |
|
|
| Report Abuse |
|
|
toflyc
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 985 |
|
| |
|