I have one question with parent.

What the hell is wrong with parent!?
It’s moves up and down too!

So, Riot Shield is fcked up, legs are fcked up, My holster is f*cked up too.

Can i have one solution?

I’m sorry, I don’t understand the question.
Please explain it more fully.
Thank you.

:effort:

http://img179.imageshack.us/img179/9073/34403013.jpg

Like this. It moves up and down.





function SWEP:Deploy()
    self:RemoveGun()
    return true
end


function SWEP:Holster()
        ply = self.Owner
        local BoneIndx = ply:LookupBone("ValveBiped.Bip01_Pelvis")
        local BonePos , BoneAng = ply:GetBonePosition( BoneIndx )
if ( SERVER ) then
        self.ent = ents.Create("prop_physics")
        self.ent:SetModel("models/weapons/w_357.mdl")

        self.ent:SetPos(BonePos + Vector(0,5,0)) 
        self.ent:SetAngles(Angle(90,90,0)) 
    self.ent:SetParent(self.Owner)

        self.ent:SetCollisionGroup( COLLISION_GROUP_WORLD )
        self.ent:DrawShadow( false )
        self.ent:Spawn()
        self.ent:Activate()
         self.ent:SetupBones( )


    return true
end

end

function SWEP:OnDrop()
    self:RemoveGun()
end

function SWEP:OnRemove()
    self:RemoveShield()
end

function SWEP:RemoveGun()
    if SERVER then
        self:SetColor(255,255,255,255)
        if not ValidEntity(self.ent) then return end
        self.ent:Remove()
    end
end


What moves up and down?

Still don’t understand, sorry.

How many windows do you have open? how can you possible work in that environment? Also, explain question more… well English

I think he means that he wasn’t expecting parent to allow the object to move. If this is right, then try welding it.

You can’t use parent to attach objects to players, it will take more effort then that.

Why’d you take the picture in the freaking darkest map there is?

We, well, I cant see anything.

Then, how to attach something to player?
Anyone can’t help me?

Like PAC (made by CapsAdmin).

And. English is not first language in my country.

You said it yourself, PAC does it. So you should take a look at the code.