View difference between Paste ID: 4jwHnfHQ and g9wxvyk2
SHOW: | | - or go back to the newest paste.
1
--By Rufus14
2
local deaglebegin = Instance.new("RemoteEvent", game.ReplicatedStorage)
3
deaglebegin.Name = "DeagleStart"
4
local deagleshoot = Instance.new("RemoteEvent", game.ReplicatedStorage)
5
deagleshoot.Name = "DeagleShoot"
6
local deaglelook = Instance.new("RemoteEvent", game.ReplicatedStorage)
7
deaglelook.Name = "DeagleLook"
8
local deaglesuicide = Instance.new("RemoteEvent", game.ReplicatedStorage)
9
deaglesuicide.Name = "DeagleSuicide"
10
currentplayer = nil
11
function start(player)
12
	if currentplayer == nil then
13
		currentplayer = player
14
		local isshooting = Instance.new("BoolValue", player.Character)
15
		isshooting.Name = "isshooting"
16
		local rightarm = Instance.new("Weld", player.Character.Torso)
17
		rightarm.Part0 = player.Character.Torso
18
		rightarm.Part1 = player.Character["Right Arm"]
19
		rightarm.C0 = CFrame.new(1.5,0,0)
20
		rightarm.Name = "RightArmWeld"
21
		for i = 0,0.7 , 0.07 do
22
			rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.65201187, 0.226355314, 0, 0.925655842, -0.37836656, 0, 0.37836653, 0.925655782, -1.77635684e-15, 0, 1.77635684e-15, 1),i)
23
			wait()
24
		end
25
		for i = 0.3,1 , 0.07 do
26
			rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.12998009, 0.0345094204, 0.516162872, 0.817034721, 0.557074904, -0.148734018, -0.299987584, 0.630993366, 0.715440214, 0.492403984, -0.539921165, 0.68265909),i)
27
			wait()
28
		end
29
		--Converted with ttyyuu12345's model to script plugin v4
30
		local function sandbox(var,func)
31
			local env = getfenv(func)
32
			local newenv = setmetatable({},{
33
				__index = function(self,k)
34
					if k=="script" then
35
						return var
36
					else
37
						return env[k]
38
					end
39
				end,
40
			})
41
			setfenv(func,newenv)
42
			return func
43
		end
44
		local cors = {}
45
		local mas = Instance.new("Model",game:GetService("Lighting"))
46
		local Deagle = Instance.new("Part")
47
		local SpecialMesh1 = Instance.new("SpecialMesh")
48
		Deagle.Name = "Deagle"
49
		Deagle.Parent = mas
50
		Deagle.CFrame = CFrame.new(29.4999924, 0.500003994, 15.7999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
51
		Deagle.Position = Vector3.new(29.4999924, 0.500003994, 15.7999983)
52
		Deagle.Size = Vector3.new(0.399999619, 1, 2)
53
		Deagle.BottomSurface = Enum.SurfaceType.Smooth
54
		Deagle.TopSurface = Enum.SurfaceType.Smooth
55
		SpecialMesh1.Parent = Deagle
56
		SpecialMesh1.MeshId = "rbxassetid://437241640"
57
		SpecialMesh1.Scale = Vector3.new(0.00150000001, 0.00150000001, 0.00150000001)
58
		SpecialMesh1.TextureId = "rbxassetid://437241646"
59
		SpecialMesh1.MeshType = Enum.MeshType.FileMesh
60
		for i,v in pairs(mas:GetChildren()) do
61
			v.Parent = workspace
62
			pcall(function() v:MakeJoints() end)
63
		end
64
		mas:Destroy()
65
		for i,v in pairs(cors) do
66
			spawn(function()
67
				pcall(v)
68
			end)
69
		end
70
		Deagle.Parent = player.Character
71
		local skin = math.random(1,3)
72
		if skin == 1 then
73
			SpecialMesh1.TextureId = "rbxassetid://435840335"
74
		end
75
		if skin == 2 then
76
			SpecialMesh1.TextureId = "rbxassetid://437837326"
77
		end
78
		local sound = Instance.new("Sound", Deagle)
79-
		sound.SoundId = "rbxassetid://255048411"
79+
		sound.SoundId = "rbxassetid://617413497"
80-
		sound.Volume = 1
80+
		sound.Volume = 4.534
81
		local deflect = Instance.new("Sound", Deagle)
82
		deflect.MaxDistance = 100
83
		deflect.Volume = 1
84
		deflect.SoundId = "rbxassetid://341519743"
85
		deflect.Looped = true
86
		local deagleweld = Instance.new("Weld", Deagle)
87
		deagleweld.Part0 = player.Character["Right Arm"]
88
		deagleweld.Part1 = Deagle
89
		deagleweld.C0 = CFrame.new(0.00705909729, -1.33079731, -0.368835449, -0.999332964, 0.0327772535, -0.0161077864, 0.0158357508, -0.00854244363, -0.999838173, -0.0329095535, -0.999426186, 0.00801769271) * CFrame.fromEulerAnglesXYZ(0.1,-0.2,0)
90
		deagleweld.Name = "DeagleWeld"
91
		for i = 0,0.7 , 0.07 do
92
			rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.65201187, 0.226355314, 0, 0.925655842, -0.37836656, 0, 0.37836653, 0.925655782, -1.77635684e-15, 0, 1.77635684e-15, 1),i)
