|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 01 Jan 2017 07:36 PM |
| how about StarterPlayer > Camera > LockFirstPerson, unless i'm misinterpreting things |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 877 |
|
|
| 01 Jan 2017 07:37 PM |
| The property is found in StarterPlayer. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 01 Jan 2017 07:45 PM |
| Okay, Nevermind, I figured it out. I had to set the cameratype to "Scriptable" |
|
|
| Report Abuse |
|
|