View difference between Paste ID: qgAzt2aX and iD2aJDeF
SHOW: | | - or go back to the newest paste.
1
--By Rufus14
2
mouse = game.Players.LocalPlayer:GetMouse()
3
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
4
local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
5
game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
6
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
7
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
8
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
9
rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
10
local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
11
game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove()
12
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
13
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
14
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
15
lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
16
local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
17
game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
18
local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
19
llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
20
llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
21
llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
22
local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
23
game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
24
local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
25
rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
26
rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
27
rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
28
local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
29
game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
30
local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
31
humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
32
humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
33
local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
34
local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
35
headweld.Part0 = game.Players.LocalPlayer.Character.Torso
36
headweld.Part1 = game.Players.LocalPlayer.Character.Head
37
headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
38
game.Players.LocalPlayer.Character.Torso.Neck:Remove()
39
howmuch = 0
40
canwalk = true
41
function change(key)
42
    if key == "w" or key == "a" or key == "s" or key == "d" then
43
        howmuch = howmuch + 1
44
    end
45
end
46
function otherchange(key)
47
    if key == "w" or key == "a" or key == "s" or key == "d" then
48
        howmuch = howmuch - 1
49
    end
50
end
51
mouse.KeyDown:connect(change)
52
mouse.KeyUp:connect(otherchange)
53
--Converted with ttyyuu12345's model to script plugin v4
54
function sandbox(var,func)
55
	local env = getfenv(func)
56
	local newenv = setmetatable({},{
57
		__index = function(self,k)
58
			if k=="script" then
59
				return var
60
			else
61
				return env[k]
62
			end
63
		end,
64
	})
65
	setfenv(func,newenv)
66
	return func
67
end
68
cors = {}
69
mas = Instance.new("Model",game:GetService("Lighting"))
70
Model0 = Instance.new("Model")
71
Part1 = Instance.new("Part")
72
Part2 = Instance.new("Part")
73
Part3 = Instance.new("Part")
74
Weld4 = Instance.new("Weld")
75
Weld5 = Instance.new("Weld")
76
Weld6 = Instance.new("Weld")
77
Part7 = Instance.new("Part")
78
Model0.Name = "Sawed Off"
79
Model0.Parent = mas
80
Part1.Parent = Model0
81
Part1.BrickColor = BrickColor.new("Really black")
82
Part1.Shape = Enum.PartType.Cylinder
83
Part1.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
84
Part1.CFrame = CFrame.new(40.7499924, 151.548019, 156.470001, 1.0000006, -1.78813934e-07, 0, -1.78813934e-07, 1.00000024, 0, 0, 0, 1)
85
Part1.Color = Color3.new(0.101961, 0.101961, 0.101961)
86
Part1.Position = Vector3.new(40.7499924, 151.548019, 156.470001)
87
Part1.Color = Color3.new(0.101961, 0.101961, 0.101961)
88
Part2.Parent = Model0
89
Part2.BrickColor = BrickColor.new("Really black")
90
Part2.Shape = Enum.PartType.Cylinder
91
Part2.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
92
Part2.CFrame = CFrame.new(40.7499962, 151.548035, 156.079056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
93
Part2.Color = Color3.new(0.101961, 0.101961, 0.101961)
94
Part2.Position = Vector3.new(40.7499962, 151.548035, 156.079056)
95
Part2.Color = Color3.new(0.101961, 0.101961, 0.101961)
96
Part3.Parent = Model0
97
Part3.BrickColor = BrickColor.new("Lily white")
98
Part3.Rotation = Vector3.new(0, 0, -34)
99
Part3.Size = Vector3.new(1.11000025, 0.519999921, 0.570000172)
100
Part3.CFrame = CFrame.new(42.5974922, 150.98793, 156.274887, 0.829038441, 0.559192181, 0, -0.55919224, 0.829038203, 0, 0, 0, 1)
101
Part3.Color = Color3.new(0.317647, 0.145098, 0)
102
Part3.Position = Vector3.new(42.5974922, 150.98793, 156.274887)
103
Part3.Orientation = Vector3.new(0, 0, -34)
104
Part3.Color = Color3.new(0.317647, 0.145098, 0)
105
Weld4.Name = "1"
106
Weld4.Parent = Part3
107
Weld4.C0 = CFrame.new(-1.84484863, -0.568756104, -0.195831299, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
108
Weld4.Part0 = Part3
109
Weld4.Part1 = Part2
110
Weld5.Name = "3"
111
Weld5.Parent = Part3
112
Weld5.C0 = CFrame.new(-0.60994339, 0.0636444092, 0.00506591797, 0.866026163, 0.499997735, 0, -0.499997616, 0.866026044, 0, 0, 0, 1)
113
Weld5.Part0 = Part3
114
Weld5.Part1 = Part7
115
Weld6.Name = "2"
116
Weld6.Parent = Part3
117
Weld6.C0 = CFrame.new(-1.84484482, -0.568771362, 0.195114136, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
118
Weld6.Part0 = Part3
119
Weld6.Part1 = Part1
120
Part7.Parent = Model0
121
Part7.BrickColor = BrickColor.new("Lily white")
122
Part7.Rotation = Vector3.new(0, 0, -64)
123
Part7.Size = Vector3.new(0.440000623, 0.519999921, 0.759999931)
124
Part7.CFrame = CFrame.new(42.1274147, 151.381775, 156.279953, 0.438374251, 0.898792326, 0, -0.898792267, 0.438373834, 0, 0, 0, 1)
125
Part7.Color = Color3.new(0.317647, 0.145098, 0)
126
Part7.Position = Vector3.new(42.1274147, 151.381775, 156.279953)
127
Part7.Orientation = Vector3.new(0, 0, -64)
128
Part7.Color = Color3.new(0.317647, 0.145098, 0)
129
for i,v in pairs(mas:GetChildren()) do
130
	v.Parent = game:GetService("Players").LocalPlayer.Character
131
	pcall(function() v:MakeJoints() end)
132
end
133
mas:Destroy()
134
for i,v in pairs(cors) do
135
	spawn(function()
136
		pcall(v)
137
	end)
138
end
139
for i,v in pairs(Model0:GetChildren()) do
140
	if v.ClassName == "Part" then
141
		v.CanCollide = false
142
	end
143
end
144
145
--Converted with ttyyuu12345's model to script plugin v4
146
function sandbox(var,func)
147
	local env = getfenv(func)
148
	local newenv = setmetatable({},{
149
		__index = function(self,k)
150
			if k=="script" then
151
				return var
152
			else
153
				return env[k]
154
			end
155
		end,
156
	})
157
	setfenv(func,newenv)
158
	return func
159
end
160
cors = {}
161
mas = Instance.new("Model",game:GetService("Lighting"))
162
for i,v in pairs(mas:GetChildren()) do
163
	v.Parent = game:GetService("Players").LocalPlayer.Character.Torso
164
	pcall(function() v:MakeJoints() end)
165
end
166
mas:Destroy()
167
for i,v in pairs(cors) do
168
	spawn(function()
169
		pcall(v)
170
	end)
171
end
172
Sound0 = Instance.new("Sound")
173
Sound0.Volume = 5
174
Sound0.Parent = game.Players.LocalPlayer.Character.Head
175-
Sound0.SoundId = "rbxassetid://332149004"
175+
Sound0.SoundId = "rbxassetid://668469323"
176
Sound0.Looped = true
177
Sound0:Play()
178
Sound00 = Instance.new("Sound")
179
Sound00.Volume = 6
180
Sound00.Parent = game.Players.LocalPlayer.Character.Head
181
Sound00.SoundId = "rbxassetid://330706798"
182
bullethitforclone = Instance.new("Sound")
183
bullethitforclone.Volume = 4
184
bullethitforclone.Parent = game.Players.LocalPlayer.Character.Head
185
bullethitforclone.SoundId = "rbxassetid://144884872"
186
weldf = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
187
weldf.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
188
weldf.Part1 = Part3
189
weldf.C0 = CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511)
190
using = false
191
function shoot()
192
	if not using then
193
		using = true
194
		canwalk = false
195
		for i = 0,1 , 0.02 do
196
			headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207927465, 1.10965065e-11, -0.978144228, -7.31349337e-09, 1, -1.5433097e-09, 0.978144288, 7.47454809e-09, 0.207927451),i)
197
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.01304245, 0.49798584, -0.020904541, 0.0697589889, -0.997563899, -2.65673535e-22, -1.85331179e-23, 2.65026316e-22, -0.999999881, 0.997563779, 0.0697589815, 0),i)
198
			weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
199
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
200
			game:GetService("RunService").RenderStepped:wait()
201
		end
202
		Sound00:Play()
203
		for i = 1,5 do
204
			ghosting = math.random(1,2)
205
			local bullet = Instance.new("Part", workspace)
206
            bullet.Size = Vector3.new(0.2,0.2,3)
207
            bullet.BrickColor = BrickColor.new("Institutional White")
208
            bullet.Material = "Neon"
209
            bullet.Anchored = false
210
            bullet.CFrame = Part1.CFrame * CFrame.new(3,0,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
211
            local velocityofbullet = Instance.new("BodyVelocity", bullet)
212
            velocityofbullet.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
213
            velocityofbullet.Velocity = mouse.Hit.lookVector * 650 + Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
214
            bullet.CanCollide = false
215
            bullet:BreakJoints()
216
			local function kill(part)
217
				local humanoid = part.Parent:findFirstChild("Humanoid")
218
	            if humanoid then
219
	                if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
220
	                       
221
	                else
222
	                    if ghosting == 1 then
223
	                   
224
	                    else
225
	                        bullet:destroy()
226
	                    end
227
						local bullethit = bullethitforclone:Clone()
228
						bullethit.Parent = part
229
	                    if part.Name == "Left Leg" then
230
	                        bullethit:Play()
231
	                        humanoid.Parent.Torso["Left Hip"]:Remove()
232
	                        humanoid.Health = humanoid.Health - math.random(35,50)
233
	                        local glue = Instance.new("Glue",  humanoid.Parent.Torso)
234
	                        glue.Part0 = humanoid.Parent.Torso
235
	                        glue.Part1 = humanoid.Parent["Left Leg"]
236
	                        glue.Name = "Left leg"
237
	                        local collider = Instance.new("Part",  humanoid.Parent["Left Leg"])
238
	                        collider.Position = Vector3.new(0,999,0)
239
	                        collider.Size = Vector3.new(1.5, 1, 1)
240
	                        collider.Shape = "Cylinder"
241
	                        local weld = Instance.new("Weld", collider)
242
	                        weld.Part0 =  humanoid.Parent["Left Leg"]
243
	                        weld.Part1 = collider
244
	                        weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
245
	                        collider.TopSurface = "Smooth"
246
	                        collider.BottomSurface = "Smooth"
247
	                        collider.formFactor = "Symmetric"
248
	                        glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
249
	                        glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
250
	                        collider.Transparency = 1
251
	                    end
252
	                    if part.Name == "Right Leg" then
253
	                        humanoid.Parent.Torso["Right Hip"]:Remove()
254
	                        bullethit:Play()
255
	                        humanoid.Health = humanoid.Health - math.random(35,50)
256
	                        local glue = Instance.new("Glue",  humanoid.Parent.Torso)
257
	                        glue.Part0 = humanoid.Parent.Torso
258
	                        glue.Part1 = humanoid.Parent["Right Leg"]
259
	                        glue.Name = "Right leg"
260
	                        local collider = Instance.new("Part",  humanoid.Parent["Right Leg"])
261
	                        collider.Position = Vector3.new(0,999,0)
262
	                        collider.Size = Vector3.new(1.5, 1, 1)
263
	                        collider.Shape = "Cylinder"
264
	                        local weld = Instance.new("Weld", collider)
265
	                        weld.Part0 =  humanoid.Parent["Right Leg"]
266
	                        weld.Part1 = collider
267
	                        weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
268
	                        collider.TopSurface = "Smooth"
269
	                        collider.BottomSurface = "Smooth"
270
	                        collider.formFactor = "Symmetric"
271
	                        glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
272
	                        glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
273
	                        collider.Transparency = 1
274
	                    end
275
	                    if part.Name == "Right Arm" then
276
	                        bullethit:Play()
277
	                        humanoid.Parent.Torso["Right Shoulder"]:Remove()
278
	                        humanoid.Health = humanoid.Health - math.random(20,35)
279
	                        local glue = Instance.new("Glue",  humanoid.Parent.Torso)
280
	                        glue.Part0 = humanoid.Parent.Torso
281
	                        glue.Part1 = humanoid.Parent["Right Arm"]
282
	                        glue.Name = "Right arm"
283
	                        local collider = Instance.new("Part",  humanoid.Parent["Right Arm"])
284
	                        collider.Position = Vector3.new(0,999,0)
285
	                        collider.Size = Vector3.new(1.5, 1, 1)
286
	                        collider.Shape = "Cylinder"
287
	                        local weld = Instance.new("Weld", collider)
288
	                        weld.Part0 =  humanoid.Parent["Right Arm"]
289
	                        weld.Part1 = collider
290
	                        weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
291
	                        collider.TopSurface = "Smooth"
292
	                        collider.BottomSurface = "Smooth"
293
	                        collider.formFactor = "Symmetric"
294
	                        glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
295
	                        glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
296
	                        collider.Transparency = 1
297
	                    end
298
	                    if part.Name == "Left Arm" then
299
	                        bullethit:Play()
300
	                        humanoid.Parent.Torso["Left Shoulder"]:Remove()
301
	                        humanoid.Health = humanoid.Health - math.random(20,35)
302
	                        local glue = Instance.new("Glue",  humanoid.Parent.Torso)
303
	                        glue.Part0 = humanoid.Parent.Torso
304
	                        glue.Part1 = humanoid.Parent["Left Arm"]
305
	                        glue.Name = "Left arm"
306
	                        local collider = Instance.new("Part",  humanoid.Parent["Left Arm"])
307
	                        collider.Position = Vector3.new(0,999,0)
308
	                        collider.Size = Vector3.new(1.5, 1, 1)
309
	                        collider.Shape = "Cylinder"
310
	                        local weld = Instance.new("Weld", collider)
311
	                        weld.Part0 =  humanoid.Parent["Left Arm"]
312
	                        weld.Part1 = collider
313
	                        weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
314
	                        collider.TopSurface = "Smooth"
315
	                        collider.BottomSurface = "Smooth"
316
	                        collider.formFactor = "Symmetric"
317
	                        glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
318
	                        glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
319
	                        collider.Transparency = 1
320
	                    end
321
	                    if part.Name == "Torso" then
322
	                        bullethit:Play()
323
	                        humanoid.Health = humanoid.Health - math.random(15,50)
324
	                        humanoid.WalkSpeed = humanoid.WalkSpeed - math.random(1,2)
325
	                    end
326
	                    if part.Name == "Head" then
327
	                        bullethit:Play()
328
	                        humanoid.JumpPower = 0
329
	                        humanoid.PlatformStand = true
330
	                        humanoid.WalkSpeed = 0
331
	                        local decal = Instance.new("Decal", part)
332
	                        decal.Texture = "http://www.roblox.com/asset/?id=1081285488"
333
	                        local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
334
	                        if findlefthip then
335
	                            findlefthip:Remove()
336
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
337
	                            glue.Part0 = humanoid.Parent.Torso
338
	                            glue.Part1 = humanoid.Parent["Left Leg"]
339
	                            glue.Name = "Left leg"
340
	                            local collider = Instance.new("Part",  humanoid.Parent["Left Leg"])
341
	                            collider.Position = Vector3.new(0,999,0)
342
	                            collider.Size = Vector3.new(1.5, 1, 1)
343
	                            collider.Shape = "Cylinder"
344
	                            local weld = Instance.new("Weld", collider)
345
	                            weld.Part0 =  humanoid.Parent["Left Leg"]
346
	                            weld.Part1 = collider
347
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
348
	                            collider.TopSurface = "Smooth"
349
	                            collider.BottomSurface = "Smooth"
350
	                            collider.formFactor = "Symmetric"
351
	                            glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
352
	                            glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
353
	                            collider.Transparency = 1
354
	                        end
355
	                        --
356
	                        local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
357
	                        if findrighthip then
358
	                            findrighthip:Remove()
359
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
360
	                            glue.Part0 = humanoid.Parent.Torso
361
	                            glue.Part1 = humanoid.Parent["Right Leg"]
362
	                            glue.Name = "Right leg"
363
	                            local collider = Instance.new("Part",  humanoid.Parent["Right Leg"])
364
	                            collider.Position = Vector3.new(0,999,0)
365
	                            collider.Size = Vector3.new(1.5, 1, 1)
366
	                            collider.Shape = "Cylinder"
367
	                            local weld = Instance.new("Weld", collider)
368
	                            weld.Part0 =  humanoid.Parent["Right Leg"]
369
	                            weld.Part1 = collider
370
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
371
	                            collider.TopSurface = "Smooth"
372
	                            collider.BottomSurface = "Smooth"
373
	                            collider.formFactor = "Symmetric"
374
	                            glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
375
	                            glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
376
	                            collider.Transparency = 1
377
	                        end
378
	                        --
379
	                        local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
380
	                        if findrightshoulder then
381
	                            findrightshoulder:Remove()
382
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
383
	                            glue.Part0 = humanoid.Parent.Torso
384
	                            glue.Part1 = humanoid.Parent["Right Arm"]
385
	                            glue.Name = "Right arm"
386
	                            local collider = Instance.new("Part",  humanoid.Parent["Right Arm"])
387
	                            collider.Position = Vector3.new(0,999,0)
388
	                            collider.Size = Vector3.new(1.5, 1, 1)
389
	                            collider.Shape = "Cylinder"
390
	                            local weld = Instance.new("Weld", collider)
391
	                            weld.Part0 =  humanoid.Parent["Right Arm"]
392
	                            weld.Part1 = collider
393
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
394
	                            collider.TopSurface = "Smooth"
395
	                            collider.BottomSurface = "Smooth"
396
	                            collider.formFactor = "Symmetric"
397
	                            glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
398
	                            glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
399
	                            collider.Transparency = 1
400
	                        end
401
	                        --
402
	                        local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
403
	                        if findleftshoulder then
404
	                            findleftshoulder:Remove()
405
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
406
	                            glue.Part0 = humanoid.Parent.Torso
407
	                            glue.Part1 = humanoid.Parent["Left Arm"]
408
	                            glue.Name = "Left arm"
409
	                            local collider = Instance.new("Part",  humanoid.Parent["Left Arm"])
410
	                            collider.Position = Vector3.new(0,999,0)
411
	                            collider.Size = Vector3.new(1.5, 1, 1)
412
	                            collider.Shape = "Cylinder"
413
	                            local weld = Instance.new("Weld", collider)
414
	                            weld.Part0 =  humanoid.Parent["Left Arm"]
415
	                            weld.Part1 = collider
416
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
417
	                            collider.TopSurface = "Smooth"
418
	                            collider.BottomSurface = "Smooth"
419
	                            collider.formFactor = "Symmetric"
420
	                            glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
421
	                            glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
422
	                            collider.Transparency = 1
423
	                        end
424
	                        wait(5)
425
	                        humanoid.Health = 0
426
	                    end
427
	                    local howmany = 0
428
	                    for i,v in pairs(humanoid.Parent.Torso:GetChildren()) do
429
	                        if v.ClassName == "Glue" then
430
	                            howmany = howmany + 1
431
	                        end
432
	                    end
433
	                    if howmany == 4 then
434
	                        humanoid.JumpPower = 0
435
	                        humanoid.PlatformStand = true
436
	                        humanoid.WalkSpeed = 0
437
	                    end
438
						if humanoid.Health < 1 then
439
							if humanoid.Parent:findFirstChild("Health") then
440
                            humanoid.Parent.Health:Remove()
441
                            humanoid.Health = 0.001
442
							for i,v in pairs(humanoid.Parent:GetChildren()) do
443
                                if v.ClassName == "Part" then
444
                                    for q,w in pairs(v:GetChildren()) do
445
		                                if w.ClassName == "Part" then
446
		                                    w:destroy()
447
		                                end
448
		                            end
449
                                end
450
                            end
451
                        end
452
                        if humanoid.Parent:findFirstChild("Torso") then
453
                            humanoid.Parent.Torso.Velocity = mouse.Hit.lookVector * 35
454
                            for i,v in pairs(humanoid.Parent.Torso:GetChildren()) do
455
                                if v.ClassName == "Motor6D" then
456
                                    if v.Name == "Neck" then
457
                                       
458
                                    else
459
                                        v:destroy()
460
                                    end
461
                                end
462
                            end
463
                        end
464
                        humanoid.WalkSpeed = 0
465
                        humanoid.JumpPower = 0
466
                        humanoid.PlatformStand = true
467
                        if humanoid.Parent:findFirstChild("Right Arm") then
468
                            local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
469
                            attachment.Position = Vector3.new(1, 1, 0)
470
                            local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
471
                            ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
472
                            ball.Attachment1 = attachment
473
                            local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
474
                            collidepartofleftleg.Name = "Bone"
475
                            collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
476
                            collidepartofleftleg.Transparency = 1
477
                            collidepartofleftleg:BreakJoints()
478
                            local weeld = Instance.new("Weld", collidepartofleftleg)
479
                            weeld.Part0 = humanoid.Parent["Right Arm"]
480
                            weeld.Part1 = collidepartofleftleg
481
                            weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
482
                        end
483
                        if humanoid.Parent:findFirstChild("Left Arm") then
484
                            local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
485
                            attachment.Position = Vector3.new(1, 1, 0)
486
                            local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
487
                            ball.Attachment0 = humanoid.Parent.Torso.LeftCollarAttachment
488
                            ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
489
                            local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
490
                            collidepartofleftleg.Name = "Bone"
491
                            collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
492
                            collidepartofleftleg.Transparency = 1
493
                            collidepartofleftleg:BreakJoints()
494
                            local weeld = Instance.new("Weld", collidepartofleftleg)
495
                            weeld.Part0 = humanoid.Parent["Left Arm"]
496
                            weeld.Part1 = collidepartofleftleg
497
                            weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
498
                        end
499
                        if humanoid.Parent:findFirstChild("Right Leg") then
500
                            local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
501
                            attachment.Position = Vector3.new(0.5, -1, 0)
502
                            local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
503
                            ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
504
                            ball.Attachment1 = attachment
505
                            humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
506
                            local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
507
                            collidepartofleftleg.Name = "Bone"
508
                            collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
509
                            collidepartofleftleg.Transparency = 1
510
                            collidepartofleftleg:BreakJoints()
511
                            local weeld = Instance.new("Weld", collidepartofleftleg)
512
                            weeld.Part0 = humanoid.Parent["Right Leg"]
513
                            weeld.Part1 = collidepartofleftleg
514
                            weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
515
                        end
516
                        if humanoid.Parent:findFirstChild("Left Leg") then
517
                            local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
518
                            attachment.Position = Vector3.new(-0.5, -1, 0)
519
                            local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
520
                            ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
521
                            ball.Attachment1 = attachment
522
                            humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
523
                            local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
524
                            collidepartofleftleg.Name = "Bone"
525
                            collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
526
                            collidepartofleftleg.Transparency = 1
527
                            collidepartofleftleg:BreakJoints()
528
                            local weeld = Instance.new("Weld", collidepartofleftleg)
529
                            weeld.Part0 =  humanoid.Parent["Left Leg"]
530
                            weeld.Part1 = collidepartofleftleg
531
                            weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
532
                        end
533
                        if humanoid.Parent:findFirstChild("Head") then
534
                            local attachment = Instance.new("Attachment", humanoid.Parent.Head)
535
                            attachment.Position = Vector3.new(0, -0.5, 0)
536
                            humanoid.Parent.Torso.NeckAttachment.Visible = false
537
                            humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
538
                            local ball = Instance.new("HingeConstraint", humanoid.Parent)
539
                            ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
540
                            ball.Attachment1 = attachment
541
                            local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
542
                            collidepartofleftleg.Name = "Bone"
543
                            collidepartofleftleg.Size = Vector3.new(0.5,0.3,0.5)
544
                            collidepartofleftleg.Transparency = 1
545
                            collidepartofleftleg:BreakJoints()
546
                            local weeld = Instance.new("Weld", collidepartofleftleg)
547
                            weeld.Part0 = collidepartofleftleg
548
                            weeld.Part1 = humanoid.Parent["Head"]
549
                            humanoid.Parent.Torso.Neck:destroy()
550
                        end
551
                        if humanoid.Parent:findFirstChild("Head") then
552
                            local aah = Instance.new("Sound", humanoid.Parent.Head)
553
                            if aah then
554
                                aah.Volume = 8
555
                                local aahmath = math.random(2,8)
556
                                if aahmath == 2 then
557
                                    aah.SoundId = "rbxassetid://884348443"
558
                                    aah:Play()
559
                                end
560
                                if aahmath == 3 then
561
                                    aah.SoundId = "rbxassetid://535528169"
562
                                    aah.TimePosition = 0.3
563
                                    aah:Play()
564
                                end
565
                                if aahmath == 4 then
566
                                    aah.SoundId = "rbxassetid://1080363252"
567
                                    aah:Play()
568
                                end
569
                                if aahmath == 5 then
570
                                    aah.SoundId = "rbxassetid://150245085"
571
                                    aah:Play()
572
                                end
573
                                if aahmath == 6 then
574
                                    aah.SoundId = "rbxassetid://345287845"
575
                                    aah.TimePosition = 2.5
576
                                    aah:Play()
577
                                end
578
                                if aahmath == 7 then
579
                                    aah.SoundId = "rbxassetid://147758746"
580
                                    aah.TimePosition = 1.3
581
                                    aah:Play()
582
                                end
583
                                if aahmath == 8 then
584
                                    aah.SoundId = "rbxassetid://626777433"
585
                                    aah.TimePosition = 1.4
586
                                    aah:Play()
587
                                end
588
                            end
589
                            humanoid.Name = "Hammoodmememememem"
590
							end
591
						end
592
	                end
593
	            end
594
			end
595
			bullet.Touched:connect(kill)
596
		end
597
		for i = 0,1 , 0.25 do
598
			headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207933038, -0.102243967, -0.972784758, 8.86239135e-08, 0.994521916, -0.104528628, 0.978143096, 0.0217348691, 0.206793979),i)
