Tween GUI Size issue

I am trying to Tween a Gui Size, but I am having an Issue with the original size. I want it to go back to its original size at first each time the function runs, and then tween to a bigger size. The problem I am having is an error that says attempt to call a UDim2 value. The error is on the line that says Screen.Size(0,0)

local player = game.Players.LocalPlayer
local Screen = player.PlayerGui.Phone.Case.HomeScreen.AppScreens.Settings

function OpenSettings()
	Screen.Size(0,0)
	Screen.Visible = true
	Screen:TweenSize(UDim2.new(1,0,1,0),"Out", "Sine", 1)
end


script.Parent.MouseButton1Click:Connect(OpenSettings)


Try to add:

local TweenService = game:GetService("TweenService")

Not sure if it works, but it is always worth to try.

It automatically has that in StarterGUI, I tried anyways and It did nothing.

Ahh alr, it’s really weird because it looks like a working script. Are there any errors in the output?

Yes, it says attempt to call a UDim2 value. that problem is on the line that says Screen.Size(0,0) The reason there is an error is because I don’t know how to set its Size before the Tween

Try to set it this way:

Screen.Size = UDim2.new(0,0,0,0)