I'm creating a new game which the player can jump from one planet to another and also I need the planet to be rotating too. Can anyone give me the scripts for it? I'm a beginner and I'm still learning most of the keywords.
That is an extremely challenging game to make. Have you considered setting your sights a little more realistically and working through a few dozen simpler games first? Either way, this tutorial from Sebastian Lague worked PERFECTLY for me a week ago, when I was able to directly use the code provided in the link to run around on my own little spherical world. All you need from then is some interplanetary ballistics of some kind... go nuts, see what you can come up with!
Of course you're welcome! But I also just realized that I misread your 2D and thought you wrote 3D... my bad! The good news is that 2D planets are quite a bit easier to work with, and there's cool tutorials for those to. Here's what I just saw, your googling may vary: