Sword Swinging

I have been spending sometime now trying to develop a way to make a first person sword swing like it does in minecraft. Does anyone have a way that i can make this happen? scripts attach to what? Anything…
i don’t have ability to animate it right now unless i can do that in unity.
any help is appreciated.

I would suggest you create an animation, and play it from a script

You can do keyframe animations inside of Unity. So yes, you can animate. When you do this an animation is created and will show up under your project view. You can then reference the animation inside of your script.

Here’s something to get you started: http://unity3d.com/support/documentation/Manual/Character-Animation.html

And the scripting reference: http://unity3d.com/support/documentation/ScriptReference/Animation.html