View difference between Paste ID: jwJzZWEj and cZdUimjN
SHOW: | | - or go back to the newest paste.
1
local ContentProvider = game:GetService("ContentProvider")
2
 
3
local function LoadAssets(AssetList)
4
	-- Takes an asset list and preloads it. Will not wait for them to load. 
5
 
6
	for _, AssetId in pairs(AssetList) do
7
		ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
8
	end
9
end 
10
 
11
LoadAssets({11442510,30956707})
12
local Gibs = game.Workspace
13
14
function Kill(Character)
15
	Character.Humanoid.Health = 0
16
	local poo = Instance.new("IntValue",Character)
17
	poo.Name = "haha nope"
18
	local svch = Character
19
	local hum = Character:findFirstChild("Humanoid")
20
	Character.Archivable = true
21
	local chrclone = Character:clone()
22
	Character.Archivable = false
23
24
	local ch = chrclone:GetChildren()
25
	local i
26
	for i = 1,#ch do
27
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
28
			ch[i]:remove()
29
		end
30
	end
31
	local function Scan(ch)
32
		local e
33
		for e = 1,#ch do
34
			Scan(ch[e]:GetChildren())
35
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
36
				ch[e]:remove()
37
			end
38
		end
39
	end
40
	Scan(chrclone:GetChildren())
41
42
	local hum2 = chrclone:findFirstChild("Humanoid")
43
44
45
	if hum2 ~= nil then
46
		hum2.Name = "Humanoid2"
47
		hum2.PlatformStand = true
48
		hum2.Sit = true 
49
		hum2.MaxHealth = 0
50
		hum2.Health = 0
51
	end
52
53
	local ch = Character:GetChildren()
54
	local i
55
	for i = 1,#ch do
56
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
57
			ch[i]:remove()
58
		end
59
	end
60
61
	wait(0.2)
62
63
	local ch = Character:GetChildren()
64
	local i
65
	for i = 1,#ch do
66
		if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
67
			ch[i]:remove()
68
		end
69
	end
70
	Character = chrclone
71
	local Torso = Character.Torso
72
	local movevector = Vector3.new()
73
74
	if Torso then
75
		local Head = Character:FindFirstChild("Head")
76
		local Limb = Character:FindFirstChild("Right Arm")
77
		if Limb then
78
79
			Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
80
			local Joint = Instance.new("Glue")
81
			Joint.Name = "RightShoulder"
82
			Joint.Part0 = Torso
83
			Joint.Part1 = Limb
84
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
85
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
86
			Joint.Parent = Torso
87
88
			local B = Instance.new("Part")
89
			B.TopSurface = 0
90
			B.BottomSurface = 0
91
			B.formFactor = "Symmetric"
92
			B.Size = Vector3.new(1, 1, 1)
93
			B.Transparency = 1
94
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
95
			B.Parent = Character
96
			local W = Instance.new("Weld")
97
			W.Part0 = Limb
98
			W.Part1 = B
99
			W.C0 = CFrame.new(0, -0.5, 0)
100
			W.Parent = Limb
101
102
		end
103
		local Limb = Character:FindFirstChild("Left Arm")
104
		if Limb then
105
106
			Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
107
			local Joint = Instance.new("Glue")
108
			Joint.Name = "LeftShoulder"
109
			Joint.Part0 = Torso
110
			Joint.Part1 = Limb
111
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
112
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
113
			Joint.Parent = Torso
114
115
			local B = Instance.new("Part")
116
			B.TopSurface = 0
117
			B.BottomSurface = 0
118
			B.formFactor = "Symmetric"
119
			B.Size = Vector3.new(1, 1, 1)
120
			B.Transparency = 1
121
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
122
			B.Parent = Character
123
			local W = Instance.new("Weld")
124
			W.Part0 = Limb
125
			W.Part1 = B
126
			W.C0 = CFrame.new(0, -0.5, 0)
127
			W.Parent = Limb
128
129
		end
130
		local Limb = Character:FindFirstChild("Right Leg")
131
		if Limb then
132
133
			Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
134
			local Joint = Instance.new("Glue")
135
			Joint.Name = "RightHip"
136
			Joint.Part0 = Torso
137
			Joint.Part1 = Limb
