lastpoint=Vector3.new(0,0,0)leds={}function makeled()tip=script.Parent:FindFirstChild("\084\105\112")if tip~=nil then off=(tip.Mesh.Scale.z/tip.Size.z)/2 point=(tip.CFrame*CFrame.new(0,0,-off)).p unit=(lastpoint-point).unit mag=(lastpoint-point).magnitude if mag>1 then middle=lastpoint-unit*(mag/2)cf=CFrame.new(middle,point)local E=Instance.new("\080\097\114\116")E.Name="\076\101\100"E.Anchored=true E.CanCollide=false E.Size=Vector3.new(1,1,1)E.BrickColor=tip.BrickColor E.TopSurface=0 E.BottomSurface=0 local J=Instance.new("\083\112\101\099\105\097\108\077\101\115\104")J.MeshType="\066\114\105\099\107"J.Scale=Vector3.new(.3,.3,mag)/E.Size J.Parent=E E.Parent=workspace E.CFrame=cf table.insert(leds,E)lastpoint=point end end end function fade()for E,J in pairs(leds)do if J~=nil then J.Transparency=J.Transparency+.04 if J.Transparency>1 then J:remove()end end end end while true do makeled()wait(.004)fade()end

lastpoint = Vector3.new(0, 0, 0)
leds = {}
function makeled()
	tip = script.Parent:FindFirstChild("Tip")
	if tip~= nil then
		off = (tip.Mesh.Scale.z/tip.Size.z)/2
		point = (tip.CFrame*CFrame.new(0, 0, -off)).p
		unit = (lastpoint - point).unit
		mag = (lastpoint - point).magnitude
		if mag>1 then
			middle = lastpoint-(unit*(mag/2))
			cf = CFrame.new(middle, point)
			local l = Instance.new("Part")
			l.Name = "Led"
			l.Anchored = true
			l.CanCollide = false
			l.Size = Vector3.new(1, 1, 1)
			l.BrickColor = tip.BrickColor
			l.TopSurface = 0
			l.BottomSurface = 0
			local m=  Instance.new("SpecialMesh")
			m.MeshType = "Brick"
			m.Scale = Vector3.new(.3, .3, mag)/l.Size
			m.Parent = l
			l.Parent = workspace
			l.CFrame = cf
			table.insert(leds, l)
			lastpoint = point
		end
	end
end
function fade()
	for i, v in pairs(leds) do
		if v~= nil then
			v.Transparency = v.Transparency+.04
			if v.Transparency>1 then
				v:remove()
			end
		end
	end
end

while true do
	makeled()
	wait(.004)
	fade()
end






