Objects move on own

i was wondering if there was any scripts out there for an object to move on its own. i’ve looked everywhere and i mean everywhere. I am making an indie horror so help would be much apprecitated and thanks for the help.

I’m not sure exactly what you’re looking for, but this might help. If you are looking to have just have an object simply move through a scene, use you can use rigidbody physics to do that.
See:

I mean by moving on its own by like trigger to set the objectoff to mov on its own and to move a set distance of my choice.

if I understood the qustions changes on OnTriggerEnter OnTriggerStey this is c#

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

public class TeleportExit : MonoBehaviour {
    public Transform targets;
    public Transform ball;

    private void OnTriggerExit(Collider theObject)
    {
        {
            ball.position = targets.position;
        }
    }
}