Unable to cast dictionary when tweening Guis

I read some other forums on this issue and tried them myself. It didn’t solve the issue for me so I am wondering if I did something wrong here.

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

wait(10)

local ResizeInfo = TweenInfo.new(
	1, -- Length
	Enum.EasingStyle.Quart, -- Easing Style
	Enum.EasingDirection.Out, -- Easing Direction
	0, -- Times repeated
	false, -- Reverse
	0 -- Delay
)

local ResizeGoal =
	{
		['Size'] = {0, 250},{0, 250};
	}

ResizeTween = TweenService:Create(GroupLogo,ResizeInfo,ResizeGoal)
ResizeTween:Play()

local SpinInfo = TweenInfo.new(
	1, -- Length
	Enum.EasingStyle.Quart, -- Easing Style
	Enum.EasingDirection.Out, -- Easing Direction
	0, -- Times repeated
	false, -- Reverse
	0 -- Delay
)

local SpinGoal =
	{
		['Rotation'] = 360;
	}

SpinTween = TweenService:Create(GroupLogo,SpinInfo,SpinGoal)
SpinTween:Play()

local RemoveLabelInfo = TweenInfo.new(
	0.5, -- Length
	Enum.EasingStyle.Sine, -- Easing Style
	Enum.EasingDirection.InOut, -- Easing Direction
	0, -- Times repeated
	false, -- Reverse
	5 -- Delay
)

local RemoveLabelGoal =
	{
		['ImageTransparency'] = 1;
	}

RemoveLabelTween = TweenService:Create(GroupLogo,RemoveLabelInfo,RemoveLabelGoal)
RemoveLabelTween:Play()

['Size'] = UDim2.new(0, 250, 0, 250);

1 Like

Change that to-

local ResizeGoal = {Size = Udim2.new(0, 250,0, 250)}

And here too,
change it to -

local RemoveLabelGoal ={ImageTransparency = 1}

And here aswell, change it to -

local SpinGoal ={Rotation = 360}

Also

this should be

local ResizeGoal = 	{Size = Udim2.new(0, 250,0, 250)}

Since the script think its an array and not a Udim2 value

1 Like

My bad, didnt notice, thanks for reminding!

1 Like

Thanks for the help guys. I really forgot to add the Udim2.new haha.