He befriended the 10-year-old, even giving her money on occasion.
But Jashim Uddin Hanif Ali, 31, a Bangladeshi national, had an ulterior motive.
Leading her to a staircase landing, he committed an obscene act on her and even gave her $2 after sexually abusing her a second time.
On Thursday, Jashim sobbed openly in court after he admitted to taking advantage of the child.
Jashim, a construction worker, was involved in the lift upgrading work of some HDB blocks in the west, between December 2011 and January last year.
It was during this period that he befriended the girl - who cannot be named due to a gag order - as she was often seen walking home alone from her primary school nearby.
One afternoon last January, he saw her going home.
He approached her and told her to follow him. She did as he asked because she was afraid he might hurt her if she did not comply.
Jashim then took her to a 10th-storey staircase landing at a nearby HDB block.
There, he removed her school shorts and his own pants, before sexually abusing her.
He then told the girl to head home and to shower immediately.
But he wasn't done with her.