generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Teleport All Players

Previous Thread :: Next Thread 
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 02:09 PM
I need help with a script that would teleport all players who are in the game.

--

while true do
wait(900)
Players = game.Players --- And that's where I'm pretty much stuck

game:GetService("TeleportService"):Teleport(154663911, Players)

end

--

So how do I reference all the players and do it all at once?
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 02:12 PM
bump
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
31 Aug 2014 02:14 PM
If you're going to a game, then do this:

while true do
wait(900)
for k, v in pairs(game.Players:GetChildren()) do
game:GetService("TeleportService"):Teleport(154663911, v)
end

I'm not a pro with place teleporting, but that should do the trick.

Have a great day :)
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
31 Aug 2014 02:15 PM
while wait(900) do
for i,v in pairs(game.Players:GetPlayers()) do
game:GetService("TeleportService"):Teleport(154663911, v)
end
end
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 02:19 PM
Thank you
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 02:38 PM
Oh actually nope. Is there a way to make this so that at the click of a gui (with a local script) it places everyone (or the original one in a local script).
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
31 Aug 2014 02:40 PM
script.Parent.TextButton.MouseButton1Click:connect(function()
for k, v in pairs(game.Players:GetChildren()) do
game:GetService("TeleportService"):Teleport(154663911, v)
end
end)

Does that work?

Have a nice day! :)
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 02:58 PM
Nope nothing
Report Abuse
kalkara is not online. kalkara
Joined: 08 Oct 2008
Total Posts: 576
31 Aug 2014 03:35 PM
script.Parent.MouseButton1Click:connect(function()
for k, v in pairs(game.Players:GetChildren()) do
game:GetService("TeleportService"):Teleport(154663911, v)
end
end)
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 03:44 PM
hm seems none of this is working the way I wanted it to.

Okay, instead of doing it like that what about if it was something like:

game.Players.Peach815 -- then the teleport part



(so it makes whatever person that was referenced get teleported to whatever place)
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 04:15 PM
bump on the new question
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 04:57 PM
help please
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 05:59 PM
bump
Report Abuse
peach815 is not online. peach815
Joined: 22 Sep 2012
Total Posts: 29
31 Aug 2014 09:18 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image