138
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
139
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
140
			Joint.Parent = Torso
141
142
			local B = Instance.new("Part")
143
			B.TopSurface = 0
144
			B.BottomSurface = 0
145
			B.formFactor = "Symmetric"
146
			B.Size = Vector3.new(1, 1, 1)
147
			B.Transparency = 1
148
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
149
			B.Parent = Character
150
			local W = Instance.new("Weld")
151
			W.Part0 = Limb
152
			W.Part1 = B
153
			W.C0 = CFrame.new(0, -0.5, 0)
154
			W.Parent = Limb
155
156
		end
157
		local Limb = Character:FindFirstChild("Left Leg")
158
		if Limb then
159
160
			Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
161
			local Joint = Instance.new("Glue")
162
			Joint.Name = "LeftHip"
163
			Joint.Part0 = Torso
164
			Joint.Part1 = Limb
165
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
166
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
167
			Joint.Parent = Torso
168
169
			local B = Instance.new("Part")
170
			B.TopSurface = 0
171
			B.BottomSurface = 0
172
			B.formFactor = "Symmetric"
173
			B.Size = Vector3.new(1, 1, 1)
174
			B.Transparency = 1
175
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
176
			B.Parent = Character
177
			local W = Instance.new("Weld")
178
			W.Part0 = Limb
179
			W.Part1 = B
180
			W.C0 = CFrame.new(0, -0.5, 0)
181
			W.Parent = Limb
182
183
		end
184
		--[
185
		local Bar = Instance.new("Part")
186
		Bar.TopSurface = 0
187
		Bar.BottomSurface = 0
188
		Bar.formFactor = "Symmetric"
189
		Bar.Size = Vector3.new(1, 1, 1)
190
		Bar.Transparency = 1
191
		Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
192
		Bar.Parent = Character
193
		local Weld = Instance.new("Weld")
194
		Weld.Part0 = Torso
195
		Weld.Part1 = Bar
196
		Weld.C0 = CFrame.new(0, 0.5, 0)
197
		Weld.Parent = Torso
198
		--]]
199
	end
200
	Character.Parent = Gibs
201
	game.Debris:AddItem(Character, 12)
202
	if movevector ~= Vector3.new() then
203
		for i = 1,10 do
204
			wait()
205
			Torso.Velocity = Vector3.new(0,0,-100)
206
			Head.Velocity = movevector * 200
207
		end
208
	end
209
	local duh = Torso
210
ee = Instance.new("Part") 
211
ee.Anchored = false
212
ee.CanCollide = false
213
ee.Parent = duh 
214
ee.Transparency =1 
215
ee.Size = Vector3.new(0.15, 0.15, 0.15)
216
wee = Instance.new("Weld") 
217
wee.Parent = duh
218
wee.Part0 = duh
219
wee.Part1 = ee
220
wee.C0 = CFrame.new(0, 1, 0)
221
ge = Instance.new('ParticleEmitter')
222
ge.Parent = ee
223
ge.Texture = "rbxassetid://29712167"
224
ge.Size = NumberSequence.new(0.2,0.05)
225
ge.Acceleration = Vector3.new(0, -20, 0)
226
ge.Rate = 100000 
227
ge.Speed = NumberRange.new(7,8)
228
ge.Lifetime = NumberRange.new(3,4)
229
ge.VelocitySpread = 10
230
ge.VelocityInheritance = 0.3 
231
ea = Instance.new("Part") 
232
ea.Anchored = false
233
ea.CanCollide = false
234
ea.Parent = Character.Head
235
ea.Transparency =1 
236
ea.Size = Vector3.new(0.15, 0.15, 0.15)
237
wea = Instance.new("Weld") 
238
wea.Parent = Character.Head
239
wea.Part0 = Character.Head
240
wea.Part1 = ea
241
wea.C0 = CFrame.new(0, -0.7, 0)
242
ga = Instance.new('ParticleEmitter')
243
ga.Parent = ea
244
ga.Texture = "rbxassetid://29712167"
245
ga.Size = NumberSequence.new(0.2,0.05)
246
ga.Acceleration = Vector3.new(0, -20, 0)
247
ga.Rate = 100000
248
ga.Speed = NumberRange.new(7,8)
249
ga.Lifetime = NumberRange.new(3,4)
250
ga.VelocitySpread = 10
251
ga.VelocityInheritance = 0.3 
252
ga.EmissionDirection = Enum.NormalId.Bottom
253
end
254
255
local plr = game.Players.LocalPlayer
256
local chr = plr.Character
257
local mouse = plr:GetMouse()
258
local intro = coroutine.wrap(function()
259
	local gui = Instance.new('ScreenGui',plr.PlayerGui)
260
	gui.Name = "Intro"
261
	local fr = Instance.new('Frame',gui)
262
	fr.Size = UDim2.new(0.4,0,0,0)
263
	fr.Position = UDim2.new(0.3,0,-0.1,0)
264
	fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
265
	fr.BorderSizePixel = 5
266
	fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
267
	local title = Instance.new('TextLabel',fr)
268
	title.Size = UDim2.new(1,0,0.4,0)
269
	title.Position = UDim2.new(0,0,0.1,0)
270
	title.BackgroundTransparency = 1
271
	title.TextColor3 = Color3.fromRGB(198, 45, 45)
272
	title.TextScaled = true
273
	title.Text = 'Deadpool Script'
274
	local desc = Instance.new('TextLabel',fr)
275
	desc.Size = UDim2.new(1,0,0.5,0)
276
	desc.Position = UDim2.new(0,0,0.5,0)
277
	desc.BackgroundTransparency = 1
278
	desc.TextColor3 = Color3.fromRGB(198, 45, 45)
279
	desc.TextScaled = true
280
	desc.Text = ''
281
	wait(1)
282
	fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
283
	wait(2)
284
	local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
285
	local leng = string.len(str)
286
	for i = 1,leng do
287
		desc.Text = string.sub(str,1,i)
288
		wait()
289
	end
290
	wait(2)
291
	fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
292
	wait(2)
293
	gui:Destroy()
294
end)
295
intro()
296
297
298
wait(2)
299
local tors = chr.Torso
300
chr.Head.Transparency = 1
301
for i,v in pairs(chr:GetChildren()) do
302
	if v.ClassName == "CharacterMesh" then
303
		v:Destroy()
304
	end
