Killer klowns from outer space Ray Gun

Screenshot 2024-10-02 020911

I am trying to make a killer Klown game but I can’t find a way to script a ray gun to Attachment my beam to the player and drain health while using the tool