Why will it not scan workspace for anything in the virus chest variable?
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
READ on bottom to see attempt to fix it by a previous question.
main code that is probleming:
1 | local w = workspace:GetDescendants() |
2 | for i = 1 , #VirusChest do |
3 | if w [ i ] .Name = = #VirusChest then |
4 | w [ i ] .Parent = newFolder 3 |
variables:
002 | "join teh moovment!" ; |
005 | "Deth 2 teh samurai!" ; |
007 | "OH SNAP YOU GOT INFECTED XD XD XD" ; |
024 | "d??????????????ng.........you got owned..." ; |
027 | "hello...i ?m your new lord lolz" ; |
029 | "guest_talking_script" ; |
032 | "script.....or..is.it" ; |
044 | "no availiblitly lock" ; |
055 | "Guest Free Chat Script" ; |
063 | "garmo hacked ur place" ; |
066 | "Dont Worry Im A Friendly Virus" ; |
070 | "stanley12345678910" ; |
077 | "Making Cat Ice Cream Make Me Happy!" ; |
081 | "IAmHereToHe?lYourPlace" ; |
082 | "ProperGr?mmerNeededInPhilosiphalLocations;insertNoobHere" ; |
083 | "I'm getting T1R33D" ; |
087 | "FreeStyleM?yGoAnywhereIfNeeded" ; |
088 | "ThisScriptIsAJumpStartToAHe?lthyLifestyle" ; |
089 | "d??????????????ng.........you got owned..." ; |
090 | "Deidara4 is sick of you noobs." ; |
092 | "FeelFreeToIns3rtGramm?tic?lErrorsHere" ; |
093 | "Nomnomnom1 will hack you too! MWAHAHA!" ; |
095 | "ZXMLFCSAJORWQ#)CXFDRE)$#Q)JCOUSEW#)@!HOIFDS(AEQ#HI*DFHRI(#FA" ; |
096 | "NoNoIDon'tNeedAllOfYourAwkw?rdSovietArguments" ; |
srry i had to rush it, pls help comment if u have questions
Also, trying to change to these as well, did not work:
for i, v in pairs(VirusChest) do
and
if w[i].Name == VirusChest[i] then