Heres the code that controls the beam's color and every tower has a configuration folder with a color3value that determines the beam's color. But the color's always black.
local function fireBullet(tower, target) local bullet = game.Workspace.Bullets.partone:Clone() bullet.Position = tower.Head.Position bullet.Parent = workspace.Camera bullet.CanCollide = false bullet.Anchored = true bullet.CanQuery = false
local towerColor = tower.Config.Trail.Value
bullet.ParticleEmitter.Color = ColorSequence.new(Color3.fromRGB(towerColor),Color3.fromRGB(towerColor))
bullet.Beam.Color = ColorSequence.new(Color3.fromRGB(towerColor),Color3.fromRGB(towerColor))
bullet.CFrame = CFrame.lookAt(bullet.Position, target.HumanoidRootPart.Position)
local projectileTween = TweenService:Create(bullet, TweenInfo.new(.35), {Position = target.HumanoidRootPart.Position})
projectileTween:Play()
Debris:AddItem(bullet, .35)
end
