generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Print entire script to output

Previous Thread :: Next Thread 
AltJustForForums is not online. AltJustForForums
Joined: 03 Jul 2013
Total Posts: 1564
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
FertileTurtle is not online. FertileTurtle
Joined: 04 Dec 2012
Total Posts: 1414
16 Nov 2014 09:01 AM
print(game.ServerScriptService.Script.Source)


I like turtles.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 09:02 AM
Nope. Not that I'm aware.
Report Abuse
AltJustForForums is not online. AltJustForForums
Joined: 03 Jul 2013
Total Posts: 1564
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
FertileTurtle is not online. FertileTurtle
Joined: 04 Dec 2012
Total Posts: 1414
16 Nov 2014 09:04 AM
print(game.ServerScriptService['Name with spaces'].Source)
It works, I've tested it.


I like turtles.
Report Abuse
AltJustForForums is not online. AltJustForForums
Joined: 03 Jul 2013
Total Posts: 1564
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
AltJustForForums is not online. AltJustForForums
Joined: 03 Jul 2013
Total Posts: 1564
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
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
16 Nov 2014 09:10 AM
Probably HTML

Post what you put.
Report Abuse
AltJustForForums is not online. AltJustForForums
Joined: 03 Jul 2013
Total Posts: 1564
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
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
16 Nov 2014 09:15 AM
game.StarterPack["Learn to script"]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image