-- doesn't actually provide any info ☻

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
