04-27-2011, 12:47 PM
I might just know how to fix my weapons...
What is the command to "run" a script?
|
04-27-2011, 12:47 PM
I might just know how to fix my weapons...
04-27-2011, 02:40 PM
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.
04-28-2011, 04:25 AM
No, in a script, so you could run another script.
eg. :remove(), :clone(), :play()
04-28-2011, 02:07 PM
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.
04-28-2011, 02:50 PM
I already have those in my script. It won't run the scripts the create within a script.
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
04-29-2011, 02:43 PM
Oh crap. Thanks.
04-29-2011, 04:29 PM
Now, you fix it ^_^
04-30-2011, 01:28 AM
I had to fix it in notepad....
|
« Next Oldest | Next Newest »
|