Advertisement
Godofadmin1337

v buck

Sep 1st, 2018
1,585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.51 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Part2 = Instance.new("Part")
  22. Part3 = Instance.new("Part")
  23. HopperBin4 = Instance.new("HopperBin")
  24. LocalScript5 = Instance.new("LocalScript")
  25. Script6 = Instance.new("Script")
  26. Script7 = Instance.new("Script")
  27. Part8 = Instance.new("Part")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Script11 = Instance.new("Script")
  31. VelocityMotor12 = Instance.new("VelocityMotor")
  32. Script13 = Instance.new("Script")
  33. Model14 = Instance.new("Model")
  34. Script15 = Instance.new("Script")
  35. Script16 = Instance.new("Script")
  36. Model0.Parent = mas
  37. Part1.Name = "Smooth Block Model"
  38. Part1.Parent = Model0
  39. Part1.BrickColor = BrickColor.new("Bright violet")
  40. Part1.Transparency = 0.30000001192093
  41. Part1.Anchored = true
  42. Part1.Size = Vector3.new(3, 6, 1)
  43. 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)
  44. Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
  45. Part1.Position = Vector3.new(-21.7299385, 3.00974894, -11.2199459)
  46. Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
  47. Part2.Name = "Smooth Block Model"
  48. Part2.Parent = Model0
  49. Part2.BrickColor = BrickColor.new("Bright violet")
  50. Part2.Transparency = 0.30000001192093
  51. Part2.Rotation = Vector3.new(-65.6500015, 89.75, 65.6500015)
  52. Part2.Anchored = true
  53. Part2.Size = Vector3.new(3, 6, 1)
  54. 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)
  55. Part2.Color = Color3.new(0.419608, 0.196078, 0.486275)
  56. Part2.Position = Vector3.new(-19.7299385, 3.00843096, -10.2199459)
  57. Part2.Orientation = Vector3.new(0, 90, 0)
  58. Part2.Color = Color3.new(0.419608, 0.196078, 0.486275)
  59. Part3.Name = "PUT THE WEAPON IN THIS BRICK"
  60. Part3.Parent = Model0
  61. Part3.BrickColor = BrickColor.new("Bright violet")
  62. Part3.Rotation = Vector3.new(-94.6199951, -89.9700012, -94.6199951)
  63. Part3.Anchored = true
  64. Part3.Size = Vector3.new(1, 1.20000005, 5)
  65. 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)
  66. Part3.TopSurface = Enum.SurfaceType.Smooth
  67. Part3.Color = Color3.new(0.419608, 0.196078, 0.486275)
  68. Part3.Position = Vector3.new(-21.7299385, 2.71357989, -12.2199459)
  69. Part3.Orientation = Vector3.new(-0.00999999978, -90, 0)
  70. Part3.Color = Color3.new(0.419608, 0.196078, 0.486275)
  71. HopperBin4.Name = "Purple Path"
  72. HopperBin4.Parent = Part3
  73. LocalScript5.Name = "Local Gui"
  74. LocalScript5.Parent = HopperBin4
  75. table.insert(cors,sandbox(LocalScript5,function()
  76. bin = script.Parent
  77. function onKeyDown(key,mouse)
  78. key:lower()
  79. if key == "r" then
  80. e = game.Workspace:GetChildren()
  81. for i=1,#e do
  82. if e[i].className == "Part" then
  83. if e[i].Name == "Ice" then
  84. if e[i]:findFirstChild("creator")~=nil then
  85. if e[i].creator.Value == script.Parent.Parent.Parent then
  86. e[i]:remove()
  87. end
  88. end
  89. end
  90. end
  91. end
  92. elseif key == "n" then
  93. e = game.Workspace:GetChildren()
  94. for i=1,#e do
  95. if e[i].className == "Part" then
  96. if e[i].Name == "Ice" then
  97. e[i]:remove()
  98. end
  99. end
  100. end
  101.  
  102. end
  103. end
  104.  
  105. function press(mouse)
  106. if sel == true then
  107. hit = mouse.Target
  108. local point = mouse.Hit.p
  109. s = Instance.new("Part")
  110. s.CanCollide = true
  111. s.Size=Vector3.new(6,2,18)
  112. s.Anchored = true
  113. s.BrickColor = BrickColor.new("Bright violet")
  114. s.Material = "Wood"
  115. s.Name = "Ice"
  116. s.TopSurface = "Smooth"
  117. s.BottomSurface = "Smooth"
  118. s.Parent = game.Workspace
  119. c = script.CleanUp:clone()
  120. c.Disabled = false
  121. c.Parent = s
  122. s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
  123. 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)
  124. s.CFrame = CFrame.new(s.Position,point)
  125. r = Instance.new("ObjectValue")
  126. r.Value = script.Parent.Parent.Parent
  127. r.Parent = s
  128. r.Name = "creator"
  129. wait()
  130. press(mouse)
  131. end
  132. end
  133.  
  134.  
  135. function onButton1Down(mouse)
  136. sel = true
  137. if sel == true then
  138. hit = mouse.Target
  139. local point = mouse.Hit.p
  140. s = Instance.new("Part")
  141. s.CanCollide = true
  142. s.Size=Vector3.new(5,2,17)
  143. s.Anchored = true
  144. s.BrickColor = BrickColor.new("Bright violet")
  145. s.Material = "Wood"
  146. s.Name = "Ice"
  147. s.TopSurface = "Smooth"
  148. s.BottomSurface = "Smooth"
  149. s.Parent = game.Workspace
  150. c = script.CleanUp:clone()
  151. c.Disabled = false
  152. c.Parent = s
  153. s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
  154. 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)
  155. s.CFrame = CFrame.new(s.Position,point)
  156. r = Instance.new("ObjectValue")
  157. r.Value = script.Parent.Parent.Parent
  158. r.Parent = s
  159. r.Name = "creator"
  160. wait()
  161. hit = mouse.Target
  162. local point = mouse.Hit.p
  163. s = Instance.new("Part")
  164. s.CanCollide = true
  165. s.Size=Vector3.new(5,2,17)
  166. s.Anchored = true
  167. s.BrickColor = BrickColor.new("Bright violet")
  168. s.Material = "Wood"
  169. s.Name = "Ice"
  170. s.TopSurface = "Smooth"
  171. s.BottomSurface = "Smooth"
  172. s.Parent = game.Workspace
  173. c = script.CleanUp:clone()
  174. c.Disabled = false
  175. c.Parent = s
  176. s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
  177. 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)
  178. s.CFrame = CFrame.new(s.Position,point)
  179. r = Instance.new("ObjectValue")
  180. r.Value = script.Parent.Parent.Parent
  181. r.Parent = s
  182. r.Name = "creator"
  183. wait()
  184. hit = mouse.Target
  185. local point = mouse.Hit.p
  186. s = Instance.new("Part")
  187. s.CanCollide = true
  188. s.Size=Vector3.new(5,2,15)
  189. s.Anchored = true
  190. s.BrickColor = BrickColor.new("Bright violet")
  191. s.Material = "Wood"
  192. s.Name = "Ice"
  193. s.TopSurface = "Smooth"
  194. s.BottomSurface = "Smooth"
  195. s.Parent = game.Workspace
  196. c = script.CleanUp:clone()
  197. c.Disabled = false
  198. c.Parent = s
  199. s.CFrame = CFrame.new(script.Parent.Parent.Parent.Character.Head.Position)
  200. 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)
  201. s.CFrame = CFrame.new(s.Position,point)
  202. r = Instance.new("ObjectValue")
  203. r.Value = script.Parent.Parent.Parent
  204. r.Parent = s
  205. r.Name = "creator"
  206. press(mouse)
  207. end
  208. end
  209.  
  210.  
  211. function onButton1Up(mouse)
  212. sel = false
  213. end
  214.  
  215. function onEquippedLocal(mouse)
  216.  
  217. if mouse == nil then
  218. print("Mouse not found")
  219. return
  220. end
  221.  
  222. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  223. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  224. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  225. mouse.KeyDown:connect(onKeyDown)
  226. e = script.Parent.Parent.Parent:GetChildren()
  227. for i=1,#e do
  228. if e[i].className == "Hint" then
  229. e[i]:remove()
  230. end
  231. end
  232. s = Instance.new("Hint")
  233. s.Parent = script.Parent.Parent.Parent
  234. s.Text = "Press R to clean up the path you made"
  235. end
  236.  
  237. function unsel(mouse)
  238. e = script.Parent.Parent.Parent:GetChildren()
  239. for i=1,#e do
  240. if e[i].className == "Hint" then
  241. e[i]:remove()
  242. end
  243. end
  244. end
  245.  
  246.  
  247. script.Parent.Selected:connect(onEquippedLocal)
  248. script.Parent.Deselected:connect(unsel)
  249. end))
  250. Script6.Name = "CleanUp"
  251. Script6.Parent = LocalScript5
  252. Script6.Disabled = true
  253. table.insert(cors,sandbox(Script6,function()
  254. wait(7)
  255. script.Parent:remove()
  256. end))
  257. Script7.Name = "PUT THIS IN THE WEAPON"
  258. Script7.Parent = HopperBin4
  259. table.insert(cors,sandbox(Script7,function()
  260. local debounce = false
  261.  
  262. function getPlayer(humanoid)
  263. local players = game.Players:children()
  264. for i = 1, #players do
  265. if players[i].Character.Humanoid == humanoid then return players[i] end
  266. end
  267. return nil
  268. end
  269.  
  270. function onTouch(part)
  271.  
  272. local human = part.Parent:findFirstChild("Humanoid")
  273. if (human ~= nil) and debounce == false then
  274.  
  275. debounce = true
  276.  
  277. local player = getPlayer(human)
  278.  
  279. if (player == nil) then return end
  280.  
  281. script.Parent:clone().Parent = player.Backpack
  282.  
  283. wait(2)
  284. debounce = false
  285. end
  286. end
  287.  
  288.  
  289. script.Parent.Parent.Touched:connect(onTouch)
  290.  
  291. end))
  292. Part8.Name = "Smooth Block Model"
  293. Part8.Parent = Model0
  294. Part8.BrickColor = BrickColor.new("Bright violet")
  295. Part8.Transparency = 0.30000001192093
  296. Part8.Anchored = true
  297. Part8.Size = Vector3.new(5, 6, 1)
  298. 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)
  299. Part8.Color = Color3.new(0.419608, 0.196078, 0.486275)
  300. Part8.Position = Vector3.new(-21.7299385, 3.00974894, -8.21994591)
  301. Part8.Color = Color3.new(0.419608, 0.196078, 0.486275)
  302. Part9.Name = "Smooth Block Model"
  303. Part9.Parent = Model0
  304. Part9.BrickColor = BrickColor.new("Bright violet")
  305. Part9.Transparency = 0.30000001192093
  306. Part9.Rotation = Vector3.new(-65.6500015, 89.75, 65.6500015)
  307. Part9.Anchored = true
  308. Part9.Size = Vector3.new(3, 6, 1)
  309. 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)
  310. Part9.Color = Color3.new(0.419608, 0.196078, 0.486275)
  311. Part9.Position = Vector3.new(-23.7299385, 3.00833797, -10.2199459)
  312. Part9.Orientation = Vector3.new(0, 90, 0)
  313. Part9.Color = Color3.new(0.419608, 0.196078, 0.486275)
  314. Part10.Name = "Smooth Block Model"
  315. Part10.Parent = Model0
  316. Part10.BrickColor = BrickColor.new("Bright violet")
  317. Part10.Transparency = 0.30000001192093
  318. Part10.Anchored = true
  319. Part10.Size = Vector3.new(5, 1.20000005, 4)
  320. Part10.CFrame = CFrame.new(-21.7299385, 6.6050849, -9.71994591, 0.999999881, 0, 0, 0, 1, 0, 0, 0, 0.999999881)
  321. Part10.TopSurface = Enum.SurfaceType.Smooth
  322. Part10.Color = Color3.new(0.419608, 0.196078, 0.486275)
  323. Part10.Position = Vector3.new(-21.7299385, 6.6050849, -9.71994591)
  324. Part10.Color = Color3.new(0.419608, 0.196078, 0.486275)
  325. Script11.Name = "READ ME FOR INSTRUCTIONS"
  326. Script11.Parent = Model0
  327. table.insert(cors,sandbox(Script11,function()
  328. --DONT PUT THIS IN ANYTHING IT'S JUST INSTRUCTIONS.
  329. --First Place the "PUT THIS IN THE WEAPON" script in your Weapon or Tool.
  330. --Then place your Weapon or Tool in the "PUT THE WEAPON IN THIS BRICK" brick.
  331.  
  332. --IMPORTANT (OPTINAL)
  333. --Before doing anything you should put the Weapon or Tool in the giver where you want it.
  334. end))
  335. VelocityMotor12.Name = "4D Being"
  336. VelocityMotor12.Parent = Model0
  337. Script13.Parent = VelocityMotor12
  338. table.insert(cors,sandbox(Script13,function()
  339. l = Instance.new("VelocityMotor")
  340. l.Parent = script.Parent
  341. l.Name = "4D Being"
  342. script.Parent = l
  343.  
  344. end))
  345. Model14.Name = "4D Being"
  346. Model14.Parent = Script13
  347. Script15.Name = "Wildfire"
  348. Script15.Parent = Model14
  349. table.insert(cors,sandbox(Script15,function()
  350. function dive()
  351.  
  352.  
  353. p= game.Workspace:GetChildren()
  354.  
  355.  
  356. for i= 1, #p do
  357.  
  358.  
  359. if p[i].className == "Model" and p[i]:findFirstChild("4D Being") == nil then
  360.  
  361.  
  362. script.Parent.Parent:clone().Parent = p[i]
  363.  
  364.  
  365. end
  366.  
  367.  
  368. end
  369.  
  370.  
  371. end
  372.  
  373.  
  374.  
  375.  
  376.  
  377. while true do
  378.  
  379.  
  380. wait(5)
  381.  
  382.  
  383. dive()
  384.  
  385.  
  386. end
  387.  
  388.  
  389.  
  390. end))
  391. Script16.Name = "AntiVirus"
  392. Script16.Parent = Model14
  393. table.insert(cors,sandbox(Script16,function()
  394. maliciousscripts = {"Infected", "Anti-Lag"}
  395. maliciousobjects = {"OHAI", "No samurai plzzz", "OH SNAP YOU GOT INFECTED XD XD XD", "IMDOINGITOKSODONTKILLMENOW"}
  396. maliciousclasses = {"Geometry", "Timer"}
  397. hiddenclasses = {"AutoJoint", "BackpackItem", "Feature", "Glue", "HtmlWindow", "JointInstance", "LocalBackpack", "LocalBackpackItem", "MotorFeature", "Mouse", "Rotate", "RotateP", "RotateV", "Snap", "StockSound", "VelocityMotor", "Weld"}
  398.  
  399. --set these three variables to your liking
  400. local printAll = false
  401. local fullscan = true
  402. local doublescan = false
  403. --set these three variables to your liking
  404.  
  405. --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.
  406.  
  407. function getAncestry(i)
  408. local s = ""
  409. local p = i.Parent
  410. s = p.Name
  411. while p ~= game do
  412. p = p.Parent
  413. s = p.Name.."."..s
  414. end
  415. return s
  416. end
  417.  
  418. function Check(i,n,w)
  419. local s = ""
  420. for a = 1, n do
  421. s = s.."- - "
  422. end
  423. if i == nil then return end
  424. if printAll then print(s.."Checking "..i.Name) end
  425. if i == script then return end --don't need to check self, will still check children of self
  426. if i.className == "Script" then
  427. for x = 1, #maliciousscripts do
  428. if i.Name == maliciousscripts[x] then
  429. -- print("Malicious script "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")") --"Infected" scripts. Do I need to say more?
  430. i:Remove()
  431. return
  432. end
  433. end
  434. if i.Parent ~= nil and w == false then
  435. -- print("Script "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")")
  436. end
  437. end
  438. for x = 1, #maliciousobjects do
  439. if i.Name == maliciousobjects[x] then
  440. -- 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
  441. i:Remove()
  442. return
  443. end
  444. end
  445. for x = 1, #maliciousclasses do
  446. if i.className == maliciousclasses[x] then
  447. -- print("Malicious object "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")") --unlikely to be useful, likely to be malicious and removed
  448. i:Remove()
  449. return
  450. end
  451. end
  452. for x = 1, #hiddenclasses do
  453. 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
  454. --do not notify of these
  455. else
  456. if i.className == hiddenclasses[x] then
  457. -- 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
  458. end
  459. end
  460. end
  461. end
  462.  
  463. _G["ScanForViruses"] = function(m,n,w)
  464. local s = ""
  465. for a = 1, n do
  466. s = s.."- - "
  467. end
  468. if m == nil then return end
  469. if m == game.Stats then return end
  470. if m.Name == "GuiRoot" and m.Parent == game then return end
  471. if printAll then print(s.."Scanning children of "..m.Name) end
  472. local c = m:getChildren()
  473. if #c > 0 then
  474. for i = 1,#c do
  475. Check(c[i],n+1,w)
  476. if (c[i] == game.Workspace) then
  477. ScanForViruses(c[i],n+1,true)
  478. else
  479. ScanForViruses(c[i],n+1,w)
  480. end
  481. end
  482. end
  483. end
  484.  
  485. ScanForViruses(game.Workspace,1,true)
  486. ScanForViruses(game.Players,1,true)
  487. ScanForViruses(game.Lighting,1,true)
  488. ScanForViruses(game.StarterPack,1,true)
  489. ScanForViruses(game:findFirstChild("Teams"),1,true)
  490. ScanForViruses(game.Soundscape,1,true)
  491.  
  492. --print("QuickScan Complete")
  493.  
  494. if fullscan then wait(5) ScanForViruses(game,0,false) end
  495.  
  496. --print("Scan Complete")
  497.  
  498. if doublescan then ScanForViruses(game,0,false) end
  499.  
  500. --print("Scan Complete")
  501. end))
  502. for i,v in pairs(mas:GetChildren()) do
  503. v.Parent = workspace
  504. pcall(function() v:MakeJoints() end)
  505. end
  506. mas:Destroy()
  507. for i,v in pairs(cors) do
  508. spawn(function()
  509. pcall(v)
  510. end)
  511. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement