Getting error message while trying to run a tween script

I received the error “Unable to cast to Dictionary” on line 20. What does this error mean and how do I fix my code? Any help would be greatly appreciated.

local TweenService = game:GetService("TweenService")
local part = script.Parent

local Info = TweenInfo.new(
	5, --Time animating
	Enum.EasingStyle.Sine, --Easing style
	Enum.EasingDirection.Out, --Easing direction
	0, --Repetitions
	false, --Reverse post tween?
	0 --Delay time
)

local Goal = {
	
	Size = Vector3.new(15,15,15);
	Transparency = 0.5;
	part.BrickColor == BrickColor.new(1,1,1)
}

local BigBlackCube = TweenService:Create(part, Info, Goal)

wait(2)
BigBlackCube:play()

image
Remove the part.

Same error still persistsㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

Wow. Brickcolor has a string argument, use this instead.

Color = Color3.new(1,1,1)
2 Likes

Also the “==” in BrickColor == BrickColor.new(1,1,1),
Instead it should be “=”

“=” is to set
“==” is to check if equal

1 Like

This fixed it, thanks for your help

Noted for future scripts, thanks