Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local frame = script.Parent.Parent.Parent.Frame
- local toggle = false
- script.Parent.MouseButton1Click:connect (function()
- if toggle == false then
- frame:TweenPosition(UDim2.new(0.5,-200,0.5,-100), 'Out', 'Bounce', 1)-- This is the position where the frame goes down
- script.Parent.Text = 'Close'
- toggle = true
- else
- frame:TweenPosition(UDim2.new(0.5,-200,0.5,-900), 'In', 'Elastic', 1) -- This position is the position that the frame will go down FROM the top
- script.Parent.Text = 'Store'
- end
- end)
- -- If you want to change you tween like Bounce -- just go here wait
- -- http://wiki.roblox.com/index.php?title=API:Enum/EasingStyle -- Go here Now you can change your tween style
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement