LIKE AND SUBSCRIBE TO MAKE ME HAPPY AND MORE CONTENT!
Hey guys I hope you enojoyed my very first video! I hope it worked for you, if it didnt let me know in the comments!
Open and Close Gui Tweening Animation Script:
local frame = script.Parent.Frame ---------------- your frame
local openclose = script.Parent.OpenClose -------- your button
frame.Size = UDim2.new(0.188, 0,0.071, 0)
openclose.MouseButton1Click:Connect(function()
if frame.Size == UDim2.new(0.188, 0,0.071, 0) then
frame.Visible = true
frame:TweenSize(UDim2.new(0.514, 0,0.803, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.2)
openclose.Text = "CLOSE" ---------- you can change this
elseif frame.Size == UDim2.new(0.514, 0,0.803, 0) then
frame:TweenSize(UDim2.new(0.188, 0,0.071, 0),Enum.EasingDirection.In,Enum.EasingStyle.Quint,0.15)
wait(0.13)
openclose.Text = "OPEN" ---------- you can change this
frame.Visible = false
end
end)