Taser Beam Doesn't Go Through

Hi! So I made a taser and when you click on it, it shoots a small beam out. Well, when I click on it to tase someone behind me, the beam doesn’t go through me. I have can collide off and can query off but it still doesn’t seem to work.

This is my beam part script.

function VisualizeRaycast(TheRaycast)
	local distance = (Handle.FireFrom.WorldPosition - TheRaycast.Position).Magnitude
	local p = Instance.new("Part")
	p.FormFactor = "Custom"
	p.TopSurface = "Smooth"
	p.BottomSurface = "Smooth"
	p.Anchored = true
	p.CanCollide = false
	p.Locked = true
	p.Size = Vector3.new(0.1, 0.1, distance)
	p.CFrame = CFrame.lookAt(Handle.FireFrom.WorldPosition, TheRaycast.Position)*CFrame.new(0, 0, -distance/2)
	p.Color = Color3.fromRGB(0, 243, 255)
	p.Material = ('SmoothPlastic')
	p.Transparency = 0
	p.Parent = game.Workspace

Blacklist/filter the LocalPlayer’s Character as well as the Taser from the raycast.

RaycastParametres.FilterDescendantsInstances = {Character, Taser}


Where do I put that line of script? Also tysm.