|
| 04 Jun 2015 04:56 PM |
a Module that takes Instance, Where to get descendants bool, Disable Table, Names of Scripts that should be ignored when disabling everything and then disables all the descendant Scripts of the given item (except the ones with a name that is included in the Table) I rlly need this for my Plugin XD
too lazy to do it myself, Credit will surely be given...
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 04 Jun 2015 04:58 PM |
plugin developers is ur primary
r u telling me
u can't develop your plugin
?? |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:03 PM |
I can, am just too lazy after Scripting all the Guns, Capture Point, Team stuff, Plugin stuff, etc etc... plus it's like 23:03 here, tired... but I rlly want people to Install the Plugin today :/
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
hdtv13
|
  |
| Joined: 18 Sep 2012 |
| Total Posts: 1628 |
|
|
| 04 Jun 2015 05:05 PM |
Lol I'm more creative at like 12am.. Also Gtfo
I have skin, potatoes have skin, therefore I'm a potato. |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:05 PM |
function Disable(obj, disable, ignore) for i,v in pairs(obj:GetChildren()) do local continue = false for ii,vv in pairs(ignore) do if v == vv or v.Name == vv then continue = true end end if not continue then v.Disabled = disable end Disable(v, disable, ignore) end end |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:09 PM |
hd, -_- nothing good to say, gtfo urself! :P
thnx war, do u guarantee this will work, cos ya know, no time for testing since I got exams tomorrow and crap XD
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:12 PM |
| Lol, I never test anything I post on the forums. :P Just test it on a model -_- |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:12 PM |
oh wait, that's GetChildren() XD damnit... I'll try to maybe make time quickly to transform it into GetDescendants...
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:13 PM |
| Dude mine does it for all descendants... |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:16 PM |
Disabled is not a valid member of Model
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:16 PM |
hmmm... I'll fix ur function up a knotch and I'll see Xd
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:18 PM |
woops, didn't notice the Disable(v, Disable) thingy XDDD but I fixed and it works, thnx a ton man! :D I'm feeling so tired and stuff man, saved my day :D
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 04 Jun 2015 05:19 PM |
if child:IsA("LuaSourceContainer") then child.Disabled = true end
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 05:22 PM |
thnx for the 'LuaSourceContainer' cos I forgot what the General ClassName/inherited from was XD
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 06:21 PM |
| Haha, my plan worked, I made you fix it! :) |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2015 06:45 PM |
lol XD
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|