Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

İ Need Help What İm Doing Wrong??

Discussion in 'Scripting' started by mehmetcannn, Dec 23, 2020.

  1. mehmetcannn

    mehmetcannn

    Joined:
    Dec 23, 2020
    Posts:
    2
    Help Me Please Thank You İ Am 16Years Old And İm Beginner IMG_20201224_002606.jpg IMG_20201224_002625.jpg
     

    Attached Files:

    Last edited: Dec 23, 2020
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,724
    You have "var pos" twice instead of "var pos" and "var rot".

    In the future please just share your code using code tags on the forum instead of taking pictures of your screen :confused:
     
    mehmetcannn likes this.
  3. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,556
    well, at least they really are screenshots, not mere pixel dumps :)
     
    mehmetcannn likes this.
  4. Antistone

    Antistone

    Joined:
    Feb 22, 2014
    Posts:
    2,833
    General tip: If you get several errors, and you're not sure what's wrong, it's usually wise to focus on the first error.

    In your picture, the first error isn't even visible, because the console is scrolled to the bottom. But if we could see it, I suspect it would say that you defined the variable "pos" twice.
     
    mehmetcannn likes this.
  5. mehmetcannn

    mehmetcannn

    Joined:
    Dec 23, 2020
    Posts:
    2
    Thank You İ Solved İt Thanks All Again