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: Teleportation

Previous Thread :: Next Thread 
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
06 Mar 2014 02:58 PM
How do I teleport all players to a certain brick
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
06 Mar 2014 03:02 PM
plrs = game.Players:getChildren()
for i = 1, #plrs do
plrs[i].Character:MoveTo(Workspace.NameOfPartHere.Position)
end
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
06 Mar 2014 03:03 PM
Is this ALL players located in server?
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
06 Mar 2014 03:06 PM
Yes.
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
06 Mar 2014 03:07 PM
Well, can you add so that one player is randomly chosen to be a hunter and a hunter is teleported somewhere else.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
06 Mar 2014 03:10 PM
plrs = game.Players:GetChildren())
for I,v in pairs(plrs) do
v.Character:MoveTo(Workspace.PartName.Position)
end
hunter = math.random(1,#plrs)
plrs[hunter].Character:MoveTo(Workspace.Part2Name.Position)

easy
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
06 Mar 2014 03:11 PM
Error at

plrs = game.Players:GetChildren())
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
06 Mar 2014 03:12 PM
plrs = game.Players:getChildren()
for i = 1, #plrs do
plrs[i].Character:MoveTo(Workspace.NameOfPartHere.Position)
end
wait()
plrs = game.Players:getChildren()
for i = 2, #plrs do
plrs[i].Character:MoveTo(Workspace.NameOfOTHERPartHere.Position)
end
Report Abuse
wubbzy301 is not online. wubbzy301
Joined: 15 May 2010
Total Posts: 1188
06 Mar 2014 03:12 PM
Edited!
plrs = game.Players:GetChildren())
plrs = game.Players:GetChildren()

There is 2 of ).
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
06 Mar 2014 03:14 PM
Marl, can you guide me through this on party chat?
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
06 Mar 2014 03:18 PM
er
i can try
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
06 Mar 2014 03:18 PM
Accept me FR, and then party me.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
06 Mar 2014 03:23 PM
local Brick = --Define part to teleport to

for i,v in pairs(game.Players:GetChildren()) do
v.Character.Torso.CFrame = CFrame.new(Brick.Position+Vector3.new(0,5,0))
end

or

local Brick = --Define part to teleport to
local plrs = game.Players:GetChildren()

for i = 1,#plrs do
plrs[i].Character.Torso.CFrame = CFrame.new(Brick.Position+Vector3.new(i*2,5,0))
end
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