When a wave traveling through a rope encounters a new medium, such as a wall, the most likely outcome is:
The wave strikes the new medium and reflects back into the rope.
This is a common behavior of waves when they encounter a boundary. Depending on the properties of the wall (like whether it is fixed or free), some energy may be absorbed or transmitted, but in a typical situation with a rigid wall, reflection is the primary response.