Remixed to help with forum topic: https://scratch.mit.edu/discuss/topic/898914/ I've added a list of the clones to show the state of each one. When the count of clones is over 299 then the oldest active clone is deleted using the new clone list.
Original program by GenericCircleGuy