local function x()toggleViewmodel((Camera.Focus.Position-Camera.CFrame.Position).magnitude<=1 and not Character:GetAttribute("\082\097\103\100\111\108\108"))end local function k()return Humanoid.MoveDirection.Magnitude>.1 and(IncludeWalkSway and(Humanoid:GetState()~=Enum.HumanoidStateType.Freefall and Humanoid:GetState()~=Enum.HumanoidStateType.Landed))end
-- 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
