local function k()if isfirstperson==false then if(camera.focus.p-camera.CFrame.p).magnitude<=1 and not character:GetAttribute("\082\097\103\100\111\108\108")then enableviewmodel()end elseif(camera.focus.p-camera.CFrame.p).magnitude>1.1 or character:GetAttribute("\082\097\103\100\111\108\108")then disableviewmodel()end end

local function checkfirstperson()
	if isfirstperson == false then -- not in first person
		if ((camera.focus.p - camera.CFrame.p).magnitude <= 1) and (not character:GetAttribute("Ragdoll")) then
			enableviewmodel()
		end
	elseif ((camera.focus.p - camera.CFrame.p).magnitude > 1.1) or character:GetAttribute("Ragdoll") then
		disableviewmodel()
	end
end


