View difference between Paste ID: bCD3cJkN and A5zX3TAM
SHOW: | | - or go back to the newest paste.
1
--By Ruffles14
2
mouse = game.Players.LocalPlayer:GetMouse()
3
local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
4
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
5
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
6
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
7
rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
8
local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
9
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
10
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
11
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
12
lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
13
local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
14
game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
15
local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
16
humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
17
humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
18
local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
19
local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
20
headweld.Part0 = game.Players.LocalPlayer.Character.Torso
21
headweld.Part1 = game.Players.LocalPlayer.Character.Head
22
headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
23
game.Players.LocalPlayer.Character.Torso.Neck:Remove()
24
using = false
25
--Converted with ttyyuu12345's model to script plugin v4
26
function sandbox(var,func)
27
	local env = getfenv(func)
28
	local newenv = setmetatable({},{
29
		__index = function(self,k)
30
			if k=="script" then
31
				return var
32
			else
33
				return env[k]
34
			end
35
		end,
36
	})
37
	setfenv(func,newenv)
38
	return func
39
end
40
cors = {}
41
mas = Instance.new("Model",game:GetService("Lighting"))
42
Part0 = Instance.new("Part")
43
SpecialMesh1 = Instance.new("SpecialMesh")
44
Part0.Parent = mas
45
Part0.Rotation = Vector3.new(-17.039999, 72.0800018, -73.7399979)
46
Part0.Size = Vector3.new(0.48999998, 2.96999931, 1.94999981)
47
Part0.CFrame = CFrame.new(1.99671245, 4.08856773, -0.616976917, 0.0861581191, 0.29545939, 0.95146209, -0.99592489, 0, 0.090184398, 0.0266458243, -0.955355108, 0.294255406)
48
Part0.BottomSurface = Enum.SurfaceType.Smooth
49
Part0.TopSurface = Enum.SurfaceType.Smooth
50
Part0.Position = Vector3.new(1.99671245, 4.08856773, -0.616976917)
51
Part0.Orientation = Vector3.new(-5.17000008, 72.8099976, -90)
52
Part0.CanCollide = false
53
SpecialMesh1.Parent = Part0
54-
SpecialMesh1.MeshId = "rbxassetid://441572308"
54+
SpecialMesh1.MeshId = "rbxassetid://596147026"
55
SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.0209999997, 0.0209999997)
56
SpecialMesh1.TextureId = "rbxassetid://441572332"
57
SpecialMesh1.MeshType = Enum.MeshType.FileMesh
58
SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.0209999997, 0.0209999997)
59
for i,v in pairs(mas:GetChildren()) do
60
	v.Parent = game:GetService("Players").LocalPlayer.Character
61
	pcall(function() v:MakeJoints() end)
62
end
63
mas:Destroy()
64
for i,v in pairs(cors) do
65
	spawn(function()
66
		pcall(v)
67
	end)
68
end
69
Part0:BreakJoints()
70
cananimate = true
71
canhit = false
72
local weld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
73
weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
74
weld.Part1 = Part0
75
weld.C0 = CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0)
76
for i = 0,1 , 0.03 do
77
	headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
78
	humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
79
	lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
80
	rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
81
	game:GetService("RunService").RenderStepped:wait()
82
end
83
function swing()
84
	if not using then
85
		using = true
86
		cananimate = false
87
		for i = 0,1 , 0.045 do
88
			weld.C0 = weld.C0:lerp(CFrame.new(0.958130836, -0.815908253, -0.0419664383, 0.379335552, 0.92491132, -0.0253674984, -0.913223445, 0.378668189, 0.150445476, 0.148754537, -0.0339030921, 0.988292694),i)
89
			headweld.C0 = headweld.C0:lerp(CFrame.new(-4.65661287e-10, 1.49999952, 0, 0.601507425, -2.32830644e-10, 0.798867226, 3.0559022e-10, 1, 0, -0.798867226, -4.65661287e-10, 0.601507425),i)
