-- detect if they lock first person mode during a live game

local playerchanged_con = nil
playerchanged_con = player.Changed:Connect(function(property)
	if property == "CameraMaxZoomDistance" or property == "CameraMode" then
		if player.CameraMaxZoomDistance <= 0.5 or player.CameraMode == Enum.CameraMode.LockFirstPerson then
			enableviewmodel()
		end
	end
end)
