Need help script or code

You know that sounds a bit confusing for the second part.

i can’t use the unit variable i created