Parsing Error/Indentifier expected?

Hi there. I have a project due tomorrow where I’m using this code:

using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour
{

	public float speed;
	
	void FixedUpdate ()
	{
		float moveHorizontal = Input.GetAxis("Horizontal");
		float moveVertical = Input.GetAxis("Vertical");
		
		Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
		
		rigidbody.AddForce(movement * speed * Time.deltaTime);
	}

	void OnTriggerEnter(Collider other)
	{
			if (other.gameObject.tag == "Pickup") 		
			{		
				other.gameObject.SetActive(false);
		}
	}			
}
Destroy(other.gameObject);
gameObject.tag= "Player";
gameObject.SetActive(false);

But I keep getting a ton of errors. Such as parsing, or identifier unexpected? The project I’m working on is due tommorow, I’d appreciate help haha. Thanks~

Welcome to Unity Answers! In the future, please format your code while submitting your question. You can do this by selecting the code and pressing the 101010 button next to the textbox. I’ve gone ahead and taken care of that for you, this time.

Also, when submitting questions about error messages, it’s a good idea to include the exact text of the entire error message.

In your case, I do see one obvious problem with these last three lines:

Destroy(other.gameObject);
gameObject.tag= "Player";
gameObject.SetActive(false);

Looking at your braces, those three lines don’t appear to be contained within any function, or even within your PlayerController class. Perhaps those are supposed to go in your OnTriggerEnter function?