To be honest this is starting to get to me.. lol
I don't need my question getting deleted so i'll write a code attempt if anyone could answer this question it would help alot
Instance.new("Script",game.Workspace).Source="print(\"Hello World! v2\")"
note this isn't mine this is a script i found when trying to figure this question out

4 comments
Don't do that. Roblox studio will crash.
Do you have a pre-written script that has code that you want on the new script?
And yes i do i just want to instance the script then write in it in the same script.. is it possible?
The "Source" can only be accessed in the command bar or in a plugin environment, all other access is blocked for good reasons.