How to make Textures not Wrap

Hey, I’ve been having a problem for a while now where when I place a texture on let’s say, a cube, the texture wraps around the entire cube. How would I make it only place the texture on one side on the cube? Thanks in advance67733-dontknockthepostsnip.png

67734-capture.png

Look at this script. Its not by me and I havent tested it, but it should work for your usecase. It basicly does what Cherno mentioned in his comment.