diff --git a/lua/entities/gmod_contr_spawner/init.lua b/lua/entities/gmod_contr_spawner/init.lua index 89c4e58..815a85d 100644 --- a/lua/entities/gmod_contr_spawner/init.lua +++ b/lua/entities/gmod_contr_spawner/init.lua @@ -187,7 +187,11 @@ function ENT:DoSpawn( ply ) if(ent.SetForce)then ent.SetForce(ent, ent.force, ent.mul) end if(self.AddVelocity==1)then phys:SetVelocity( self:GetVelocity() ) - phys:AddAngleVelocity( self:GetPhysicsObject():GetAngleVelocity() ) + local self_phys = self:GetPhysicsObject() + + if IsValid( self_phys ) then + phys:AddAngleVelocity( self_phys:GetAngleVelocity() ) + end end end