A spirited Ilkley side eventually lost 4-2 in a game where neither team were concentrating on their defence, writes Evan Seaman.
It was the visitors who started as the brighter team and took an early lead when George Gomersall dribbled down the right flank before playing a low cross to Tom Smith who tapped it in to make the score 0-1.
Shortly afterwards Pilkington had a chance to peg the visitors back but Callum Gladding made a good save.
The hosts eventually got their reward in the 25th minute when they won a free-kick from about 40 yards out and the cross fell into the path of Adam Gilchrist who equalised for Pilkington.
Then there was a quickfire double from the home side when Deklan Hill got their second of the game to make it 2-1 at the break.
However, Ilkley burst out the blocks in the second half and Gomersall equalised from the edge of the box as he blasted it into the net to make it all square again.
Smith did put the ball in the back of the net again but the referee pulled it back for offside to keep the score at 2-2.
But Pilkington restored their lead when substitute Phil Marsh caught Gladding off-guard before making the score 3-2.
Ilkley had a couple of opportunities to equalise again when Smith went one-on-one with Andrew Heal, then Tom Fleming having a pop at goal but both attempts were parried away.
As the game was drawing to a close, Ilkley were pushing for a late equaliser sent Gladding forward when they won a free-kick from about 40 yards out.
However, it was cleared away by Pilkington and were able to counter attack before Callum Laird hoofed the ball into the net from about 50 yards out to round off their victory.
Following the result, Pilkington move into the top three whereas Ilkley fall to sixteenth on 13 points from 14 games.