Because the roof is visible it doesn't mean the client can actually click it. If it fails to interact with a roof it will simply walk closer to it so it can click it. It's a lot faster then turning the camera and waiting 2-3 sec...
I never saw this script spamm clicking onec for me on any rooftop, feel free to tell me which roof and what part it does that.
Also try restarting your client, could solve these issues, also disable roofs if you didn't do that yet.
Khaleesi