599
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.82263184, 0.730773926, -0.020904541, 0.0646852478, -0.924928367, 0.374597609, 0.0261337012, -0.373684913, -0.927187502, 0.997563481, 0.0697649717, -9.91872824e-08),i)
600
			weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
601
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
602
			game:GetService("RunService").RenderStepped:wait()
603
		end
604
		for i = 0,1 , 0.02 do
605
			headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207927465, 1.10965065e-11, -0.978144228, -7.31349337e-09, 1, -1.5433097e-09, 0.978144288, 7.47454809e-09, 0.207927451),i)
606
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.01304245, 0.49798584, -0.020904541, 0.0697589889, -0.997563899, -2.65673535e-22, -1.85331179e-23, 2.65026316e-22, -0.999999881, 0.997563779, 0.0697589815, 0),i)
607
			weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
608
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
609
			game:GetService("RunService").RenderStepped:wait()
610
		end
611
		for i = 0,1 , 0.02 do
612
			weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511),i)
613
	            humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
614
				headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.48563504, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
615
	            llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
616
	            lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.00435209274, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
617
	            rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
618
	            rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0157878399, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
619
			game:GetService("RunService").RenderStepped:wait()
620
		end
621
		canwalk = true
622
		using = false
623
	end
624
end
625
function kys(key)
626
	key = key:lower()
627
	if key == "q" and not using then
628
		using = false
629
		canwalk = false
630
		for i = 0,1 , 0.02 do
631
			weldf.C0 = weldf.C0:lerp(CFrame.new(-0.168807983, -2.35839844, 1.06054688, 0.376244515, -0.0200107303, 0.92630434, -0.527649045, -0.826430559, 0.196466327, 0.761594713, -0.562682986, -0.321498603),i)
632
	        humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
633
			headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.964937389, -0.102245584, 0.241747394, 0.104467049, 0.994521677, 0.00364552485, -0.240795761, 0.0217369329, 0.970332384),i)
634
	        llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
635
	        lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.755413055, -0.0500183105, -2.32714844, 0.992147624, -0.122393578, 0.0257476419, 0.0214064512, -0.0366528891, -0.999098778, 0.123226993, 0.991804659, -0.0337450653),i)
636
	        rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
637
	        rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.817108154, 0.43989563, -1.35630798, 0.906662822, 0.312888145, -0.28295514, -0.253573388, -0.131829232, -0.958290994, -0.337139636, 0.9405967, -0.04018455),i)
638
			game:GetService("RunService").RenderStepped:wait()
639
		end
640
--0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
641
--0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
642
--[[
643
	local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
644
vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
645
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
646
--]]
647
--By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
648
--die plz
649
mouse = game.Players.LocalPlayer:GetMouse()
650
function ragdoll()
651
game.Players.LocalPlayer.Character.Archivable = true
652
Sound0:destroy()
653
clone = game.Players.LocalPlayer.Character:Clone()
654
clone.Parent = workspace
655
for i,v in pairs(clone:GetChildren()) do
656
	if v.ClassName == "Script" or v.ClassName == "LocalScript" then
657
		v:destroy()
658
	end
659
	for i,p in pairs(v:GetChildren()) do
660
	if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
661
		p:destroy()
662
	end
663
end
664
end
665
for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
666
	if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
667
		t:destroy()
668
	end
669
end
670
vel = Instance.new("BodyVelocity", clone.Torso)
671
vel.Velocity = clone.Torso.CFrame.lookVector * -5
672
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
673
clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
674
using = false
675
hit = Instance.new("Sound", clone.Torso)
676
hit.SoundId = "rbxassetid://260430060"
677
hit.Volume = 0
678
hit1 = Instance.new("Sound", clone.Torso)
679
hit1.SoundId = "rbxassetid://138087186"
680
hit1.Volume = 0
681
hit2 = Instance.new("Sound", clone.Torso)
682
hit2.SoundId = "rbxassetid://131237241"
683
hit2.Volume = 0
684
hit3 = Instance.new("Sound", clone.Torso)
685
hit3.SoundId = "rbxassetid://278062209"
686
hit3.Volume = 0
687
hit3.TimePosition = 0.33
688
ded = Instance.new("Sound", clone.Torso)
689
ded.SoundId = "rbxassetid://418892870"
690
ded.Volume = 0
691
local leftarm = clone:findFirstChild("Left Arm")
692
local rightrm = clone:findFirstChild("Right Arm")
693
local leftleg = clone:findFirstChild("Left Leg")
694
local rightleg = clone:findFirstChild("Right Leg")
695
local head = clone:findFirstChild("Head")
696
for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
697
	if g.ClassName == "Part" then
698
		g:destroy()
699
	end
700
end
701
for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
702
	if h.ClassName == "Accesory" then
703
		h:destroy()
704
	end
705
end
706
game.Workspace.CurrentCamera.CameraSubject = head
707
if head then
708
            local attachment = Instance.new("Attachment", clone.Head)
709
            attachment.Position = Vector3.new(0, -0.5, 0)
710
            attachment.Name = "lol"
711
            attachment.Visible = false
712
            clone.Torso.NeckAttachment.Visible = false
713
            clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
714
            local ball = Instance.new("BallSocketConstraint", clone)
715
            ball.Attachment0 = clone.Torso.NeckAttachment
716
            ball.Attachment1 = attachment
717
			ball.LimitsEnabled = true
718
			ball.TwistLimitsEnabled = true
719
			ball.UpperAngle = 90
720
			ball.Restitution = 0.5
721
			ball.TwistUpperAngle = 90
722
			ball.TwistLowerAngle = -90
723
            local  collidepartofleftleg = Instance.new("Part", clone.Torso)
724
            collidepartofleftleg.Name = "Bone"
725
            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
726
            collidepartofleftleg.Transparency = 1
727
            collidepartofleftleg:BreakJoints()
728
            local weeld = Instance.new("Weld", collidepartofleftleg)
729
            weeld.Part0 = collidepartofleftleg
730
            weeld.Part1 = clone["Head"]
731
        end
732
if leftleg ~= nil then
733
local glue = Instance.new("Glue", clone.Torso)
734
glue.Part0 = clone.Torso
735
glue.Part1 = leftleg
736
glue.Name = "Left leg"
737
local collider = Instance.new("Part", leftleg)
738
collider.Position = Vector3.new(0,999,0)
739
collider.Size = Vector3.new(1.5, 1, 1)
740
collider.Shape = "Cylinder"
741
local weld = Instance.new("Weld", collider)
742
weld.Part0 = leftleg
743
weld.Part1 = collider
744
weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
745
collider.TopSurface = "Smooth"
746
collider.BottomSurface = "Smooth"
747
collider.formFactor = "Symmetric"
748
glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
749
glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
750
collider.Transparency = 1
751
end
752
------------
753
if rightleg ~= nil then
754
local glue1 = Instance.new("Glue", clone.Torso)
755
glue1.Part0 = clone.Torso
756
glue1.Part1 = rightleg
757
glue1.Name = "Right leg"
758
local collider1 = Instance.new("Part", rightleg)
759
collider1.Position = Vector3.new(0,999,0)
760
collider1.Size = Vector3.new(1.5, 1, 1)
761
collider1.Shape = "Cylinder"
762
local weld1 = Instance.new("Weld", collider1)
763
weld1.Part0 = rightleg
764
weld1.Part1 = collider1
765
weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
766
collider1.TopSurface = "Smooth"
767
collider1.BottomSurface = "Smooth"
768
collider1.formFactor = "Symmetric"
769
glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
770
glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
771
collider1.Transparency = 1
772
end
773
------------
774
if rightrm ~= nil then
775
local glue11 = Instance.new("Glue", clone.Torso)
776
glue11.Part0 = clone.Torso
777
glue11.Part1 = rightrm
778
glue11.Name = "Right shoulder"
779
local collider11 = Instance.new("Part", rightrm)
780
collider11.Position = Vector3.new(0,9999,0)
781
collider11.Size = Vector3.new(1.5,1,1)
782
collider11.Shape = "Cylinder"
783
local weld11 = Instance.new("Weld", collider11)
784
weld11.Part0 = rightrm
785
weld11.Part1 = collider11
786
weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
787
collider11.TopSurface = "Smooth"
788
collider11.BottomSurface = "Smooth"
789
collider11.formFactor = "Symmetric"
790
glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
791
glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
792
collider11.Transparency = 1
793
end
794
------------
795
if leftarm ~= nil then
796
local glue111 = Instance.new("Glue", clone.Torso)
797
glue111.Part0 = clone.Torso
798
glue111.Part1 = leftarm
799
glue111.Name = "Left shoulder"
800
local collider111 = Instance.new("Part", leftarm)
801
collider111.Position = Vector3.new(0,9999,0)
802
collider111.Size = Vector3.new(1.5,1,1)
803
collider111.Shape = "Cylinder"
804
local weld111 = Instance.new("Weld", collider111)
805
weld111.Part0 = leftarm
806
weld111.Part1 = collider111
807
weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
808
collider111.TopSurface = "Smooth"
809
collider111.BottomSurface = "Smooth"
810
collider111.formFactor = "Symmetric"
811
glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
812
glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
813
collider111.Transparency = 1
814
----------------
815
sensoring = Instance.new("Part", clone.Torso)
816
sensoring.Size = Vector3.new(1.2,1.1,0.8)
817
sensoring.CanCollide = false
818
sensoring.Position = clone.Torso.Position
819
local welder = Instance.new("Weld", sensoring)
820
welder.Part0 = clone.Torso
821
welder.Part1 = sensoring
822
welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
823
sensoring.Transparency = 1
824
-----------------
825
sensoring1 = Instance.new("Part", clone.Torso)
826
sensoring1.Size = Vector3.new(1.2,1.1,0.8)
827
sensoring1.CanCollide = false
828
sensoring1.Position = clone.Torso.Position
829
local welder1 = Instance.new("Weld", sensoring)
830
welder1.Part0 = clone.Torso
831
welder1.Part1 = sensoring1
832
welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
833
sensoring1.Transparency = 1
834
end
835
clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
836
ded:Play()
837
vel:destroy()
838
wait(0.5)
839
local function touch()
840
	if not using then
841
		using = true
842
		local Math = math.random(1,4)
