Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shop = script.Parent.Parent.Shop
- button = script.Parent
- open = shop.Open.Value
- button.MouseButton1Click:Connect(function()
- if not open then
- shop:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "Out", "Bounce", 0.5, true)
- wait(0.5)
- open = true
- else
- shop:TweenPosition(UDim2.new(-0.5, 0, 0.5, 0), "Out", "Bounce", 0.5, true)
- wait(0.5)
- open = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement