Unity crashes when play

Im making a 3d aim trainer and I recently added a moving platform.
heres the code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TargetRotateX : MonoBehaviour
{
public GameObject target;
public GameObject rotatePoint;

public float rotateSpeed;

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
while(true)
{
StartCoroutine(“platformRotate”);
}

}

IEnumerator platformRotate()
{
transform.RotateAround(rotatePoint.transform.position, target.transform.up, rotateSpeed * Time.deltaTime);
yield return new WaitForSeconds(Random.Range(3, 10));
transform.RotateAround(rotatePoint.transform.position, target.transform.up, -rotateSpeed * Time.deltaTime);
}
}

it should change direction every so often but whenever I try to run the project, it freezes and i have to quit the application. help

help me pls

help

Use CODE tags when posting to the forum. If you make your code difficult to read, few people will bother. But your problem is here:

void Update()
{
    while(true)
    {
        StartCoroutine("platformRotate");
    }

}

You’ve created what is called an “infinite loop”. Don’t do that. As written, once you first enter the while loop, it will never exit. So the frame cannot complete, cannot move onto the next frame, and the game will appear to freeze.