This is the Line where it seems like I have a problem with. Since im not super experienced I took this code out from a 2D Game.
Vector3Int gridPosition = tileMapReadcontroller.GetGridPosition(Input.mousePosition, mousePosition: true);
Not sure if this is a problem when im trying to insert this in a 3D world :(