-- a single button script :p


local THEbutton = script.Parent.Button
local CD = Instance.new("ClickDetector",THEbutton)
CD.MaxActivationDistance = 5

local deb = false
local TS = game:GetService("TweenService")
local og_pos = THEbutton.CFrame
CD.MouseClick:Connect(function()
	if not deb then
		deb = true
		local start = TS:Create(THEbutton,TweenInfo.new(.1,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,false,0),{CFrame = og_pos* CFrame.new(-.03,0,0)})
		start.Completed:Connect(function()
			local End = TS:Create(THEbutton,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0),{CFrame = og_pos})
			End.Completed:Connect(function()
				deb = false
			end)
			End:Play()
		end)
		start:Play()
	end
end)