93
			wait()
94
		end
95
		local leftarm = Instance.new("Weld", player.Character["Right Arm"])
96
		leftarm.Part0 = player.Character["Right Arm"]
97
		leftarm.Part1 = player.Character["Left Arm"]
98
		leftarm.C0 = CFrame.new(-3.02089119, 0.127462864, -0.0794887543, 0.998161912, 0.0509746782, -0.0327772535, -0.0507204421, 0.99867624, 0.00854244363, 0.033169318, -0.00686426461, 0.999426186) * CFrame.new(0,1,0)
99
		leftarm.Name = "LeftArmWeld"
100
		for i = 0,1 , 0.05 do
101
			leftarm.C0 = leftarm.C0:lerp(CFrame.new( -1.06814194, -0.0316505432, 0, 0.642787576, -0.766044497, 1.38708486e-07, 0.766044617, 0.642787576, 4.12916563e-08, -3.89626535e-08, 3.68418398e-08, 0.999999881),i)
102
			rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.0086174, 0.500000238, -1.14449883, 0.98480767, 0.173648193, -2.06955857e-08, 3.82449947e-08, -3.37138744e-07, -0.99999994, -0.173648193, 0.98480773, -3.38861582e-07),i)
103
			wait()
104
		end
105
		rightarm.C1 = CFrame.new(0,1,0)
106
		player.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
107
		local bodygyr = Instance.new("BodyGyro", player.Character.HumanoidRootPart)
108
		local canlook = true
109
		local function lookat(player, position, origin)
110
			if player == currentplayer and canlook then
111
				player.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((position-origin).unit.y),0,0)
112
				rightarm.C0 = CFrame.new(1.2,0.4,0) * CFrame.fromEulerAnglesXYZ(math.asin((position-origin).unit.y),0,0) * CFrame.fromEulerAnglesXYZ(1.7,0,-0.2)
113
			end
114
		end
115
		deaglelook.OnServerEvent:connect(lookat)
116
		local function deadforreal()
117
			Deagle.CanCollide = false
118
				player.Character.Archivable = true
119
										local zombiecorpse = player.Character:Clone()
120
										player.Character:destroy()
121
										zombiecorpse.Parent = workspace
122
										game.Debris:AddItem(zombiecorpse, 30)
123
										local Humanoid = zombiecorpse:findFirstChildOfClass("Humanoid")
124
										local Torso = zombiecorpse.Torso
125
										Humanoid.PlatformStand = true
126
										Humanoid:SetStateEnabled("Dead", false)
127
										for i,v in pairs(Humanoid.Parent.Torso:GetChildren()) do
128
											if v.ClassName == 'Motor6D' or v.ClassName == 'Weld' then
129
												v:destroy()
130
											end
131
										end
132
										for i,v in pairs(Humanoid.Parent["Right Arm"]:GetChildren()) do
133
											if v.ClassName == 'Motor6D' or v.ClassName == 'Weld' then
134
												v:destroy()
135
											end
136
										end
137
										for i,v in pairs(zombiecorpse:GetChildren()) do
138
											if v.ClassName == "Part" then
139
												for q,w in pairs(v:GetChildren()) do
140
													if w.ClassName == "BodyPosition" or w.ClassName == "BodyVelocity" then
141
														w:destroy()
142
													end
143
												end
144
											end
145
										end
146
										local function makeconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, upperangle)
147
											local connection = Instance.new('BallSocketConstraint', limb)
148
											connection.LimitsEnabled = true
149
											connection.Attachment0 = attachementone
150
											connection.Attachment1 = attachmenttwo
151
											connection.TwistLimitsEnabled = true
152
											connection.TwistLowerAngle = twistlower
153
											connection.TwistUpperAngle = twistupper
154
											connection.UpperAngle = 70
155
										end
156
										local function makehingeconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, upperangle)
157
											local connection = Instance.new('HingeConstraint', limb)
158
											connection.Attachment0 = attachementone
