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: Editing a script Via script?

Previous Thread :: Next Thread 
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:17 AM
How would it be done, if possible?
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
08 Sep 2011 11:18 AM
Using the script's property "Source", however it's locked.

-Gamer for Life-
Report Abuse
Fl0xData is not online. Fl0xData
Joined: 01 Aug 2011
Total Posts: 18
08 Sep 2011 11:20 AM
Well
It is not impossible, but sure complicated.
If you want to write a script via another script, that's pretty easy.
You would have to check or know the position of every method and word of the script if you want to edit it.
Note that a Script's source is locked.
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
08 Sep 2011 11:20 AM
I cant be done anymore,

the scripts have a 'Source' property. a while ago you could access this property to change the scripts source, but the locked it because of security(?) reasons...

There are some ways arround it though...

by placing a StringValue inside a script and placing this code inside the script:

loadstring( script.StringValue.Value )()

now the StringValue acts like the Source property...
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:20 AM
what do you mean, using the source you can edit a script, how?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:23 AM
Apocalyps, i ment CREATE AND EDIT a script via script.
Report Abuse
Fl0xData is not online. Fl0xData
Joined: 01 Aug 2011
Total Posts: 18
08 Sep 2011 11:23 AM
No, we all said it's not possible anymore.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:24 AM
D:
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:25 AM
Is this "Source" now called LinkSource by any chance?
Report Abuse
Fl0xData is not online. Fl0xData
Joined: 01 Aug 2011
Total Posts: 18
08 Sep 2011 11:27 AM
LinkedSource is a CoreScript object, which, I guess, can only be created by admins or moderators.
I may be wrong.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:28 AM
I wonder, if linking the "LinkedSource" to the command script, i would be able to edit the script via the other script. Hmm.....
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
08 Sep 2011 11:28 AM
To 'create', a script wich will be editable, just place a script like i said before in Lighting and clone it...
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:30 AM
I found this on the wiki about LinkedSource:


LinkedSource



Property

Content LinkedSource



Description

URL that points to an online script source. Binds the online code to the script's Source.



In Object

BaseScript
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
08 Sep 2011 11:41 AM
A script can only edit a script.Source if it's a studio plugin script or run via the command-line or using the execute script... action. (all in studio).

If you want to create code on-line, you'll need to use loadstring (so technically you're not editing a 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