BotBit
|
  |
| Joined: 05 Jan 2015 |
| Total Posts: 163 |
|
|
| 10 Jan 2015 11:39 AM |
plrs = game.Players:GetPlayers() target = workspace.Draw.CFrame main = workspace.Main.CFrame
randomPlr = math.random(1,#plrs) chosenPlr = plrs [randomPlr] print(chosenPlr.Name) chosenPlr.Character.Torso.CFrame = target wait(60) chosenPlr.Character.Torso.CFrame = target
^^^ My script, says issue on line 5 with random.... |
|
|
| Report Abuse |
|
|
| 10 Jan 2015 11:43 AM |
| There are probably no players to put in the table. |
|
|
| Report Abuse |
|
BotBit
|
  |
| Joined: 05 Jan 2015 |
| Total Posts: 163 |
|
|
| 10 Jan 2015 11:51 AM |
i added this statement if #plrs > 0 then
i think it fixed. |
|
|
| Report Abuse |
|