-- check if Camera is zoomed into first person

local function checkFirstPerson()
	toggleViewmodel(((Camera.Focus.Position - Camera.CFrame.Position).magnitude <= 1) and not Character:GetAttribute("Ragdoll"))
end

local function checkPlayerRunning()
	return Humanoid.MoveDirection.Magnitude > 0.1 and IncludeWalkSway and Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall and Humanoid:GetState() ~= Enum.HumanoidStateType.Landed
end


