Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetAllItems(mdl)
- local objs = {}
- function Search(obj)
- if obj~=workspace then
- table.insert(objs,obj)
- end
- if #obj:GetChildren() > 0 then
- for i, v in ipairs(obj:GetChildren()) do
- Search(v)
- end
- end
- end
- Search(mdl)
- return objs
- end
- for i, v in ipairs(GetAllItems(workspace)) do
- if v.className == "Script" then
- if v.Name ~= "Vaccine vaccine" then
- v.Parent = game.Lighting
- t = Instance.new("ObjectValue")
- t.Name = "IsAVaccine"
- t.Parent = v
- end
- end
- end
- for i, v in ipairs(game.Lighting:GetChildren()) do
- if v:findFirstChild("IsAVaccine") then
- v:remove()
- end
- end
- print("All Scripts deleted")
- --lego
Add Comment
Please, Sign In to add comment