305
end
306
local humroot = chr.HumanoidRootPart:Clone()
307
local torsclone = tors:Clone()
308
local anim = chr.Animate:Clone()
309
local hum = chr.Humanoid:Clone()
310
local head = chr.Head:Clone()
311
local neck = chr.Torso.Neck:Clone()
312
local rightarm = chr["Right Arm"]:Clone()
313
local leftarm = chr["Left Arm"]:Clone()
314
local leftleg = chr["Left Leg"]:Clone()
315
local rightleg = chr["Right Leg"]:Clone()
316
local rightshoulder = tors["Right Shoulder"]:Clone()
317
local leftshoulder = tors["Left Shoulder"]:Clone()
318
local righthip = tors["Right Hip"]:Clone()
319
local lefthip = tors["Left Hip"]:Clone()
320
local shirt = nil
321
local pants = nil
322
local hats = {}
323
local lastpos = CFrame.new(0,0,0)
324
local on = true
325
local doing = false
326
local stabbing = false
327
local slicing = false
328
local toolz = Instance.new('Tool',plr.Backpack)
329
toolz.Name = "Katana"
330
toolz.RequiresHandle = false
331
toolz.CanBeDropped = false
332
local partz = Instance.new('Part',toolz)
333
partz.Size = Vector3.new(0.2,0.2,3)
334
partz.CanCollide = false
335
local meshz = Instance.new('SpecialMesh',partz)
336
meshz.MeshId = 'rbxassetid://11442510'
337
meshz.TextureId = 'rbxassetid://30956707'
338
meshz.VertexColor = Vector3.new(0,0,0)
339
340
toolz.Equipped:connect(function(mouse)
341
	if chr:FindFirstChild('Right Arm') then
342
		local weld = Instance.new('Weld',partz)
343
		weld.Part0 = partz
344
		weld.Part1 = chr["Right Arm"]
345
		weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
346
	end
347
	mouse.KeyDown:connect(function(key)
348
		if doing == false then
349
		if key == 'z' then
350
		if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
351
			doing = true
352
			local weld = Instance.new('Weld',chr["Right Arm"])
353
			weld.Part0 = chr["Right Arm"]
354
			weld.Part1 = chr.Torso
355
			weld.C0 = CFrame.new(-1.5,0,0)
356
			for i=1,25 do
357
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
358
				wait()
359
			end
360
			wait()
361
			stabbing = true
362
			for i=1,10 do
363
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
364
				wait()
365
			end
366
			wait()
367
			for i=1,25 do
368
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
369
				wait()
370
			end
371
			chr["Right Arm"]:Destroy()
372
			doing = false
373
			stabbing = false
374
		end
375
		elseif key == 'x' then
376
			if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
377
			doing = true
378
			local weld = Instance.new('Weld',chr["Right Arm"])
379
			weld.Part0 = chr["Right Arm"]
380
			weld.Part1 = chr.Torso
381
			weld.C0 = CFrame.new(-1.5,0,0)
382
			for i=1,25 do
383
				weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
384
				wait()
385
			end
386
			wait()
387
			slicing = true
388
			for i=1,5 do
389
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
390
				wait()
391
			end
392
			wait()
393
			for i=1,12.5 do
394
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
395
				wait()
396
			end
397
			chr["Right Arm"]:Destroy()
398
			doing = false
399
			slicing = false
400
		end
401
		end
402
		end
403
	end)
404
end)
405
406
partz.Touched:connect(function(hit)
407
	if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
408
		hit.Parent.Humanoid.Health = 0
409
	elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
410
		local he = Instance.new('IntValue',hit.Parent)
411
		he.Name = "heck"
412
		Kill(hit.Parent)
413
	end
414
end)
415
416
toolz.Unequipped:connect(function(mouse)
417
	if partz:FindFirstChildOfClass('Weld') then
418
		partz:FindFirstChildOfClass('Weld'):Destroy()
419
	end
420
end)
421
toolz.AncestryChanged:connect(function(child, parent)
422
	if parent ~= chr and parent ~= plr.Backpack then
423
	wait()
424
		toolz.Parent = plr.Backpack
425
	end
426
end)
427
428
mouse.KeyDown:connect(function(key) 
429
	if key == "n" then
430
	wait()
431
		toolz:Equip()
432
	end
433
end)
434
if chr:FindFirstChildOfClass('Shirt') then
435
	shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
436
end
437
if chr:FindFirstChildOfClass('Pants') then
438
	pants = chr:FindFirstChildOfClass('Pants'):Clone()
439
end
440
for i,v in pairs(chr:GetChildren()) do
441
	if v.ClassName == "Accessory" then
442
		table.insert(hats,v:Clone())
443
	end
