Advertisement
UhhLegoboy

Death Note Script

Sep 5th, 2017
9,018
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.64 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. Tool0 = Instance.new("Tool")
  20. Script1 = Instance.new("Script")
  21. Part2 = Instance.new("Part")
  22. Part3 = Instance.new("Part")
  23. Part4 = Instance.new("Part")
  24. Part5 = Instance.new("Part")
  25. Part6 = Instance.new("Part")
  26. Part7 = Instance.new("Part")
  27. Part8 = Instance.new("Part")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Part11 = Instance.new("Part")
  31. Part12 = Instance.new("Part")
  32. Part13 = Instance.new("Part")
  33. Part14 = Instance.new("Part")
  34. ScreenGui15 = Instance.new("ScreenGui")
  35. TextBox16 = Instance.new("TextBox")
  36. TextButton17 = Instance.new("TextButton")
  37. Script18 = Instance.new("Script")
  38. LocalScript19 = Instance.new("LocalScript")
  39. Tool0.Name = "Death Note"
  40. Tool0.Parent = mas
  41. Tool0.GripForward = Vector3.new(0, 0, 1)
  42. Tool0.GripRight = Vector3.new(-1, 0, 0)
  43. Tool0.ToolTip = "X_X"
  44. Script1.Name = "qPerfectionWeld"
  45. Script1.Parent = Tool0
  46. table.insert(cors,sandbox(Script1,function()
  47. -- Created by Quenty (@Quenty, follow me on twitter).
  48. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  49. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  50.  
  51. --[[ INSTRUCTIONS
  52. - Place in the model
  53. - Make sure model is anchored
  54. - That's it. It will weld the model and all children.
  55.  
  56. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  57. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  58. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  59. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  60. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  61. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  62. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  63. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  64.  
  65. This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
  66. ]]
  67.  
  68. --[[ DOCUMENTATION
  69. - Will work in tools. If ran more than once it will not create more than one weld.  This is especially useful for tools that are dropped and then picked up again.
  70. - Will work in PBS servers
  71. - Will work as long as it starts out with the part anchored
  72. - Stores the relative CFrame as a CFrame value
  73. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  74. - Utilizes a recursive algorith to find all parts in the model
  75. - Will reweld on script reparent if the script is initially parented to a tool.
  76. - Welds as fast as possible
  77. ]]
  78.  
  79. -- qPerfectionWeld.lua
  80. -- Created 10/6/2014
  81. -- Author: Quenty
  82. -- Version 1.0.3
  83.  
  84. -- Updated 10/14/2014 - Updated to 1.0.1
  85. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  86.  
  87. -- Updated 10/14/2014 - Updated to 1.0.2
  88. --- Fixed bug fix.
  89.  
  90. -- Updated 10/14/2014 - Updated to 1.0.3
  91. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  92.  
  93. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  94.  
  95.  
  96. local function CallOnChildren(Instance, FunctionToCall)
  97.     -- Calls a function on each of the children of a certain object, using recursion.  
  98.  
  99.     FunctionToCall(Instance)
  100.  
  101.     for _, Child in next, Instance:GetChildren() do
  102.         CallOnChildren(Child, FunctionToCall)
  103.     end
  104. end
  105.  
  106. local function GetNearestParent(Instance, ClassName)
  107.     -- Returns the nearest parent of a certain class, or returns nil
  108.  
  109.     local Ancestor = Instance
  110.     repeat
  111.         Ancestor = Ancestor.Parent
  112.         if Ancestor == nil then
  113.             return nil
  114.         end
  115.     until Ancestor:IsA(ClassName)
  116.  
  117.     return Ancestor
  118. end
  119.  
  120. local function GetBricks(StartInstance)
  121.     local List = {}
  122.  
  123.     -- if StartInstance:IsA("BasePart") then
  124.     --  List[#List+1] = StartInstance
  125.     -- end
  126.  
  127.     CallOnChildren(StartInstance, function(Item)
  128.         if Item:IsA("BasePart") then
  129.             List[#List+1] = Item;
  130.         end
  131.     end)
  132.  
  133.     return List
  134. end
  135.  
  136. local function Modify(Instance, Values)
  137.     -- Modifies an Instance by using a table.  
  138.  
  139.     assert(type(Values) == "table", "Values is not a table");
  140.  
  141.     for Index, Value in next, Values do
  142.         if type(Index) == "number" then
  143.             Value.Parent = Instance
  144.         else
  145.             Instance[Index] = Value
  146.         end
  147.     end
  148.     return Instance
  149. end
  150.  
  151. local function Make(ClassType, Properties)
  152.     -- Using a syntax hack to create a nice way to Make new items.  
  153.  
  154.     return Modify(Instance.new(ClassType), Properties)
  155. end
  156.  
  157. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  158. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  159.  
  160. local function HasWheelJoint(Part)
  161.     for _, SurfaceName in pairs(Surfaces) do
  162.         for _, HingSurfaceName in pairs(HingSurfaces) do
  163.             if Part[SurfaceName].Name == HingSurfaceName then
  164.                 return true
  165.             end
  166.         end
  167.     end
  168.    
  169.     return false
  170. end
  171.  
  172. local function ShouldBreakJoints(Part)
  173.     --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  174.     --  definitely some edge cases.
  175.  
  176.     if NEVER_BREAK_JOINTS then
  177.         return false
  178.     end
  179.    
  180.     if HasWheelJoint(Part) then
  181.         return false
  182.     end
  183.    
  184.     local Connected = Part:GetConnectedParts()
  185.    
  186.     if #Connected == 1 then
  187.         return false
  188.     end
  189.    
  190.     for _, Item in pairs(Connected) do
  191.         if HasWheelJoint(Item) then
  192.             return false
  193.         elseif not Item:IsDescendantOf(script.Parent) then
  194.             return false
  195.         end
  196.     end
  197.    
  198.     return true
  199. end
  200.  
  201. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  202.     --- Weld's 2 parts together
  203.     -- @param Part0 The first part
  204.     -- @param Part1 The second part (Dependent part most of the time).
  205.     -- @param [JointType] The type of joint. Defaults to weld.
  206.     -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  207.     -- @return The weld created.
  208.  
  209.     JointType = JointType or "Weld"
  210.     local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  211.    
  212.     local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  213.     Modify(NewWeld, {
  214.         Name = "qCFrameWeldThingy";
  215.         Part0  = Part0;
  216.         Part1  = Part1;
  217.         C0     = CFrame.new();--Part0.CFrame:inverse();
  218.         C1     = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  219.         Parent = Part1;
  220.     })
  221.  
  222.     if not RelativeValue then
  223.         RelativeValue = Make("CFrameValue", {
  224.             Parent     = Part1;
  225.             Name       = "qRelativeCFrameWeldValue";
  226.             Archivable = true;
  227.             Value      = NewWeld.C1;
  228.         })
  229.     end
  230.  
  231.     return NewWeld
  232. end
  233.  
  234. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  235.     -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  236.     -- @param MainPart The part to weld the model to (can be in the model).
  237.     -- @param [JointType] The type of joint. Defaults to weld.
  238.     -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  239.    
  240.     for _, Part in pairs(Parts) do
  241.         if ShouldBreakJoints(Part) then
  242.             Part:BreakJoints()
  243.         end
  244.     end
  245.    
  246.     for _, Part in pairs(Parts) do
  247.         if Part ~= MainPart then
  248.             WeldTogether(MainPart, Part, JointType, MainPart)
  249.         end
  250.     end
  251.  
  252.     if not DoNotUnanchor then
  253.         for _, Part in pairs(Parts) do
  254.             Part.Anchored = false
  255.         end
  256.         MainPart.Anchored = false
  257.     end
  258. end
  259.  
  260. local function PerfectionWeld()
  261.     local Tool = GetNearestParent(script, "Tool")
  262.  
  263.     local Parts = GetBricks(script.Parent)
  264.     local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  265.  
  266.     if PrimaryPart then
  267.         WeldParts(Parts, PrimaryPart, "Weld", false)
  268.     else
  269.         warn("qWeld - Unable to weld part")
  270.     end
  271.    
  272.     return Tool
  273. end
  274.  
  275. local Tool = PerfectionWeld()
  276.  
  277.  
  278. if Tool and script.ClassName == "Script" then
  279.     --- Don't bother with local scripts
  280.  
  281.     script.Parent.AncestryChanged:connect(function()
  282.         PerfectionWeld()
  283.     end)
  284. end
  285.  
  286. -- Created by Quenty (@Quenty, follow me on twitter).
  287.  
  288. end))
  289. Part2.Parent = Tool0
  290. Part2.Material = Enum.Material.Sand
  291. Part2.BrickColor = BrickColor.new("Institutional white")
  292. Part2.Rotation = Vector3.new(9.73999977, -30, -9.73999977)
  293. Part2.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
  294. Part2.CFrame = CFrame.new(-1.86704588, 1.69228172, -9.05548096, 0.853553176, 0.146447167, -0.500000179, -0.25000006, 0.957106948, -0.146445483, 0.457107127, 0.249999091, 0.853553534)
  295. Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  296. Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  297. Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  298. Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  299. Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  300. Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  301. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  302. Part2.Position = Vector3.new(-1.86704588, 1.69228172, -9.05548096)
  303. Part2.Orientation = Vector3.new(8.42000008, -30.3599987, -14.6399994)
  304. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  305. Part3.Parent = Tool0
  306. Part3.Material = Enum.Material.Sand
  307. Part3.BrickColor = BrickColor.new("Institutional white")
  308. Part3.Rotation = Vector3.new(9.73999977, -30, -99.7399979)
  309. Part3.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
  310. Part3.CFrame = CFrame.new(-1.78240085, 1.5131427, -9.03663445, -0.146446973, 0.853553891, -0.499999166, -0.957106769, -0.250000149, -0.146446645, -0.24999994, 0.457105905, 0.853553951)
  311. Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  312. Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  313. Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  314. Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  315. Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  316. Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  317. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  318. Part3.Position = Vector3.new(-1.78240085, 1.5131427, -9.03663445)
  319. Part3.Orientation = Vector3.new(8.42000008, -30.3599987, -104.639999)
  320. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  321. Part4.Parent = Tool0
  322. Part4.Material = Enum.Material.Sand
  323. Part4.BrickColor = BrickColor.new("Institutional white")
  324. Part4.Rotation = Vector3.new(9.73999977, -30, -99.7399979)
  325. Part4.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
  326. Part4.CFrame = CFrame.new(-1.30036998, 1.85398972, -8.69578743, -0.146446973, 0.853553891, -0.499999166, -0.957106769, -0.250000149, -0.146446645, -0.24999994, 0.457105905, 0.853553951)
  327. Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  328. Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  329. Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  330. Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  331. Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  332. Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  333. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  334. Part4.Position = Vector3.new(-1.30036998, 1.85398972, -8.69578743)
  335. Part4.Orientation = Vector3.new(8.42000008, -30.3599987, -104.639999)
  336. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  337. Part5.Parent = Tool0
  338. Part5.Material = Enum.Material.Sand
  339. Part5.BrickColor = BrickColor.new("Institutional white")
  340. Part5.Rotation = Vector3.new(9.73999977, -30, -9.73999977)
  341. Part5.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
  342. Part5.CFrame = CFrame.new(-1.38501596, 2.03312874, -8.71463585, 0.853553176, 0.146447167, -0.500000179, -0.25000006, 0.957106948, -0.146445483, 0.457107127, 0.249999091, 0.853553534)
  343. Part5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  344. Part5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  345. Part5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  346. Part5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  347. Part5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  348. Part5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  349. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  350. Part5.Position = Vector3.new(-1.38501596, 2.03312874, -8.71463585)
  351. Part5.Orientation = Vector3.new(8.42000008, -30.3599987, -14.6399994)
  352. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  353. Part6.Parent = Tool0
  354. Part6.Material = Enum.Material.Sand
  355. Part6.BrickColor = BrickColor.new("Institutional white")
  356. Part6.Rotation = Vector3.new(0, 21.0900002, 0)
  357. Part6.Size = Vector3.new(1.12000012, 1.7700001, 0.0899999961)
  358. Part6.CFrame = CFrame.new(-3.4731617, 0.995000124, -9.7085228, 0.933016598, 0, 0.359854072, 0, 1, 0, -0.359856844, 0, 0.933011353)
  359. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  360. Part6.Position = Vector3.new(-3.4731617, 0.995000124, -9.7085228)
  361. Part6.Orientation = Vector3.new(0, 21.0900002, 0)
  362. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  363. Part7.Parent = Tool0
  364. Part7.Material = Enum.Material.Sand
  365. Part7.BrickColor = BrickColor.new("Institutional white")
  366. Part7.Rotation = Vector3.new(9.73999977, -30, -99.7399979)
  367. Part7.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
  368. Part7.CFrame = CFrame.new(-1.5454998, 1.68065572, -8.86911964, -0.146446973, 0.853553891, -0.499999166, -0.957106769, -0.250000149, -0.146446645, -0.24999994, 0.457105905, 0.853553951)
  369. Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  370. Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  371. Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  372. Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  373. Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  374. Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  375. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  376. Part7.Position = Vector3.new(-1.5454998, 1.68065572, -8.86911964)
  377. Part7.Orientation = Vector3.new(8.42000008, -30.3599987, -104.639999)
  378. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  379. Part8.Parent = Tool0
  380. Part8.Material = Enum.Material.Sand
  381. Part8.BrickColor = BrickColor.new("Institutional white")
  382. Part8.Rotation = Vector3.new(9.73999977, -30, -9.73999977)
  383. Part8.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
  384. Part8.CFrame = CFrame.new(-1.63014674, 1.85979569, -8.88796806, 0.853553176, 0.146447167, -0.500000179, -0.25000006, 0.957106948, -0.146445483, 0.457107127, 0.249999091, 0.853553534)
  385. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  386. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  387. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  388. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  389. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  390. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  391. Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  392. Part8.Position = Vector3.new(-1.63014674, 1.85979569, -8.88796806)
  393. Part8.Orientation = Vector3.new(8.42000008, -30.3599987, -14.6399994)
  394. Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  395. Part9.Parent = Tool0
  396. Part9.Material = Enum.Material.SmoothPlastic
  397. Part9.BrickColor = BrickColor.new("Really black")
  398. Part9.Rotation = Vector3.new(9.73999977, -30, -54.7399979)
  399. Part9.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
  400. Part9.CFrame = CFrame.new(-2.10871005, 1.38648963, -9.2495079, 0.500000179, 0.707106709, -0.50000006, -0.853553295, 0.500000358, -0.146446332, 0.146447062, 0.499999881, 0.853553474)
  401. Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  402. Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  403. Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  404. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  405. Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  406. Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  407. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  408. Part9.Position = Vector3.new(-2.10871005, 1.38648963, -9.2495079)
  409. Part9.Orientation = Vector3.new(8.42000008, -30.3599987, -59.6399994)
  410. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  411. Part10.Parent = Tool0
  412. Part10.Material = Enum.Material.Pebble
  413. Part10.BrickColor = BrickColor.new("Brown")
  414. Part10.Rotation = Vector3.new(-90, 0, -172.539993)
  415. Part10.Size = Vector3.new(0.0732943937, 0.200000003, 2)
  416. Part10.CFrame = CFrame.new(-2.98951197, 1, -10.0442381, -0.991529584, 0.129881382, -0, 0, 0, 1, 0.129881382, 0.991529584, -0)
  417. Part10.BottomSurface = Enum.SurfaceType.Smooth
  418. Part10.TopSurface = Enum.SurfaceType.Smooth
  419. Part10.Color = Color3.new(0.486275, 0.360784, 0.27451)
  420. Part10.Position = Vector3.new(-2.98951197, 1, -10.0442381)
  421. Part10.Orientation = Vector3.new(-90, -172.539993, 0)
  422. Part10.Color = Color3.new(0.486275, 0.360784, 0.27451)
  423. Part11.Parent = Tool0
  424. Part11.Material = Enum.Material.Sand
  425. Part11.BrickColor = BrickColor.new("Institutional white")
  426. Part11.Rotation = Vector3.new(0, -25.6299992, 0)
  427. Part11.Size = Vector3.new(1.12000012, 1.7700001, 0.0899999961)
  428. Part11.CFrame = CFrame.new(-2.59346795, 0.995000124, -9.64968204, 0.901623726, 0, -0.432521373, 0, 1, 0, 0.432521343, 0, 0.901623726)
  429. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  430. Part11.Position = Vector3.new(-2.59346795, 0.995000124, -9.64968204)
  431. Part11.Orientation = Vector3.new(0, -25.6299992, 0)
  432. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  433. Part12.Parent = Tool0
  434. Part12.Material = Enum.Material.Pebble
  435. Part12.BrickColor = BrickColor.new("Brown")
  436. Part12.Rotation = Vector3.new(0, 21.0900002, 0)
  437. Part12.Size = Vector3.new(1.25, 2, 0.25)
  438. Part12.CFrame = CFrame.new(-3.5769906, 1, -9.79709339, 0.933016598, 0, 0.359854072, 0, 1, 0, -0.359856844, 0, 0.933011353)
  439. Part12.Color = Color3.new(0.486275, 0.360784, 0.27451)
  440. Part12.Position = Vector3.new(-3.5769906, 1, -9.79709339)
  441. Part12.Orientation = Vector3.new(0, 21.0900002, 0)
  442. Part12.Color = Color3.new(0.486275, 0.360784, 0.27451)
  443. Part13.Parent = Tool0
  444. Part13.Material = Enum.Material.Pebble
  445. Part13.BrickColor = BrickColor.new("Brown")
  446. Part13.Rotation = Vector3.new(0, -25.7099991, 0)
  447. Part13.Size = Vector3.new(1.25, 2, 0.25)
  448. Part13.CFrame = CFrame.new(-2.45724392, 1, -9.76442051, 0.90102464, 0, -0.433768183, 0, 1, 0, 0.433762759, 0, 0.901024461)
  449. Part13.Color = Color3.new(0.486275, 0.360784, 0.27451)
  450. Part13.Position = Vector3.new(-2.45724392, 1, -9.76442051)
  451. Part13.Orientation = Vector3.new(0, -25.7099991, 0)
  452. Part13.Color = Color3.new(0.486275, 0.360784, 0.27451)
  453. Part14.Name = "Handle"
  454. Part14.Parent = Tool0
  455. Part14.Transparency = 1
  456. Part14.Rotation = Vector3.new(-180, 0, -180)
  457. Part14.Size = Vector3.new(1, 1, 1)
  458. Part14.CFrame = CFrame.new(-2.5, 0.815715075, -9.5, -1.00000262, 0, 0, 0, 1, 0, 0, 0, -1.00000262)
  459. Part14.BottomSurface = Enum.SurfaceType.Smooth
  460. Part14.TopSurface = Enum.SurfaceType.Smooth
  461. Part14.Position = Vector3.new(-2.5, 0.815715075, -9.5)
  462. Part14.Orientation = Vector3.new(0, 180, 0)
  463. ScreenGui15.Name = "DeathNoteGUI"
  464. ScreenGui15.Parent = Tool0
  465. TextBox16.Name = "PlayerName"
  466. TextBox16.Parent = ScreenGui15
  467. TextBox16.Transparency = 0.5
  468. TextBox16.Size = UDim2.new(0.196612671, 0, 0.132394373, 0)
  469. TextBox16.Text = "Type Name"
  470. TextBox16.Position = UDim2.new(0.392488956, 0, 0.156338021, 0)
  471. TextBox16.BackgroundColor3 = Color3.new(0, 0, 0)
  472. TextBox16.BackgroundTransparency = 0.5
  473. TextBox16.BorderSizePixel = 0
  474. TextBox16.Font = Enum.Font.SourceSans
  475. TextBox16.FontSize = Enum.FontSize.Size14
  476. TextBox16.TextColor3 = Color3.new(1, 1, 1)
  477. TextBox16.TextScaled = true
  478. TextBox16.TextWrapped = true
  479. TextButton17.Name = "KillButton"
  480. TextButton17.Parent = ScreenGui15
  481. TextButton17.Transparency = 0.5
  482. TextButton17.Size = UDim2.new(0, 200, 0, 50)
  483. TextButton17.Text = "Kill"
  484. TextButton17.Position = UDim2.new(0.415316641, 0, 0.302816898, 0)
  485. TextButton17.BackgroundColor3 = Color3.new(0, 0, 0)
  486. TextButton17.BackgroundTransparency = 0.5
  487. TextButton17.Font = Enum.Font.SourceSans
  488. TextButton17.FontSize = Enum.FontSize.Size14
  489. TextButton17.TextColor3 = Color3.new(1, 1, 1)
  490. TextButton17.TextScaled = true
  491. TextButton17.TextWrapped = true
  492. Script18.Name = "KillScript"
  493. Script18.Parent = TextButton17
  494. table.insert(cors,sandbox(Script18,function()
  495. script.Parent.MouseButton1Down : connect(function()
  496.     local Plr = script.Parent.Parent.PlayerName.Text
  497.     local Char = game.Players [Plr].Character
  498.     Char.Humanoid.Health = 0
  499. end)
  500. end))
  501. LocalScript19.Name = "GUIActivate"
  502. LocalScript19.Parent = Tool0
  503. table.insert(cors,sandbox(LocalScript19,function()
  504. script.Parent.Equipped : connect(function()
  505.     script.Parent.DeathNoteGUI : Clone().Parent = game.Players.LocalPlayer.PlayerGui
  506. end)
  507. script.Parent.Unequipped : connect(function()
  508.     game.Players.LocalPlayer.PlayerGui.DeathNoteGUI : Destroy()
  509. end)
  510. end))
  511. for i,v in pairs(mas:GetChildren()) do
  512.     v.Parent = game:GetService("Players").LocalPlayer.Backpack
  513.     pcall(function() v:MakeJoints() end)
  514. end
  515. mas:Destroy()
  516. for i,v in pairs(cors) do
  517.     spawn(function()
  518.         pcall(v)
  519.     end)
  520. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement