local x=script.Parent.Button local U=Instance.new("\067\108\105\099\107\068\101\116\101\099\116\111\114",x)U.MaxActivationDistance=5 local E=false local r=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local v=x.CFrame U.MouseClick:Connect(function()if not E then E=true local U=r:Create(x,TweenInfo.new(.1,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,false,0),{CFrame=v*CFrame.new(-0.03,0,0)})U.Completed:Connect(function()local U=r:Create(x,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0),{CFrame=v})U.Completed:Connect(function()E=false end)U:Play()end)U:Play()end end)


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)
