How i do the sword spin around the player, following the mouse, but not going away from the player

i tried really hadr to do, but nothing word, plz, i need help

If your question begins with How do I so I think it is clear that it should be in the how do I category too. Please also use the normal text formatting in normal posts.
Sorry if this is all rude, but we are not coding for you. I know it is annoying to hear that, but we cannot just code the game if everyone. You basically ask us here to code a part of your game for you. We can answer questions, but not create code for somebody. Show us what you did, and what does not work. From there we might be able to tell you what you did wrong.