sp=script.Parent button=sp.Parent:FindFirstChild("\066\117\116\116\111\110")ontill=0 function on()sp.ButtonPushed:SetValue(1)button.BrickColor=BrickColor.new("\067\111\111\108 \121\101\108\108\111\119")button.Mesh.Offset=Vector3.new(0,.25,0)end function off()sp.ButtonPushed:SetValue(0)button.BrickColor=BrickColor.new("\066\114\105\103\104\116 \121\101\108\108\111\119")button.Mesh.Offset=Vector3.new(0,.1,0)end button.ClickDetector.MouseClick:connect(function()on()ontill=tick()+sp.Configuration.ActivationTime.Value while ontill>tick()do wait()end off()end)



sp=script.Parent
button=sp.Parent:FindFirstChild("Button")
ontill=0

function on()
	sp.ButtonPushed:SetValue(1)
	button.BrickColor=BrickColor.new("Cool yellow")
	button.Mesh.Offset=Vector3.new(0,.25,0)
end

function off()
	sp.ButtonPushed:SetValue(0)
	button.BrickColor=BrickColor.new("Bright yellow")
	button.Mesh.Offset=Vector3.new(0,.1,0)
end

button.ClickDetector.MouseClick:connect(function()
	on()
	ontill=tick()+sp.Configuration.ActivationTime.Value
	while ontill>tick() do
		wait()
	end
	off()
end)




