Bullet tracers/beam not visible

Hi, so I am making an NPC that shoots people, I am using raycasting to shoot the bullets, I made a bullet tracer but it wont show.

Raycast:

		local RaycastResult = workspace:Raycast(Bot:FindFirstChild('Right Arm').Position, (target.Position - Bot:FindFirstChild('Right Arm').Position) * 300, raycastParams)

Beam:

        local beam = Instance.new("Beam", bullet)
		local a0 = Instance.new("Attachment",bullet)
		a0.Position = Vector3.new(2.25, 0, 0)
		local a1 = Instance.new("Attachment",bullet)
		a1.Position = Vector3.new(0, 0, 0)
		beam.Attachment0 = a0
		beam.Attachment1 = a1
		beam.LightInfluence = 0
		beam.Transparency = NumberSequence.new(1,0)
		beam.CurveSize0 = -2
		beam.CurveSize1 = -2
		beam.Segments = 50
		beam.Width0 = 0.01
		beam.Width1 = 0.1
1 Like

It would be better to use a part as a bullet instead of a beam, you could do a similar thing as done here: How do you visualize a raycast as a part? - #5 by sjr04

Try setting beam.FaceCamera = true

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.