tick = getTickCount()
function Draw()
local x, y, z = interpolateBetween ( dx, dy, dz, dx+4, dy+4, dz, (getTickCount()-tick)/1400, "OutQuad")
dxDrawImage(x, y, z, dx+4, "img/bb.png", 0, 0, 0, tocolor(136, 22, 232, 255), false)
end
addCommandHandler( "show",
	function()
		--...
		tick = getTickCount()
              addEventHandler("onClientRender",root,Draw)
	    --...
	end
);