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: How to prevent Cam from zooming out.

Previous Thread :: Next Thread 
xXStatixCoreXx is not online. xXStatixCoreXx
Joined: 06 Jun 2013
Total Posts: 125
01 Jan 2017 07:21 PM
So, I have never tried using Camera manipulation but I decided to try it out.
So I have my local script.
local cam = workspace.CurrentCamera
cam.CameraType = "Track"
cam.CameraSubject = workspace.Cam1

How would I prevent the player of zooming out. I have already tried doing fieldofview but that seems to not working, and then I also tried CameraMaxZoomDistance in the player's properties, but that doesn't seem to work? Can anyone help me with this?
Report Abuse
Aetasio is online. Aetasio
Joined: 29 Jul 2012
Total Posts: 877
01 Jan 2017 07:23 PM
Navigate to "StarterPlayer", and look for the property: "CameraMaxZoomDistance".

No scripting required, thanks to ROBLOX.
Report Abuse
xXStatixCoreXx is not online. xXStatixCoreXx
Joined: 06 Jun 2013
Total Posts: 125
01 Jan 2017 07:26 PM
@Aetasio I have already stated, that I have tried that. It doesn't seem to help.
The camera is focused on a block. I want to make that block invisible and make the player not able to zoom out of it.
Report Abuse
Aetasio is online. Aetasio
Joined: 29 Jul 2012
Total Posts: 877
01 Jan 2017 07:26 PM
Sorry, didn't read your entire post lool.

You're probably doing something wrong, because it works for me.
Report Abuse
xXStatixCoreXx is not online. xXStatixCoreXx
Joined: 06 Jun 2013
Total Posts: 125
01 Jan 2017 07:32 PM
@Aetasio Idk, I set it to the minimum which is 0.5 it is still able to zoom out. Although the cursor is stuck in the middle of the screen, like it would if it was in first person. :/
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
01 Jan 2017 07:36 PM
how about StarterPlayer > Camera > LockFirstPerson, unless i'm misinterpreting things
Report Abuse
Aetasio is online. Aetasio
Joined: 29 Jul 2012
Total Posts: 877
01 Jan 2017 07:37 PM
Try using the property, "CameraMode". Set it to "LockFirstPerson".

Not sure if that's what you want.
Report Abuse
Aetasio is online. Aetasio
Joined: 29 Jul 2012
Total Posts: 877
01 Jan 2017 07:37 PM
The property is found in StarterPlayer.
Report Abuse
xXStatixCoreXx is not online. xXStatixCoreXx
Joined: 06 Jun 2013
Total Posts: 125
01 Jan 2017 07:41 PM
@ Aetasio I hate to say, but it didn't help. It would work if the camera was "normal" but I have the type of it set to Track and it's focused on a block. I think that's why it's not working. :/
Report Abuse
xXStatixCoreXx is not online. xXStatixCoreXx
Joined: 06 Jun 2013
Total Posts: 125
01 Jan 2017 07:45 PM
Okay, Nevermind, I figured it out. I had to set the cameratype to "Scriptable"
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