Cerebral palsy poses challenges in walking, necessitating ankle foot orthoses (AFOs) for stability. Gait analysis, particularly on slopes, is crucial for effective AFO assessment. The study aimed to compare the performance of commercially available AFOs with a new sports-specific AFO in children with hemiplegic cerebral palsy and to assess the effects of varying slopes on gait. Eighteen participants, aged 6-11, with hemiplegia, underwent gait analysis using GRAIL technology. Two AFO types were tested on slopes (uphill +10 deg, downhill -5 deg, level-ground). Kinematic, kinetic, and spatiotemporal parameters were analyzed. The new AFO contributed to significant changes in ankle dorsi-plantar-flexion, foot progression, and trunk and hip rotation during downhill walking. Additionally, the new AFO had varied effects on spatiotemporal gait parameters, with an increased stride length during downhill walking. Slope variations significantly influenced the kinematics and kinetics. This study provides valuable insights into AFO effectiveness and the impact of slopes on gait in hemiplegic cerebral palsy. The findings underscore the need for personalized interventions, considering environmental factors, and enhancing clinical and research approaches for improving mobility in cerebral palsy.