local M=script.Parent.Button1.ClickDetector local o=script.Parent.Button2.ClickDetector local I=script.Parent.Button3.ClickDetector local l=false local U=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")function Press(M)if not l then l=true local o=U:Create(M,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.In,0,false),{CFrame=M.CFrame*CFrame.new(0,0,.045)})o.Completed:Connect(function()local o=U:Create(M,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.In,0,false),{CFrame=M.CFrame*CFrame.new(0,0,-0.045)})o.Completed:Connect(function()l=false end)o:Play()end)o:Play()end end M.MouseClick:Connect(function()Press(M.Parent)end)o.MouseClick:Connect(function()Press(o.Parent)end)I.MouseClick:Connect(function()Press(I.Parent)end)


local B1 = script.Parent.Button1.ClickDetector
local B2 = script.Parent.Button2.ClickDetector
local B3 = script.Parent.Button3.ClickDetector
local deb = false
local TS = game:GetService("TweenService")
function Press(button)
	if not deb then
		deb = true
		local start = TS:Create(button,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.In,0,false),{CFrame = button.CFrame*CFrame.new(0,0,0.045)})
		start.Completed:Connect(function()
			local End = TS:Create(button,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.In,0,false),{CFrame = button.CFrame*CFrame.new(0,0,-0.045)})
			End.Completed:Connect(function()
				deb = false
			end)
			End:Play()
		end)
		start:Play()
	end
end

B1.MouseClick:Connect(function()
	Press(B1.Parent)
end)
B2.MouseClick:Connect(function()
	Press(B2.Parent)
end)
B3.MouseClick:Connect(function()
	Press(B3.Parent)
end)
