Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to edit a script from a script?

Asked by 5 years ago

For example lets say

script = game.Workspace.Script
--Just a example of what I want 
script.Code = Code.new(game.workspace,11)--Line number

and we wanted to edit it is there any variable for this?

0
No, you can't Rare_tendo 3000 — 5y
0
I you can't do this. Quick answer. WideSteal321 773 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

No, you cannot edit a Script's inner code directly with another Script.

However, you can alter the "Disabled" property of another Script in order to turn them on or off, (which could effectively break a loop or prevent another script's function from being activated), as well as use Module Scripts to return called values to carry out functions within a different Local or Server Script.

Ad

Answer this question