--------
--Main--
--------


for i,v in next, Gui.Frame:GetChildren() do
	v.Visible = false
end

local OSize = Gui.Frame.Size
local OPos = Gui.Frame.Position
Gui.Frame.Position = Gui.Frame.Position + UDim2.new(0, Gui.Frame.AbsoluteSize.X/2, 0, Gui.Frame.AbsoluteSize.Y/2)
Gui.Frame.Size = UDim2.new(0,0,0,0)

Gui.Frame.Visible = true
Gui.Frame:TweenSizeAndPosition(OSize,OPos)
wait(1)

for i,v in next, Gui.Frame:GetChildren() do
	v.Visible = true
end

Gui.Frame.Close.MouseButton1Click:connect(function ()
	for i,v in next, Gui.Frame:GetChildren() do
		v.Visible = false
	end
	Gui.Frame:TweenSizeAndPosition(UDim2.new(0,0,0,0),Gui.Frame.Position + UDim2.new(0, Gui.Frame.AbsoluteSize.X/2, 0, Gui.Frame.AbsoluteSize.Y/2))
	wait(1)
	Gui:Destroy()
end)