159
											connection.Attachment1 = attachmenttwo
160
											connection.LimitsEnabled = true
161
											connection.LowerAngle = twistlower
162
											connection.UpperAngle = twistupper
163
										end
164
										Humanoid.Parent['Right Arm'].RightShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
165
										Torso.RightCollarAttachment.Position = Vector3.new(1.5, 0.5, 0)
166
										Humanoid.Parent['Left Arm'].LeftShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
167
										Torso.LeftCollarAttachment.Position = Vector3.new(-1.5, 0.5, 0)
168
										local RightLegAttachment = Instance.new("Attachment", Humanoid.Parent["Right Leg"])
169
										RightLegAttachment.Position = Vector3.new(0, 1, 0)
170
										local TorsoRightLegAttachment = Instance.new("Attachment", Torso)
171
										TorsoRightLegAttachment.Position = Vector3.new(0.5, -1, 0)
172
										--
173
										local LeftLegAttachment = Instance.new("Attachment", Humanoid.Parent["Left Leg"])
174
										LeftLegAttachment.Position = Vector3.new(0, 1, 0)
175
										local TorsoLeftLegAttachment = Instance.new("Attachment", Torso)
176
										TorsoLeftLegAttachment.Position = Vector3.new(-0.5, -1, 0)
177
										--
178
										if Humanoid.Parent:findFirstChild("Head") then
179
											local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
180
											HeadAttachment.Position = Vector3.new(0, -0.5, 0)
181
											makehingeconnections(Humanoid.Parent.Head, HeadAttachment, Torso.NeckAttachment, -20, 20, 70)
182
										end
183
										makeconnections(Humanoid.Parent['Right Arm'], Humanoid.Parent['Right Arm'].RightShoulderAttachment, Torso.RightCollarAttachment, -80, 80)
184
										makeconnections(Humanoid.Parent['Left Arm'], Humanoid.Parent['Left Arm'].LeftShoulderAttachment, Torso.LeftCollarAttachment, -80, 80)
185
										makeconnections(Humanoid.Parent['Right Leg'], RightLegAttachment, TorsoRightLegAttachment, -80, 80, 70)
186
										makeconnections(Humanoid.Parent['Left Leg'], LeftLegAttachment, TorsoLeftLegAttachment, -80, 80, 70)
187
										if Humanoid.Parent:findFirstChild("Right Arm") then
188
											local limbcollider = Instance.new("Part", Humanoid.Parent["Right Arm"])
189
											limbcollider.Size = Vector3.new(1,1.3,1)
190
											limbcollider.Shape = "Cylinder"
191
											limbcollider.Transparency = 1
192
											local limbcolliderweld = Instance.new("Weld", limbcollider)
193
											limbcolliderweld.Part0 = Humanoid.Parent["Right Arm"]
194
											limbcolliderweld.Part1 = limbcollider
195
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
196
										end
197
										--
198
										if Humanoid.Parent:findFirstChild("Left Arm") then
199
											local limbcollider = Instance.new("Part", Humanoid.Parent["Left Arm"])
200
											limbcollider.Size = Vector3.new(1,1.3,1)
201
											limbcollider.Shape = "Cylinder"
202
											limbcollider.Transparency = 1
203
											local limbcolliderweld = Instance.new("Weld", limbcollider)
204
											limbcolliderweld.Part0 = Humanoid.Parent["Left Arm"]
205
											limbcolliderweld.Part1 = limbcollider
206
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
207
										end
208
										--
209
										if Humanoid.Parent:findFirstChild("Left Leg") then
210
											local limbcollider = Instance.new("Part", Humanoid.Parent["Left Leg"])
211
											limbcollider.Size = Vector3.new(1,1.3,1)
212
											limbcollider.Shape = "Cylinder"
213
											limbcollider.Transparency = 1
214
											local limbcolliderweld = Instance.new("Weld", limbcollider)
215
											limbcolliderweld.Part0 = Humanoid.Parent["Left Leg"]
216
											limbcolliderweld.Part1 = limbcollider
217
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
218
										end
219
										--
220
										if Humanoid.Parent:findFirstChild("Right Leg") then
221
											local limbcollider = Instance.new("Part", Humanoid.Parent["Right Leg"])
222
											limbcollider.Size = Vector3.new(1,1.3,1)
223
											limbcollider.Shape = "Cylinder"
224
											limbcollider.Transparency = 1
225
											local limbcolliderweld = Instance.new("Weld", limbcollider)
226
											limbcolliderweld.Part0 = Humanoid.Parent["Right Leg"]
227
											limbcolliderweld.Part1 = limbcollider
228
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
229
										end
