generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Camera Zoom

Previous Thread :: Next Thread 
naintor09 is not online. 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
HardCoreDev is not online. HardCoreDev
Joined: 19 Nov 2015
Total Posts: 112
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image