Create a script for placing skylights based on roof tile size

Maybe you can share what you have tried so far?