Today we made a gui button that opens a frame by animations.
Hope you enjoyed.
Roblox Gui Animations Wiki : https://developer.roblox.com/en-us/ar...
Scripts:
OpenButton:
local frame = script.Parent.Parent.Frame
script.Parent.MouseButton1Down:Connect(function()
frame:TweenPosition(UDim2.new(0.302, 0,0.239, 0),"Out","Quint",0.5,true)
end)
CloseButton:
local frame = script.Parent.Parent
script.Parent.MouseButton1Down:Connect(function()
frame:TweenPosition(UDim2.new(0.302, 0,-2, 0),"Out","Quint",0.5,true)
end)