|
| 08 Dec 2013 11:58 AM |
wait(3) local player = game.Players:GetPlayers() for i = 1, #player do player[i].Character.Torso.CFrame = CFrame.new(20, 111, 20) end script:Destroy()
This only works in studio test mode.
I thought maybe it doesn't work cause it waits 3 seconds while the game doesn't have any players, so.... If that is the case:
if game.Players.NumPlayers < 1 then wait(3) local player = game.Players:GetPlayers() for i = 1, #player do player[i].Character.Torso.CFrame = CFrame.new(20, 111, 20) end end script:Destroy()
Help?? |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 12:02 PM |
Neither codes work.
Needed a additional end, aswell. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 12:43 PM |
If NumPlayers < 1 then either the player hasn't been added yet or there are no players so no point in putting a CoordinateFrame on a player's Torso that doesn't exist yet.
Use the CharacterAdded event. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 01:19 PM |
| IF there is one or more players in the game, it teleports -_- |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 01:20 PM |
| then do if game.Players.NumPlayers > 1 then |
|
|
| Report Abuse |
|
|