Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- put this in minimize as a localscript
- local on = false
- local old
- script.Parent.MouseButton1Click:Connect(function()
- if on == false then
- on = true
- old = script.Parent.Parent.Parent.Position
- script.Parent.Parent.Parent:TweenPosition(UDim2.new(0.519, 0,0.94, 0),"Out","Linear",0.3,false,nil)
- game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {Rotation = 180}):Play()
- else
- on = false
- script.Parent.Parent.Parent:TweenPosition(old,"Out","Linear",0.3,false,nil)
- game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {Rotation = 0}):Play()
- end
- print(old)
- end)
Advertisement
Add Comment
Please, Sign In to add comment