--Stickmasterluke



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)




