It happens in the 4th stage
Stage 4.
Stage 4
Sleepwalking disorder (somnambulism) occurs when the patient is capable of complex movements during sleep, including walking. Sleepwalking occurs during stage 3 and stage 4 NREM sleep during the first part of the night.
found a link for you. Follow the link below Sleepwalking occurs in Stage 4 sleep and is called a parasomnyaic disorder
Sleepwalking usually only occurs during stage 3 of non-rem sleep.
During the sleepwalking stage of sleep, a person may get up and move around while still being asleep. This can include activities like walking, talking, or even eating without being fully aware of their actions. It occurs during the non-REM stage of sleep and is considered a type of parasomnia.
Sleepwalking usually occurs during stages 3 and 4 of the NREM part of your sleep cycles. NREM means the non-rapid eye movement stage. REM means rapid eye movement. Night terrors aren't exactly well understood, but most professionals will agree that they happen during the NREM stages of your sleep cycles.
Sleepwalking and sleeptalking are most commonly associated with non-REM sleep arousal disorders, particularly somnambulism. These episodes typically occur during deep sleep, often in the first third of the night. While sleepwalking and sleeptalking can occur independently, they are frequently observed in individuals with a history of sleep disorders, such as obstructive sleep apnea or restless legs syndrome. Factors like stress, sleep deprivation, and certain medications can also exacerbate these behaviors.
stage 4
They occur during REM sleep, usually in the second half of the night
Sleep paralysis typically occurs during the stage of sleep known as REM (rapid eye movement) sleep.
Somnambulist is a person who engages in somnambulism. Somnambulism is the technical term for sleepwalking, which can occur under either hypnosis or normal sleep.