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

Previous Thread :: Next Thread 
iondriver is not online. iondriver
Joined: 18 Nov 2012
Total Posts: 757
21 Apr 2014 11:05 AM
How can I teleport players given that they are in a certain area. I would like it so they don't have to touch a brick. Could I do it by finding a torso, and if that torso is within x distance, MoveTo(x,x,x)?
Report Abuse
killU1985 is not online. killU1985
Joined: 06 May 2013
Total Posts: 408
21 Apr 2014 11:12 AM
I think that would work
Report Abuse
ajmhm1111 is not online. ajmhm1111
Joined: 22 Jun 2013
Total Posts: 164
21 Apr 2014 11:12 AM
You could use the method Workspace:FindPartsInReigon3()

http://wiki.roblox.com/index.php?title=FindPartsInRegion3_(Method)
http://wiki.roblox.com/index.php?title=Region3

The you could scan all the parts

so the loop could be

POSITION = Vector3.new(1,1,1)
for _,part in pairs(table_returned_by_FindPartsInRegion3) do
if game.Players:GetPlayerFromCharacter(part) then
if part:FindFirstChild("Humanoid") then
part:MoveTo(POSITION)
end
end
end

--ajmhm1111
Report Abuse
iondriver is not online. iondriver
Joined: 18 Nov 2012
Total Posts: 757
21 Apr 2014 11:40 AM
Thanks this helps a lot.
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