Get a bone as an entity

Hey guys, I need your help.

I’m working on a gamemode and I wanna add armor to it, so I look for bones. I found a command Entity:LookupBone() but this return an integer which is good for some command like Entity:GetBonePosition() but I wanna parent a prop or an entity to it.

Any idea?

Bones are no entities, you can parent to attachments though.

local function Parent_Hologram(holo, ent, bone, attachment)
if ent:GetParent() and ent:GetParent():IsValid() and ent:GetParent() == holo.ent then return end


if bone != nil then
if attachment != nil then
	holo.ent:Fire("SetParentAttachmentMaintainOffset", attachment, 0.01)


Taken from the wiremod svn.