Unable to cast to Dictionary

When I use this script for a gui tweenservice it gives me the error Unable to cast to Dictionary

What is wrong with the script?

local TweenService = game:GetService("TweenService")
local frame = script.Parent
frame.Position = UDim2.new({0.421, 0},{-0.06, 0})
frame.Transparency = 1
local frame2 = script.Parent.Parent.Subtitle
frame2.Position = UDim2.new({0.421, 0},{-0.06, 0})
frame2.Transparency = 1

local tweenInfo1 = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local tween1 = TweenService:Create(frame, tweenInfo1, {Position=UDim2.new{0, 0},{0.445, 0}})
local tweenInfo2 = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local tween2 = TweenService:Create(frame2, tweenInfo1, {Position=UDim2.new{0, 0},{0.53, 0}})

wait(5)
tween1:Play()
frame.Transparency = 0
local TweenService = game:GetService("TweenService")
local frame = script.Parent
frame.Position = UDim2.new(0.421, 0, -0.06, 0)
frame.Transparency = 1
local frame2 = script.Parent.Parent.Subtitle
frame2.Position = UDim2.new(0.421, 0, -0.06, 0)
frame2.Transparency = 1

local tweenInfo1 = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local tween1 = TweenService:Create(frame, tweenInfo1, {Position=UDim2.new(0, 0, 0.445, 0)})
local tweenInfo2 = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local tween2 = TweenService:Create(frame2, tweenInfo1, {Position=UDim2.new(0, 0, 0.53, 0)})

wait(5)
tween1:Play()
frame.Transparency = 0
1 Like

oh ok it works now thanks

limit limit