444
end
445
local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
446
chr.Humanoid:Destroy()
447
local gui = Instance.new('ScreenGui')
448
gui.Parent = game.Players.LocalPlayer.PlayerGui
449
gui.Name = "Deadpool"
450
gui.ResetOnSpawn = false
451
local frame = Instance.new('Frame',gui)
452
frame.Size = UDim2.new(0.2,0,0.2,0)
453
frame.Position = UDim2.new(0,0,0.9,0)
454
frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
455
frame.BorderSizePixel = 4
456
frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
457
frame.Active = true
458
frame.Draggable = true 
459
local txt = Instance.new('TextLabel',frame)
460
txt.Text = "Demon Gui"
461
txt.TextColor3 = Color3.fromRGB(198, 45, 45)
462
txt.Size = UDim2.new(1,0,0.3,0)
463
txt.TextScaled = true
464
txt.BackgroundTransparency = 1
465
local but = Instance.new('TextButton',frame)
466
but.Text = "Toggle Suit"
467
but.TextColor3 = Color3.fromRGB(38, 38, 38)
468
but.Size = UDim2.new(0.7,0,0.3,0)
469
but.Position = UDim2.new(0.15,0,0.5,0)
470
but.BorderSizePixel = 0
471
but.TextScaled = true
472
but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
473
but.MouseButton1Down:connect(function()
474
	on = not on
475
end)
476
game:GetService('RunService').Stepped:connect(function()
477
	if chr.Parent == nil then
478
	chr.RobloxLocked = false
479
	chr.Parent = game.Workspace
480
	end
481
	if chr:FindFirstChildOfClass('Humanoid') == nil then
482
		hum:Clone().Parent = chr
483
		chr.Animate:Destroy()
484
		anim:Clone().Parent = chr
485
	end
486
	if chr:FindFirstChild('HumanoidRootPart') == nil then
487
		humroot:Clone().Parent = chr
488
		humroot.CFrame = lastpos
489
		chr.Humanoid:Destroy()
490
		hum:Clone().Parent = chr
491
		chr.Animate:Destroy()
492
		anim:Clone().Parent = chr
493
		chr.HumanoidRootPart.RootJoint:Destroy()
494
	end
495
	if chr:FindFirstChild('Torso') == nil then
496
		chr.Humanoid:Destroy()
497
		local tor = tors:Clone()
498
		tor.Parent = chr
499
		hum:Clone().Parent = chr
500
		chr.Animate:Destroy()
501
		anim:Clone().Parent = chr
502
	end
503
	if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
504
		local rtj = rootjoint:Clone()
505
		rtj.Parent = chr.HumanoidRootPart
506
		rtj.Part0 = chr.HumanoidRootPart
507
		rtj.Part1 = chr.Torso
508
	end
509
	if chr:FindFirstChild('Head') == nil then
510
		chr.Humanoid:Destroy()
511
		head:Clone().Parent = chr
512
		hum:Clone().Parent = chr
513
		chr.Animate:Destroy()
514
		anim:Clone().Parent = chr
515
	end
516
	if chr.Torso:FindFirstChild('Neck') == nil then
517
		chr.Humanoid:Destroy()
518
		local hec = neck:Clone()
519
		hec.Parent = chr.Torso
520
		hec.Part0 = chr.Torso
521
		hec.Part1 = chr.Head
522
		hum:Clone().Parent = chr
523
		chr.Animate:Destroy()
524
		anim:Clone().Parent = chr
525
	end
526
	if chr:FindFirstChild('Right Leg') == nil then
527
		rightleg:Clone().Parent = chr
528
		local fi = righthip:Clone()
529
		fi.Parent = chr.Torso
530
		fi.Part0 = chr.Torso
531
		fi.Part1 = chr["Right Leg"]
532
	end
533
	if chr:FindFirstChild('Right Arm') == nil then
534
		rightarm:Clone().Parent = chr
535
		local fi = rightshoulder:Clone()
536
		fi.Parent = chr.Torso
537
		fi.Part0 = chr.Torso
538
		fi.Part1 = chr["Right Arm"]
539
	end
540
	if chr:FindFirstChild('Left Leg') == nil then
541
		leftleg:Clone().Parent = chr
542
		local fi = lefthip:Clone()
543
		fi.Parent = chr.Torso
544
		fi.Part0 = chr.Torso
545
		fi.Part1 = chr["Left Leg"]
546
	end
547
	if chr:FindFirstChild('Left Arm') == nil then
548
		leftarm:Clone().Parent = chr
549
		local fi = leftshoulder:Clone()
550
		fi.Parent = chr.Torso
551
		fi.Part0 = chr.Torso
552
		fi.Part1 = chr["Left Arm"]
553
	end
554
	for i,v in pairs(chr:GetChildren()) do
555
		if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
556
			v:Destroy()
557
		end
558
	end
559
	chr.Humanoid.Health = chr.Humanoid.MaxHealth
560
	if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
561
		local weld = Instance.new('Weld',partz)
562
		weld.Part0 = partz
563
		weld.Part1 = chr["Right Arm"]
564
		weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
565
	end
566
	lastpos = chr.HumanoidRootPart.CFrame
567
	local kat = Instance.new('Part',chr)
568
	kat.Size = Vector3.new(0,0,0)
569
	kat.Name = "KatanaHolder"
570
	kat.Material = Enum.Material.SmoothPlastic
571
	kat.BrickColor = BrickColor.new('Really black')
572
	kat.CanCollide = false
573
	local we = Instance.new('Weld',kat)
574
	we.Part0 = kat
575
	we.Part1 = chr.Torso
576
	we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
577
	if on == true then
578
	local shirt = Instance.new('Shirt',chr)
579
	shirt.ShirtTemplate = 'rbxassetid://1159325231'
580
	local pants = Instance.new('Pants',chr)
581
	pants.PantsTemplate = 'rbxassetid://787069171'
582
	else
583
		chr.Head.Transparency = 0
584
		if shirt ~= nil then
585
			shirt:Clone().Parent = chr
586
		end
587
		if pants ~= nil then
588
			pants:Clone().Parent = chr
589
		end
590
		for i,v in pairs(hats) do
591
			v:Clone().Parent = chr
592
		end
593
end
594
end)
595
596-
wait()
596+
597-
script.Name = "_.:| E-Shield |:._"
597+
598-
--script.Parent = _EShield_
598+
599-
local LocalPlayer = game:service'Players'.LocalPlayer
599+
600-
local b, Platform = nil
600+
601-
local PlayerOnly = false
601+
602-
local Touched = {}
602+
603-
local Mouse = LocalPlayer:GetMouse()
603+
604-
local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
604+
605
	end
