hey!
I am trying to create a script that creates a script with lines that within the script that creates the script there are variables that I want to put inside the script that the script creates
is an example:
local variable = "hi!"
local scriptt = Instance.new("Script", game.StarterPack)
scriptt.Name = "script name"
scriptt.Source = [[
variable
]]
You can only use Source in the command line or plugins. Assuming you are making a plugin:
Can you elaborate on what you mean with the variables? Do you want this script to run with defined variables? Or do you want your script to use the same variables as the plugin?