90
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.63088727, -0.00573391188, -0.775853336, 0, 0.999972701, -0.00739025697, 0.775874496, 0.00466241874, 0.630870044),i)
91
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i)
92
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i)
93
			game:GetService("RunService").RenderStepped:wait()
94
		end
95
		canhit = true
96
		for i = 0,1 , 0.08 do
97
			weld.C0 = weld.C0:lerp(CFrame.new(0.968596578, -1.15575922, 0.178524971, 0.0531506836, 0.988890588, -0.13881819, -0.988834679, 0.0327400565, -0.145376131, -0.13921617, 0.144995078, 0.979589343),i)
98
			headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i)
99
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.305942208, 0, -0.952050149, 0, 1, 0, 0.952050149, 0, 0.305942208):inverse(),i)
100
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.07653618, 0.305679321, -0.818206966, 0.707105398, -0.707108259, 4.32133675e-07, 0.122787982, 0.122786887, -0.984807909, 0.696365714, 0.696363032, 0.173647687),i)
101
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.74788636, 0.363031864, -0.7663396, 0.70710665, 0.707106948, -2.23517418e-08, -0.0616280138, 0.061627958, -0.99619478, -0.704416275, 0.704416037, 0.0871551335),i)
102
			game:GetService("RunService").RenderStepped:wait()
103
		end
104
		canhit = false
105
		using = false
106
		cananimate = true
107
	end
108
end
109
mouse.Button1Down:connect(swing)
110
function hittie(part)
111
	if canhit then
112
		local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
113
		if humanoid then
114
			canhit = false
115
			using = false
116
			local uptor = humanoid.Parent:findFirstChild("UpperTorso")
117
			if uptor and uptor.Parent.Name ~= game.Players.LocalPlayer.Name then
118
					humanoid.Parent:BreakJoints()
119
					while humanoid.Health >= 0.001 do
120
						game:GetService("RunService").RenderStepped:wait()
121
					end
122
					if humanoid.Parent:findFirstChild("HumanoidRootPart") then
123
                        humanoid.Parent.HumanoidRootPart.CanCollide = false
124
                    end
125
                    local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
126
                        local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
127
                        constraint.Attachment0 = attachone
128
                        constraint.Attachment1 = attachtwo
129
                        constraint.LimitsEnabled = true
130
                        constraint.TwistLimitsEnabled = true
131
                        constraint.TwistLowerAngle = lowang
132
                        constraint.TwistUpperAngle = upperang
133
                        constraint.UpperAngle = twist
134
                    end
135
                    local function makehingelimb(attachone, attachtwo, upperang, lowang)
136
                        local constraint = Instance.new("HingeConstraint", humanoid.Parent)
137
                        constraint.Attachment0 = attachone
138
                        constraint.Attachment1 = attachtwo
139
                        constraint.LimitsEnabled = true
140
                        constraint.LowerAngle = lowang
141
                        constraint.UpperAngle = upperang
142
                    end
143
                    for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
144
                        if v.ClassName == "Accessory" then
145
                            local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
146
                            if findhandle then
147
                                local attach = findhandle:findFirstChildOfClass("Attachment")
148
                                for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
149
                                    if w.Name == "UpperTorso" or w.Name == "Head" then
150
                                        attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
151
                                    end
152
                                end
153
                                if attach and attach1 then
154
                                    local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
155
                                    constraint.Attachment0 = attach
156
                                    constraint.Attachment1 = attach1
157
                                    constraint.LimitsEnabled = true
158
                                    constraint.LowerAngle = 0
159
                                    constraint.UpperAngle = 0
160
                                end
161
                            end
162
                        end
163
                    end
164
                    if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
165
                                local attachment = Instance.new("Attachment", humanoid.Parent.Head)
166
                                attachment.Position = Vector3.new(0, -0.5, 0)
167
                                attachment.Name = "lol"
168
                                attachment.Visible = false
169
                                humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
170
                                humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
171
                                local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
172
                                ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