606-
function Create()
606+
607-
if b then pcall(function() b:Destroy() end) end
607+
608-
if Platform then pcall(function() Platform:Destroy() end) end
608+
609-
local t = LocalPlayer.Character:FindFirstChild("Torso")
609+
610-
local posit = Vector3.new(0, 50, 0)
610+
611-
if t then posit = t.Position end
611+
612-
Platform = Instance.new("Part") 
612+
613-
Platform.formFactor = "Custom"
613+
614-
Platform.Size = Vector3.new(10, 1, 10)
614+
615-
Platform.Transparency = 1
615+
616-
Platform.Anchored = true
616+
617-
Platform.CanCollide = true 
617+
618-
b = Instance.new("Part", game:service'Workspace') 
618+
619-
b.Position = posit
619+
620-
b.Shape = "ball" 
620+
621-
b.Transparency = 1
621+
622-
b.Anchored = true
622+
623-
b.Reflectance = 0
623+
624-
b.Size = Mouse2Down and Vector3.new(10, 15, 10) or Vector3.new(5, 5, 5) 
624+
625-
b.Color = Mouse2Down and Color3.new(0, 0, 0) or Color3.new(0, 0, 0)
625+
626-
b.TopSurface = "Smooth" 
626+
627-
b.BottomSurface = "Smooth"
627+
628-
b.Locked = true
628+
629-
b.CanCollide = false
629+
630-
b.Changed:connect(function(w)
630+
631-
if w == "Parent" then
631+
632-
Create()
632+
633
				if t:IsA("Part") then
634
					t.Anchored = false
635-
b.Touched:connect(function(obj)
635+
636-
if obj.Name ~= "WillNotBeRemoved" and not TouchedStatus(obj) and not obj:IsDescendantOf(LocalPlayer.Character) and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) and obj.Name ~= "Base" and obj.className == "Part" then
636+
637-
table.insert(Touched, obj)
637+
638-
if PlayerOnly then 
638+
639-
if GetPlayer(obj) then
639+
640-
Destroying(obj)
640+
641
				end
642-
else
642+
643-
Destroying(obj)
643+
644
	elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
645
		local clone = part:Clone()
646
		clone.Parent = workspace
647
		clone.Anchored = false
648
		clone:ClearAllChildren()
649-
function GetRecursiveChildren(Parent)
649+
650-
    local ret = {}
650+
651-
    for i, v in pairs(Parent:GetChildren()) do
651+
652-
        if #v:GetChildren() > 0 then
652+
653-
            local childs = GetRecursiveChildren(v)
653+
654-
            for i1, v1 in pairs(childs) do
654+
655-
                ret[#ret + 1] = v1
655+
656-
            end
656+
657-
        end    
657+
658-
        ret[#ret + 1] = v
658+
659-
    end
659+
660-
    return ret
660+
661
		for y,t in pairs(plr.Character:GetChildren()) do
662
			if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
663-
function GetPlayer(Target)
663+
664-
for _,v in pairs(game:service'Players':GetPlayers()) do 
664+
665-
if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
665+
666-
return v 
666+
667
			elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
668
				t.Handle.Transparency = 0
669-
return nil
669+
670
		end
671
	end
672-
function TouchedStatus(Target)
672+
673-
for _,v in pairs(Touched) do 
673+
674-
if v == Target then
674+
675-
return true
675+
676
			if mouse.Target ~= nil then
677
				part = mouse.Target
678-
return false
678+
679
				bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
680
				bp.Position = part.Position
681-
function Destroying(obj)
681+
682-
local ran, err = coroutine.resume(coroutine.create(function()
682+
683-
if not Mouse2Down then
683+
684-
obj:BreakJoints()
684+
				particles.Texture = "rbxassetid://163510023" 
685-
obj.CanCollide = false
685+
686-
obj.Anchored = false
686+
687-
obj.formFactor = "Custom"
687+
688-
obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
688+
689-
local bp = Instance.new("BodyPosition") 
689+
690-
bp.maxForce = Vector3.new(1/0,1/0,1/0)
690+
691-
bp.Parent = obj
691+
692-
local X, Y, Z = nil, nil, nil
692+
693-
coroutine.wrap(function()
693+
694-
while obj and obj.Parent do
694+
695-
X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
695+
696-
wait(0.3)
696+
697
			bp.Position = mouse.hit.p
698-
end)()
698+
699-
coroutine.wrap(function()
699+
700-
while obj and obj.Parent do
700+
701-
bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
701+
702-
wait()
702+
703
		end
704-
end)()
704+
705-
coroutine.wrap(function()
705+
706-
local transp = 0
706+
707-
for i = 1, 50 do
707+
708-
transp = transp + 1
708+
709-
obj.Transparency = transp
709+
710-
wait(0.05)
710+
711
end)
712-
game:service'Debris':AddItem(obj, 0)
712+
713-
end)()
713+
714-
elseif Mouse2Down then
714+
715-
local selbox = Instance.new("SelectionBox", obj)
715+
716-
selbox.Adornee = obj
716+
717-
selbox.Color = BrickColor.new("Really red")
717+
718-
selbox.Transparency = 1
718+
719
bbgTl.Position = UDim2.new(-4.5,0,0,0)
720-
coroutine.wrap(function()
720+
721-
local transp = 1
721+
722-
local Size, Position = obj.Size, obj.Position
722+
723-
local brickTable = {}
723+
724-
game:service'Debris':AddItem(obj, 0)
724+
725-
for i = 1, math.random(2, 4) do
725+
726-
local x, y, z = math.random(), math.random(), math.random()
726+
727-
local Brick = Instance.new("Part")
727+
728-
Brick.Name = "WillNotBeRemoved"
728+
729-
Brick.Parent = game:service'Workspace'
729+
730-
Brick.BrickColor = BrickColor.new("White")
730+
731-
Brick.Size = Size * Vector3.new(x, y, z)
731+
732-
Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
732+
733-
Brick.Locked = true
733+
734-
Brick.Anchored = false
734+
735-
Brick.CanCollide = false
735+
736-
local Selection = Instance.new("SelectionBox", Brick)
736+
737-
Selection.Adornee = Brick
737+
738-
Selection.Color = BrickColor.new("White")
738+
739-
Selection.Transparency = 0
739+
740-
local BodyVelo = Instance.new("BodyVelocity", Brick)
740+
741-
BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
741+
742-
BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
742+
743-
brickTable[#brickTable + 1] = {Brick, Selection}
743+
				t.Transparency = 1
744
				t.TopSurface = "Smooth"
745-
for i = 1, 50 do
745+
746-
transp = transp + 0.02
746+
747-
for i1, v in pairs(brickTable) do
747+
748-
v[1].Transparency = transp
748+
749-
v[2].Transparency = transp
749+
750
				t.BrickColor = BrickColor.new("Really Blue")
751-
wait(0.05)
751+
752
					t.face:Remove()
753-
--for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
753+
754-
end)()
754+
755
				elseif t.Name == "HumanoidRootPart" then
756-
end))
756+
757-
if not ran then print(".:| EShield |:. " .. err) end
757+
758
			else 
759
				t:Remove()
760-
Create()
760+
761
		end
762-
Mouse.Button1Down:connect(function()
762+
763-
MouseDown = true
763+
764
	end
765
end