Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
|
| 13 Jul 2015 02:59 AM |
| Is there away i can find all the scripts i have in my game just maybe by clicking a button and somthing comes up with all my scripts? |
|
|
| Report Abuse |
|
|
lomo0987
|
  |
| Joined: 31 May 2008 |
| Total Posts: 2461 |
|
|
| 13 Jul 2015 03:02 AM |
| all the scripts in the entire game? Or just in workspace? |
|
|
| Report Abuse |
|
|
Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
| |
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 13 Jul 2015 03:06 AM |
| local T = {} local function Recurse(O) for _,_ in next, O:GetChildren() do if (#O:GetChildren() % 1000) == 0 and #O:GetChildren() ~= 0 then wait() end if _:IsA'Script' then table.insert(T, _) end Recurse(_) end end Recurse(workspace) |
|
|
| Report Abuse |
|
|
Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
|
| 13 Jul 2015 03:08 AM |
umm im not the best scripter around and yee im not realy up to that level can you make that into a script? i didnt do the scripting in my game i just edited 40% of em |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
| |
|
lomo0987
|
  |
| Joined: 31 May 2008 |
| Total Posts: 2461 |
|
|
| 13 Jul 2015 03:10 AM |
| that's the script... Open up a script in Studio and paste it in.. |
|
|
| Report Abuse |
|
|
Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
| |
|
Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
|
| 13 Jul 2015 03:12 AM |
| and.. script local or module |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 13 Jul 2015 03:12 AM |
It uses the getchildren method to get any descendants of a item, then it gets the children of those and so on and so on.
It basically recurses through all objects and if it is a script, it adds them to a table. (This table is basically an array of all scripts) |
|
|
| Report Abuse |
|
|
Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
|
| 13 Jul 2015 03:15 AM |
| where do i find the table/array? |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 13 Jul 2015 03:17 AM |
well you could do something like
adding this line of code after what we already posted
for _,_ in next, T do print(_:GetFullName()) end
this should tell you the locations of each item
or use this
print(unpack(T)) |
|
|
| Report Abuse |
|
|
Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
| |
|
Adrixous
|
  |
| Joined: 01 Nov 2014 |
| Total Posts: 137 |
|
|
| 13 Jul 2015 03:18 AM |
| and do i do it while its running (test mode)? |
|
|
| Report Abuse |
|
|