local function M()if isfirstperson==false then if(camera.focus.p-camera.CFrame.p).magnitude<=1 then enableviewmodel()end elseif(camera.focus.p-camera.CFrame.p).magnitude>1.1 then disableviewmodel()end end
-- check if camera is zoomed into first person
local function checkfirstperson()
	if isfirstperson == false then -- not in first person
		if (camera.focus.p - camera.CFrame.p).magnitude <= 1 then
			enableviewmodel()
		end
	elseif (camera.focus.p - camera.CFrame.p).magnitude > 1.1 then
		disableviewmodel()
	end
end
