Simple Game Script

Hello, i am making a 2d sidescroller shooter game ( the game is lame but im new so its a project) does anyone know of a script that will make it so when i move my mouse my characters arms and gun will follow? If you do could you post it or a link to it?
Thanks

You could do it by moving a box and make the gun track it…
You could also use a python script to get the coordinates of a cursor to move an empty object that the gun tracks to, probably more efficient. You’d have to change them, of course.

ok, im new to this, but i think ill give it a shot, ill read some tutorials about tracking and whatnot. Thanks a lot.