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 » Scripters
Home Search
 

Re: place all players in server

Previous Thread :: Next Thread 
Packers is not online. Packers
Joined: 14 Sep 2007
Total Posts: 4
04 Dec 2017 01:49 AM
how to make script where it teleports all the players to a place id.

im making my own admin script and i wanna learn how


Report Abuse
Shiro75 is online. Shiro75
Joined: 18 Jan 2010
Total Posts: 587
04 Dec 2017 02:19 AM
1. use the GetChildren function to get the list of all players in the server ## ### # #### to go through all the players in the server 3. for each player (inside the loop), use game:GetService('TeleportService'):Teleport(placeid, player)
Report Abuse
Packers is not online. Packers
Joined: 14 Sep 2007
Total Posts: 4
04 Dec 2017 02:30 AM
ooo okay so like

game:GetService('TeleportService'):Teleport(415795179, packers) ??


Report Abuse
Packers is not online. Packers
Joined: 14 Sep 2007
Total Posts: 4
04 Dec 2017 02:32 AM
ok so i tried running the script in the developer console on my friend while we were in a game, and it just teleported me instead of him..


Report Abuse
decla123 is online. decla123
Joined: 08 Jun 2011
Total Posts: 112
04 Dec 2017 03:39 AM
local placeId = 0
local service = game:GetService("TeleportService")

function teleportAll()
local plrs = game.Players:GetChildren()
for i = 1, #plrs do
service:Teleport(plrs[i], placeId)
end
end

then use a function caller.



* plz fix anything if i messed up xD
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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