VitimanA
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 869 |
|
|
| 26 Nov 2011 11:59 AM |
| is it possible to make a script that tells if a brick is (a certain distance) in front of you? i tried using magnitude but it tells when a brick is around you |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2011 12:22 PM |
while wait(1) do print(part.CFrame.p-workspace.vitimana.Torso.CFrame.p).magnitude end |
|
|
| Report Abuse |
|
|
VitimanA
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 869 |
|
|
| 26 Nov 2011 01:30 PM |
| yeah but that would tell the distance of the around the torso. is it possible to only tell the distance of a brick if it's roughly in front of you? |
|
|
| Report Abuse |
|
|
eJorge
|
  |
| Joined: 09 Jun 2011 |
| Total Posts: 5966 |
|
| |
|
chao50
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 1058 |
|
|
| 26 Nov 2011 02:26 PM |
| Find the bricks position, then subtract from your position. I think that would work with vector3.... |
|
|
| Report Abuse |
|
|