Attach effects to sweps?

Hello, i’m wondering is there any code out there that allows me to attach effects to sweps? I’d love to put a laser aiming module on some of my sweps, and how do i make it point to where the player aims?