843
		if Math == 1 then
844
			hit:Play()
845
		end
846
		if Math == 2 then
847
			hit1:Play()
848
		end
849
		if Math == 3 then
850
			hit2:Play()
851
		end
852
		if Math == 4 then
853
			hit3:Play()
854
		end
855
		wait(0.1)
856
		using = false
857
	end
858
end
859
sensoring.Touched:connect(touch)
860
sensoring1.Touched:connect(touch)
861
while true do
862
	clone.Head.CanCollide = false
863
	game:GetService("RunService").Stepped:wait()
864
end
865
end
866
867
game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
868
869
--di ent
870
Sound00:Play()
871
game.Players.LocalPlayer.Character.Humanoid.Health = 0
872
	end
873
end
874
mouse.Button1Down:connect(shoot)
875
mouse.KeyDown:connect(kys)
876
function look()
877
	game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x, game.Players.LocalPlayer.Character.Torso.Position.y, mouse.Hit.p.z))
878
end
879
game:GetService("RunService").RenderStepped:connect(look)
880
while true do
881
    if howmuch <= -1 then
882
        howmuch = 0
883
    end
884
    if howmuch >= 4 then
885
        howmuch = 0
886
    end
887
    if canwalk and howmuch < 1 then
888
        for i = 0,1 , 0.01 do
889
			if canwalk and howmuch < 1 then
890
				weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511),i)
891
	            humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
892
				headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.48563504, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
893
	            llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
894
	            lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.00435209274, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
895
	            rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
896
	            rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0157878399, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
897
	            game:GetService("RunService").RenderStepped:wait()
898
			end
899
        end
900
		for i = 0,0.3 , 0.004 do
901
			if canwalk and howmuch < 1 then
902
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
903
				headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5222218, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
904
	            llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
905
	            lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.0409388542, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
906
	            rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
907
	            rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0523746014, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
908
	            game:GetService("RunService").RenderStepped:wait()
909
			end
910
        end
911
    end
912
    if canwalk and howmuch >= 1 then
913
        if canwalk then
914
            for i = 0,0.5 , 0.05 do
915
				if canwalk and howmuch >= 1 then
916
					weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i)
917
					headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, -4.22829445e-28, 5.04870979e-28, -4.7962743e-28, 0.98481518, -0.173646927, 4.54383881e-28, 0.173646927, 0.98481518),i)
918
			 	   humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0218505859, -0.207862854, 1, -2.65673535e-22, 5.23747954e-22, 1.5097504e-22, 0.978147745, 0.207910955, -5.67539301e-22, -0.207910955, 0.978147745),i)
919
		           llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.35635376, 0.984832764, 1, -1.46412584e-27, -1.17303617e-26, 1.15615454e-26, -0.0348859876, 0.999391198, -1.61558713e-27, -0.999391198, -0.0348859876),i)
920
		           lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.2262764, 0.145446777, -0.484161377, 0.788011551, -0.578533888, 0.210562602, 0.411958992, 0.241324201, -0.878665209, 0.457523763, 0.779141247, 0.428498387),i)
921
		           rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.81869507, -0.922622681, 1, -1.72713825e-22, -5.61306619e-22, -2.65673535e-22, 0.719345152, -0.694654465, 5.23747954e-22, 0.694656253, 0.719344676),i)
922
		           rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.39048004, 0.431030273, -0.798828125, 0.978150845, 0.207915336, -2.65673535e-22, -3.24998904e-22, 2.51171167e-22, -1, -0.207915336, 0.978150845, 3.13253081e-22),i)
923
		           game:GetService("RunService").RenderStepped:wait()
924
				end
925
            end
926
        end
927
        if canwalk then
928
            for i = 0,0.5 , 0.05 do
929
				if canwalk and howmuch >= 1 then
930
					weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i)
931
					headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, -4.22829445e-28, 5.04870979e-28, -4.7962743e-28, 0.98481518, -0.173646927, 4.54383881e-28, 0.173646927, 0.98481518),i)
932
			 	   humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0218505859, -0.00492095947, 1, -2.65673535e-22, 5.23747954e-22, 1.5097504e-22, 0.978147686, 0.20791094, -5.67539301e-22, -0.20791094, 0.978147686),i)
933
		           llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.86941528, -0.882217407, 1, -6.4421537e-26, 9.04728795e-26, 1.09784194e-25, 0.694650829, -0.71934706, -1.64587939e-26, 0.71934706, 0.694650829),i)
934
		           lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.2262764, 0.145446777, -0.484161377, 0.788011551, -0.578533888, 0.210562602, 0.411958992, 0.241324201, -0.878665209, 0.457523763, 0.779141247, 0.428498387),i)
935
		           rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.35365295, 1.16508484, 1, 5.03939593e-22, 3.01560673e-22, -2.65673358e-22, -0.0697558299, 0.997564077, 5.237476e-22, -0.997564077, -0.0697558299),i)
936
		           rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.39048004, 0.431030273, -0.798828125, 0.978150845, 0.207915336, -2.65673535e-22, -3.24998904e-22, 2.51171167e-22, -1, -0.207915336, 0.978150845, 3.13253081e-22),i)
937
		           game:GetService("RunService").RenderStepped:wait()
938
				end
939
            end
940
        end
941
    end
942
    game:GetService("RunService").RenderStepped:wait()
943
end