GameObject "child" don't follow "parent".

Simple Ping Pong 2D, I want my ball to stay with platform as long as player won’t shoot it and start the game. The problem is when I parent my ballPrefab.transform to empty gameObject which is parented already to platform and have transformation where i want to be it’s just don’t follow.

public class SpawnBall : MonoBehaviour
{
    public Transform ballPointRight;
    public Transform ballPointLeft;

    private Transform ballPointPosition;

    public GameObject ballPrefab;

    public static GameObject cloneBall;

    public static bool canWeSpawn = true;



    // Update is called once per frame
    void Update()
    {
        if(canWeSpawn == true)
        {
            if (Ball.addPointRight == true)
            {
                ballPointPosition = ballPointRight;
                Ball.addPointRight = false;
            }
            else
            {
                ballPointPosition = ballPointLeft;                
            }

            cloneBall = Instantiate(ballPrefab, ballPointPosition.position, ballPointRight.rotation) as GameObject;
            cloneBall.transform.parent = ballPointPosition;
            canWeSpawn = false;
        }
    }
}

If someone wins ball spawns on left or right platform, we instantiate ball and then parent it to ballPointPosition where it should be. In unity everything is good the cloneBall (Clone) is parent to ballPointPosition but it’s dont follow the platform also ballPointPosition don’t follow it they stay together at same position. When i drag them through the scene everything works fine.

@Martines_01, nothing wrong with the code you show, but the question is how are you moving the parent object, and whether or not the physics engine is involved. If the child has a Rigidbody then that is an issue.