when my player turns left the attack point stays on the right how can i fix this

when my player turns left the attack point stays on the right how can i fix this

Well how are you flipping the character? Is the attack point on a child object or the parent object? Basically, if you are flipping the sprite only, the actual object won’t rotate, just the sprite.
this is how i flipping my player.
private void SetCharacterDirection()
{
switch (facingDirection)
{
case FacingDirection.Right:
spriteRenderer.flipX = false;
break;
case FacingDirection.Left:
spriteRenderer.flipX = true;
break;
}
}
and I do not know child or parent object it is. can you help me, I’m new.
So when you make an object within another object (look at the Hierarchy tab) it becomes a “child”. The Parent is the one above it. The Top-most parent is the one that you would want a prefab of.
Here is a video that can help you with flipping:
(36) Unity Tutorial Quick Tip: The BEST way to flip your character sprite in Unity - YouTube