brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 08 Feb 2014 06:02 PM |
I know this wont work but it'll give you the idea of what I'm trying to do. Usually people check if the torso is near the object, but I want to make it check the camera position instead. Any idea how?
Cam = Workspace.CurrentCamera Part = Workspace["TestPart"]
while wait() do if (Cam.Position - Part.Position).magnitude < 30 then print("Working") end end |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2014 06:03 PM |
The camera is not a physical object.
me>lin beifong>everyone else>you |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 08 Feb 2014 06:05 PM |
| You're telling me there's no way of doing this? |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2014 06:11 PM |
Yup.
me>lin beifong>everyone else>you |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 08 Feb 2014 06:25 PM |
| if (Cam.CoordinateFrame.p - Part.Position).magnitude <30 then |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
| |
|