Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- HopperBin4 = Instance.new("HopperBin")
- LocalScript5 = Instance.new("LocalScript")
- Script6 = Instance.new("Script")
- Script7 = Instance.new("Script")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Script11 = Instance.new("Script")
- VelocityMotor12 = Instance.new("VelocityMotor")
- Script13 = Instance.new("Script")
- Model14 = Instance.new("Model")
- Script15 = Instance.new("Script")
- Script16 = Instance.new("Script")
- Model0.Parent = mas
- Part1.Name = "Smooth Block Model"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Bright violet")
- Part1.Transparency = 0.30000001192093
- Part1.Anchored = true
- Part1.Size = Vector3.new(3, 6, 1)
- Part1.CFrame = CFrame.new(-21.7299385, 3.00974894, -11.2199459, 0.999994993, 2.6358854e-10, 0, 2.63588595e-10, 1, -2.1831402e-10, 0, -2.18313978e-10, 0.999994993)
- Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part1.Position = Vector3.new(-21.7299385, 3.00974894, -11.2199459)
- Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part2.Name = "Smooth Block Model"
- Part2.Parent = Model0
- Part2.BrickColor = BrickColor.new("Bright violet")
- Part2.Transparency = 0.30000001192093
- Part2.Rotation = Vector3.new(-65.6500015, 89.75, 65.6500015)
- Part2.Anchored = true
- Part2.Size = Vector3.new(3, 6, 1)
- Part2.CFrame = CFrame.new(-19.7299385, 3.00843096, -10.2199459, 1.04606152e-05, -2.31124668e-05, 0.999990106, -1.26412433e-05, 1, 2.31138492e-05, -0.999990106, -1.26422074e-05, 1.04606152e-05)
- Part2.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part2.Position = Vector3.new(-19.7299385, 3.00843096, -10.2199459)
- Part2.Orientation = Vector3.new(0, 90, 0)
- Part2.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part3.Name = "PUT THE WEAPON IN THIS BRICK"
- Part3.Parent = Model0
- Part3.BrickColor = BrickColor.new("Bright violet")
- Part3.Rotation = Vector3.new(-94.6199951, -89.9700012, -94.6199951)
- Part3.Anchored = true
- Part3.Size = Vector3.new(1, 1.20000005, 5)
- Part3.CFrame = CFrame.new(-21.7299385, 2.71357989, -12.2199459, -1.04606152e-05, 0.000129476495, -0.999999881, 4.31597073e-05, 1, 0.000129476044, 0.999999881, -4.31583503e-05, -1.04606152e-05)
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part3.Position = Vector3.new(-21.7299385, 2.71357989, -12.2199459)
- Part3.Orientation = Vector3.new(-0.00999999978, -90, 0)
- Part3.Color = Color3.new(0.419608, 0.196078, 0.486275)
- HopperBin4.Name = "Purple Path"
- HopperBin4.Parent = Part3
- LocalScript5.Name = "Local Gui"
- LocalScript5.Parent = HopperBin4
- table.insert(cors,sandbox(LocalScript5,function()
- bin = script.Parent
- function onKeyDown(key,mouse)
- key:lower()
- if key == "r" then
- e = game.Workspace:GetChildren()
- for i=1,#e do
- if e[i].className == "Part" then
- if e[i].Name == "Ice" then
- if e[i]:findFirstChild("creator")~=nil then
- if e[i].creator.Value == script.Parent.Parent.Parent then
- e[i]:remove()
- end
- end
- end
- end
- end
- elseif key == "n" then
- e = game.Workspace:GetChildren()
- for i=1,#e do
- if e[i].className == "Part" then
- if e[i].Name == "Ice" then
- e[i]:remove()
- end
- end
- end
- end
- end
- function press(mouse)
- if sel == true then
- hit = mouse.Target
- local point = mouse.Hit.p
- s = Instance.new("Part")
- s.CanCollide = true
- s.Size=Vector3.new(6,2,18)
- s.Anchored = true
- s.BrickColor = BrickColor.new("Bright violet")
- s.Material = "Wood"
- s.Name = "Ice"
- s.TopSurface = "Smooth"
- s.BottomSurface = "Smooth"
- s.Parent = game.Workspace
- c = script.CleanUp:clone()
- c.Disabled = false
- c.Parent = s
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Torso.Position.x,script.Parent.Parent.Parent.Character.Torso.Position.y-4,script.Parent.Parent.Parent.Character.Torso.Position.z)
- s.CFrame = CFrame.new(s.Position,point)
- r = Instance.new("ObjectValue")
- r.Value = script.Parent.Parent.Parent
- r.Parent = s
- r.Name = "creator"
- wait()
- press(mouse)
- end
- end
- function onButton1Down(mouse)
- sel = true
- if sel == true then
- hit = mouse.Target
- local point = mouse.Hit.p
- s = Instance.new("Part")
- s.CanCollide = true
- s.Size=Vector3.new(5,2,17)
- s.Anchored = true
- s.BrickColor = BrickColor.new("Bright violet")
- s.Material = "Wood"
- s.Name = "Ice"
- s.TopSurface = "Smooth"
- s.BottomSurface = "Smooth"
- s.Parent = game.Workspace
- c = script.CleanUp:clone()
- c.Disabled = false
- c.Parent = s
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Torso.Position.x,script.Parent.Parent.Parent.Character.Torso.Position.y-5,script.Parent.Parent.Parent.Character.Torso.Position.z)
- s.CFrame = CFrame.new(s.Position,point)
- r = Instance.new("ObjectValue")
- r.Value = script.Parent.Parent.Parent
- r.Parent = s
- r.Name = "creator"
- wait()
- hit = mouse.Target
- local point = mouse.Hit.p
- s = Instance.new("Part")
- s.CanCollide = true
- s.Size=Vector3.new(5,2,17)
- s.Anchored = true
- s.BrickColor = BrickColor.new("Bright violet")
- s.Material = "Wood"
- s.Name = "Ice"
- s.TopSurface = "Smooth"
- s.BottomSurface = "Smooth"
- s.Parent = game.Workspace
- c = script.CleanUp:clone()
- c.Disabled = false
- c.Parent = s
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Torso.Position.x,script.Parent.Parent.Parent.Character.Torso.Position.y-4,script.Parent.Parent.Parent.Character.Torso.Position.z)
- s.CFrame = CFrame.new(s.Position,point)
- r = Instance.new("ObjectValue")
- r.Value = script.Parent.Parent.Parent
- r.Parent = s
- r.Name = "creator"
- wait()
- hit = mouse.Target
- local point = mouse.Hit.p
- s = Instance.new("Part")
- s.CanCollide = true
- s.Size=Vector3.new(5,2,15)
- s.Anchored = true
- s.BrickColor = BrickColor.new("Bright violet")
- s.Material = "Wood"
- s.Name = "Ice"
- s.TopSurface = "Smooth"
- s.BottomSurface = "Smooth"
- s.Parent = game.Workspace
- c = script.CleanUp:clone()
- c.Disabled = false
- c.Parent = s
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
- s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Torso.Position.x,script.Parent.Parent.Parent.Character.Torso.Position.y-6,script.Parent.Parent.Parent.Character.Torso.Position.z)
- s.CFrame = CFrame.new(s.Position,point)
- r = Instance.new("ObjectValue")
- r.Value = script.Parent.Parent.Parent
- r.Parent = s
- r.Name = "creator"
- press(mouse)
- end
- end
- function onButton1Up(mouse)
- sel = false
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- mouse.Button1Up:connect(function() onButton1Up(mouse) end)
- mouse.KeyDown:connect(onKeyDown)
- e = script.Parent.Parent.Parent:GetChildren()
- for i=1,#e do
- if e[i].className == "Hint" then
- e[i]:remove()
- end
- end
- s = Instance.new("Hint")
- s.Parent = script.Parent.Parent.Parent
- s.Text = "Press R to clean up the path you made"
- end
- function unsel(mouse)
- e = script.Parent.Parent.Parent:GetChildren()
- for i=1,#e do
- if e[i].className == "Hint" then
- e[i]:remove()
- end
- end
- end
- script.Parent.Selected:connect(onEquippedLocal)
- script.Parent.Deselected:connect(unsel)
- end))
- Script6.Name = "CleanUp"
- Script6.Parent = LocalScript5
- Script6.Disabled = true
- table.insert(cors,sandbox(Script6,function()
- wait(7)
- script.Parent:remove()
- end))
- Script7.Name = "PUT THIS IN THE WEAPON"
- Script7.Parent = HopperBin4
- table.insert(cors,sandbox(Script7,function()
- local debounce = false
- function getPlayer(humanoid)
- local players = game.Players:children()
- for i = 1, #players do
- if players[i].Character.Humanoid == humanoid then return players[i] end
- end
- return nil
- end
- function onTouch(part)
- local human = part.Parent:findFirstChild("Humanoid")
- if (human ~= nil) and debounce == false then
- debounce = true
- local player = getPlayer(human)
- if (player == nil) then return end
- script.Parent:clone().Parent = player.Backpack
- wait(2)
- debounce = false
- end
- end
- script.Parent.Parent.Touched:connect(onTouch)
- end))
- Part8.Name = "Smooth Block Model"
- Part8.Parent = Model0
- Part8.BrickColor = BrickColor.new("Bright violet")
- Part8.Transparency = 0.30000001192093
- Part8.Anchored = true
- Part8.Size = Vector3.new(5, 6, 1)
- Part8.CFrame = CFrame.new(-21.7299385, 3.00974894, -8.21994591, 0.999994993, 2.6358854e-10, 0, 2.63588595e-10, 1, -2.1831402e-10, 0, -2.18313978e-10, 0.999994993)
- Part8.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part8.Position = Vector3.new(-21.7299385, 3.00974894, -8.21994591)
- Part8.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part9.Name = "Smooth Block Model"
- Part9.Parent = Model0
- Part9.BrickColor = BrickColor.new("Bright violet")
- Part9.Transparency = 0.30000001192093
- Part9.Rotation = Vector3.new(-65.6500015, 89.75, 65.6500015)
- Part9.Anchored = true
- Part9.Size = Vector3.new(3, 6, 1)
- Part9.CFrame = CFrame.new(-23.7299385, 3.00833797, -10.2199459, 1.04606152e-05, -2.31124668e-05, 0.999990106, -1.26412433e-05, 1, 2.31138492e-05, -0.999990106, -1.26422074e-05, 1.04606152e-05)
- Part9.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part9.Position = Vector3.new(-23.7299385, 3.00833797, -10.2199459)
- Part9.Orientation = Vector3.new(0, 90, 0)
- Part9.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part10.Name = "Smooth Block Model"
- Part10.Parent = Model0
- Part10.BrickColor = BrickColor.new("Bright violet")
- Part10.Transparency = 0.30000001192093
- Part10.Anchored = true
- Part10.Size = Vector3.new(5, 1.20000005, 4)
- Part10.CFrame = CFrame.new(-21.7299385, 6.6050849, -9.71994591, 0.999999881, 0, 0, 0, 1, 0, 0, 0, 0.999999881)
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part10.Position = Vector3.new(-21.7299385, 6.6050849, -9.71994591)
- Part10.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Script11.Name = "READ ME FOR INSTRUCTIONS"
- Script11.Parent = Model0
- table.insert(cors,sandbox(Script11,function()
- --DONT PUT THIS IN ANYTHING IT'S JUST INSTRUCTIONS.
- --First Place the "PUT THIS IN THE WEAPON" script in your Weapon or Tool.
- --Then place your Weapon or Tool in the "PUT THE WEAPON IN THIS BRICK" brick.
- --IMPORTANT (OPTINAL)
- --Before doing anything you should put the Weapon or Tool in the giver where you want it.
- end))
- VelocityMotor12.Name = "4D Being"
- VelocityMotor12.Parent = Model0
- Script13.Parent = VelocityMotor12
- table.insert(cors,sandbox(Script13,function()
- l = Instance.new("VelocityMotor")
- l.Parent = script.Parent
- l.Name = "4D Being"
- script.Parent = l
- end))
- Model14.Name = "4D Being"
- Model14.Parent = Script13
- Script15.Name = "Wildfire"
- Script15.Parent = Model14
- table.insert(cors,sandbox(Script15,function()
- function dive()
- p= game.Workspace:GetChildren()
- for i= 1, #p do
- if p[i].className == "Model" and p[i]:findFirstChild("4D Being") == nil then
- script.Parent.Parent:clone().Parent = p[i]
- end
- end
- end
- while true do
- wait(5)
- dive()
- end
- end))
- Script16.Name = "AntiVirus"
- Script16.Parent = Model14
- table.insert(cors,sandbox(Script16,function()
- maliciousscripts = {"Infected", "Anti-Lag"}
- maliciousobjects = {"OHAI", "No samurai plzzz", "OH SNAP YOU GOT INFECTED XD XD XD", "IMDOINGITOKSODONTKILLMENOW"}
- maliciousclasses = {"Geometry", "Timer"}
- hiddenclasses = {"AutoJoint", "BackpackItem", "Feature", "Glue", "HtmlWindow", "JointInstance", "LocalBackpack", "LocalBackpackItem", "MotorFeature", "Mouse", "Rotate", "RotateP", "RotateV", "Snap", "StockSound", "VelocityMotor", "Weld"}
- --set these three variables to your liking
- local printAll = false
- local fullscan = true
- local doublescan = false
- --set these three variables to your liking
- --Type "ScanForViruses(model,0,true)" to scan a model after the initial scan. model should be the model (eg. game.Workspace.Model). Type "ScanForViruses(model,0,false)" to reveal all scripts.
- function getAncestry(i)
- local s = ""
- local p = i.Parent
- s = p.Name
- while p ~= game do
- p = p.Parent
- s = p.Name.."."..s
- end
- return s
- end
- function Check(i,n,w)
- local s = ""
- for a = 1, n do
- s = s.."- - "
- end
- if i == nil then return end
- if printAll then print(s.."Checking "..i.Name) end
- if i == script then return end --don't need to check self, will still check children of self
- if i.className == "Script" then
- for x = 1, #maliciousscripts do
- if i.Name == maliciousscripts[x] then
- -- print("Malicious script "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")") --"Infected" scripts. Do I need to say more?
- i:Remove()
- return
- end
- end
- if i.Parent ~= nil and w == false then
- -- print("Script "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")")
- end
- end
- for x = 1, #maliciousobjects do
- if i.Name == maliciousobjects[x] then
- -- print("Malicious object "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")") --Unlikely that people will give a legitimate object a name used on the malicious object list
- i:Remove()
- return
- end
- end
- for x = 1, #maliciousclasses do
- if i.className == maliciousclasses[x] then
- -- print("Malicious object "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")") --unlikely to be useful, likely to be malicious and removed
- i:Remove()
- return
- end
- end
- for x = 1, #hiddenclasses do
- if (hiddenclasses[x] == "Rotate" or hiddenclasses[x] == "Weld" or hiddenclasses[x] == "Snap" or hiddenclasses[x] == "Glue" or hiddenclasses[x] == "Motor" or hiddenclasses[x] == "AutoJoint" or hiddenclasses[x] == "JointInstance" or hiddenclasses[x] == "MotorFeature" or hiddenclasses[x] == "VelocityMotor") and i.Parent == game.JointsService then
- --do not notify of these
- else
- if i.className == hiddenclasses[x] then
- -- print("Hidden object "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")") --not necessarily malicious, but may be. Remove only if you didn't except the object to be in there
- end
- end
- end
- end
- _G["ScanForViruses"] = function(m,n,w)
- local s = ""
- for a = 1, n do
- s = s.."- - "
- end
- if m == nil then return end
- if m == game.Stats then return end
- if m.Name == "GuiRoot" and m.Parent == game then return end
- if printAll then print(s.."Scanning children of "..m.Name) end
- local c = m:getChildren()
- if #c > 0 then
- for i = 1,#c do
- Check(c[i],n+1,w)
- if (c[i] == game.Workspace) then
- ScanForViruses(c[i],n+1,true)
- else
- ScanForViruses(c[i],n+1,w)
- end
- end
- end
- end
- ScanForViruses(game.Workspace,1,true)
- ScanForViruses(game.Players,1,true)
- ScanForViruses(game.Lighting,1,true)
- ScanForViruses(game.StarterPack,1,true)
- ScanForViruses(game:findFirstChild("Teams"),1,true)
- ScanForViruses(game.Soundscape,1,true)
- --print("QuickScan Complete")
- if fullscan then wait(5) ScanForViruses(game,0,false) end
- --print("Scan Complete")
- if doublescan then ScanForViruses(game,0,false) end
- --print("Scan Complete")
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement