TweenSerivce:Create Issue

I am trying to make a frame tween to a different Color3 when needed to. However, the script isn’t working properly and it is giving me this error:

TweenService:Create property named ‘BackgroundColor’ cannot be tweened due to type mismatch (property is a ‘int’, but given type is ‘Color3’)

Here is my code;

local green = {}
red.BackgroundColor = Color3.new(0.603922, 0.282353, 0.282353)
green.BackgroundColor = Color3.new(0.541176, 0.737255, 0.329412)


local tweenInfo = TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
local o1red = TweenService:Create(option1, tweenInfo, red)

If anyone knows a solution, please let me know!
1 Like

Isn’t it BackgroundColor3 lmao

Are you sure you didn’t mean red.BackgroundColor3?

oH yeah you’re right! my bad lol