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
|
  |
| Joined: 06 May 2013 |
| Total Posts: 408 |
|
| |
|
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
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
| |
|