Foot attachment for ikcontrol is going up to torso. (inverse kinematics)

i wanted to add an offset to my attachment but every time i add it my legs go up to my torso like this and the attachment goes to the torso as well:

image
https://gyazo.com/de647653daedf9978c592543709d0540

local module = {}

local maxRayDown = -15
local footSurfaceOffset = Vector3.new(0,0.15,0)

module.setupIKControllers = function(c)
	local h = c.Humanoid
	local defaultHipHeight = c.Humanoid.HipHeight

	module.LeftIKController = Instance.new("IKControl", h)
	module.RightIKController = Instance.new("IKControl", h)
	module.LeftIKController.Name = "LeftIKController"
	module.RightIKController.Name = "RightIKController"

	module.LeftIKController.ChainRoot = c.LeftUpperLeg
	module.LeftIKController.EndEffector = c.LeftFoot
	module.RightIKController.ChainRoot = c.RightUpperLeg
	module.RightIKController.EndEffector = c.RightFoot

	--setting up ik's
	module.LeftIK = Instance.new("Attachment", c.LeftFoot)
	module.RightIK = Instance.new("Attachment", c.RightFoot)
	module.LeftIK.Name = "LeftIK"
	module.RightIK.Name = "RightIK"
	module.LeftIK.WorldPosition = c.LeftFoot.Position + footSurfaceOffset
	module.RightIK.WorldPosition = c.RightFoot.Position + footSurfaceOffset

	--assigning targets
	module.LeftIKController.Target = module.LeftIK
	module.RightIKController.Target = module.RightIK
end

return module