kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
|
| 16 Sep 2017 03:52 PM |
How can you edit / read / create a script from another script or from a plugin
(Im not tryna loadstring here)
|
|
|
| Report Abuse |
|
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|
LuaDesign
|
  |
| Joined: 24 May 2010 |
| Total Posts: 1336 |
|
|
| 16 Sep 2017 05:07 PM |
Can't, would cause security issues. If a script could read another script that would make it easier for people to use programs to take copy of your games. Can't edit/create scripts without loadstring, only LMM can do that without loadstring and I have no idea how. But ya.
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 16 Sep 2017 05:08 PM |
| my plugin does that :weeb: |
|
|
| Report Abuse |
|
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|
soutenu
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 1021 |
|
|
| 17 Sep 2017 07:12 PM |
| you can set the Source from a plugin |
|
|
| Report Abuse |
|
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 18 Sep 2017 06:10 PM |
| while v.Source:match(i) do local s,e = v.Source:find(i) v.Source = v.Source:sub(1,s - 1)..m..v.Source:sub(e + 1) local _,line = v.Source:sub(1,s):gsub("\n","") ####################################### "..line + 1,"Replaced ####### with "..m) end i think i did something like that for level1 :weeb:ifier |
|
|
| Report Abuse |
|
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|
|
| 21 Sep 2017 08:48 PM |
| The Source property of a script is the code that is in the script that is to be executed. You cannot write or read the source property of a script, only a plugin can do so. |
|
|
| Report Abuse |
|
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
| |
|