naintor09
|
  |
| Joined: 07 Sep 2011 |
| Total Posts: 59 |
|
|
| 06 Nov 2017 11:49 PM |
Is there any way to get the players current zoom distance?
I like Roblox. |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2017 03:18 AM |
Not sure what you mean by 'Zoom distance' but I'm gonna guess you're referring to the FieldOfView which is a property of the Camera (changing the FieldOfView induces the effect of zooming) .
local currentFOV = workspace.CurrentCamera.FieldOfView |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 07 Nov 2017 04:07 AM |
find the distance between the camera and the head
so something like
distance = (camera.CFrame.p - head.Position).magnitude
print(distance)
just define camera and head |
|
|
| Report Abuse |
|
|