Hello im trying to make trail color change when events are fired but it changes trail color to white any solutions?
local event1 = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("TrailToYellow")
local event2 = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("TrailToBlue")
event1.OnServerEvent:Connect(function(player)
print("Yellow")
local Color4 = Color3.new(244, 244, 5)
local Color5 = Color3.new(243, 255, 126)
local zap = player.Character:FindFirstChild("zap")
zap.TrailElectricity.Color = ColorSequence.new(Color4)
zap.TrailElectricityBlur.Color = ColorSequence.new(Color5)
end)
event2.OnServerEvent:Connect(function(player)
print("Blue")
local Color1 = Color3.new(25, 57, 148)
local Color2 = Color3.new(57, 176, 255)
local first = ColorSequence.new(Color1)
local second = ColorSequence.new(Color2)
local zap = player.Character:FindFirstChild("zap")
zap.TrailElectricity.Color = first
zap.TrailElectricityBlur.Color = second
end)