#CameraMaxZoomDistance and CameraMinZoomDistance not working, any help?

15 messages · Page 1 of 1 (latest)

warm sun
#

I try to put 0 for both yet they don't work, here is my code:


local function DistortCamera()
    task.wait(0.1)
    game.Workspace.Camera.CameraSubject = CURRENT_VEHICLE.CameraPart
    game.Workspace.Camera.CameraType = Enum.CameraType.Attach
    
    game.StarterPlayer.CameraMaxZoomDistance = 0
    game.StarterPlayer.CameraMinZoomDistance = 0
end```
 Pretty simplistic, everything works but the cameramaxzoomdistance and cameraminzoomdistance , I tried using CurrentCamera and I also tried game:GetService("StarterPlayer"), still didnt work!

Any help? Thanks! :gnomewave:
dense eagle
warm sun
#

i thought this would of worked

#

but i tried and it still doesnt

#

i looked at the properties on starterplayer and it shows 0.5 but does not actually work

#

i can zoom in and out, but i want it only close

dense eagle
#

Be sure to change it for the players affected by it too

game.Players.Localplayer -- If it's for a localscript
warm sun
#

Yup

#

Its a client side script

#

But I'm not to sure why it doesnt work

#

No other script is interefering either so

dense eagle