How would I make it so that a player can create a script in game, then edit the script? An example would be a script builder game.
Here you go: http://www.roblox.com/Script-Builder-item?id=154539348
That will give you everything you need to make your own Script Builder.