173
                                ball.Attachment1 = attachment
174
                                ball.LimitsEnabled = true
175
                                ball.TwistLimitsEnabled = true
176
                                ball.UpperAngle = 40
177
                                ball.Restitution = 0.5
178
                                ball.TwistUpperAngle = 40
179
                                ball.TwistLowerAngle = -40
180
                                local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
181
                                collidepartofleftleg.Name = "Bone"
182
                                collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
183
                                collidepartofleftleg.Transparency = 1
184
                                collidepartofleftleg:BreakJoints()
185
                                local weeld = Instance.new("Weld", collidepartofleftleg)
186
                                weeld.Part0 = collidepartofleftleg
187
                                weeld.Part1 = humanoid.Parent["Head"]
188
                                if humanoid.Parent.Head:findFirstChild("Neck") then
189
                                    humanoid.Parent.Head.Neck:destroy()
190
                                end
191
                                if humanoid.Parent.Head:findFirstChild("face") then
192
                                    humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
193
                                end
194
                    end
195
                    local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
196
                    local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
197
                    --
198
                    local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
199
                    local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
200
                    --
201
                    local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
202
                    local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
203
                    --
204
                    local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
205
                    local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
206
                    --Foot & Hands--
207
                   
208
                    local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
209
                    local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
210
                    --
211
                    local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
212
                    local RightHand = humanoid.Parent:findFirstChild("RightHand")
213
                   
214
                    --END--
215
                    --TORSOS--
216
                   
217
                    local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
218
                    local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
219
                   
220
                    --END--
221
                    if LowerTorso then
222
                        if LeftUpperLeg then
223
                            makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
224
                        end
225
                        if RightUpperLeg then
226
                            makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
227
                        end
228
                        if LeftLowerLeg then
229
                            makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
230
                        end
231
                        if RightLowerLeg then
232
                            makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
233
                        end
234
                        if LeftFoot then
235
                            makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
236
                        end
237
                        if RightFoot then
238
                            makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
239
                        end
240
                        if UpperTorso then
241
                            makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
242
                        end
243
                    end
244
                    if UpperTorso then
245
						local vel = Instance.new("BodyVelocity", UpperTorso)
246
                        vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
247
                        vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
248
                        game.Debris:AddItem(vel, 0.1)
249
                        local hitsound = Instance.new("Sound", UpperTorso)
250
                        hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
251
                        hitsound:Play()
252
                        hitsound.Volume = math.random(5,10)
253
                        local canhit = true
254
                        local hitval = 15
255
                        local uptor = humanoid.Parent.UpperTorso
256
                        if RightUpperArm then
257
                            makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
258
                        end
259
                        if RightLowerArm then
260
                            makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
261
                        end
262
                        if RightHand then
263
                            makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
264
                        end
265
                        if LeftUpperArm then
266
                            makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
267
                        end
268
                        if LeftLowerArm then
269
                            makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
270
                        end
271
                        if LeftHand then
272
                            makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
273
                        end
274
                    end
275
			else
276
				humanoid.Parent.Archivable = true
277
				humanoid.PlatformStand = true
278
				local clone = humanoid.Parent:Clone()
279
				clone.Parent = workspace
280
				game.Debris:AddItem(clone, 60)
281
				for i,v in pairs(clone:GetChildren()) do
282
				    if v.ClassName == "Script" or v.ClassName == "LocalScript" then
283
				        v:Remove()
284
				    end
285
				    for i,p in pairs(v:GetChildren()) do
286
				    if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
287
				        p:Remove()
288
				    end
289
				end
290
				end
291
				for i,t in pairs(humanoid.Parent:GetChildren()) do
292
				    if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
293
				        t:Remove()
294
				    end
295
				end
296
				local vel = Instance.new("BodyVelocity", clone.Torso)
297
                vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
298
                vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15
299
                game.Debris:AddItem(vel, 0.1)
300
				local hitsound = Instance.new("Sound", clone.Torso)
