So i don't know why but you can't set a block at the clicked block's location, idk if im doing it wrong because there is no errors.
Code:
on right click on a stone button:
set {_button1} to location 1 meter west clicked block
set {_button2} to location at clicked block
set block at {_button1} to stone
set block at {_button2} to red concrete