How would I make this so it can freely move around when I play?

How would I make a part stay connected to another part, but move freely around, kind of like a door on hinges?

Edit: I just say this, I kinda want this.


How would I make it dangling, but still in mid air?