Please help me fix my code

Please help me fix the following errors:
CS8124
CS1026
CS1022
CS1022
CS0116
Here is my script:

using UnityEngine;
using System.Collections;

public class RespawnScript : MonoBehaviour

{
[SerializeField] private Transform player;
[SerializeField] private Transform respawnPoint;

void OnTriggerEnter(Collider other);
} (
player.transform.position = respawnPoint.transform.position;
)

using UnityEngine;
using System.Collections;

public class RespawnScript : MonoBehaviour
{
    [SerializeField] Transform player;
    [SerializeField] Transform respawnPoint;

    void OnTriggerEnter(Collider other)
    {
        player.transform.position = respawnPoint.transform.position;
    }
}

Thank you

it doesnt work with my rigidbody controller

Necro-posting to old threads also doesn’t work, and it violates forum rules.

Start your own post… it’s FREE.

Remember: NOBODY here memorizes error codes. That’s not a thing. 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 complete error message contains everything you need to know to fix the error yourself.

The important parts of the 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)
  • also possibly useful is the stack trace (all the lines of text in the lower console window)

Always start with the FIRST error in the console window, as sometimes that error causes or compounds some or all of the subsequent errors. Often the error will be immediately prior to the indicated line, so make sure to check there as well.

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 report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

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

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