Ayr United 2-3 Peterhead
Rory McAllister scored a hat-trick as Peterhead stretched Ayr United's winless run to five games.
McAllister slotted in an early opener, but Craig Beattie fired a leveller after the break.
When Peterhead were awarded a penalty, McAllister restored the lead, only for Scott McLaughlin to level again with another spot kick.
But McAllister grabbed his ninth of the campaign to take the match ball and points back with the visitors.