How do I cap the amount of targets that can spawn?

looks expensive . What are you trying to achieve? Set your timer on beginplay not tick