I made this script that locks the player's cam distance to 10 which is only to avoid zooming in and out by accident. How can I make it so when the player clicks again, it lets him/her use the scrolling to zoom in and out?
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function(click)
player.CameraMaxZoomDistance = 10
end)
