local function GetBonePositionFixed( pl, bone ) local mat = pl:GetBoneMatrix( bone ) if not mat then return end return mat:GetTranslation() end hook.Add( 'HUDPaint', 'tests', function() surface.SetDrawColor( color_white ) for _, pl in pairs( player.GetAll() ) do for k, v in pairs( skeleton_order ) do for i = 0, pl:GetHitBoxCount( v[1] ) - 1 do local pos = GetBonePositionFixed( pl, pl:GetHitBoxBone( 0, 0 ) ) if pos then local ts = pos:ToScreen() surface.DrawRect( ts.x, ts.y, 4, 4 ) end -- todo: code end end end end )