Rainbow Tween Particle

Trying to turn this tween into something that works for particles but idk how to use colorsequence with tweens :confused:

local TweenService = game:GetService('TweenService')

local parent = script.Parent

local tweenInfoColor = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, false, 0)

tween = TweenService:Create(parent, tweenInfoColor,{Color = ColorSequence.new(math.random(1, 255), math.random(1, 255), math.random(1, 255) ) })

tween:Play()

Try changing this line to:

local tween = TweenService:Create(parent, tweenInfoColor, {ColorSequence = Color3.fromRGB(1, 255)} --if Color3 doesn't work then try BrickColor

Because you don’t need to do Color Sequence for a tween since it already cycles through different colors

this is for a particle, which has color sequences
TweenService:Create property named 'Color' cannot be tweened due to type mismatch (property is a 'ColorSequence', but given type is 'Color3')
here’s an error which explains it

I just edited the script, see if it works now

doesn’t seem to work, this is how a color sequence is usually scripted

ColorSequence.new{
    ColorSequenceKeypoint.new(0, BrickColor.new("Really red").Color),
    ColorSequenceKeypoint.new(1, BrickColor.new("Really blue").Color)
}

I understand, but you said that you don’t know how to tween a color sequence and I’m telling you that if you give a certain RGB in the Tween dictionary, it will sequence through all possible lighter colors until it gets to your desired color