301
                hitsound.SoundId = "http://www.roblox.com/asset/?id=148862502"
302
                hitsound:Play()
303
                hitsound.Volume = math.random(5,10)
304
				vel = Instance.new("BodyVelocity", clone.Torso)
305
				vel.Velocity = clone.Torso.CFrame.lookVector * -5
306
				vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
307
				using = false
308
				hit = Instance.new("Sound", clone.Torso)
309
				hit.SoundId = "rbxassetid://260430060"
310
				hit.Volume = 0
311
				hit1 = Instance.new("Sound", clone.Torso)
312
				hit1.SoundId = "rbxassetid://138087186"
313
				hit1.Volume = 0
314
				hit2 = Instance.new("Sound", clone.Torso)
315
				hit2.SoundId = "rbxassetid://131237241"
316
				hit2.Volume = 0
317
				hit3 = Instance.new("Sound", clone.Torso)
318
				hit3.SoundId = "rbxassetid://278062209"
319
				hit3.Volume = 0
320
				hit3.TimePosition = 0.33
321
				ded = Instance.new("Sound", clone.Torso)
322
				ded.SoundId = "rbxassetid://418892870"
323
				ded.Volume = 0
324
				local leftarm = clone:findFirstChild("Left Arm")
325
				local rightrm = clone:findFirstChild("Right Arm")
326
				local leftleg = clone:findFirstChild("Left Leg")
327
				local rightleg = clone:findFirstChild("Right Leg")
328
				local head = clone:findFirstChild("Head")
329
				for i, g in pairs(humanoid.Parent:GetChildren()) do
330
				    if g.ClassName == "Part" then
331
				        g:destroy()
332
				    end
333
				end
334
				for i, h in pairs(humanoid.Parent:GetChildren()) do
335
				    if h.ClassName == "Accesory" then
336
				        h:destroy()
337
				    end
338
				end
339
				for z,x in pairs(clone:GetChildren()) do
340
                        if x.ClassName == "Accessory" then
341
                            local handle = x:findFirstChild("Handle")
342
                            if handle then
343
                                local attachment = handle:findFirstChildOfClass("Attachment")
344
                                if attachment then
345
                                    for q,w in pairs(clone:GetChildren()) do
346
                                        if w.Name == "Torso" or w.Name == "Head" then
347
                                            local anotherone = w:findFirstChild(attachment.Name)
348
                                            if attachment and anotherone then
349
                                                local constraint = Instance.new("HingeConstraint", clone) --making fake weld
350
                                                constraint.Attachment0 = attachment
351
                                                constraint.Attachment1 = anotherone
352
                                                constraint.LimitsEnabled = true
353
                                                constraint.LowerAngle = 0
354
                                                constraint.UpperAngle = 0
355
                                            end
356
                                        end
357
                                    end
358
                                end
359
                            end
360
                        end
361
                    end
362
				if head and clone.Torso:findFirstChild("NeckAttachment") then
363
				            local attachment = Instance.new("Attachment", clone.Head)
364
				            attachment.Position = Vector3.new(0, -0.5, 0)
365
				            attachment.Name = "lol"
366
				            attachment.Visible = false
367
				            clone.Torso.NeckAttachment.Visible = false
368
				            clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
369
				            local ball = Instance.new("BallSocketConstraint", clone)
370
				            ball.Attachment0 = clone.Torso.NeckAttachment
371
				            ball.Attachment1 = attachment
372
				            ball.LimitsEnabled = true
373
				            ball.TwistLimitsEnabled = true
374
				            ball.UpperAngle = 90
375
				            ball.Restitution = 0.5
376
				            ball.TwistUpperAngle = 90
377
				            ball.TwistLowerAngle = -90
378
				            local  collidepartofleftleg = Instance.new("Part", clone.Torso)
379
				            collidepartofleftleg.Name = "Bone"
380
				            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
381
				            collidepartofleftleg.Transparency = 1
382
				            collidepartofleftleg:BreakJoints()
