Hello, So yesterday I was making a entity that summons other entities, and then I tried to tween the particle emitter’s color, but I get this error instead.
Oh yeah, i forgot that we can’t tween ColorSequence like that.
There still is a small trick you can use to do it, which is basically to tween a ghost Part color, then replicate the part color to the particle emitter ColorSequence using a loop.
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local Part = Instance.new("Part") --Create a ghost part
Part.Color = Color3.new(1, 1, 1) --Set default part color (same as default particle emitter color)
local Tween = TweenService:Create(Part, TweenInfo.new(5), {Color = Color3.fromRGB(255, 255, 0)}) --Tween part color
local function ReplicateColor() --Replicate part color to your ParticleEmitter Color
model.P300.Attachment.Normal.Color = ColorSequence.new(Part.Color)
task.wait()
end
Tween:Play() --Play Tween
local Connection = RunService.Heartbeat:Connect(ReplicateColor) --Start replicating color
Tween.Completed:Wait() --Wait for tween finish
Connection:Disconnect() --Stop replicating color