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()