level script

the game i am working on is rolling ball
the ball counts and show a win text at the end
but thats it i need it to go to the next level
i dont know what to change in the script for that
can some one help pls ?

You seem like a beginner so I recommend following some tutorial that takes you from scratch to a complete, albeit simple, game. But for the sake of your specific question, you probably want to learn about the function OnTriggerEnter which is called on an object that has a trigger collider whenever another collider enters the current collider. Inside that function you want to call Application.LoadLevel. Click the links for more information.

Application.LoadLevel(“your next scene name”);

but first u need to put this scene into your game, so go to file → build settings → and drag your scene into scenes in build

i did
but it havent worked