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