local w=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")for j,A in pairs(script.Parent:GetChildren())do local H=false if A.Name=="\066\117\116\116\111\110"or A.Name=="\066\117\116\116\111\110\050"then local j if A.Name=="\066\117\116\116\111\110"then j=false elseif A.Name=="\066\117\116\116\111\110\050"then j=true end local G=Instance.new("\067\108\105\099\107\068\101\116\101\099\116\111\114",A)G.MaxActivationDistance=5.5 G.MouseClick:Connect(function()if not H then H=true local G if not j then A.Material="\078\101\111\110"A.Color=Color3.fromRGB(131,130,133)G=w:Create(A,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0),{CFrame=A.CFrame*CFrame.new(0,0,.15);Color=Color3.fromRGB(255,0,0)})else A.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"G=w:Create(A,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0),{CFrame=A.CFrame*CFrame.new(0,0,-0.15);Color=Color3.fromRGB(163,162,165)})end G.Completed:Connect(function()j=not j H=false end)G:Play()end end)end end

local TS = game:GetService("TweenService")
for ind,btn in pairs(script.Parent:GetChildren()) do
	local deb = false
	if btn.Name == "Button" or btn.Name == "Button2" then
		local toggled
		if btn.Name == "Button" then
			toggled = false
		elseif btn.Name == "Button2" then
			toggled = true
		end
		local CD = Instance.new("ClickDetector",btn)
		CD.MaxActivationDistance = 5.5
		CD.MouseClick:Connect(function()
			if not deb then
				deb = true
				local toggleTS
				if not toggled then
					btn.Material = "Neon"
					btn.Color = Color3.fromRGB(131, 130, 133)
					toggleTS = TS:Create(btn,
						TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0),{
							CFrame = btn.CFrame * CFrame.new(0,0,.15),
							Color = Color3.fromRGB(255,0,0)
						})
				else
					btn.Material = "SmoothPlastic"
					toggleTS = TS:Create(btn,
						TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0),
						{CFrame = btn.CFrame * CFrame.new(0,0,-.15),
							Color = Color3.fromRGB(163, 162, 165)
						})
				end
				toggleTS.Completed:Connect(function()
					toggled = not toggled
					deb = false
				end)
				toggleTS:Play()
			end
		end)
		end
end
