Might be best to use this as a visual reference to create your own script because: the "For all sprites" variable -turret direction-, will copy over as a "For this sprite only" variable embedded in both the turret and ball sprites.
Challenges: can you move this rotating turret using wasd? can you move it on a scrolling background? can you place it on top of a convertible? make the turret into a soccer player? Add other challenge ideas in the comment section.