|
| 26 Dec 2013 03:56 PM |
i got the teleportservice thing done. but i'm still new to the whole lua scene and i'd like to learn how to teleport everyone. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 26 Dec 2013 04:43 PM |
| 20 pages searched. + what's the point if I don't learn the method? |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 04:47 PM |
Use pairs.
for i, v in pairs(game.Players:GetPlayers()) do -- Tables!! -- do whatever, v is the player end
Iterates through the GetPlayers table. |
|
|
| Report Abuse |
|
|
Merilo
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 500 |
|
|
| 26 Dec 2013 04:47 PM |
placeID = 9154968 for i, v in pairs (game.Players:GetPlayers()) do game:GetService("TeleportService"):Teleport(placeID, v.Character) end
--Replace placeID with the ID of the place you want to teleport people to |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 04:47 PM |
| Trollin it at places, is what you probably will do |
|
|
| Report Abuse |
|
|
Merilo
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 500 |
|
|
| 26 Dec 2013 04:48 PM |
| Yes, well, why would you not do that? |
|
|
| Report Abuse |
|
|
Merilo
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 500 |
|
|
| 26 Dec 2013 04:49 PM |
| Power in the hands of few is dangerous, power in the hands of many can be helpful. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 04:53 PM |
| Now to see the innards of this script. |
|
|
| Report Abuse |
|
|
spiciness
|
  |
| Joined: 02 Apr 2011 |
| Total Posts: 4698 |
|
|
| 26 Dec 2013 09:05 PM |
| http://www.roblox.com/ForceTeleportation-item?id=136738164 |
|
|
| Report Abuse |
|
|