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 » Scripting Helpers
Home Search
 

Re: Camera Max and Min Zoom Distance

Previous Thread :: Next Thread 
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 02:24 PM
I am trying to make it so the player cant zoom in or out, this is what I have in a local script:

wait(2)
workspace.CurrentCamera.CameraType = "Attach"
workspace.CurrentCamera.CameraSubject = workspace.Cam
game.Players.LocalPlayer.CameraMinZoomDistance = 0
game.Players.LocalPlayer.CameraMaxZoomDistance = 0
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 02:41 PM
bump
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 02:45 PM
Bump2
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 02:56 PM
Bump 3....
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
17 Sep 2014 03:01 PM
game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
Should work in theory, but I've had trouble checking for first person in my game.
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 03:02 PM
K thanks i was thinking about doing that
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
17 Sep 2014 03:03 PM
No no, my bad. I think I misunderstood the intent of the script.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
17 Sep 2014 03:03 PM
Do you mean to lock them in first person? Or just to lock them at a certain zoom?
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 03:06 PM
lock them at a certain zoom

i missunderstud what you meant... whoops
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
17 Sep 2014 03:10 PM
I've personally not done much work on the cameras, but surely if you don't want to lock them in first person then you need to set the camera min and max to more than 0?
Report Abuse
KOzero is not online. KOzero
Joined: 11 May 2010
Total Posts: 1411
17 Sep 2014 03:13 PM
You need to set them both to 0.5 because that's the lowest it can go.
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 03:15 PM
it doesnt lock...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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