Code repeating

i’m making game about coding and learning but i need to repeat checking text so it can check what is user do in that day

this is the code i write

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MemoryValue : MonoBehaviour
{
    public string firststage = "Checking";
    public string secondtstage = "Checking.";
    public string thirthstage = "Checking..";
    public string fourthstage = "Checking...";
    public int datashowingstage = 1000;
    public Text text;

    void Start()
    {
        text.text = firststage;
        Startlooping(loopinging());
    }

    IEnumerator loopinging
    {
        if(text.text = firststage)
        {
            text.text = secondtstage;
        }

        yield return new WaitForSeconds(3);

        if(text.text = secondtstage)
        {
            text.text = thirthstage;
        }

        yield return new WaitForSeconds(3);

        if(text.text = thirthstage)
        {
            text.text = fourthstage;
        }

        yield return new WaitForSeconds(3);

        if(text.text = fourthstage)
        {
            text.text = firststage;
        }
    }
}

please help me

Hi @OnionDev999. Simply concatenate some strings:

IEnumerator loopinging{
   int stages = 3;
   text.text = "Checking.";
   while(stages > 0){
      yield return new WaitForSeconds(3);
      text.text += ".";
       stages--;
   }

And, as @ShadyProductions says, use StartCoroutine!

Hopethis helps!