What is the command to "run" a script?
#1
I might just know how to fix my weapons...
Reply
#2
In game, or in build?

In build it's the little Lua symbol. In game you'd need a chatscript. I could make one if you needed.
Reply
#3
No, in a script, so you could run another script.

eg. :remove(), :clone(), :play()
Reply
#4
The Source of a script isn't locked in Buildism like it is in ROBLOX.

local s = create("Script")
s.Source = [[
line1
line2
line3
line4
]]

Try something like that. I'm having issues loading the editor right now, but you may want to check the Rocket script by Jacob_ in the default place. I know for certain that the main script creates a working other script.
Reply
#5
I already have those in my script. It won't run the scripts the create within a script.
Reply
#6
You need to change source of the created script before parenting it somewhere

a = create("Script")
a.Parent = game.World
a.Source = "print('lol')"

> Hello!


a = create("Script")
a.Source = "print('lol')"
a.Parent = game.World

> lol


EDIT:

And if you need to run existing script, just cut and paste it..

local Script = script.Parent.CutPasteScript
Script.Parent = nil
Script.Parent = script.Parent
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply
#7
Oh crap. Thanks.
Reply
#8
Now, you fix it ^_^
Reply
#9
I had to fix it in notepad....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)