local gui = script.Parent
local function leaving()
script.Parent.Parent.Frame.Visible = false
gui:TweenPosition(UDim2.new(0,0,0.1,0),"In")
end
local function entering()
script.Parent.Parent.Frame.Visible = true
gui:TweenPosition(UDim2.new(0.04,0,0.1,0),"Out")
end
gui.MouseLeave:connect(leaving)
gui.MouseEnter:connect(entering)
As the title says

2 comments
Anyone?..
MouseLeave doesn't always trigger.