local function n(n,t)local H local function B()H={}H.LastUpdate=tick()H.Parts={}for n=1,6,1 do local B=EFFECT_LIB.NewInvisiblePart()B.Transparency=1 local S=Instance.new("\070\105\114\101")S.Color=Color3.new(255,0,127)S.SecondaryColor=Color3.new(255,85,127)S.Heat=5 S.Size=4 S.Parent=B H.Parts[n]=B B.Parent=t end end local function S()local t=EFFECT_LIB.Loop(4)local B=EFFECT_LIB.Loop(.8)for S=1,#H.Parts,1 do H.Parts[S].CFrame=(((n.CFrame*CFrame.Angles(1,math.rad(t*360+(360/#H.Parts)*(S-1)),0))*CFrame.new(0,0,-3))*CFrame.Angles(0,math.rad(90),0))*CFrame.Angles(math.rad(B*-360+S*180),0,0)end end local function Z()t:ClearAllChildren()H=nil end return{Start=B,Update=S,Stop=Z}end return n

local function AttachAuraControl(source_part, eff_cont) --(source_part, effect_container)
	
	local AnimObj
	
	local function Start()
		AnimObj = {}
		AnimObj["LastUpdate"] = tick()
		
		AnimObj["Parts"] = {}
		
		for i = 1, 6 do
			local np = EFFECT_LIB.NewInvisiblePart()
			np.Transparency = 1
			
			local fire = Instance.new("Fire")
            fire.Color = Color3.new(255, 0, 127)
            fire.SecondaryColor = Color3.new(255, 85, 127)
            fire.Heat = 5
            fire.Size = 4
            fire.Parent = np
			
			AnimObj["Parts"][i] = np
	
			np.Parent = eff_cont
		end
	end
	
	local function Update()
		local loop = EFFECT_LIB.Loop(4)
		local loop2 = EFFECT_LIB.Loop(0.8)
		
		for i = 1, #AnimObj["Parts"] do
			AnimObj["Parts"][i].CFrame = source_part.CFrame * CFrame.Angles(1, math.rad(loop * 360 + (360 / #AnimObj["Parts"] * (i - 1))), 0) * CFrame.new(0, 0, -3) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(loop2 * -360 + (i * 180)), 0, 0)
		end
	end
	
	local function Stop()
		eff_cont:ClearAllChildren()
		AnimObj = nil
	end
	
	return {Start = Start, Update = Update, Stop = Stop}
end

return AttachAuraControl
