You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear! I want to get better at scripting and finishing up my project.
What is the issue? Include screenshots / videos if possible! I’m trying to make a tweening gui that look like this
What solutions have you tried so far? Did you look for solutions on the Developer Hub? I try a lot of solution but it does look the same.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you! I want to make the GUI get smaller when it close and when open it got smaller to bigger like in the video. This is the script and stuff that I got, tween the gui down to 0,0,0,0 using the Gui:TweenSize() function but it’s really hard to understand because I’m still learning about tweening.
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
normally you only use these 4
endpos is the Udim2 value
easing direction is either in, out, or inout (determines whether it inverses function) (Enum.EasingDirection.x)
easing style is function (sine, linear, and quad look the best) (Enum.EasingStyle.x)
time is seconds
here are normal combonations
linear inout
sine inout
quad out
You do not need to tween the position of the Frame. Set the frame’s anchor point to ‘0.5, 0.5’. This will allow the frame to expand and close from the middle. Tweening the size of the frame to close would look like this:
local ts = game:GetService(“TweenService”)
local ti = TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0)
ts:Create(frame, ti, {Size = UDim2.new(0, 0, 0, 0)}):Play()
This should give you an understanding of tweening, you can apply the same concept to open the frame as well.