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