Roll A Ball Tutorial Error CS0246 when writing C# code

Sorry if this has already been covered I tried to search the forums but nothing came back, maybe I’m in the wrong sections of the forums. I suppose a mod can move this thread if I am.
I’m new to both C# coding and Unity. While going through the tutorial found in the Unity Hub “Roll - A - Ball” I was following along with the video writing the very first C# code it has you write to add movement to the player character ball. However Unity gives me back the error “Assets\Scripts\PlayerController.cs(18,5):error CS0246: The type or namespace name 'Void” could not be found (are you missing a using directive or an assembly reference?)" from what I can tell out side of colors (which again being new to both I don’t know if that is signifying any issues to me about the code because I don’t really know what they mean as of yet) my script matches the tutorial. I even downloaded the same script editor the only difference seems to again be some of their words are blue and mine are yellow (again not sure if its just a matter of different versions of the same software or I’ve typed something wrong and can’t find it)
Can anyone look over this code and tell me what I’m doing wrong because as far as I can tell its set up right, and I can’t play test the game until I figure out what’s wrong.

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

public class PlayerController : MonoBehaviour
{
     private Rigidbody rb;
     private float movementX;
     private float movementY;

    // Start is called before the first frame update
    void Start()
    {
        rb = GetComponet<Rigidbody>();
    }

    Void OnMove(InputValue movementValue)
    {
       Vector2 movementVector = movementValue.Get<Vector2>();

       movementX = movementVector.x;
       movementY = movementVector.y;
    }

    void FixedUpdate()
    {
        Vector3 movement = new Vector3(movementX, 0.0f, movementY);

        rb.AddForce(movement);
    }
}

void should be lowercased.

C# is case sensitive.

So that fixed that error. However I am now receiving a new error “Assets\Scripts\PlayerController.cs(15,14): error CS0103: The name 'GetComponet” does not exist in the current context" any ideas on that one. is that another case sensitive error?

Okay update. the new issue was fixed. I just can’t spell apparently

However I now have an
“ArgumentException: Getting control 1’s position in a group with only 1 controls when doing repaint.”

I have no idea what that means. It may not be an error with the code. If its not a code error would anyone be able to direct me to the proper form section to solve that issue.

Edit again.
I’m not sure why. I removed the script and re added the script. and that error went away. I can now continue with the tutorial.
Thank You for responding though, good to know most of those issues were me just being an idiot. I’ll have to ensure to double check for typos in the future.

I think that is an issue with Unity drawing the inspector. I have those frequently. Just clear the Log and you should be fine.

That’s the easy part. There is a lot more to learning. This will save you a LOT of wasted time doing tutorials:

How to do tutorials properly:

Tutorials are a GREAT idea. Tutorials should be used this way:

Step 1. Follow the tutorial and do every single step of the tutorial 100% precisely the way it is shown. Even the slightest deviation (even a single character!) generally ends in disaster. That’s how software engineering works. Every single letter must be spelled, capitalized, punctuated and spaced (or not spaced) properly. Fortunately this is the easiest part to get right. Be a robot. Don’t make any mistakes. BE PERFECT IN EVERYTHING YOU DO HERE.

If you get any errors, learn how to read the error code and fix it. Google is your friend here. Do NOT continue until you fix the error. The error will probably be somewhere near the parenthesis numbers (line and character position) in the file. It is almost CERTAINLY your typo causing the error, so look again and fix it.

Step 2. Go back and work through every part of the tutorial again, and this time explain it to your doggie. See how I am doing that in my avatar picture? If you have no dog, explain it to your house plant. If you are unable to explain any part of it, STOP. DO NOT PROCEED. Now go learn how that part works. Read the documentation on the functions involved. Go back to the tutorial and try to figure out WHY they did that. This is the part that takes a LOT of time when you are new. It might take days or weeks to work through a single 5-minute tutorial. Stick with it. You will learn.

Step 2 is the part everybody seems to miss. Without Step 2 you are simply a code-typing monkey and outside of the specific tutorial you did, you will be completely lost.

Of course, all this presupposes no errors in the tutorial. For certain tutorial makers (like Unity, Brackeys, Imphenzia, Sebastian Lague) this is usually the case. For some other less-well-known content creators, this is less true. Read the comments on the video: did anyone have issues like you did? If there’s an error, you will NEVER be the first guy to find it.

Beyond that, Step 3, 4, 5 and 6 become easy because you already understand!