383
				            local weeld = Instance.new("Weld", collidepartofleftleg)
384
				            weeld.Part0 = collidepartofleftleg
385
				            weeld.Part1 = clone["Head"]
386
				        end
387
				if leftleg ~= nil then
388
				leftleg:BreakJoints()
389
				local glue = Instance.new("Glue", clone.Torso)
390
				glue.Part0 = clone.Torso
391
				glue.Part1 = leftleg
392
				glue.Name = "Left leg"
393
				local collider = Instance.new("Part", leftleg)
394
				collider.Position = Vector3.new(0,999,0)
395
				collider.Size = Vector3.new(1.5, 1, 1)
396
				collider.Shape = "Cylinder"
397
				local weld = Instance.new("Weld", collider)
398
				weld.Part0 = leftleg
399
				weld.Part1 = collider
400
				weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
401
				collider.TopSurface = "Smooth"
402
				collider.BottomSurface = "Smooth"
403
				collider.formFactor = "Symmetric"
404
				glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
405
				glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
406
				collider.Transparency = 1
407
				end
408
				------------
409
				if rightleg ~= nil then
410
				rightleg:BreakJoints()
411
				local glue1 = Instance.new("Glue", clone.Torso)
412
				glue1.Part0 = clone.Torso
413
				glue1.Part1 = rightleg
414
				glue1.Name = "Right leg"
415
				local collider1 = Instance.new("Part", rightleg)
416
				collider1.Position = Vector3.new(0,999,0)
417
				collider1.Size = Vector3.new(1.5, 1, 1)
418
				collider1.Shape = "Cylinder"
419
				local weld1 = Instance.new("Weld", collider1)
420
				weld1.Part0 = rightleg
421
				weld1.Part1 = collider1
422
				weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
423
				collider1.TopSurface = "Smooth"
424
				collider1.BottomSurface = "Smooth"
425
				collider1.formFactor = "Symmetric"
426
				glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
427
				glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
428
				collider1.Transparency = 1
429
				end
430
				------------
431
				if rightrm ~= nil then
432
				rightrm:BreakJoints()
433
				rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0)
434
				local glue11 = Instance.new("Glue", clone.Torso)
435
				glue11.Part0 = clone.Torso
436
				glue11.Part1 = rightrm
437
				glue11.Name = "Right shoulder"
438
				local collider11 = Instance.new("Part", rightrm)
439
				collider11.Position = Vector3.new(0,9999,0)
440
				collider11.Size = Vector3.new(1.5,1,1)
441
				collider11.Shape = "Cylinder"
442
				local weld11 = Instance.new("Weld", collider11)
443
				weld11.Part0 = rightrm
444
				weld11.Part1 = collider11
445
				weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
446
				collider11.TopSurface = "Smooth"
447
				collider11.BottomSurface = "Smooth"
448
				collider11.formFactor = "Symmetric"
449
				glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
450
				glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
451
				collider11.Transparency = 1
452
				end
453
				------------
454
				if leftarm ~= nil then
455
				leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0)
456
				leftarm:BreakJoints()
457
				local glue111 = Instance.new("Glue", clone.Torso)
458
				glue111.Part0 = clone.Torso
459
				glue111.Part1 = leftarm
460
				glue111.Name = "Left shoulder"
461
				local collider111 = Instance.new("Part", leftarm)
462
				collider111.Position = Vector3.new(0,9999,0)
463
				collider111.Size = Vector3.new(1.5,1,1)
464
				collider111.Shape = "Cylinder"
465
				local weld111 = Instance.new("Weld", collider111)
466
				weld111.Part0 = leftarm
467
				weld111.Part1 = collider111
468
				weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
469
				collider111.TopSurface = "Smooth"
470
				collider111.BottomSurface = "Smooth"
471
				collider111.formFactor = "Symmetric"
472
				glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
473
				glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
474
				collider111.Transparency = 1
475
				----------------
476
				sensoring = Instance.new("Part", clone.Torso)
477
				sensoring.Size = Vector3.new(1.2,1.1,0.8)
478
				sensoring.CanCollide = false
479
				sensoring.Position = clone.Torso.Position
480
				local welder = Instance.new("Weld", sensoring)
481
				welder.Part0 = clone.Torso
482
				welder.Part1 = sensoring
483
				welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
484
				sensoring.Transparency = 1
485
				-----------------
486
				sensoring1 = Instance.new("Part", clone.Torso)
487
				sensoring1.Size = Vector3.new(1.2,1.1,0.8)
488
				sensoring1.CanCollide = false
489
				sensoring1.Position = clone.Torso.Position
490
				local welder1 = Instance.new("Weld", sensoring)
491
				welder1.Part0 = clone.Torso
492
				welder1.Part1 = sensoring1
493
				welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
494
				sensoring1.Transparency = 1
495
				end
496
				clone.Name = humanoid.Parent.Name.." (PANNED)"
497
				ded:Play()
498
				vel:destroy()
499
				wait(0.5)
500
				local function touch()
501
				    if not using then
502
				        using = true
503
				        local Math = math.random(1,4)
504
				        if Math == 1 then
505
				            hit:Play()
506
				        end
507
				        if Math == 2 then
508
				            hit1:Play()
509
				        end
510
				        if Math == 3 then
511
				            hit2:Play()
512
				        end
513
				        if Math == 4 then
514
				            hit3:Play()
515
				        end
516
				        wait(0.1)
517
				        using = false
518
				    end
519
				end
520
				sensoring.Touched:connect(touch)
521
				sensoring1.Touched:connect(touch)
522
				while true do
523
					if clone:findFirstChild("Head") then
524
						clone.Head.CanCollide = false
525
				    end
526
				    game:GetService("RunService").Stepped:wait()
527
				end
528
			end
529
		end
530
	end
531
end
532
Part0.Touched:connect(hittie)
533
function ragdoll()
534
game.Players.LocalPlayer.Character.Archivable = true
535
clone = game.Players.LocalPlayer.Character:Clone()
536
clone.Parent = workspace
537
for i,v in pairs(clone:GetChildren()) do
538
	if v.ClassName == "Script" or v.ClassName == "LocalScript" then
539
		v:Remove()
540
	end
541
	for i,p in pairs(v:GetChildren()) do
542
	if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
543
		p:Remove()
544
	end
545
end
546
end
547
for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
548
	if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
549
		t:Remove()
550
	end
551
end
552
vel = Instance.new("BodyVelocity", clone.Torso)
553
vel.Velocity = clone.Torso.CFrame.lookVector * -5
554
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
555
clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
556
using = false
557
hit = Instance.new("Sound", clone.Torso)
558
hit.SoundId = "rbxassetid://260430060"
559
hit.Volume = 0
560
hit1 = Instance.new("Sound", clone.Torso)
561
hit1.SoundId = "rbxassetid://138087186"
562
hit1.Volume = 0
563
hit2 = Instance.new("Sound", clone.Torso)
564
hit2.SoundId = "rbxassetid://131237241"
565
hit2.Volume = 0
566
hit3 = Instance.new("Sound", clone.Torso)
567
hit3.SoundId = "rbxassetid://278062209"
568
hit3.Volume = 0
569
hit3.TimePosition = 0.33
570
ded = Instance.new("Sound", clone.Torso)
571
ded.SoundId = "rbxassetid://337800380"
572
ded.Volume = 5
573
local leftarm = clone:findFirstChild("Left Arm")
574
local rightrm = clone:findFirstChild("Right Arm")
575
local leftleg = clone:findFirstChild("Left Leg")
576
local rightleg = clone:findFirstChild("Right Leg")
577
local head = clone:findFirstChild("Head")
578
for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
579
	if g.ClassName == "Part" then
580
		g:destroy()
581
	end
582
end
583
for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
584
	if h.ClassName == "Accesory" then
585
		h:destroy()
586
	end