230
										local ragdoll = zombiecorpse
231
										if ragdoll:findFirstChild("HumanoidRootPart") then
232
											ragdoll.HumanoidRootPart:destroy()
233
										end
234
		end
235
		player.Character.Humanoid.Died:connect(deadforreal)
236
		local function literally_kys(player)
237
			if player == currentplayer and isshooting.Value == false then
238
				isshooting.Value = true
239
				canlook = false
240
				rightarm.C1 = CFrame.new(0,0,0)
241
				player.Character.Torso.Neck.C0 = CFrame.new(0,1.5,0)
242
				player.Character.Torso.Neck.C1 = CFrame.new(0,0,0)
243
				for i = 0,1 , 0.05 do
244
					player.Character.Torso.Neck.C0 = player.Character.Torso.Neck.C0:lerp(CFrame.new(0,1.5,0),i)
245
					deagleweld.C0 = deagleweld.C0:lerp(CFrame.new(-0.196274757, -0.632213593, -0.205355883, 0.66243422, 0.315613568, -0.679388463, 0.749095082, -0.271707386, 0.604178309, 0.00609206362, -0.909155071, -0.41641292),i)
246
					leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.06814194, -0.0316505432, 0, 0.642787576, -0.766044497, 1.38708486e-07, 0.766044617, 0.642787576, 4.12916563e-08, -3.89626535e-08, 3.68418398e-08, 0.999999881),i)
247
					rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.0086174, 0.500000238, -1.14449883, 0.98480767, 0.173648193, -2.06955857e-08, 3.82449947e-08, -3.37138744e-07, -0.99999994, -0.173648193, 0.98480773, -3.38861582e-07) * CFrame.fromEulerAnglesXYZ(0,0,-0.2),i)
248
					wait()
249
				end
250
				wait(math.random(1,1.5))
251
				local point = Instance.new("PointLight", Deagle)
252
				point.Brightness = 5
253
				sound:Play()
254
				wait()
255
				point:Destroy()
256
				Deagle.CanCollide = false
257
				player.Character.Archivable = true
258
										local zombiecorpse = player.Character:Clone()
259
										player.Character:destroy()
260
										zombiecorpse.Parent = workspace
261
										game.Debris:AddItem(zombiecorpse, 30)
262
										local Humanoid = zombiecorpse:findFirstChildOfClass("Humanoid")
263
										local Torso = zombiecorpse.Torso
264
										Humanoid.PlatformStand = true
265
										Humanoid:SetStateEnabled("Dead", false)
266
										for i,v in pairs(Humanoid.Parent.Torso:GetChildren()) do
267
											if v.ClassName == 'Motor6D' or v.ClassName == 'Weld' then
268
												v:destroy()
269
											end
270
										end
271
										for i,v in pairs(Humanoid.Parent["Right Arm"]:GetChildren()) do
272
											if v.ClassName == 'Motor6D' or v.ClassName == 'Weld' then
273
												v:destroy()
274
											end
275
										end
276
										for i,v in pairs(zombiecorpse:GetChildren()) do
277
											if v.ClassName == "Part" then
278
												for q,w in pairs(v:GetChildren()) do
279
													if w.ClassName == "BodyPosition" or w.ClassName == "BodyVelocity" then
280
														w:destroy()
281
													end
282
												end
283
											end
284
										end
285
										local function makeconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, upperangle)
286
											local connection = Instance.new('BallSocketConstraint', limb)
287
											connection.LimitsEnabled = true
288
											connection.Attachment0 = attachementone
289
											connection.Attachment1 = attachmenttwo
290
											connection.TwistLimitsEnabled = true
291
											connection.TwistLowerAngle = twistlower
292
											connection.TwistUpperAngle = twistupper
293
											connection.UpperAngle = 70
294
										end
295
										local function makehingeconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, upperangle)
296
											local connection = Instance.new('HingeConstraint', limb)
297
											connection.Attachment0 = attachementone
298
											connection.Attachment1 = attachmenttwo
299
											connection.LimitsEnabled = true
300
											connection.LowerAngle = twistlower
301
											connection.UpperAngle = twistupper
302
										end
303
										Humanoid.Parent['Right Arm'].RightShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
304
										Torso.RightCollarAttachment.Position = Vector3.new(1.5, 0.5, 0)
305
										Humanoid.Parent['Left Arm'].LeftShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
306
										Torso.LeftCollarAttachment.Position = Vector3.new(-1.5, 0.5, 0)
307
										local RightLegAttachment = Instance.new("Attachment", Humanoid.Parent["Right Leg"])
308
										RightLegAttachment.Position = Vector3.new(0, 1, 0)
309
										local TorsoRightLegAttachment = Instance.new("Attachment", Torso)
310
										TorsoRightLegAttachment.Position = Vector3.new(0.5, -1, 0)
311
										--
312
										local LeftLegAttachment = Instance.new("Attachment", Humanoid.Parent["Left Leg"])
313
										LeftLegAttachment.Position = Vector3.new(0, 1, 0)
314
										local TorsoLeftLegAttachment = Instance.new("Attachment", Torso)
315
										TorsoLeftLegAttachment.Position = Vector3.new(-0.5, -1, 0)
316
										--
317
										if Humanoid.Parent:findFirstChild("Head") then
318
											local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
319
											HeadAttachment.Position = Vector3.new(0, -0.5, 0)
320
											makehingeconnections(Humanoid.Parent.Head, HeadAttachment, Torso.NeckAttachment, -20, 20, 70)
321
										end
322
										makeconnections(Humanoid.Parent['Right Arm'], Humanoid.Parent['Right Arm'].RightShoulderAttachment, Torso.RightCollarAttachment, -80, 80)
323
										makeconnections(Humanoid.Parent['Left Arm'], Humanoid.Parent['Left Arm'].LeftShoulderAttachment, Torso.LeftCollarAttachment, -80, 80)
324
										makeconnections(Humanoid.Parent['Right Leg'], RightLegAttachment, TorsoRightLegAttachment, -80, 80, 70)
325
										makeconnections(Humanoid.Parent['Left Leg'], LeftLegAttachment, TorsoLeftLegAttachment, -80, 80, 70)
326
										if Humanoid.Parent:findFirstChild("Right Arm") then
327
											local limbcollider = Instance.new("Part", Humanoid.Parent["Right Arm"])
328
											limbcollider.Size = Vector3.new(1,1.3,1)
329
											limbcollider.Shape = "Cylinder"
330
											limbcollider.Transparency = 1
331
											local limbcolliderweld = Instance.new("Weld", limbcollider)
332
											limbcolliderweld.Part0 = Humanoid.Parent["Right Arm"]
333
											limbcolliderweld.Part1 = limbcollider
334
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
335
										end
336
										--
337
										if Humanoid.Parent:findFirstChild("Left Arm") then
338
											local limbcollider = Instance.new("Part", Humanoid.Parent["Left Arm"])
339
											limbcollider.Size = Vector3.new(1,1.3,1)
340
											limbcollider.Shape = "Cylinder"
341
											limbcollider.Transparency = 1
342
											local limbcolliderweld = Instance.new("Weld", limbcollider)
343
											limbcolliderweld.Part0 = Humanoid.Parent["Left Arm"]
344
											limbcolliderweld.Part1 = limbcollider
345
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
346
										end
347
										--
348
										if Humanoid.Parent:findFirstChild("Left Leg") then
349
											local limbcollider = Instance.new("Part", Humanoid.Parent["Left Leg"])
350
											limbcollider.Size = Vector3.new(1,1.3,1)
351
											limbcollider.Shape = "Cylinder"
352
											limbcollider.Transparency = 1
353
											local limbcolliderweld = Instance.new("Weld", limbcollider)
354
											limbcolliderweld.Part0 = Humanoid.Parent["Left Leg"]
355
											limbcolliderweld.Part1 = limbcollider
356
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
357
										end
358
										--
359
										if Humanoid.Parent:findFirstChild("Right Leg") then
360
											local limbcollider = Instance.new("Part", Humanoid.Parent["Right Leg"])
361
											limbcollider.Size = Vector3.new(1,1.3,1)
362
											limbcollider.Shape = "Cylinder"
363
											limbcollider.Transparency = 1
364
											local limbcolliderweld = Instance.new("Weld", limbcollider)
365
											limbcolliderweld.Part0 = Humanoid.Parent["Right Leg"]
366
											limbcolliderweld.Part1 = limbcollider
367
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
368
										end
369
										local ragdoll = zombiecorpse
370
										if ragdoll:findFirstChild("HumanoidRootPart") then
371
											ragdoll.HumanoidRootPart:destroy()
372
										end
373
			end
374
		end
375
		deaglesuicide.OnServerEvent:connect(literally_kys)
376
		local function shootbullet(player)
377
			if player == currentplayer and isshooting.Value == false then
378
				isshooting.Value = true
379
				sound:Play()
380
				local bullet = Instance.new("Part", player.Character)
381
				local def = deflect:Clone()
382
				def.Parent = bullet
383
				def:Play()
384
				bullet.Size = Vector3.new(0.3,0.3,3.5)
385
				bullet.Material = "Neon"
386
				bullet.CFrame = Deagle.CFrame * CFrame.new(0,0,3)
387
				bullet.CanCollide = false
388
				local velocity = Instance.new("BodyVelocity", bullet)
389
				velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
390
				velocity.Velocity = Deagle.CFrame.lookVector * -700
391
				game.Debris:AddItem(bullet, 5)
392
				local function kys(part)
393
					local damage = math.random(60,110)
394
					if part ~= bullet and part.Parent ~= "Accessory" and part.Parent.Parent ~= "Accessory" and part ~= "Accessory" then
395
						bullet:destroy()
396
						local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
397
						if humanoid then
398
							bullet:destroy()
399
							if humanoid.MaxHealth > 300 then
400
								humanoid.MaxHealth = 300
401
								humanoid.Health = 300
402
							end
403
							if part.Name == "Head" then
404
								local velocitycorpse = Instance.new("BodyVelocity", part)
405
								velocitycorpse.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
406
								velocitycorpse.Velocity = player.Character.Torso.CFrame.lookVector * 15
407
								wait(0.1)
408
								humanoid.Health = 0
409
							end
410
							if humanoid.Health <= damage then
411
								if humanoid.Parent:findFirstChild("Torso") then
412
									if humanoid.Parent.Torso:findFirstChild("BodyBackAttachment") then
413
										humanoid.Parent.Archivable = true
414
										local zombiecorpse = humanoid.Parent:Clone()
415
										humanoid.Parent:destroy()
416
										zombiecorpse.Parent = workspace
417
										game.Debris:AddItem(zombiecorpse, 20)
418
										local Humanoid = zombiecorpse:findFirstChildOfClass("Humanoid")
419
										local Torso = zombiecorpse.Torso
420
										Humanoid.PlatformStand = true
421
										Humanoid:SetStateEnabled("Dead", false)
422
										for i,v in pairs(Humanoid.Parent.Torso:GetChildren()) do
423
											if v.ClassName == 'Motor6D' or v.ClassName == 'Weld' then
424
												v:destroy()
425
											end
426
										end
427
										for i,v in pairs(zombiecorpse:GetChildren()) do
428
											if v.ClassName == "Part" then
429
												for q,w in pairs(v:GetChildren()) do
430
													if w.ClassName == "BodyPosition" or w.ClassName == "BodyVelocity" then
431
														w:destroy()
432
													end
433
												end
434
											end
435
										end
436
										local function makeconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, upperangle)
437
											local connection = Instance.new('BallSocketConstraint', limb)
438
											connection.LimitsEnabled = true
439
											connection.Attachment0 = attachementone
440
											connection.Attachment1 = attachmenttwo
441
											connection.TwistLimitsEnabled = true
442
											connection.TwistLowerAngle = twistlower
443
											connection.TwistUpperAngle = twistupper
444
											connection.UpperAngle = 70
445
										end
446
										local function makehingeconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, upperangle)
447
											local connection = Instance.new('HingeConstraint', limb)
448
											connection.Attachment0 = attachementone
449
											connection.Attachment1 = attachmenttwo
450
											connection.LimitsEnabled = true
451
											connection.LowerAngle = twistlower
452
											connection.UpperAngle = twistupper
453
										end
454
										Humanoid.Parent['Right Arm'].RightShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
455
										Torso.RightCollarAttachment.Position = Vector3.new(1.5, 0.5, 0)
456
										Humanoid.Parent['Left Arm'].LeftShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
457
										Torso.LeftCollarAttachment.Position = Vector3.new(-1.5, 0.5, 0)
458
										local RightLegAttachment = Instance.new("Attachment", Humanoid.Parent["Right Leg"])
459
										RightLegAttachment.Position = Vector3.new(0, 1, 0)
460
										local TorsoRightLegAttachment = Instance.new("Attachment", Torso)
461
										TorsoRightLegAttachment.Position = Vector3.new(0.5, -1, 0)
462
										--
463
										local LeftLegAttachment = Instance.new("Attachment", Humanoid.Parent["Left Leg"])
464
										LeftLegAttachment.Position = Vector3.new(0, 1, 0)
465
										local TorsoLeftLegAttachment = Instance.new("Attachment", Torso)
466
										TorsoLeftLegAttachment.Position = Vector3.new(-0.5, -1, 0)
467
										--
468
										if Humanoid.Parent:findFirstChild("Head") then
469
											local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
470
											HeadAttachment.Position = Vector3.new(0, -0.5, 0)
471
											makehingeconnections(Humanoid.Parent.Head, HeadAttachment, Torso.NeckAttachment, -20, 20, 70)
472
										end
473
										makeconnections(Humanoid.Parent['Right Arm'], Humanoid.Parent['Right Arm'].RightShoulderAttachment, Torso.RightCollarAttachment, -80, 80)
474
										makeconnections(Humanoid.Parent['Left Arm'], Humanoid.Parent['Left Arm'].LeftShoulderAttachment, Torso.LeftCollarAttachment, -80, 80)
475
										makeconnections(Humanoid.Parent['Right Leg'], RightLegAttachment, TorsoRightLegAttachment, -80, 80, 70)
476
										makeconnections(Humanoid.Parent['Left Leg'], LeftLegAttachment, TorsoLeftLegAttachment, -80, 80, 70)
477
										if Humanoid.Parent:findFirstChild("Right Arm") then
478
											local limbcollider = Instance.new("Part", Humanoid.Parent["Right Arm"])
479
											limbcollider.Size = Vector3.new(1,1.3,1)
480
											limbcollider.Shape = "Cylinder"
481
											limbcollider.Transparency = 1
482
											local limbcolliderweld = Instance.new("Weld", limbcollider)
483
											limbcolliderweld.Part0 = Humanoid.Parent["Right Arm"]
484
											limbcolliderweld.Part1 = limbcollider
485
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
486
											for i,v in pairs(zombiecorpse["Right Arm"]:GetChildren()) do
487
												if v.ClassName == 'Motor6D' or v.ClassName == 'Weld' then
488
													v:destroy()
489
												end
490
											end
491
										end
492
										--
493
										if Humanoid.Parent:findFirstChild("Left Arm") then
494
											local limbcollider = Instance.new("Part", Humanoid.Parent["Left Arm"])
495
											limbcollider.Size = Vector3.new(1,1.3,1)
496
											limbcollider.Shape = "Cylinder"
497
											limbcollider.Transparency = 1
498
											local limbcolliderweld = Instance.new("Weld", limbcollider)
499
											limbcolliderweld.Part0 = Humanoid.Parent["Left Arm"]
500
											limbcolliderweld.Part1 = limbcollider
501
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
502
										end
503
										--
504
										if Humanoid.Parent:findFirstChild("Left Leg") then
505
											local limbcollider = Instance.new("Part", Humanoid.Parent["Left Leg"])
506
											limbcollider.Size = Vector3.new(1,1.3,1)
507
											limbcollider.Shape = "Cylinder"
508
											limbcollider.Transparency = 1
509
											local limbcolliderweld = Instance.new("Weld", limbcollider)
510
											limbcolliderweld.Part0 = Humanoid.Parent["Left Leg"]
511
											limbcolliderweld.Part1 = limbcollider
512
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
513
										end
514
										--
515
										if Humanoid.Parent:findFirstChild("Right Leg") then
516
											local limbcollider = Instance.new("Part", Humanoid.Parent["Right Leg"])
517
											limbcollider.Size = Vector3.new(1,1.3,1)
518
											limbcollider.Shape = "Cylinder"
519
											limbcollider.Transparency = 1
520
											local limbcolliderweld = Instance.new("Weld", limbcollider)
521
											limbcolliderweld.Part0 = Humanoid.Parent["Right Leg"]
522
											limbcolliderweld.Part1 = limbcollider
523
											limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
524
										end
525
										local ragdoll = zombiecorpse
526
										if ragdoll:findFirstChild("HumanoidRootPart") then
527
											ragdoll.HumanoidRootPart.CanCollide = false
528
											ragdoll.HumanoidRootPart:destroy()
529
										end
530
									end
531
								else
532
									if humanoid.Parent:findFirstChild("UpperTorso") then
533
										if humanoid.Parent.UpperTorso:findFirstChild("BodyBackAttachment") then
534
											humanoid.Parent.Archivable = true
535
											local zombiecorpse = humanoid.Parent:Clone()
536
											humanoid.Parent:destroy()
537
											zombiecorpse.Parent = workspace
538
											game.Debris:AddItem(zombiecorpse, 20)
539
											for i,v in pairs(zombiecorpse:GetChildren()) do
540
												if v.ClassName == "Part" or v.ClassName == "MeshPart" then
541
													for q,w in pairs(v:GetChildren()) do
542
														if w.ClassName == "BodyPosition" or w.ClassName == "BodyVelocity" then
543
															w:destroy()
544
														end
545
													end
546
												end
547
											end
548
											local UpperTorso = zombiecorpse.UpperTorso
549
											local Humanoid = zombiecorpse:findFirstChildOfClass("Humanoid")
550
											Humanoid.PlatformStand = true
551
											local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
552
												local connection = Instance.new('BallSocketConstraint', limb)
553
												connection.LimitsEnabled = true
554
												connection.Attachment0 = attachementone
555
												connection.Attachment1 = attachmenttwo
556
												connection.TwistLimitsEnabled = true
557
												connection.TwistLowerAngle = twistlower
558
												connection.TwistUpperAngle = twistupper
559
												local limbcollider = Instance.new("Part", limb)
560
												limbcollider.Size = Vector3.new(0.1,1,1)
561
												limbcollider.Shape = "Cylinder"
562
												limbcollider.Transparency = 1
563
												limbcollider:BreakJoints()
564
												local limbcolliderweld = Instance.new("Weld", limbcollider)
565
												limbcolliderweld.Part0 = limb
566
												limbcolliderweld.Part1 = limbcollider
567
												limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
568
											end
569
											local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
570
												local connection = Instance.new('HingeConstraint', limb)
571
												connection.LimitsEnabled = true
572
												connection.Attachment0 = attachementone
573
												connection.Attachment1 = attachmenttwo
574
												connection.LimitsEnabled = true
575
												connection.LowerAngle = lower
576
												connection.UpperAngle = upper
577
												local limbcollider = Instance.new("Part", limb)
578
												limbcollider.Size = Vector3.new(0.1,1,1)
579
												limbcollider.Shape = "Cylinder"
580
												limbcollider.Transparency = 1
581
												limbcollider:BreakJoints()
582
												local limbcolliderweld = Instance.new("Weld", limbcollider)
583
												limbcolliderweld.Part0 = limb
584
												limbcolliderweld.Part1 = limbcollider
585
												limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
586
											end
587
											local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
588
											HeadAttachment.Position = Vector3.new(0, -0.5, 0)
589
											makehingeconnections(Humanoid.Parent.Head, HeadAttachment, UpperTorso.NeckAttachment, -50, 50)
590
											makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
591
											makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -50, 50)
592
											makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
593
											makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
594
											--
595
											makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -50, 50)
596
											makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
597
											makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
598
											--
599
											makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -360, 360)
600
											makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
601
											makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
602
											--
603
											makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -360, 360)
604
											makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
605
											makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
606
											for i,v in pairs(Humanoid.Parent:GetChildren()) do
607
												if v.ClassName == "Accessory" then
608
													local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
609
													if attachment1 then
610
														for q,w in pairs(Humanoid.Parent:GetChildren()) do
611
															if w.ClassName == "Part" then
612
																local attachment2 = w:findFirstChild(attachment1.Name)
613
																if attachment2 then
614
																	local hinge = Instance.new("HingeConstraint", v.Handle)
615
																	hinge.Attachment0 = attachment1
616
																	hinge.Attachment1 = attachment2
617
																	hinge.LimitsEnabled = true
618
																	hinge.LowerAngle = 0
619
																	hinge.UpperAngle = 0
620
																end
621
															end
622
														end
623
													end
624
												end
625
											end
626
											for i,v in pairs(zombiecorpse:GetChildren()) do
627
												for q,w in pairs(v:GetChildren()) do
628
													if w.ClassName == "Motor6D" and w.Name ~= "Neck" then
629
														w:destroy()
630
													end
631
												end
632
											end
633
											local ragdoll = zombiecorpse
634
											if ragdoll:findFirstChild("HumanoidRootPart") then
635
												ragdoll.HumanoidRootPart.Anchored = true
636
												ragdoll.HumanoidRootPart.CanCollide = false
637
											end
638
										end
639
									end
640
								end
641
							else
642
								humanoid:TakeDamage(damage)
643
							end
644
						end
645
					end
646
				end
647
				bullet.Touched:connect(kys)
648
				local point = Instance.new("PointLight", Deagle)
649
				point.Brightness = 5
650
				for i = 1,10 do
651
					player.Character.Torso.Neck.C1 = player.Character.Torso.Neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0)
652
					rightarm.C1 = rightarm.C1 * CFrame.new(0,-0.08,0) * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
653
				end
654
				wait()
655
				point:destroy()
656
				for i = 1,10 do
657
					player.Character.Torso.Neck.C1 = player.Character.Torso.Neck.C1 * CFrame.fromEulerAnglesXYZ(0.03,0,0)
658
					rightarm.C1 = rightarm.C1 * CFrame.new(0,0.08,0) * CFrame.fromEulerAnglesXYZ(0.05,0,0)
659
					wait()
660
				end
661
				player.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
662
				rightarm.C1 = CFrame.new(0,1,0)
663
				isshooting.Value = false
664
			end
665
		end
666
		deagleshoot.OnServerEvent:connect(shootbullet)
667
	end
668
end
669
deaglebegin.OnServerEvent:connect(start)