Hexapod Robot is a mechanical vehicle that moves on six legs and guided by lines and walls. A fuzzy logic control governs the robot to follow the line and the wall. This control algorithm is embedded into PIC16F877A microcontroller to create a wall and line follower behaviour. The Hexapod robot will move along the wall for about 40cm distance of no line is detected. When a line is present, the robot will move following the line. In a development, a simple 6-legged robot was used which involved 3 servo motor as actuator to leg movement. Infrared sensors were used to sense line and distance to the wall as the input variable for the controller. Based on these signals, the controller controls the turning angle of forward movements thus making the robot move forward and turn at the same time.