"Unable to cast dictionary" | TweenService help!

Greetings, everyone! I have been making a loading screen for a bit now, and thought to add a tween to make it look nicer in a sense! However, as I was testing it, I noticed an error. (The same as the title.) I read other posts and changed it accordingly, to get the same error. Here is the code:

local tweenService = game:GetService("TweenService")

local tween = tweenService:Create(script.Parent.Parent, TweenInfo.new(2, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0), UDim2.new(0, 0, -1, 0))
tween:Play()

Thank you in advance, and have a good holiday! :slight_smile:

TweenService:Create( object, TweenInfo, PropertiesToTween (Dictionary) )
Instead of Udim2.new(0,0,-1,0) Place it in brackets as so

{
-- I don't understand if you are trying to tween the size/position, change as needed
Size = UDim2.new(0,0,-1,0)
-- or
Position = UDim2.new(0,0,-1,0)
}
1 Like