Bullets just disappearing when I use Ontrigger help pls T-T

using UnityEngine;
using System.Collections;

public class NinjaStarController : MonoBehaviour {

public float speed;
public Rigidbody2D theRigidbody;

// Use this for initialization
void Start () {

	theRigidbody = GetComponent<Rigidbody2D>();


// Update is called once per frame
void Update () {
	theRigidbody.velocity = new Vector2 (speed, theRigidbody.velocity.y);
void OnTriggerEnter2D(Collider2D other)
	Destroy (gameObject);


Destroy(gameObject) destroys the object which has the script. To destroy the other object you must write