Changing target from another script

I’m using AI Destination setter and i wonder how to change the target from another script, I tried to use GetComponent but i can’t find the name of the component in the list.

Hi

GetComponent<AIDestinationSetter>().target = whatever should work. Make sure you have using Pathfinding; at the top of your script.