Trying to turn this tween into something that works for particles but idk how to use colorsequence with tweens
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()
Dfn150
(DevFunNewIdeas)
September 30, 2022, 2:20am
#2
shinonWasTaken:
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
Dfn150
(DevFunNewIdeas)
September 30, 2022, 2:27am
#4
I just edited the script, see if it works now
Dfn150:
local tween = TweenService:Create(parent, tweenInfoColor, {ColorSequence = Color3.fromRGB(1, 255)} --if Color3 doesn't work then try BrickColor
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)
}
Dfn150
(DevFunNewIdeas)
September 30, 2022, 2:31am
#6
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