local TweenService = game:GetService("TweenService")
Frames = {
script.Parent.Parent.Parent["Decoration[5]"]["Secondary color"]["Point Underline"],

script.Parent.Parent.Parent["Decoration[5]"]["Secondary color"].SideBaredge,

script.Parent.Parent.Parent["Decoration[5]"]["Secondary color"].TopBarEdge
}
local TweeningInformation = TweenInfo.new(
 2,
 Enum.EasingStyle.Sine,
 Enum.EasingDirection.Out,
 0,
 false,
 0
)

local FrameProperties = {
 BackgroundColor3 = Color3.fromRGB(255,255,255)
}

local Tween = TweenService:Create(Frames, TweeningInformation, FrameProperties)
script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Click:Play()
	Tween:Play()
end)

Error: 16:52:11.421 - Unable to cast value to Object

1 comment

0

I don't think you can create a table of parts and use that in TweenService, you'll probably have to use a for loop