Chain jumping on Hub Sprocket

P8210363 New Chains but hub sprocket too worn. Kept jumping
P8210360 Had driven to Mittagong to try out the repaired bike but alas the sprocket on the rear hub was too worn and kept jumping under any load.
It went perfectly in the garage but as soon as under pressure it would jump teeth on the rear sprocket.