Hello,
@ScriptedPoptartz and i want to make a plugin called Team script, a plugin that let you edit a script together at the same time but we cant figure out a way to run the script.
It would be nice if someone could help us!
Hello,
@ScriptedPoptartz and i want to make a plugin called Team script, a plugin that let you edit a script together at the same time but we cant figure out a way to run the script.
It would be nice if someone could help us!
This is a great question, you can’t actually run the script without changing a current script in the game. You can change the script’s code ONLY FROM A PLUGIN using script.Source
. The easiest way to test the script would be to do that and then run the game
Also, I love the plugin idea you are making, let me know how it goes!
Just reading up on this, and I know it was so long ago, ago I recall a Lua function called loadstring(code)
. This will return a function with the code inside. Example:
local programCode = '...' -- Code here
loadstring(programCode)()
-- Two sets of parenthasis because you need to run the function after it is returned
Again, sorry about the late bump, but I just reread this and wanted to apologize for the wrong solution