The general idea for the swinging ball is:
Spawn several chain-pins from the base pin
Disable orbiting on these chain-pins
Spread the chain-pins out about 15 pixels away from each other
Pin the chain-pins to the base (remember this is moving left and right constantly)
Once you have spawned 9 chain pins spawn the spiked ball from the last pin
Disable orbiting on the ball
Pin the ball to the final chain pin.
Finally make sure that the ball hurts the player.