587
end
588
game.Workspace.CurrentCamera.CameraSubject = head
589
if head then
590
            local attachment = Instance.new("Attachment", clone.Head)
591
            attachment.Position = Vector3.new(0, -0.5, 0)
592
            attachment.Name = "lol"
593
            attachment.Visible = false
594
            clone.Torso.NeckAttachment.Visible = false
595
            clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
596
            local ball = Instance.new("BallSocketConstraint", clone)
597
            ball.Attachment0 = clone.Torso.NeckAttachment
598
            ball.Attachment1 = attachment
599
			ball.LimitsEnabled = true
600
			ball.TwistLimitsEnabled = true
601
			ball.UpperAngle = 90
602
			ball.Restitution = 0.5
603
			ball.TwistUpperAngle = 90
604
			ball.TwistLowerAngle = -90
605
            local  collidepartofleftleg = Instance.new("Part", clone.Torso)
606
            collidepartofleftleg.Name = "Bone"
607
            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
608
            collidepartofleftleg.Transparency = 1
609
            collidepartofleftleg:BreakJoints()
610
            local weeld = Instance.new("Weld", collidepartofleftleg)
611
            weeld.Part0 = collidepartofleftleg
612
            weeld.Part1 = clone["Head"]
613
        end
614
if leftleg ~= nil then
615
local glue = Instance.new("Glue", clone.Torso)
616
glue.Part0 = clone.Torso
617
glue.Part1 = leftleg
618
glue.Name = "Left leg"
619
local collider = Instance.new("Part", leftleg)
620
collider.Position = Vector3.new(0,999,0)
621
collider.Size = Vector3.new(1.5, 1, 1)
622
collider.Shape = "Cylinder"
623
local weld = Instance.new("Weld", collider)
624
weld.Part0 = leftleg
625
weld.Part1 = collider
626
weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
627
collider.TopSurface = "Smooth"
628
collider.BottomSurface = "Smooth"
629
collider.formFactor = "Symmetric"
630
glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
631
glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
632
collider.Transparency = 1
633
end
634
------------
635
if rightleg ~= nil then
636
local glue1 = Instance.new("Glue", clone.Torso)
637
glue1.Part0 = clone.Torso
638
glue1.Part1 = rightleg
639
glue1.Name = "Right leg"
640
local collider1 = Instance.new("Part", rightleg)
641
collider1.Position = Vector3.new(0,999,0)
642
collider1.Size = Vector3.new(1.5, 1, 1)
643
collider1.Shape = "Cylinder"
644
local weld1 = Instance.new("Weld", collider1)
645
weld1.Part0 = rightleg
646
weld1.Part1 = collider1
647
weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
648
collider1.TopSurface = "Smooth"
649
collider1.BottomSurface = "Smooth"
650
collider1.formFactor = "Symmetric"
651
glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
652
glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
653
collider1.Transparency = 1
654
end
655
------------
656
if rightrm ~= nil then
657
local glue11 = Instance.new("Glue", clone.Torso)
658
glue11.Part0 = clone.Torso
659
glue11.Part1 = rightrm
660
glue11.Name = "Right shoulder"
661
local collider11 = Instance.new("Part", rightrm)
662
collider11.Position = Vector3.new(0,9999,0)
663
collider11.Size = Vector3.new(1.5,1,1)
664
collider11.Shape = "Cylinder"
665
local weld11 = Instance.new("Weld", collider11)
666
weld11.Part0 = rightrm
667
weld11.Part1 = collider11
668
weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
669
collider11.TopSurface = "Smooth"
670
collider11.BottomSurface = "Smooth"
671
collider11.formFactor = "Symmetric"
672
glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
673
glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
674
collider11.Transparency = 1
675
end
676
------------
677
if leftarm ~= nil then
678
local glue111 = Instance.new("Glue", clone.Torso)
679
glue111.Part0 = clone.Torso
680
glue111.Part1 = leftarm
681
glue111.Name = "Left shoulder"
682
local collider111 = Instance.new("Part", leftarm)
683
collider111.Position = Vector3.new(0,9999,0)
684
collider111.Size = Vector3.new(1.5,1,1)
685
collider111.Shape = "Cylinder"
686
local weld111 = Instance.new("Weld", collider111)
687
weld111.Part0 = leftarm
688
weld111.Part1 = collider111
689
weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
690
collider111.TopSurface = "Smooth"
691
collider111.BottomSurface = "Smooth"
692
collider111.formFactor = "Symmetric"
693
glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
694
glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
695
collider111.Transparency = 1
696
----------------
697
sensoring = Instance.new("Part", clone.Torso)
698
sensoring.Size = Vector3.new(1.2,1.1,0.8)
699
sensoring.CanCollide = false
700
sensoring.Position = clone.Torso.Position
701
local welder = Instance.new("Weld", sensoring)
702
welder.Part0 = clone.Torso
703
welder.Part1 = sensoring
704
welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
705
sensoring.Transparency = 1
706
-----------------
707
sensoring1 = Instance.new("Part", clone.Torso)
708
sensoring1.Size = Vector3.new(1.2,1.1,0.8)
709
sensoring1.CanCollide = false
710
sensoring1.Position = clone.Torso.Position
711
local welder1 = Instance.new("Weld", sensoring)
712
welder1.Part0 = clone.Torso
713
welder1.Part1 = sensoring1
714
welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
715
sensoring1.Transparency = 1
716
end
717
clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
718
ded:Play()
719
vel:destroy()
720
wait(0.2)
721
game.Debris:AddItem(clone,60)
722
local function touch()
723
	if not using then
