I dont find the problem...

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

public class ShootingPoint : MonoBehaviour {

[SerializeField]
float BulletSpeed = 10;
[SerializeField]
float BulletD = 1;

[SerializeField]
GameObject Bullet;

// Use this for initialization
void Start() {

{

// Update is called once per frame
void Update() {

if (Input.GetMouseButtonDown(0))
{
Shoot();
}

}

void Shoot()
{
GameObject MyBullet = GameObject.Instantiate(Bullet, transform.position, transform.rotation);

}

Assets\ShootingPoint.cs(42,6): error CS1513: } expected

Use code tags, how else will we know what line 42 is.
Luckily something jumps out. Your Start method has 2 {. Pretty sure the second one needs to be a } and probably the source of your error.

Pretty straight forward error where you should just check your { and } and make sure they are properly setup and you have an equal number of both.

In addition to above, there isn’t a closing “}” for the class.

1 Like

You will never find your problem until you learn how to format your code properly for the forums.

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: https://discussions.unity.com/t/481379

Remember: NOBODY memorizes error codes. The error code is absolutely the least useful part of the error. It serves no purpose at all. Forget the error code. Put it out of your mind.

The important parts of an error message are:

  • the description of the error itself (google this; you are NEVER the first one!)
  • the file it occurred in (critical!)
  • the line number and character position (the two numbers in parentheses)

All of that information is in the actual error message and you must pay attention to it. Learn how to identify it instantly so you don’t have to stop your progress and fiddle around with the forum.

How to understand compiler and other errors and even fix them yourself:

https://discussions.unity.com/t/824586/8