|
| 16 Nov 2014 09:00 AM |
As you might know, roblox has added the Developer Console for in-game owners to test. I need to print an entire script, or a line from the script, using the output.
Are there any members of "Script" that would allow me to do this? |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 09:01 AM |
print(game.ServerScriptService.Script.Source)
I like turtles. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
|
| 16 Nov 2014 09:04 AM |
| The script name has spaces in it, so the output decided to be a jerk and return an error. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 09:04 AM |
print(game.ServerScriptService['Name with spaces'].Source) It works, I've tested it.
I like turtles. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 09:08 AM |
'< n a m e >' expected near '['
Sorry, Roblox freaks out whenever you try to post something in between two < of those things. Presumably because it causes a screw-up with JavaScript? |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 09:10 AM |
Oh, I had put a dot after ServerScriptService. But it says my script name is not a valid member? |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 09:10 AM |
Probably HTML
Post what you put. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 09:12 AM |
print(game.ServerScriptService['Script with spaces'].Source) The script is located in StarterPack (not in a tool) if that helps. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 09:15 AM |
| game.StarterPack["Learn to script"] |
|
|
| Report Abuse |
|
|