local W={}function W.new(w,Z,d)return setmetatable({Rig=w,OrigHipC0=Z.C0,OrigKneeC0=d.C0,FootPos=Vector3.new(0,0,0),FootTarget=Vector3.new(0,0,0);StepStart=Vector3.new(0,0,0);StepStartTick=tick();StepTime=.2,Planted=true,OtherLeg=nil,Hip=Z;Knee=d},{__index=W})end function W.setOtherLeg(w,W)w.OtherLeg=W return w end return W
local Leg = {}

function Leg.new(rig,hip,knee)
	return setmetatable({
		Rig = rig,

		OrigHipC0 = hip.C0,
		OrigKneeC0 = knee.C0,

		FootPos = Vector3.new(0,0,0),
		FootTarget = Vector3.new(0,0,0),
		StepStart = Vector3.new(0,0,0),
		StepStartTick = tick(),
		StepTime = 0.2,

		Planted = true,

		OtherLeg = nil,

		Hip = hip,
		Knee = knee
	},{__index = Leg})
end

function Leg:setOtherLeg(otherleg)
	self.OtherLeg = otherleg

	return self
end

return Leg