local tg0 = {Color = BrickColor.new("Really red")}
doesn’t work. I have done tweens before. i know how tweenservice works.
my code is fine, but trying to tween brick colors does’t work.
"TweenService:Create property named ‘Color’ cannot be tweened due to type mismatch (property is a ‘Color3’, but given type is ‘int’) "
i tried replacing Color with BrickColor.
Here’s an example of how I’d tween a brick color from red to blue:
*edit: small correction, it should be fromRGB not FromRGB
local tweenService = game:GetService("TweenService")
local part = workspace.Part
--information
local tweenInfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false
)
--part is red
part.Color = Color3.fromRGB(255,0,0)
--tween the part to blue
local tween = tweenService:Create(part, tweenInfo, {Color = Color3.fromRGB(0, 0, 255) })
tween:Play()