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