Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local frame = module.GetFrame(frameName)
- if frame then
- local normalSize = frame.Size
- local closeTween = tweenService:Create(
- frame,
- TweenInfo.new(
- CloseSpeed,
- ClosingEasingStyle,
- ClosingEasingDirection),
- {
- Size = UDim2.fromScale(0, 0)
- }
- )
- closeTween:Play()
- closeTween.Completed:Connect(function()
- frame.Visible = false
- frame.Size = normalSize
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement