How do I save my score to the next scene in a endless runner game.

I want my player to go to the next scene when he reach certain scores and that the score continues in the next scene. I was thinking about a “Don’t Destroy” function, but I am having problem with it.

@dasani2406 You must save the score in Player prefs. Just Follow the given links!!!

Set Score:
Unity - Scripting API: PlayerPrefs.SetInt

Get Score:
Unity - Scripting API: PlayerPrefs.GetInt