|
| 04 Nov 2015 08:18 PM |
Hey guys, I cant figure out my script wont teleport everyone it only teleports me here it is. Paying $100 Robux for who fixes it! <3
local TeleportAll = function(Integer) for Index, Value in pairs(Game:GetService("Players"):GetPlayers()) do Game:GetService("TeleportService"):Teleport(Integer, Value.Character) end end TeleportAll(1818) |
|
|
| Report Abuse |
|
|
namerplz
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 91 |
|
| |
|
| |
|
|
| 04 Nov 2015 08:20 PM |
local TeleportAll = function(Integer) for Index, Value in pairs(Game:GetService("Players"):GetPlayers()) do Game:GetService("TeleportService"):Teleport(Integer, Value) end end TeleportAll(1818) |
|
|
| Report Abuse |
|
|
|
| 04 Nov 2015 08:25 PM |
| This only teleports me. I need it to teleport every one. |
|
|
| Report Abuse |
|
|
namerplz
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 91 |
|
|
| 04 Nov 2015 08:27 PM |
gameId = 34234 player = game.Players:GetPlayers()
while wait() do for i = 1, #player do if player[i].Character then game:GetService("TeleportService"):Teleport(gameId, player[i].Character) end end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Nov 2015 08:31 PM |
| well unless that was his intent on when you join a server it instantly teleports you. |
|
|
| Report Abuse |
|
|
namerplz
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 91 |
|
|
| 04 Nov 2015 08:32 PM |
I think is intent is to teleport players to his game.
How is it bad? |
|
|
| Report Abuse |
|
|
namerplz
|
  |
| Joined: 08 Jul 2011 |
| Total Posts: 91 |
|
| |
|
|
| 04 Nov 2015 08:39 PM |
| The script only teleports me not all the player c.c |
|
|
| Report Abuse |
|
|
iSymon
|
  |
| Joined: 19 Nov 2011 |
| Total Posts: 1023 |
|
|
| 04 Nov 2015 08:53 PM |
| I hope you know you don't teleport the character. |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 04 Nov 2015 09:05 PM |
function teleportAll(placeID) for i,v in next, game.Players:GetPlayers() do game:GetService("TeleportService"):Teleport(placeID, v) end end
teleportAll(1818) --change here
--Will teleport everyone to 1818. |
|
|
| Report Abuse |
|
|
iSymon
|
  |
| Joined: 19 Nov 2011 |
| Total Posts: 1023 |
|
|
| 04 Nov 2015 09:11 PM |
| You basically coded what I was saying. He was trying to teleport the Character to another place lol. |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 04 Nov 2015 09:20 PM |
Yah, I was reading through all the examples and I was like... why are you guys teleporting the character. I just removed the local teleportall = function cuz i don't like that I just do function() and I made his code simpler.
#900 POSTS |
|
|
| Report Abuse |
|
|