Problem with code.

Hi! First of, thank you for your reply. I’ve been trying to do it with the GUI, but I can’t seem to get it working. Could you please provide me the code to do it? Thanks.