Advertisement
JJBloxxer

Roblox UI Bounce Effect by JJBIoxxer

Oct 5th, 2019
2,922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. shop = script.Parent.Parent.Shop
  2. button = script.Parent
  3. open = shop.Open.Value
  4.  
  5. button.MouseButton1Click:Connect(function()
  6.     if not open then
  7.         shop:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "Out", "Bounce", 0.5, true)
  8.         wait(0.5)
  9.         open = true
  10.     else
  11.         shop:TweenPosition(UDim2.new(-0.5, 0, 0.5, 0), "Out", "Bounce", 0.5, true)
  12.         wait(0.5)
  13.         open = false
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement