Help and Feedback with a gun script

Some people encountered script exhaustion, because of remote events firing too frequent. How would you handle that situation?