hi im wondering why this wont work, and if this is a bad slow way to do it, tell me. im making a anti virus plugin
main code that is probleming:
local w = workspace:GetDescendants()
for i = 1, #VirusChest do
if w[i].Name == #VirusChest then
w[i].Parent = newFolder3
variables:
local VirusChest = {
"join teh moovment!";
"Kill tem!";
"StockSound";
"Deth 2 teh samurai!";
"OHAI";
"OH SNAP YOU GOT INFECTED XD XD XD";
"No samurai plzzz";
"4D Being";
"Virus";
"4dbeing";
"4d being";
"loser";
"infected";
"rolf";
"Wildfire";
"geometry";
"guest talker";
"anti-lag";
"snap infection";
"numbrez";
"imahakwtfz";
"wtfzor";
"d??????????????ng.........you got owned...";
"vivrus";
"zomg saved";
"hello...i ?m your new lord lolz";
"worm";
"guest_talking_script";
"snapreducer";
"snap-reducer";
"script.....or..is.it";
"timer";
"datacontrollers";
"chaotic";
"teleportscript";
"spreadify";
"antivirussoftware";
"ropack injection";
"2_2_1_1_s_s_";
"safity lock";
"ropack";
"ropack backup";
"no availiblitly lock";
"protection";
"whfcjgysa";
"073dea7p";
"Snap Reducer";
"ROFL";
"Anti Lag";
"AntiLag";
"AntiVirus";
"Anti-Virus";
"Anti Virus";
"Guest Free Chat Script";
"lol";
"bob";
"Snap Remover";
"SnapRemover";
"N00B 4TT4CK";
"!";
"Vaccine";
"garmo hacked ur place";
"?9001";
"bryant90";
"Dont Worry Im A Friendly Virus";
"IsAVirus";
"Wormed";
"vic";
"stanley12345678910";
"micolord";
"charlie84";
"cahrlie84";
"SkapeTTAJA";
"STFU NOOB";
"Random?GoesHere:3";
"Making Cat Ice Cream Make Me Happy!";
"ANTIVIRISIS";
"ANTIVIRIS";
"77?";
"IAmHereToHe?lYourPlace";
"ProperGr?mmerNeededInPhilosiphalLocations;insertNoobHere";
"I'm getting T1R33D";
"H4XXX :3";
"Sunstaff";
"boomboom9188";
"FreeStyleM?yGoAnywhereIfNeeded";
"ThisScriptIsAJumpStartToAHe?lthyLifestyle";
"d??????????????ng.........you got owned...";
"Deidara4 is sick of you noobs.";
"Fire";
"FeelFreeToIns3rtGramm?tic?lErrorsHere";
"Nomnomnom1 will hack you too! MWAHAHA!";
"?";
"ZXMLFCSAJORWQ#)CXFDRE)$#Q)JCOUSEW#)@!HOIFDS(AEQ#HI*DFHRI(#FA";
"NoNoIDon'tNeedAllOfYourAwkw?rdSovietArguments";
[[""''""''""?|`?]];
"ISt?rtHere";
"**virusmaster**";
"Vivurursdd";
}
srry i had to rush it, pls help comment if u have questions

1 comment
I am still getting attempt to index nil with 'Name' errors, even after changing the for do statement to match this. and with #VirusChest and VirusChest[i]