724
		using = true
725
		local Math = math.random(1,4)
726
		if Math == 1 then
727
			hit:Play()
728
		end
729
		if Math == 2 then
730
			hit1:Play()
731
		end
732
		if Math == 3 then
733
			hit2:Play()
734
		end
735
		if Math == 4 then
736
			hit3:Play()
737
		end
738
		wait(0.1)
739
		using = false
740
	end
741
end
742
sensoring.Touched:connect(touch)
743
sensoring1.Touched:connect(touch)
744
while true do
745
	clone.Head.CanCollide = false
746
	game:GetService("RunService").Stepped:wait()
747
end
748
end
749
750
game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
751
752
--di ent
753
while true do
754
	if cananimate then
755
		if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
756
			for i = 0.1,0.3 , 0.008 do
757
				if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
758
					lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53402293, 0.0594797134, 0.144087285, 0.997264206, 0.0707819909, 0.0213012099, -0.0739177391, 0.9549582, 0.287386209, 2.98023224e-08, -0.28817457, 0.957577825),i)
759
					rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54035091, 0.0769848824, -0.170524538, 0.99592495, -0.0847774297, 0.0307573378, 0.090184398, 0.936214805, -0.339659303, 0, 0.341049016, 0.940045416),i)
760
					game:GetService("RunService").Stepped:wait()
761
				end
762
			end
763
			for i = 0.1,0.3 , 0.008 do
764
				if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
765
					lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53173375, 0.0903658867, -0.222393572, 0.997264206, 0.0662034005, -0.0328776538, -0.0739177391, 0.893185973, -0.443570435, 2.98023224e-08, 0.444787204, 0.895636141),i)
766
					rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54079688, 0.0720610619, 0.156226337, 0.99592495, -0.085669145, -0.0281783342, 0.090184398, 0.946062148, 0.311179608, 0, -0.312452823, 0.949932992),i)
767
					game:GetService("RunService").Stepped:wait()
768
				end
769
			end
770
		elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
771
			for i = 0,1 , 0.1 do
772
				if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate then
773
					weld.C0 = weld.C0:lerp(CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0),i)
774
					headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
775
					humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
776
					lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
777
					rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
778
		            game:GetService("RunService").RenderStepped:wait()
779
				end
780
	        end
781
		end
782
	end
783
	wait()
784
end