Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local open = false
- local debounce = true
- script.Parent.MouseButton1Click:Connect(function()
- if open == false and debounce == true then
- open = true
- debounce = false
- script.Parent.Parent.Frame:TweenPosition(UDim2.new(0.217, 0,0.246, 0), "Out", "Sine", 0.5)
- wait(0.5)
- debounce = true
- elseif open == true and debounce == true then
- open = false
- debounce = false
- script.Parent.Parent.Frame:TweenPosition(UDim2.new(1,0,0.246,0), "Out", "Sine", 0.5)
- wait(0.5)
- debounce = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment