sentry3
|
  |
| Joined: 01 May 2010 |
| Total Posts: 538 |
|
|
| 04 Jun 2016 07:47 PM |
How do I find people in this position and give them ff then when they leave remove it? heres the points--
local p1 = (-27.5, 25.7, 54.5) local p2 = (-76.5, 11.7, -2.5) local region =(p1,p2)
|
|
|
| Report Abuse |
|
|
sentry3
|
  |
| Joined: 01 May 2010 |
| Total Posts: 538 |
|
| |
|
Syntropy
|
  |
| Joined: 16 Mar 2009 |
| Total Posts: 2272 |
|
|
| 04 Jun 2016 08:03 PM |
| There's no way to tell if someone left a region so use magnitude. |
|
|
| Report Abuse |
|
|
sentry3
|
  |
| Joined: 01 May 2010 |
| Total Posts: 538 |
|
|
| 04 Jun 2016 08:06 PM |
| well then... how wud i do that |
|
|
| Report Abuse |
|
|
sentry3
|
  |
| Joined: 01 May 2010 |
| Total Posts: 538 |
|
|
| 04 Jun 2016 08:15 PM |
i did this- Position1 = Vector3.new(-27.5, 25.7, 54.5) Position2 = Vector3.new(-76.5, 11.7, -2.5) print((Position1-Position2).magnitude)
and got this- 76.459136962891
what now? |
|
|
| Report Abuse |
|
|
Syntropy
|
  |
| Joined: 16 Mar 2009 |
| Total Posts: 2272 |
|
|
| 05 Jun 2016 08:46 AM |
Magnitude is the distance in studs two points are. So you set the magnitude to a brick and a player's torso. Experiment with the distance and find a number you're happy with. Then use an if statement to determine if that player is x amount of space away from the brick then they get a shield.
But if this is just a spawn then use a touch instance. |
|
|
| Report Abuse |
|
|