View difference between Paste ID: Jr3BFDA9 and x3BbieFA
SHOW: | | - or go back to the newest paste.
1
--By CoolScripter aka (lolboigghh)
2
owner.Character.Humanoid.MaxHealth = 99999
3
owner.Character.Humanoid.Health = 99999
4
heartbeat = game:GetService("RunService").Heartbeat
5
--owner = game:GetService("Players")[script.Parent.Name]
6
NLS([[
7
for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
8
	if v.Name == "ParkourRemote" then
9
		v:destroy()
10
	end
11
end
12
local remote = game.ReplicatedStorage:WaitForChild("ParkourRemote")
13
owner = game:GetService("Players").LocalPlayer
14
mouse = owner:GetMouse()
15
workspace.CurrentCamera.FieldOfView = 115
16
owner.CameraMode = "LockFirstPerson"
17
local part = Instance.new("Part", owner.Character.Head)
18
part.Size = Vector3.new(0.1,0.1,0.1)
19
part.Transparency = 1
20
part.CanCollide = false
21
part.Name = "camera"
22
part:BreakJoints()
23
local weld = Instance.new("Weld", part)
24
weld.Part0 = owner.Character.Head
25
weld.Part1 = part
26
weld.C0 = CFrame.new(0,0,-1)
27
workspace.CurrentCamera.CameraSubject = part
28
owner.Character.Head.Transparency = 1
29
cangoup = true
30
rolling = false
31
if owner.Character.Head:findFirstChildOfClass("Decal") then
32
	owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
33
end
34
function death()
35
	local color = Instance.new("ColorCorrectionEffect", workspace.CurrentCamera)
36
	game.Debris:AddItem(color, 5)
37
	local deathsound = Instance.new("Sound", workspace.CurrentCamera)
38
	deathsound.SoundId = "rbxassetid://1038809455"
39
	deathsound.Volume = 10
40
	for i,v in pairs(owner.Character.Head:GetChildren()) do
41
		if v.ClassName == "Sound" then
42
			v:destroy()
43
		end
44
	end
45
	for i = 1,8 do
46
		color.Brightness = color.Brightness + 0.135
47
		workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.fromEulerAnglesXYZ(0.04,0,0)
48
		game:GetService("RunService").RenderStepped:wait()
49
	end
50
	deathsound:Play()
51
	workspace.CurrentCamera.FieldOfView = 70
52
	workspace.CurrentCamera.CameraSubject = workspace
53
	workspace.CurrentCamera.CFrame = CFrame.new(9999999999999,9999999999999,9999999999999)
54
	wait(4.5)
55
	owner.CameraMode = "Classic"
56
	workspace.CurrentCamera.CameraSubject = owner.Character
57
end
58
owner.Character:findFirstChildOfClass("Humanoid").Died:connect(death)
59
function action(key)
60
	key = key:lower()
61
	if key == "e" then
62
		remote:FireServer("slide")
63
	end
64
	if key == "c" then
65
		remote:FireServer("rollon")
66
	end
67
end
68
function undoaction(key)
69
	key = key:lower()
70
	if key == "c" then
71
		remote:FireServer("rolloff")
72
	end
73
end
74
mouse.KeyDown:connect(action)
75
mouse.KeyUp:connect(undoaction)
76
function mouseaction()
77
	remote:FireServer("kick")
78
end
79
mouse.Button2Down:connect(mouseaction)
80
function mouseaction2()
81
	remote:FireServer("punch")
82
end
83
mouse.Button1Down:connect(mouseaction2)
84
function visiblebody()
85
	if owner.Character.HumanoidRootPart:findFirstChild("FALLING") then
86
		workspace.CurrentCamera.CFrame = owner.Character.Head.CFrame * CFrame.new(0,0,-1)
87
		workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-1,1)/100,math.random(-1,1)/100,math.random(-1,1)/100)
88
	end
89
	if owner.Character.HumanoidRootPart:findFirstChild("ow") then
90
		workspace.CurrentCamera.CFrame = owner.Character.Head.CFrame * CFrame.new(0,0,-1)
91
	end
92
	if owner.Character.HumanoidRootPart:findFirstChild("rolling") then
93
		rolling = true
94
		workspace.CurrentCamera.CFrame = owner.Character.Head.CFrame * CFrame.new(0,0,-1)
95
	end
96
	if not owner.Character.HumanoidRootPart:findFirstChild("rolling") and rolling then
97
		rolling = false
98
	end
99
	if not owner.Character.HumanoidRootPart:findFirstChild("goingup") and not owner.Character.HumanoidRootPart.Anchored and not owner.Character.HumanoidRootPart:findFirstChild("sliding") and not owner.Character.HumanoidRootPart:findFirstChild("FALLING") and not owner.Character.HumanoidRootPart:findFirstChild("ow") and not owner.Character.HumanoidRootPart:findFirstChild("climbing") and not owner.Character:findFirstChildOfClass("Humanoid").PlatformStand and not owner.Character:findFirstChildOfClass("Humanoid").Sit then
100
		game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
101
	end
102
	if owner.Character.HumanoidRootPart:findFirstChild("goingup") and cangoup then
103
		cangoup = false
104
		local function lookup()
105
			for i = 1,15 do
106
				workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.fromEulerAnglesXYZ(0.05,0,0)
107
				game:GetService("RunService").RenderStepped:wait()
108
			end
109
		end
110
		spawn(lookup)
111
	end
112
	if not owner.Character.HumanoidRootPart:findFirstChild("goingup") and not cangoup then
113
		cangoup = true
114
		local function lookup()
115
			for i = 1,15 do
116
				workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
117
				game:GetService("RunService").RenderStepped:wait()
118
			end
119
		end
120
		spawn(lookup)
121
	end
122
	for i,v in pairs(owner.Character:GetChildren()) do
123
		if v.ClassName == "Part" and v.Name ~= "Head" then
124
			v.LocalTransparencyModifier = 0
125
		end
126
		if v.ClassName == "Accessory" then
127
			v.Handle.Transparency = 1
128
		end
129
	end
130
end
131
game:GetService("RunService").RenderStepped:connect(visiblebody)
132
]], owner.Character)
133
wait(0.8)
134
local remote = Instance.new("RemoteEvent", game.ReplicatedStorage)
135
remote.Name = "ParkourRemote"
136
humanoidofowner = owner.Character:findFirstChildOfClass("Humanoid")
137
humanoidofowner.CameraOffset = Vector3.new(0,0,-1)
138
rootpart = owner.Character:findFirstChild("HumanoidRootPart")
139
local rightarm = Instance.new("Weld", owner.Character.Torso)
140
rightarm.Part0 = owner.Character.Torso
141
rightarm.Part1 = owner.Character["Right Arm"]
142
rightarm.C0 = CFrame.new(1.5,0,0)
143
rightarm.Name = "RightArmWeld"
144
local rightleg = Instance.new("Weld", owner.Character.Torso)
145
rightleg.Part0 = owner.Character.Torso
146
rightleg.Part1 = owner.Character["Right Leg"]
147
rightleg.C0 = CFrame.new(0.5,-2,0)
148
rightleg.Name = "RightLegWeld"
149
local leftarm = Instance.new("Weld", owner.Character.Torso)
150
leftarm.Part0 = owner.Character.Torso
151
leftarm.Part1 = owner.Character["Left Arm"]
152
leftarm.C0 = CFrame.new(-1.5,0,0)
153
leftarm.Name = "LeftArmWeld"
154
local leftleg = Instance.new("Weld", owner.Character.Torso)
155
leftleg.Part0 = owner.Character.Torso
156
leftleg.Part1 = owner.Character["Left Leg"]
157
leftleg.C0 = CFrame.new(-0.5,-2,0)
158
leftleg.Name = "LeftLegWeld"
159
local head = Instance.new("Weld", owner.Character.Torso)
160
head.Part0 = owner.Character.Torso
161
head.Part1 = owner.Character.Head
162
head.C0 = CFrame.new(0,1.5,0)
163
head.Name = "HeadWeld"
164
local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
165
humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
166
humanoidrootpart.Part1 = owner.Character.Torso
167
humanoidrootpart.Name = "HumanoidRootPartWeld"
168
owner.Character.HumanoidRootPart.CanCollide = false
169
humanoidofowner.WalkSpeed = 25
170
local footstep = Instance.new("Sound", owner.Character.Head)
171
footstep.SoundId = "rbxassetid://379611235"
172
footstep:Play()
173-
ambient.SoundId = "rbxassetid://937509512"
173+
174
local ambient = Instance.new("Sound", owner.Character.Head)
175
ambient.SoundId = "rbxassetid://7214282616"
176-
ambient.Volume = 0.2
176+
177
ambient:Play()
178
ambient.Volume = 1.5
179-
	ambient.SoundId = "rbxassetid://937509512"
179+
180-
	ambient.Volume = 0.2
180+
181
	ambient.SoundId = "rbxassetid://7214282616"
182
	ambient.Volume = 1.5
183
end
184
local jumpsound = Instance.new("Sound", owner.Character.Head)
185
jumpsound.SoundId = "rbxassetid://1188430348"
186
jumpsound.PlaybackSpeed = 1.5
187
local swoosh = Instance.new("Sound", owner.Character.Head)
188
swoosh.SoundId = "rbxassetid://2706199011"
189
swoosh.PlaybackSpeed = 1
190
local swoosh2 = Instance.new("Sound", owner.Character.Head)
191
swoosh2.SoundId = "rbxassetid://596439421"
192
swoosh2.PlaybackSpeed = 0.7
193
local bodyhit = Instance.new("Sound", owner.Character.Head)
194
bodyhit.SoundId = "rbxassetid://261338552"
195
local kickhit = Instance.new("Sound", owner.Character.Head)
196
kickhit.SoundId = "rbxassetid://220025675"
197
if owner.Character.Head:findFirstChild("FreeFalling") then
198
	owner.Character.Head:findFirstChild("FreeFalling").Volume = 5
199
end
200
running = false
201
jumping = false
202
cananimate = true
203
canplayjump = true
204
victimdude = nil
205
cando = true
206
trytoroll = false
207
waitforbounce = 0
208
function run()
209
	while heartbeat:wait() do
210
		if rootpart.Velocity.x < -4 or rootpart.Velocity.x > 4 or rootpart.Velocity.z < -4 or rootpart.Velocity.z > 4 and not jumping and cananimate then
211
			running = true
212
		else
213
			running = false
214
		end
215
	end
216
end
217
function rip()
218
	cananimate = false
219
	jumpsound.Volume = 0
220
	local fallvelocity = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
221
	fallvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
222
	fallvelocity.Velocity = Vector3.new(0,-140,0)
223
	fallvelocity.Name = "FALLING"
224
	local function aaafalling()
225
		while heartbeat:wait() do
226
			for i = 0,0.5 , 0.03 do
227
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.17411232, -0.132110596, -0.264811039, 0.859451294, 0.511213899, 0.00197864277, -0.470952272, 0.793257236, -0.385936379, -0.198865607, 0.330761641, 0.92252332),i)
228
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.6866436, 0.623382568, 0.115309238, 0.807834744, 0.565451264, -0.166336611, 0.572863281, -0.819640577, -0.00413560122, -0.138674706, -0.0919472426, -0.986060381),i)
229
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.25210571, 0.862024784, 1, 0, 0, 0, 0.173650429, 0.984807372, 0, -0.984807432, 0.173650429),i)
230
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.34194946, -0.939673424, 1, 0, 0, 0, 0.342017591, -0.93969363, 0, 0.93969357, 0.342017591),i)
231
				head.C0 = head.C0:lerp(CFrame.new(0, 1.38299561, -0.321393013, 1, 0, 0, 0, 0.766044021, 0.642788172, 0, -0.642788112, 0.766044021),i)
232
				heartbeat:wait()
233
			end
234
			for i = 0,0.5 , 0.03 do
235
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.66958046, 0.703216553, -0.101788998, 0.859451294, -0.479707241, -0.176704615, -0.470952272, -0.877416015, 0.0913519114, -0.198865607, 0.00470691221, -0.980015516),i)
236
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.139925, -0.19039917, -0.0615525246, 0.807834744, -0.527976871, 0.261998922, 0.572863281, 0.807906568, -0.138255939, -0.138674706, 0.26177752, 0.95511359),i)
237
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.42044067, -1.06244373, 1, 0, 0, 0, 0.342018187, -0.939693332, 0, 0.939693332, 0.342018157),i)
238
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.34197998, 0.939681053, 1, 0, 0, 0, 0.34202221, 0.939691842, 0, -0.939691901, 0.34202221),i)
239
				head.C0 = head.C0:lerp(CFrame.new(0, 1.38299561, -0.321393013, 1, 0, 0, 0, 0.766044021, 0.642788172, 0, -0.642788112, 0.766044021),i)
240
				heartbeat:wait()
241
			end
242
		end
243
	end
244
	spawn(aaafalling)
245
	while rootpart.Velocity.y <= -138 do
246
		humanoidrootpart.C0 = humanoidrootpart.C0 * CFrame.fromEulerAnglesXYZ(-0.02,-0.02,-0.02)
247
		heartbeat:wait()
248
	end
249
	fallvelocity:destroy()
250
	owner.Character:BreakJoints()
251
end
252
function checkfall()
253
	while heartbeat:wait() do
254
		if rootpart.Velocity.y <= -100 and rootpart.Velocity.y > -140 then
255
			local owe = true
256
			while rootpart.Velocity.y <= -100 do
257
				if rootpart.Velocity.y <= -140 then
258
					owe = false
259
					trytoroll = false
260
					rip()
261
					break
262
				end
263
				heartbeat:wait()
264
			end
265
			if not trytoroll then
266
				cananimate = false
267
				local ow = Instance.new("BoolValue", owner.Character.HumanoidRootPart)
268
				ow.Name = "ow"
269
				if owe then
270
					humanoidofowner:TakeDamage(math.random(30,60))
271
				end
272
				bodyhit.TimePosition = 1
273
				bodyhit:Play()
274
				humanoidofowner.WalkSpeed = 0
275
				humanoidofowner.JumpPower = 0
276
				for i = 0,1 , 0.07 do
277
					rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.99996758, 0, 1, 0, 0, 0, -1, 3.06768015e-06, 0, -3.06768015e-06, -1),i)
278
					leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 1.99996758, 0, 1, 0, 0, 0, -1, 2.89283503e-06, 0, -2.8928348e-06, -1),i)
279
					leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
280
					rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
281
					humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -2.59994507, 7.62939453e-06, 1, 0, 0, 0, 2.99218186e-06, 1, 0, -1, 2.99218186e-06),i)
282
					head.C0 = head.C0:lerp(CFrame.new(0, 1.17099237, 0.469848633, 1, 0, 0, 0, 0.342022657, -0.939691782, 0, 0.939691782, 0.342022657),i)
283
					heartbeat:wait()
284
				end
285
				wait(1.5)
286
				for i = 0,0.5 , 0.01 do
287
					rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 1.60122919, -0.346038818, 1, 0, 0, 0, -0.766045034, -0.64278692, 0, 0.64278692, -0.766044974),i)
288
					leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 1.38657951, -0.39642334, 1, 0, 0, 0, -0.866026163, -0.499998719, 0, 0.499998719, -0.866026103),i)
289
					leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.19998217, -0.799987793, 1, 0, 0, 0, 1, -2.9802577e-06, 0, 2.98025748e-06, 1),i)
290
					rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.946397305, -0.892822266, 1, 0, 0, 0, 0.866024852, -0.500001073, 0, 0.500001073, 0.866024852),i)
291
					humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1.79995728, 5.7220459e-06, 1, 0, 0, 0, 2.99218186e-06, 1, 0, -1, 2.99218186e-06),i)
292
					head.C0 = head.C0:lerp(CFrame.new(0, 1.43299055, 0.25, 1, 0, 0, 0, 0.866025031, -0.500000775, 0, 0.500000775, 0.866025031),i)
293
					heartbeat:wait()
294
				end
295
				for i = 0,0.5 , 0.01 do
296
					rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.39581108, 0.355163574, -0.668273926, 1, 0, 0, 0, 0.342021942, -0.93969202, 0, 0.939691961, 0.342021972),i)
297
					leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.375061035, -0.835845947, 1, 0, 0, 0, 0.64279002, -0.766042411, 0, 0.766042411, 0.64279002),i)
298
					leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.18479919, -0.626342773, 1, 0, 0, 0, 0.984807968, 0.173647031, 0, -0.173647031, 0.984807968),i)
299
					rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.399993896, -1.03918457, 1, 0, 0, 0, 0.866026759, -0.499997824, 0, 0.499997854, 0.8660267),i)
300
					humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.989624023, -0.177854538, 1, 0, 0, 0, 0.642787755, 0.766044319, 0, -0.766044378, 0.642787755),i)
301
					head.C0 = head.C0:lerp(CFrame.new(0, 1.4329834, 0.25, 1, 0, 0, 0, 0.866026878, -0.499997526, 0, 0.499997526, 0.866026819),i)
302
					heartbeat:wait()
303
				end
304
				humanoidofowner.WalkSpeed = 25
305
				humanoidofowner.JumpPower = 50
306
				cananimate = true
307
				cando = true
308
				ow:destroy()
309
			else
310
				for i,v in pairs(owner.Character.Head:GetChildren()) do
311
					if v.Name == "goup" then
312
						v:destroy()
313
					end
314
				end
315
				cananimate = false
316
				trytoroll = false
317
				waitforbounce = 4
318
				local rollvelocity = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
319
				rollvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
320
				rollvelocity.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 20
321
				rollvelocity.Name = "rolling"
322
				local rarmc0 = rightarm.C0
323
				local larmc0 = leftarm.C0
324
				local llegc0 = leftleg.C0
325
				local rlegc0 = rightleg.C0
326
				local humrootc0 = humanoidrootpart.C0
327
				local headc0 = head.C0
328
				for i = 0,1 , 0.12 do
329
					rightarm.C0 = rarmc0:lerp(CFrame.new(1.29883575, 0.820416212, -0.554986477, 0.939694643, 0.342014492, 3.29469119e-10, 0.171007738, -0.469848752, -0.866024554, -0.296192914, 0.813798726, -0.500001431),i)
330
					leftarm.C0 = larmc0:lerp(CFrame.new(-1.29883575, 0.820416212, -0.554986477, 0.939694643, -0.342014492, -3.29469119e-10, -0.171007738, -0.469848752, -0.866024554, 0.296192914, 0.813798726, -0.500001431),i)
331
					leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, 0.167815685, -1.17003536, 1, 0, 0, 0, 0.984807789, -0.173648298, 0, 0.173648298, 0.984807789),i)
332
					rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, 0.227622986, -1.20567513, 1, 0, 0, 0, 0.98480773, -0.17364873, 0, 0.17364873, 0.98480773),i)
333
					humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, -1.82676482, 0.100003719, 1, 0, 0, 0, 0.500001073, 0.866024792, 0, -0.866024852, 0.500001013),i)
334
					head.C0 = headc0:lerp(CFrame.new(0, 1.46982503, -0.171005249, 1, 0, 0, 0, 0.939693511, 0.3420178, 0, -0.3420178, 0.939693511),i)
335
					heartbeat:wait()
336
				end
337
				local rarmc0 = rightarm.C0
338
				local larmc0 = leftarm.C0
339
				local llegc0 = leftleg.C0
340
				local rlegc0 = rightleg.C0
341
				local humrootc0 = humanoidrootpart.C0
342
				local headc0 = head.C0
343
				for i = 0,1 , 0.12 do
344
					rightarm.C0 = rarmc0:lerp(CFrame.new(1.29883575, 0.820416212, -0.554986477, 0.939694643, 0.342014492, 3.29469119e-10, 0.171007738, -0.469848752, -0.866024554, -0.296192914, 0.813798726, -0.500001431),i)
345
					leftarm.C0 = larmc0:lerp(CFrame.new(-1.29883575, 0.820416212, -0.554986477, 0.939694643, -0.342014492, -3.29469119e-10, -0.171007738, -0.469848752, -0.866024554, 0.296192914, 0.813798726, -0.500001431),i)
346
					leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, 0.167815685, -1.17003536, 1, 0, 0, 0, 0.984807789, -0.173648298, 0, 0.173648298, 0.984807789),i)
347
					rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, 0.227622986, -1.20567513, 1, 0, 0, 0, 0.98480773, -0.17364873, 0, 0.17364873, 0.98480773),i)
348
					humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, -1.12325001, -0.233205318, 1, 0, 0, 0, -0.766044676, 0.642787397, 0, -0.642787397, -0.766044617),i)
349
					head.C0 = headc0:lerp(CFrame.new(0, 1.43298388, -0.249996901, 1, 0, 0, 0, 0.866023958, 0.500002503, 0, -0.500002503, 0.866023958),i)
350
					heartbeat:wait()
351
				end
352
				local rarmc0 = rightarm.C0
353
				local larmc0 = leftarm.C0
354
				local llegc0 = leftleg.C0
355
				local rlegc0 = rightleg.C0
356
				local humrootc0 = humanoidrootpart.C0
357
				local headc0 = head.C0
358
				for i = 0,1 , 0.12 do
359
					rightarm.C0 = rarmc0:lerp(CFrame.new(1.3388443, 0.487123013, -0.620485306, 0.939694762, 0.26199764, 0.219843194, 0.171007395, 0.196747974, -0.96542573, -0.296192944, 0.944800317, 0.140079498),i)
360
					leftarm.C0 = larmc0:lerp(CFrame.new(-1.3388443, 0.487123013, -0.620485306, 0.939694762, -0.26199764, -0.219843194, -0.171007395, 0.196747974, -0.96542573, 0.296192944, 0.944800317, 0.140079498),i)
361
					leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.92927122, -0.671936512, 1, 0, 0, 0, 0.984808266, 0.173645824, 0, -0.173645824, 0.984808207),i)
362
					rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -1.15108776, -0.61528492, 1, 0, 0, 0, 0.984808207, 0.173645645, 0, -0.17364563, 0.984808207),i)
363
					humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, -2.35371089, -0.496735096, 1, 0, 0, 0, -0.342021734, -0.93969214, 0, 0.93969202, -0.342021763),i)
364
					head.C0 = headc0:lerp(CFrame.new(0, 1.17099142, -0.469834805, 1, 0, 0, 0, 0.342019647, 0.939692855, 0, -0.939692914, 0.342019588),i)
365
					heartbeat:wait()
366
				end
367
				cananimate = true
368
				rollvelocity:destroy()
369
				cando = true
370
				local function checkfix()
371
					wait(1)
372
					if not cando then
373
						cando = true
374
					end
375
				end
376
				spawn(checkfix)
377
			end
378
		end
379
	end
380
end
381
spawn(run)
382
spawn(checkfall)
383
punchanim = 0
384
function doaction(plr, what)
385
	if plr == owner then
386
		if cando then
387
			cando = false
388
			cananimate = false
389
			if what == "rollon" and not owner.Character.HumanoidRootPart:findFirstChild("FALLING") and not owner.Character.HumanoidRootPart:findFirstChild("rolling") then
390
				trytoroll = true
391
				cando = true
392
				cananimate = true
393
			end
394
			if what == "rolloff" and not owner.Character.HumanoidRootPart:findFirstChild("FALLING") and not owner.Character.HumanoidRootPart:findFirstChild("rolling") then
395
				trytoroll = false
396
				cando = true
397
				cananimate = true
398
			end
399
			if what == "slide" and not owner.Character.HumanoidRootPart:findFirstChild("ow") and not owner.Character.HumanoidRootPart:findFirstChild("sliding") and not owner.Character.HumanoidRootPart:findFirstChild("FALLING") and not owner.Character.HumanoidRootPart:findFirstChild("goingup") and not owner.Character.HumanoidRootPart.Anchored then
400
				humanoidofowner.WalkSpeed = 0
401
				humanoidofowner.JumpPower = 0
402
				swoosh:Play()
403
				local velocitie = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
404
				velocitie.MaxForce = Vector3.new(math.huge,0,math.huge)
405
				velocitie.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 50
406
				velocitie.Name = "sliding"
407
				local waitt = 0
408
				local function less()
409
					while wait() do
410
						velocitie.Velocity = velocitie.Velocity / 1.09
411
						if waitt < 20 then
412
							waitt = waitt + 1
413
						end
414
						if velocitie.Velocity.z <= 4 and velocitie.Velocity.x <= 4 and waitt == 20 then
415
							humanoidofowner.WalkSpeed = 25
416
							humanoidofowner.JumpPower = 50
417
							velocitie:destroy()
418
							if not owner.Character.HumanoidRootPart:findFirstChild("ow") then
419
								cananimate = true
420
								cando = true
421
							end
422
							break
423
						end
424
					end
425
				end
426
				spawn(less)
427
				for i = 0,1 , 0.02 do
428
					if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
429
						rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.88513184, 0.728400707, -0.51874733, 0.0509149656, -0.979093194, 0.196937039, 0.995125353, 0.0330599695, -0.0929127932, 0.0844595507, 0.200707689, 0.976003647),i)
430
						leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.63573742, 0.101630211, 0.237347126, 0.777682304, 0.62453258, -0.0718980953, -0.42115736, 0.602484405, 0.677966893, 0.46672985, -0.496962368, 0.731567979),i)
431
						leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.499998093, -1.98477411, 0.173640728, 1, -1.57809765e-07, 5.05698472e-06, -7.22707682e-07, 0.984808326, 0.173644975, -5.00756369e-06, -0.173644975, 0.984808326),i)
432
						rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.500001907, -1.99996758, -9.05990601e-06, 1, 7.22725019e-07, 5.00756187e-06, -7.22707682e-07, 1, -3.44990485e-06, -5.00756369e-06, 3.44990121e-06, 1),i)
433
						humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.0606842041, -2.26575327, -0.0902328491, 0.936354458, -0.111619428, -0.332838684, -0.330426246, 0.0400053002, -0.942983687, 0.118570611, 0.992945492, 0.000577152357),i)
434
						head.C0 = head.C0:lerp(CFrame.new(-0.0664100647, 1.29971933, -0.608807564, 0.997187197, -0.0242519826, 0.0709199831, -0.0628080666, 0.245970294, 0.967240393, -0.0409017019, -0.968973994, 0.243755192),i)
435
						heartbeat:wait()
436
					end
437
				end
438
			elseif what == "kick" and not owner.Character.HumanoidRootPart:findFirstChild("ow") and not owner.Character.HumanoidRootPart:findFirstChild("sliding") and not owner.Character.HumanoidRootPart:findFirstChild("FALLING") and not owner.Character.HumanoidRootPart:findFirstChild("goingup") and not owner.Character.HumanoidRootPart.Anchored then
439
				humanoidofowner.WalkSpeed = 0
440
				humanoidofowner.JumpPower = 0
441
				swoosh2:Play()
442
				swoosh:Play()
443
				cananimate = false
444
				for i = 0,0.5 , 0.08 do
445
					if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
446
						rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0,0),i)
447
						leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
448
						leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -0.200000286, -0.799999714, 1, -2.37121791e-16, -3.55271368e-15, -2.84206045e-15, 0.999999821, -2.086162e-07, 5.04870979e-29, 2.08616243e-07, 0.999999881) * CFrame.new(0,-1,0),i)
449
						rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.866977453, -1.76958275, 0, 0.866026938, -0.499997377, 3.14493657e-12, 0.499997377, 0.866026938, 2.68155637e-12, -4.06437037e-12, -7.49839589e-13, 1),i)
450
						humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 2.17665985e-07, 1.25670709e-07, -1, -0.500001013, 0.866024852, 7.60486888e-13, 0.866024852, 0.500000954, 2.51339628e-07),i)
451
						head.C0 = head.C0:lerp(CFrame.new(-0.262776613, 1.02028942, -0.846868515, 0.593996942, -0.730470955, 0.337016225, -0.38534075, 0.109389521, 0.916267753, -0.706172943, -0.674126267, -0.216503173),i)
452
						heartbeat:wait()
453
					end
454
				end
455
				local function kicksuccessful()
456
					kickhit:Play()
457
					local velocitie = Instance.new("BodyVelocity", victimdude.Head)
458
					velocitie.MaxForce = Vector3.new(math.huge,0,math.huge)
459
					velocitie.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 15
460
					velocitie.Name = "woosh"
461
					game.Debris:AddItem(velocitie, 0.3)
462
					local hprandom = math.random(10,30)
463
					if victimdude:findFirstChildOfClass("Humanoid").Health <= hprandom then
464
						victimdude:BreakJoints()
465
						ragdollkill(victimdude)
466
					else
467
						victimdude:findFirstChildOfClass("Humanoid").Health = victimdude:findFirstChildOfClass("Humanoid").Health - hprandom
468
					end
469
					if victimdude:findFirstChild("Torso") then
470
						victimdude.Torso.CFrame = CFrame.new(victimdude.Torso.Position, owner.Character.HumanoidRootPart.Position)
471
						local owweld = Instance.new("Weld", victimdude.Torso)
472
						owweld.Part0 = victimdude.Torso
473
						owweld.Part1 = victimdude.Head
474
						owweld.C0 = CFrame.new(0,(victimdude.Torso.Size.y/2) + (victimdude.Head.Size.y/2),0)
475
						owweld.C0 = owweld.C0 * CFrame.fromEulerAnglesXYZ(1,0,0) * CFrame.new(0,0,0.5)
476
						for i = 0,1 , 0.02 do
477
							owweld.C0 = owweld.C0:lerp(CFrame.new(0,(victimdude.Torso.Size.y/2) + (victimdude.Head.Size.y/2),0),i)
478
							heartbeat:wait()
479
						end
480
					elseif victimdude:findFirstChild("UpperTorso") then
481
						victimdude.UpperTorso.CFrame = CFrame.new(victimdude.UpperTorso.Position, owner.Character.HumanoidRootPart.Position)
482
						local owweld = Instance.new("Weld", victimdude.UpperTorso)
483
						owweld.Part0 = victimdude.UpperTorso
484
						owweld.Part1 = victimdude.Head
485
						owweld.C0 = CFrame.new(0,(victimdude.UpperTorso.Size.y/2) + (victimdude.Head.Size.y/2),0)
486
						owweld.C0 = owweld.C0 * CFrame.fromEulerAnglesXYZ(1,0,0) * CFrame.new(0,0,0.5)
487
						for i = 0,1 , 0.02 do
488
							owweld.C0 = owweld.C0:lerp(CFrame.new(0,(victimdude.UpperTorso.Size.y/2) + (victimdude.Head.Size.y/2),0),i)
489
							heartbeat:wait()
490
						end
491
					end
492
					local hisws = victimdude:findFirstChildOfClass("Humanoid").WalkSpeed
493
					local hisjp = victimdude:findFirstChildOfClass("Humanoid").JumpPower
494
					victimdude:findFirstChildOfClass("Humanoid").JumpPower = 0
495
					victimdude:findFirstChildOfClass("Humanoid").WalkSpeed = 0
496
					for i,v in pairs(victimdude:GetChildren()) do
497
						if v.ClassName == "Script" or v.ClassName == "LocalScript" then
498
							v.Disabled = true
499
						end
500
					end
501
					if victimdude:findFirstChildOfClass("Humanoid").MaxHealth > 300 then
502
						victimdude:findFirstChildOfClass("Humanoid").MaxHealth = 300
503
					end
504
					local function unstun()
505
						wait(math.random(2,3))
506
						victimdude:findFirstChildOfClass("Humanoid").JumpPower = hisjp
507
						victimdude:findFirstChildOfClass("Humanoid").WalkSpeed = hisws
508
						for i,v in pairs(victimdude:GetChildren()) do
509
							if v.ClassName == "Script" or v.ClassName == "LocalScript" then
510
								v.Disabled = false
511
							end
512
						end
513
					end
514
					spawn(unstun)
515
				end
516
				for i = 0.1,1 , 0.08 do
517
					if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
518
						rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.793737411, -0.0435829163, -0.377206802, 0.589972556, 0.802474499, -0.0892586261, -0.776380658, 0.533454716, -0.335647464, -0.221733078, 0.267321438, 0.937749267),i)
519
						leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
520
						leftleg.C0 = leftleg.C0:lerp(CFrame.new(-1.06697655, -2.11598873, 0, 0.866026878, 0.499997646, 6.74289184e-13, -0.499997675, 0.866026819, 4.07409696e-12, 1.45308602e-12, -3.8654197e-12, 1),i)
521
						rightleg.C0 = rightleg.C0:lerp(CFrame.new(1.56865537, -1.46542549, 0, 0.342022985, -0.939691603, 6.78452086e-13, 0.939691603, 0.342022985, 4.07827938e-12, -4.06437037e-12, -7.57329637e-13, 1),i)
522
						humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 8.59631086e-08, 2.36182032e-07, -1, -0.939691782, 0.342022538, 7.5707241e-13, 0.342022568, 0.939691782, 2.51339628e-07),i)
523
						head.C0 = head.C0:lerp(CFrame.new(-0.0669679642, 1.10865688, -0.957942963, 0.808011353, -0.338849306, 0.481973886, -0.399515122, 0.286124706, 0.870930731, -0.433018923, -0.896277785, 0.0958165824),i)
524
						heartbeat:wait()
525
					end
526
				end
527
				for i,v in pairs(workspace:GetChildren()) do
528
					if v.ClassName == "Model" then
529
						local thathumanoid = v:findFirstChildOfClass("Humanoid")
530
						local thathead = v:findFirstChild("Head")
531
						if thathumanoid and thathead then
532
							if (thathead.Position - owner.Character["Left Leg"].Position).magnitude < 3 then
533
								victimdude = v
534
								spawn(kicksuccessful)
535
							end
536
						end
537
					end
538
				end
539
				for i = 0,0.5 , 0.08 do
540
					if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
541
						rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0,0),i)
542
						leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
543
						leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -0.200000286, -0.799999714, 1, -2.37121791e-16, -3.55271368e-15, -2.84206045e-15, 0.999999821, -2.086162e-07, 5.04870979e-29, 2.08616243e-07, 0.999999881) * CFrame.new(0,-1,0),i)
544
						rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.866977453, -1.76958275, 0, 0.866026938, -0.499997377, 3.14493657e-12, 0.499997377, 0.866026938, 2.68155637e-12, -4.06437037e-12, -7.49839589e-13, 1),i)
545
						humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 2.17665985e-07, 1.25670709e-07, -1, -0.500001013, 0.866024852, 7.60486888e-13, 0.866024852, 0.500000954, 2.51339628e-07),i)
546
						head.C0 = head.C0:lerp(CFrame.new(-0.262776613, 1.02028942, -0.846868515, 0.593996942, -0.730470955, 0.337016225, -0.38534075, 0.109389521, 0.916267753, -0.706172943, -0.674126267, -0.216503173),i)
547
						heartbeat:wait()
548
					end
549
				end
550
				humanoidofowner.WalkSpeed = 25
551
				humanoidofowner.JumpPower = 50
552
				cananimate = true
553
				cando = true
554
			elseif what == "punch" and not owner.Character.HumanoidRootPart:findFirstChild("ow") and not owner.Character.HumanoidRootPart:findFirstChild("sliding") and not owner.Character.HumanoidRootPart:findFirstChild("FALLING") and not owner.Character.HumanoidRootPart:findFirstChild("goingup") and not owner.Character.HumanoidRootPart.Anchored then
555
				cananimate = false
556
				cando = false
557
				if punchanim == 0 then
558
					punchanim = 1
559
					for i = 0,1 , 0.15 do
560
						if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
561
							rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.93298721, 0.399990082, -0.616035461, -2.2650172e-06, 0.866024196, 0.500002205, 1, 2.85937426e-06, -4.22538534e-07, -1.79562221e-06, 0.500002205, -0.866024256),i)
562
							leftarm.C0 = leftarm.C0:lerp(CFrame.new(-2.10411453, 0.813013554, -0.249991417, 0.173650935, 0.85286659, -0.492406279, -0.984807372, 0.150386363, -0.0868250355, 1.0099742e-06, 0.500002563, 0.866023898),i)
563
							leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
564
							rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
565
							humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.336828679, 0.0593937114, -0.939690828, -0.173650339, 0.984807372, 1.02145373e-06, 0.925414562, 0.163177282, 0.342025071),i)
566
							head.C0 = head.C0:lerp(CFrame.new(-0.0665130615, 1.49237728, -0.055811882, 0.64278388, -0.133025259, 0.754409134, 5.5879454e-08, 0.984807193, 0.173651397, -0.766047537, -0.111620277, 0.633018196),i)
567
							heartbeat:wait()
568
						end
569
					end
570
					swoosh:Play()
571
					swoosh2:Play()
572
					local rarmc0 = rightarm.C0
573
					local larmc0 = leftarm.C0
574
					local llegc0 = leftleg.C0
575
					local rlegc0 = rightleg.C0
576
					local humrootc0 = humanoidrootpart.C0
577
					local headc0 = head.C0
578
					for i = 0,1 , 0.2 do
579
						if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
580
							rightarm.C0 = rarmc0:lerp(CFrame.new(1.97320461, 0.399998665, -1.04105949, 1.41556848e-06, -0.342017621, 0.93969363, 1, 2.79749133e-06, -4.88219996e-07, -2.46180457e-06, 0.93969363, 0.342017621),i)
581
							leftarm.C0 = larmc0:lerp(CFrame.new(-1.96173954, 0.431951523, -0.401452065, 0.173648983, 0.336830288, -0.925414264, -0.98480767, 0.059396144, -0.163174972, 3.76260778e-06, 0.939690173, 0.342027068),i)
582
							leftleg.C0 = llegc0:lerp(CFrame.new(-0.5,-2,0),i)
583
							rightleg.C0 = rlegc0:lerp(CFrame.new(0.5,-2,0),i)
584
							humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 0.866028965, -2.58095861e-06, 0.49999398, 1.49011055e-06, 1, 2.58099067e-06, -0.49999398, -1.49016603e-06, 0.866028965),i)
585
							head.C0 = headc0:lerp(CFrame.new(-0.0665092468, 1.49237823, -0.0558137894, 0.854564965, -0.133018151, -0.502020836, 0.171007037, 0.984808207, 0.0301566627, 0.49038282, -0.11161992, 0.864329636),i)
586
							heartbeat:wait()
587
						end
588
					end
589
					local function punchsuccessful()
590
						kickhit:Play()
591
						for i,v in pairs(victimdude:GetChildren()) do
592
							if v.ClassName == "Script" or v.ClassName == "LocalScript" then
593
								v.Disabled = true
594
							end
595
						end
596
						if victimdude:findFirstChildOfClass("Humanoid").MaxHealth > 300 then
597
							victimdude:findFirstChildOfClass("Humanoid").MaxHealth = 300
598
						end
599
						local function unstun()
600
							if victimdude:findFirstChild("Torso") then
601
								victimdude.Torso.CFrame = CFrame.new(victimdude.Torso.Position, owner.Character.HumanoidRootPart.Position)
602
								local owweld = Instance.new("Weld", victimdude.Torso)
603
								owweld.Part0 = victimdude.Torso
604
								owweld.Part1 = victimdude.Head
605
								owweld.C0 = CFrame.new(0,(victimdude.Torso.Size.y/2) + (victimdude.Head.Size.y/2),0)
606
								owweld.C0 = owweld.C0 * CFrame.fromEulerAnglesXYZ(0,-1,-0.3)
607
								for i = 0,1 , 0.04 do
608
									owweld.C0 = owweld.C0:lerp(CFrame.new(0,(victimdude.Torso.Size.y/2) + (victimdude.Head.Size.y/2),0),i)
609
									heartbeat:wait()
610
								end
611
							elseif victimdude:findFirstChild("UpperTorso") then
612
								victimdude.UpperTorso.CFrame = CFrame.new(victimdude.UpperTorso.Position, owner.Character.HumanoidRootPart.Position)
613
								local owweld = Instance.new("Weld", victimdude.UpperTorso)
614
								owweld.Part0 = victimdude.UpperTorso
615
								owweld.Part1 = victimdude.Head
616
								owweld.C0 = CFrame.new(0,(victimdude.UpperTorso.Size.y/2) + (victimdude.Head.Size.y/2),0)
617
								owweld.C0 = owweld.C0 * CFrame.fromEulerAnglesXYZ(0,-1,-0.3)
618
								for i = 0,1 , 0.04 do
619
									owweld.C0 = owweld.C0:lerp(CFrame.new(0,(victimdude.UpperTorso.Size.y/2) + (victimdude.Head.Size.y/2),0),i)
620
									heartbeat:wait()
621
								end
622
							end
623
							wait(0.5)
624
							for i,v in pairs(victimdude:GetChildren()) do
625
								if v.ClassName == "Script" or v.ClassName == "LocalScript" then
626
									v.Disabled = false
627
								end
628
							end
629
						end
630
						spawn(unstun)
631
						local velocitie = Instance.new("BodyVelocity", victimdude.Head)
632
						velocitie.MaxForce = Vector3.new(math.huge,0,math.huge)
633
						velocitie.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 0
634
						velocitie.Name = "woosh"
635
						game.Debris:AddItem(velocitie, 0.3)
636
						local hprandom = math.random(10,30)
637
						if victimdude:findFirstChildOfClass("Humanoid").Health <= hprandom then
638
							local dofinishornot = math.random(1,3)
639
							if dofinishornot == 1 then
640
								finish(victimdude)
641
							else
642
								victimdude:BreakJoints()
643
								ragdollkill(victimdude)
644
							end
645
						else
646
							victimdude:findFirstChildOfClass("Humanoid").Health = victimdude:findFirstChildOfClass("Humanoid").Health - hprandom
647
						end
648
					end
649
					for i,v in pairs(workspace:GetChildren()) do
650
						if v.ClassName == "Model" then
651
							local thathumanoid = v:findFirstChildOfClass("Humanoid")
652
							local thathead = v:findFirstChild("Head")
653
							if thathumanoid and thathead and v ~= owner.Character then
654
								if (thathead.Position - owner.Character["Right Arm"].Position).magnitude < 3 then
655
									victimdude = v
656
									spawn(punchsuccessful)
657
								end
658
							end
659
						end
660
					end
661
					for i = 0.4,1 , 0.2 do
662
						if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
663
							rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.71537304, 0.399996281, -1.06364822, 2.44383e-06, 0.173639908, 0.98480922, 1, -1.99457554e-06, -2.12984583e-06, 1.59445005e-06, 0.98480922, -0.173639923),i)
664
							leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.79822016, 0.430157661, -0.45993042, -0.153337717, 0.336819142, -0.928999722, -0.981225491, 0.0593929365, 0.183491513, 0.116979472, 0.939694285, 0.321388364),i)
665
							leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
666
							rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
667
							humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -0.500006795, 2.5073964e-06, 0.866021514, -0.150380597, 0.984808087, -0.086826697, -0.8528651, -0.173646778, -0.492410332),i)
668
							head.C0 = head.C0:lerp(CFrame.new(-0.0372924805, 1.49856281, -0.00446796417, -0.645966768, -0.0745923966, -0.759712398, -0.0414872579, 0.997174025, -0.0626318753, 0.76223737, -0.00893972628, -0.64723587),i)
669
							heartbeat:wait()
670
						end
671
					end
672
				elseif punchanim == 1 then
673
					punchanim = 0
674
					for i = 0,1 , 0.15 do
675
						if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
676
							rightarm.C0 = rightarm.C0:lerp(CFrame.new(2.1286068, 0.309746742, 9.53674316e-07, 0.342020094, -0.939692497, 0, 0.939692378, 0.342020094, 3.7252903e-09, 0, 1.49011612e-08, 0.99999994),i)
677
							leftarm.C0 = leftarm.C0:lerp(CFrame.new(-2.08530402, 0.47922802, -0.542467117, 0.133022159, -0.754406393, -0.642787516, -0.984807551, -0.173648119, 6.70552254e-08, -0.111618951, 0.633022189, -0.766044319),i)
678
							leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
679
							rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
680
							humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.171010107, -0.0301536899, 0.98480773, 0.173648149, 0.98480773, 0, -0.969846249, 0.171010047, 0.173648223),i)
681
							head.C0 = head.C0:lerp(CFrame.new(0.0855047703, 1.49240398, -0.0150756836, 0.173647955, 0.171010062, -0.969846249, 2.0081643e-09, 0.98480767, 0.173648164, 0.984807789, -0.0301536545, 0.171009883),i)
682
							heartbeat:wait()
683
						end
684
					end
685
					swoosh:Play()
686
					swoosh2:Play()
687
					local rarmc0 = rightarm.C0
688
					local larmc0 = leftarm.C0
689
					local llegc0 = leftleg.C0
690
					local rlegc0 = rightleg.C0
691
					local humrootc0 = humanoidrootpart.C0
692
					local headc0 = head.C0
693
					for i = 0,1 , 0.2 do
694
						if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
695
							rightarm.C0 = rarmc0:lerp(CFrame.new(1.95028019, 0.161817551, -0.321393967, 0.342020154, -0.719846487, 0.604022563, 0.939692378, 0.262002617, -0.219846219, 0, 0.642787337, 0.766044319),i)
696
							leftarm.C0 = larmc0:lerp(CFrame.new(-1.33039951, 0.548686981, -1.71805, 0.0301536396, -0.171010137, -0.98480773, -0.984807491, -0.173648149, 4.68975934e-08, -0.171010077, 0.96984601, -0.173648),i)
697
							leftleg.C0 = llegc0:lerp(CFrame.new(-0.5,-2,0),i)
698
							rightleg.C0 = rlegc0:lerp(CFrame.new(0.5,-2,0),i)
699
							humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 0.866025448, 5.58793545e-09, -0.49999994, 1.01929922e-08, 0.99999994, 2.80050241e-08, 0.49999994, -1.49011612e-08, 0.866025329),i)
700
							head.C0 = headc0:lerp(CFrame.new(0.0102343559, 1.49909019, 0.0283493996, 0.868718624, 0.0204696581, 0.494882613, 0.0103131672, 0.998181343, -0.0593911484, -0.495198429, 0.0566980243, 0.866927505),i)
701
							heartbeat:wait()
702
						end
703
					end
704
					local function punchsuccessful()
705
						kickhit:Play()
706
						for i,v in pairs(victimdude:GetChildren()) do
707
							if v.ClassName == "Script" or v.ClassName == "LocalScript" then
708
								v.Disabled = true
709
							end
710
						end
711
						if victimdude:findFirstChildOfClass("Humanoid").MaxHealth > 300 then
712
							victimdude:findFirstChildOfClass("Humanoid").MaxHealth = 300
713
						end
714
						local function unstun()
715
							if victimdude:findFirstChild("Torso") then
716
								victimdude.Torso.CFrame = CFrame.new(victimdude.Torso.Position, owner.Character.HumanoidRootPart.Position)
717
								local owweld = Instance.new("Weld", victimdude.Torso)
718
								owweld.Part0 = victimdude.Torso
719
								owweld.Part1 = victimdude.Head
720
								owweld.C0 = CFrame.new(0,(victimdude.Torso.Size.y/2) + (victimdude.Head.Size.y/2),0)
721
								owweld.C0 = owweld.C0 * CFrame.fromEulerAnglesXYZ(0,1,-0.3)
722
								for i = 0,1 , 0.04 do
723
									owweld.C0 = owweld.C0:lerp(CFrame.new(0,(victimdude.Torso.Size.y/2) + (victimdude.Head.Size.y/2),0),i)
724
									heartbeat:wait()
725
								end
726
							elseif victimdude:findFirstChild("UpperTorso") then
727
								victimdude.UpperTorso.CFrame = CFrame.new(victimdude.UpperTorso.Position, owner.Character.HumanoidRootPart.Position)
728
								local owweld = Instance.new("Weld", victimdude.UpperTorso)
729
								owweld.Part0 = victimdude.UpperTorso
730
								owweld.Part1 = victimdude.Head
731
								owweld.C0 = CFrame.new(0,(victimdude.UpperTorso.Size.y/2) + (victimdude.Head.Size.y/2),0)
732
								owweld.C0 = owweld.C0 * CFrame.fromEulerAnglesXYZ(0,1,-0.3)
733
								for i = 0,1 , 0.04 do
734
									owweld.C0 = owweld.C0:lerp(CFrame.new(0,(victimdude.UpperTorso.Size.y/2) + (victimdude.Head.Size.y/2),0),i)
735
									heartbeat:wait()
736
								end
737
							end
738
							wait(0.5)
739
							for i,v in pairs(victimdude:GetChildren()) do
740
								if v.ClassName == "Script" or v.ClassName == "LocalScript" then
741
									v.Disabled = false
742
								end
743
							end
744
						end
745
						spawn(unstun)
746
						local velocitie = Instance.new("BodyVelocity", victimdude.Head)
747
						velocitie.MaxForce = Vector3.new(math.huge,0,math.huge)
748
						velocitie.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 0
749
						velocitie.Name = "woosh"
750
						game.Debris:AddItem(velocitie, 0.3)
751
						local hprandom = math.random(10,30)
752
						if victimdude:findFirstChildOfClass("Humanoid").Health <= hprandom then
753
							local dofinishornot = math.random(1,2)
754
							if dofinishornot == 1 then
755
								finish(victimdude)
756
							else
757
								victimdude:BreakJoints()
758
								ragdollkill(victimdude)
759
							end
760
						else
761
							victimdude:findFirstChildOfClass("Humanoid").Health = victimdude:findFirstChildOfClass("Humanoid").Health - hprandom
762
						end
763
					end
764
					for i,v in pairs(workspace:GetChildren()) do
765
						if v.ClassName == "Model" then
766
							local thathumanoid = v:findFirstChildOfClass("Humanoid")
767
							local thathead = v:findFirstChild("Head")
768
							if thathumanoid and thathead and v ~= owner.Character then
769
								if (thathead.Position - owner.Character["Left Arm"].Position).magnitude < 3 then
770
									victimdude = v
771
									spawn(punchsuccessful)
772
								end
773
							end
774
						end
775
					end
776
					for i = 0.4,1 , 0.2 do
777
						if not cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
778
							rightarm.C0 = rightarm.C0:lerp(CFrame.new(2.05306506, 0.124407291, -0.0868234634, 0.342020094, -0.92541641, 0.163175479, 0.939692318, 0.336824, -0.0593910292, -1.3038516e-08, 0.173647821, 0.984807789),i)
779
							leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.958778858, 0.899198532, -1.33199215, 0.0301536173, -0.938373387, -0.344304562, -0.984807372, -0.0868240297, 0.150383741, -0.171010122, 0.334539413, -0.926735342),i)
780
							leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
781
							rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
782
							humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.171010032, -0.0301536787, -0.98480773, 0.173648193, 0.98480767, 1.01929949e-08, 0.969846189, -0.171010077, 0.173648074),i)
783
							head.C0 = head.C0:lerp(CFrame.new(0.0968837738, 1.48970509, 0.0283184052, 0.00577832758, 0.193767488, 0.981030107, 0.0565908253, 0.979411006, -0.193780988, -0.998380601, 0.0566370524, -0.005306229),i)
784
							heartbeat:wait()
785
						end
786
					end
787
				end
788
				cananimate = true
789
				cando = true
790
			end
791
		end
792
	end
793
end
794
remote.OnServerEvent:connect(doaction)
795
cannnnn = true
796
function checkjump()
797
	while wait() do
798
		if rootpart.Velocity.y > 4 or rootpart.Velocity.y < -4 and cananimate then
799
			jumping = true
800
			if canplayjump and rootpart.Velocity.y > 4 then
801
				jumpsound:Play()
802
			end
803
			canplayjump = false
804
			if waitforbounce <= 0 then
805
				local thing = Instance.new("Part", owner.Character.Head)
806
				thing.Size = Vector3.new(0.5,0.5,0.5)
807
				thing.Transparency = 1
808
				thing.CanCollide = false
809
				thing.Name = "goup"
810
				thing:BreakJoints()
811
				local weld = Instance.new("Weld", thing)
812
				weld.Part0 = owner.Character.Head
813
				weld.Part1 = thing
814
				weld.C0 = CFrame.new(0,0,-1.5)
815
				local function bounceup(wall)
816
					if cannnnn and wall.CanCollide then
817
						if wall.Size.x > wall.Size.z and wall.Size.x > wall.Size.y and wall.Size.z <= 1 and wall.Size.y <= 1 or wall.Size.z > wall.Size.x and wall.Size.z > wall.Size.y and wall.Size.x <= 1 and wall.Size.y <= 1 then
818
							cannnnn = false
819
							cananimate = false
820
							owner.Character.HumanoidRootPart.Anchored = true
821
							local gotin = false
822
							waitforbounce = 1
823
							thing:destroy()
824
							swoosh:Play()
825
							local detector = Instance.new("Part", wall)
826
							detector.Anchored = true
827
							detector.CanCollide = false
828
							detector.Transparency = 0
829
							detector.Name = "detector"
830
							detector.Size = Vector3.new(1,1,1)
831
							detector.CFrame = owner.Character.HumanoidRootPart.CFrame
832
							detector.CFrame = CFrame.new(detector.CFrame.x,wall.CFrame.y,detector.CFrame.z) * CFrame.new(0,-wall.Size.y/2,0)
833
							detector.CFrame = detector.CFrame * (owner.Character.HumanoidRootPart.CFrame - owner.Character.HumanoidRootPart.Position)
834
							detector.CFrame = detector.CFrame * CFrame.new(0,-2.5,-2)
835
							local detectframe = detector.CFrame
836
							detector:Destroy()
837
							local velocity = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
838
							velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
839
							velocity.Velocity = Vector3.new(0,0,0)
840
							velocity.Name = "goingup"
841
							for i = 0,0.7 , 0.06 do
842
								if not cananimate then
843
									owner.Character.HumanoidRootPart.CFrame = owner.Character.HumanoidRootPart.CFrame:lerp(detectframe,i)
844
									rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.49999905, 1.14999866, -1.1258328, 1, 0, 0, 0, -0.499999791, -0.866025209, 0, 0.866025269, -0.499999821),i)
845
									leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 1.10250282, -1.15195012, 1, 0, 0, 0, -0.463464141, -0.886115372, 0, 0.886115432, -0.463464141),i)
846
									leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.76604462, -0.642787695, 1, 0, 0, 0, 0.76604408, -0.642787576, 0, 0.642787635, 0.76604414),i)
847
									rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.76604462, -0.642787695, 1, 0, 0, 0, 0.76604408, -0.642787576, 0, 0.642787635, 0.76604414),i)
848
									humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.49999994, -0.866025329, 0, 0.866025329, 0.49999994),i)
849
									head.C0 = head.C0:lerp(CFrame.new(0, 1.09780407, -0.743051291, 1, 0, 0, 0, 0.342019796, 0.939692438, 0, -0.939692438, 0.342019796),i)
850
									heartbeat:wait()
851
								end
852
							end
853
							owner.Character.HumanoidRootPart.Anchored = false
854
							velocity.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 30 + Vector3.new(0,20,0)
855
							local yeea = true
856
							local function smaller()
857
								wait(0.4)
858
								yeea = false
859
								velocity:destroy()
860
							end
861
							spawn(smaller)
862
							local function smallerevenmore()
863
								while yeea do
864
									velocity.Velocity = velocity.Velocity - Vector3.new(0,1,0)
865
									heartbeat:wait()
866
								end
867
							end
868
							spawn(smallerevenmore)
869
							cannnnn = true
870
							for i = 1,20 do
871
								if cannnnn then
872
									heartbeat:wait()
873
									humanoidrootpart.C0 = humanoidrootpart.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0)
874
								end
875
							end
876
							cananimate = true
877
						else
878
							cannnnn = false
879
							cananimate = false
880
							local climbingg = Instance.new("BoolValue", owner.Character.HumanoidRootPart)
881
							climbingg.Name = "climbing"
882
							local gotin = false
883
							waitforbounce = 4
884
							thing:destroy()
885
							swoosh:Play()
886
							local detector = Instance.new("Part", wall)
887
							detector.Anchored = true
888
							detector.CanCollide = false
889
							detector.Transparency = 1
890
							detector.Name = "detector"
891
							detector.Size = Vector3.new(1,1,1)
892
							detector.CFrame = owner.Character.HumanoidRootPart.CFrame
893
							detector.CFrame = CFrame.new(detector.CFrame.x,wall.CFrame.y,detector.CFrame.z) * CFrame.new(0,wall.Size.y/2,0)
894
							detector.CFrame = detector.CFrame * (owner.Character.HumanoidRootPart.CFrame - owner.Character.HumanoidRootPart.Position)
895
							detector.CFrame = detector.CFrame * CFrame.new(0,0,-2)
896
							for i,v in pairs(owner.Character.HumanoidRootPart:GetChildren()) do
897
								if v.ClassName == "BodyVelocity" then
898
									v:destroy()
899
								end
900
							end
901
							local velocity = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
902
							velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
903
							velocity.Velocity = Vector3.new(0,20,0)
904
							velocity.Name = "goingup"
905
							local function smaller()
906
								while wait() do
907
									velocity.Velocity = velocity.Velocity - Vector3.new(0,1.2,0)
908
									if velocity.Velocity.y < -20 then
909
										velocity:destroy()
910
										if not gotin then
911
											cananimate = true
912
											cannnnn = true
913
											climbingg:destroy()
914
											for i,v in pairs(wall:GetChildren()) do
915
												if v.Name == "detector" then
916
													v:destroy()
917
												end
918
											end--]]
919
											for i,v in pairs(owner.Character.HumanoidRootPart:GetChildren()) do
920
												if v.ClassName == "BodyVelocity" then
921
													v:destroy()
922
												end
923
											end
924
										end
925
										break
926
									end
927
									if (owner.Character.Head.Position - detector.Position).magnitude < 2.5 and not owner.Character.HumanoidRootPart.Anchored then
928
										gotin = true
929
										jumping = false
930
										owner.Character.HumanoidRootPart.Anchored = true
931
										local detectframe = detector.CFrame
932
										for i,v in pairs(wall:GetChildren()) do
933
											if v.Name == "detector" then
934
												v:destroy()
935
											end
936
										end--]]
937
										for i,v in pairs(owner.Character.HumanoidRootPart:GetChildren()) do
938
											if v.ClassName == "BodyVelocity" then
939
												v:destroy()
940
											end
941
										end
942
										local look = owner.Character.HumanoidRootPart.CFrame
943
										for i = 0,0.6 , 0.04 do
944
											if not cananimate then
945
												owner.Character.HumanoidRootPart.CFrame = owner.Character.HumanoidRootPart.CFrame:lerp(detectframe,i)
946
												rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.25, -0.433013916, 1, 0, 0, 0, 0.49999994, -0.866025329, 0, 0.866025329, 0.5),i)
947
												leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.116978168, -0.321393967, 1, 0, 0, 0, 0.766044199, -0.642787635, 0, 0.642787695, 0.766044259),i)
948
												leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.12599897, -0.237342834, 1, 0, 1.74845553e-07, -5.98007261e-08, 0.939692378, 0.342020333, -1.64301071e-07, -0.342020363, 0.939692497),i)
949
												rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.0328021, -0.203876495, 1, 0, 0, 0, 0.866025209, 0.50000006, 0, -0.500000119, 0.866025269),i)
950
												humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.866025448, 0.499999851, 0, -0.499999851, 0.866025448),i)
951
												head.C0 = head.C0:lerp(CFrame.new(0, 1.46984625, 0.171009064, 1, 0, 0, 0, 0.939692616, -0.342020005, 0, 0.342020005, 0.939692616),i)
952
												heartbeat:wait()
953
											end
954
										end
955
										local look = owner.Character.HumanoidRootPart.CFrame
956
										owner.Character.HumanoidRootPart.Anchored = false
957
										for i = 0,0.6 , 0.04 do
958
											if not cananimate then
959
												owner.Character.HumanoidRootPart.CFrame = owner.Character.HumanoidRootPart.CFrame:lerp(look * CFrame.new(0,3.5,-2),i)
960
												rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.116979599, 0.321393967, 1, 0, 0, 0, 0.766044319, 0.642787337, 0, -0.642787457, 0.766044319),i)
961
												leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.116979599, 0.321393967, 1, 0, 0, 0, 0.766044497, 0.642787158, 0, -0.642787218, 0.766044497),i)
962
												leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -0.919174194, -0.390861511, 1, 3.0361619e-08, 1.7218926e-07, -5.9800719e-08, 0.984807491, 0.173648387, -1.64301042e-07, -0.173648387, 0.984807491),i)
963
												rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.967840195, -0.420351028, 1, 0, 0, 0, 0.984807491, 0.173648387, 0, -0.173648387, 0.984807491),i)
964
												humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.866025209, -0.500000119, 0, 0.500000119, 0.866025209),i)
965
												head.C0 = head.C0:lerp(CFrame.new(0, 1.43301201, -0.249999046, 1, 0, 0, 0, 0.866024971, 0.500000238, 0, -0.500000238, 0.866024971),i)
966
												heartbeat:wait()
967
											end
968
										end
969
										climbingg:destroy()
970
										cannnnn = true
971
										cananimate = true
972
									end
973
								end
974
							end
975
							spawn(smaller)
976
							for i = 0,0.4 , 0.025 do
977
								if not cananimate and not gotin then
978
									rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.992403984, -0.0868244171, 1, 0, 0, 0, -0.98480767, -0.173648283, 0, 0.173648298, -0.98480773),i)
979
									leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.116977692, -0.321393967, 1, 0, 0, 0, 0.766044259, -0.642787695, 0, 0.642787755, 0.766044319),i)
980
									leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.9396925, 0.342020035, 1, 0, 1.74845553e-07, -5.98007333e-08, 0.939692497, 0.342020333, -1.64301071e-07, -0.342020363, 0.939692557),i)
981
									rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.954449654, -0.603649139, 1, 0, 0, 0, 0.99999994, 1.7881392e-07, 0, -1.78813934e-07, 1),i)
982
									humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
983
									head.C0 = head.C0:lerp(CFrame.new(0, 1.43301296, 0.25, 1, 0, 0, 0, 0.866025388, -0.5, 0, 0.5, 0.866025388),i)
984
									heartbeat:wait()
985
								end
986
							end
987
						end
988
					end
989
				end
990
				thing.Touched:connect(bounceup)
991
			end
992
		else
993
			if owner.Character.Head:findFirstChild("goup") then
994
				owner.Character.Head:findFirstChild("goup"):destroy()
995
			end
996
			canplayjump = true
997
			jumping = false
998
		end
999
	end
1000
end
1001
spawn(checkjump)
1002
function finish(character)
1003
	if not character:findFirstChild("UpperTorso") and character:findFirstChildOfClass("Humanoid").Health > 0 then
1004
		local whatfinisher = math.random(1,2)
1005
		cananimate = false
1006
		cando = false
1007
		humanoidofowner.WalkSpeed = 0
1008
		humanoidofowner.JumpPower = 0
1009
		for i,v in pairs(character:GetChildren()) do
1010
			if v.ClassName == "Script" or v.ClassName == "LocalScript" then
1011
				v.Disabled = true
1012
			end
1013
		end
1014
		if whatfinisher == 1 and character:findFirstChild("Left Arm") and character:findFirstChild("Left Leg") and character:findFirstChild("Right Leg") then
1015
			if not character:findFirstChild("HumanoidRootPart") then
1016
				local fakeroot = Instance.new("Part", character)
1017
				fakeroot.Size = Vector3.new(2,2,1)
1018
				fakeroot.Name = "HumanoidRootPart"
1019
				fakeroot.Transparency = 1
1020
				fakeroot.CFrame = character.Torso.CFrame
1021
				fakeroot:BreakJoints()
1022
			end
1023
			local rightarmm = Instance.new("Weld", character.Torso)
1024
			rightarmm.Part0 = character.Torso
1025
			rightarmm.Part1 = character["Right Arm"]
1026
			rightarmm.C0 = CFrame.new(1.5,0,0)
1027
			rightarmm.Name = "RightArmWeld"
1028
			local rightlegg = Instance.new("Weld", character.Torso)
1029
			rightlegg.Part0 = character.Torso
1030
			rightlegg.Part1 = character["Right Leg"]
1031
			rightlegg.C0 = CFrame.new(0.5,-2,0)
1032
			rightlegg.Name = "RightLegWeld"
1033
			local leftlegg = Instance.new("Weld", character.Torso)
1034
			leftlegg.Part0 = character.Torso
1035
			leftlegg.Part1 = character["Left Leg"]
1036
			leftlegg.C0 = CFrame.new(-0.5,-2,0)
1037
			leftlegg.Name = "LeftLegWeld"
1038
			local headd = Instance.new("Weld", character.Torso)
1039
			headd.Part0 = character.Torso
1040
			headd.Part1 = character.Head
1041
			headd.C0 = CFrame.new(0,1.5,0)
1042
			headd.Name = "HeadWeld"
1043
			local humanoidrootpartt = Instance.new("Weld", character.HumanoidRootPart)
1044
			humanoidrootpartt.Part0 = character.HumanoidRootPart
1045
			humanoidrootpartt.Part1 = character.Torso
1046
			humanoidrootpartt.Name = "HumanoidRootPartWeld"
1047
			character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
1048
			character:findFirstChildOfClass("Humanoid").JumpPower = 0
1049
			for i = 0,1 , 0.08 do
1050
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(-0.347203255, 0.913836479, -0.716785431, 0.766044378, 0.642787516, 0, 0.321393788, -0.383022249, -0.866025329, -0.556670368, 0.663413942, -0.50000006),i)
1051
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.821393967, -0.383022308, 0.99999994, 0, 0, 0, -0.642787457, -0.766044497, 0, 0.766044557, -0.642787516),i)
1052
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
1053
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
1054
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
1055
				head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
1056
				rightarmm.C0 = rightarmm.C0:lerp(CFrame.new(1.5, 0.933005095, -0.25, 1, -0, 0, 0, -0.866018534, -0.499996036, 0, 0.5, -0.866025388),i)
1057
				cananimate = false
1058
				cando = false
1059
				heartbeat:wait()
1060
			end
1061
			swoosh:Play()
1062
			for i = 0,1 , 0.08 do
1063
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(-0.0860614777, -0.0532417297, -0.650289536, 0.379258692, 0.842225015, 0.383170784, 0.166806862, 0.345090806, -0.923627436, -0.910130858, 0.414209276, -0.00961020589),i)
1064
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.00136232376, -0.198532104, 1, 0, 0, 0, 0.890729427, -0.454533815, 0, 0.454533845, 0.890729487),i)
1065
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
1066
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
1067
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.766044438, 0, 0.642787576, 0, 0.999992132, 0, -0.642787576, 0, 0.766044438),i)
1068
				head.C0 = head.C0:lerp(CFrame.new(0, 1.49065351, -0.0962247849, 1, 0, 0, 0, 0.981306791, 0.192449972, 0, -0.192449972, 0.981306791),i)
1069
				--
1070
				cananimate = false
1071
				cando = false
1072
				rightarmm.C0 = rightarmm.C0:lerp(CFrame.new(1.5,0,0),i)
1073
				humanoidrootpartt.C0 = humanoidrootpartt.C0:lerp(CFrame.new(0,0.5,0),i)
1074
				heartbeat:wait()
1075
			end
1076
			for i = 0,1 , 0.04 do
1077
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.1859808, -0.054599762, -1.11998844, 0.992945373, 0.116977721, -0.0193826258, -0.103294089, 0.773099244, -0.625817776, -0.0582219958, 0.623405039, 0.779728591),i)
1078
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.554852486, -0.182450294, -1.34047794, 0.642787635, -0.492403775, -0.586824059, -0.262002528, 0.578531981, -0.772434652, 0.719846308, 0.650260985, 0.242862105),i)
1079
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.64278793, 0.766043663, 1, 0, 0, 0, 0.642787457, 0.766044438, 0, -0.766044497, 0.642787516),i)
1080
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(1.10000038, -0.826352119, -0.984807968, 1, 0, 0, 0, 0.98480773, -0.173648149, 0, 0.173648149, 0.984807789),i)
1081
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.642787635, -0.766044438, 0, 0.766044438, 0.642787635),i)
1082
				head.C0 = head.C0:lerp(CFrame.new(0, 1.32139444, -0.383022308, 1, 0, 0, 0, 0.642787635, 0.766044438, 0, -0.766044438, 0.642787635),i)
1083
				--
1084
				leftlegg.C0 = leftlegg.C0:lerp(CFrame.new(-0.5, -1.49999237, -0.866015434, 0.999999762, -8.58400284e-08, -2.98023224e-08, 0, 0.499995828, -0.866025329, -7.4505806e-08, 0.866018713, 0.499999791),i)
1085
				rightarmm.C0 = rightarmm.C0:lerp(CFrame.new(1.5, 0.749998093, 0.43300724, 0.999999702, 7.43086304e-08, 2.98023224e-08, -2.98023224e-08, -0.499996036, 0.866025269, -7.4505806e-08, -0.866018593, -0.50000006),i)
1086
				humanoidrootpartt.C0 = humanoidrootpartt.C0:lerp(CFrame.new(0.367198944, -0.246408224, 0.930528641, -0.342020124, -0.813797832, 0.469845951, -1.78812527e-07, 0.499995708, 0.866018772, -0.939692497, 0.29619813, -0.171010032),i)
1087
				rightlegg.C0 = rightlegg.C0:lerp(CFrame.new(0.5, -1.49999428, -0.866015434, 0.999999762, -9.0885095e-08, -2.98023224e-08, 0, 0.499995947, -0.866025329, -7.4505806e-08, 0.866018653, 0.49999994),i)
1088
				heartbeat:wait()
1089
			end
1090
			kickhit:Play()
1091
			for i = 0,0.8 , 0.06 do
1092
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.61715126, -0.19429493, -0.389017105, 0.992945373, 0.116552323, 0.0217949748, -0.103294089, 0.940518022, -0.323660791, -0.0582220107, 0.319126159, 0.945922256),i)
1093
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.50154877, 0.246703148, -0.416801453, 0.999303818, 0.00836935267, -0.0363574326, -0.0330905914, 0.648926377, -0.760131419, 0.0172314793, 0.76080519, 0.648751557),i)
1094
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.91925335, 0.771346092, 1, -1.77635684e-15, 3.55271368e-15, 5.26663487e-16, 0.766044199, 0.642787814, 0, -0.642787874, 0.766044319),i)
1095
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(1.10000038, -1.60939121, -1.50965118, 1, -3.55271368e-15, -1.77635684e-15, 1.31103537e-15, 0.653455138, -0.75696516, -3.5527141e-15, 0.75696522, 0.653455257),i)
1096
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0.128557444, -0.153208733, 1, 0, 0, 0, 0.766044497, -0.642787635, 0, 0.642787635, 0.766044497) * CFrame.fromEulerAnglesXYZ(-0.4,0,0),i)
1097
				head.C0 = head.C0:lerp(CFrame.new(0, 1.32139444, -0.383022308, 1, 0, 0, 0, 0.642787635, 0.766044438, 0, -0.766044438, 0.642787635),i)
1098
				--
1099
				headd.C0 = headd.C0:lerp(CFrame.new(-0.311040878, 1.39147186, -1.00135803e-05, 0.782955527, -0.622077763, 7.86021985e-08, 0.622077823, 0.782955468, 6.79979621e-06, -4.29154261e-06, -5.27504062e-06, 1),i)
1100
				leftlegg.C0 = leftlegg.C0:lerp(CFrame.new(-0.5, -1.49999237, -0.866015434, 0.999999762, -8.58400284e-08, -2.98023224e-08, 0, 0.499995828, -0.866025329, -7.4505806e-08, 0.866018713, 0.499999791),i)
1101
				rightarmm.C0 = rightarmm.C0:lerp(CFrame.new(1.5, 0.749998093, 0.43300724, 0.999999702, 7.43086304e-08, 2.98023224e-08, -2.98023224e-08, -0.499996036, 0.866025269, -7.4505806e-08, -0.866018593, -0.50000006),i)
1102
				humanoidrootpartt.C0 = humanoidrootpartt.C0:lerp(CFrame.new(0.367198944, -0.246408224, 0.930528641, -0.342020124, -0.813797832, 0.469845951, -1.78812527e-07, 0.499995708, 0.866018772, -0.939692497, 0.29619813, -0.171010032),i)
1103
				rightlegg.C0 = rightlegg.C0:lerp(CFrame.new(0.5, -1.49999428, -0.866015434, 0.999999762, -9.0885095e-08, -2.98023224e-08, 0, 0.499995947, -0.866025329, -7.4505806e-08, 0.866018653, 0.49999994),i)
1104
				heartbeat:wait()
1105
			end
1106
			if character:findFirstChild("Torso") then
1107
				for i,v in pairs(character.Torso:GetChildren()) do
1108
					if v.ClassName == "Weld" or v.ClassName == "Motor6D" then
1109
						v:destroy()
1110
					end
1111
				end
1112
			end
1113
			local vel = Instance.new("BodyVelocity", character:findFirstChild("Torso"))
1114
			vel.MaxForce = Vector3.new(math.huge,0,math.huge)
1115
			vel.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 10
1116
			local function spawned()
1117
				ragdollkill(character)
1118
			end
1119
			spawn(spawned)
1120
		elseif whatfinisher == 2 and character:findFirstChild("Left Arm") and character:findFirstChild("Left Leg") and character:findFirstChild("Right Leg") then
1121
			if not character:findFirstChild("HumanoidRootPart") then
1122
				local fakeroot = Instance.new("Part", character)
1123
				fakeroot.Size = Vector3.new(2,2,1)
1124
				fakeroot.Name = "HumanoidRootPart"
1125
				fakeroot.Transparency = 1
1126
				fakeroot.CFrame = character.Torso.CFrame
1127
				fakeroot:BreakJoints()
1128
			end
1129
			local rightarmm = Instance.new("Weld", character.Torso)
1130
			rightarmm.Part0 = character.Torso
1131
			rightarmm.Part1 = character["Right Arm"]
1132
			rightarmm.C0 = CFrame.new(1.5,0,0)
1133
			rightarmm.Name = "RightArmWeld"
1134
			local rightlegg = Instance.new("Weld", character.Torso)
1135
			rightlegg.Part0 = character.Torso
1136
			rightlegg.Part1 = character["Right Leg"]
1137
			rightlegg.C0 = CFrame.new(0.5,-2,0)
1138
			rightlegg.Name = "RightLegWeld"
1139
			local leftlegg = Instance.new("Weld", character.Torso)
1140
			leftlegg.Part0 = character.Torso
1141
			leftlegg.Part1 = character["Left Leg"]
1142
			leftlegg.C0 = CFrame.new(-0.5,-2,0)
1143
			leftlegg.Name = "LeftLegWeld"
1144
			local headd = Instance.new("Weld", character.Torso)
1145
			headd.Part0 = character.Torso
1146
			headd.Part1 = character.Head
1147
			headd.C0 = CFrame.new(0,1.5,0)
1148
			headd.Name = "HeadWeld"
1149
			local leftarmm = Instance.new("Weld", character.Torso)
1150
			leftarmm.Part0 = character.Torso
1151
			leftarmm.Part1 = character["Left Arm"]
1152
			leftarmm.C0 = CFrame.new(-1.5,0,0)
1153
			leftarmm.Name = "LeftArmWeld"
1154
			local humanoidrootpartt = Instance.new("Weld", character.HumanoidRootPart)
1155
			humanoidrootpartt.Part0 = character.HumanoidRootPart
1156
			humanoidrootpartt.Part1 = character.Torso
1157
			humanoidrootpartt.Name = "HumanoidRootPartWeld"
1158
			character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
1159
			character:findFirstChildOfClass("Humanoid").JumpPower = 0
1160
			for i = 0,1 , 0.08 do
1161
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(-0.347203255, 0.913836479, -0.716785431, 0.766044378, 0.642787516, 0, 0.321393788, -0.383022249, -0.866025329, -0.556670368, 0.663413942, -0.50000006),i)
1162
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.821393967, -0.383022308, 0.99999994, 0, 0, 0, -0.642787457, -0.766044497, 0, 0.766044557, -0.642787516),i)
1163
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
1164
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
1165
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
1166
				head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
1167
				rightarmm.C0 = rightarmm.C0:lerp(CFrame.new(1.5, 0.933005095, -0.25, 1, -0, 0, 0, -0.866018534, -0.499996036, 0, 0.5, -0.866025388),i)
1168
				cananimate = false
1169
				cando = false
1170
				heartbeat:wait()
1171
			end
1172
			swoosh:Play()
1173
			for i = 0,1 , 0.08 do
1174
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(-0.0860614777, -0.0532417297, -0.650289536, 0.379258692, 0.842225015, 0.383170784, 0.166806862, 0.345090806, -0.923627436, -0.910130858, 0.414209276, -0.00961020589),i)
1175
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.00136232376, -0.198532104, 1, 0, 0, 0, 0.890729427, -0.454533815, 0, 0.454533845, 0.890729487),i)
1176
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
1177
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
1178
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.766044438, 0, 0.642787576, 0, 0.999992132, 0, -0.642787576, 0, 0.766044438),i)
1179
				head.C0 = head.C0:lerp(CFrame.new(0, 1.49065351, -0.0962247849, 1, 0, 0, 0, 0.981306791, 0.192449972, 0, -0.192449972, 0.981306791),i)
1180
				--
1181
				cananimate = false
1182
				cando = false
1183
				rightarmm.C0 = rightarmm.C0:lerp(CFrame.new(1.5,0,0),i)
1184
				humanoidrootpartt.C0 = humanoidrootpartt.C0:lerp(CFrame.new(0,0.5,0),i)
1185
				heartbeat:wait()
1186
			end
1187
			--zium
1188
			for i = 0,0.8 , 0.06 do
1189
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.4773941, 0.333595514, -0.662953377, -0.102069035, 0.060344018, -0.992945373, -0.994496286, 0.0175344925, 0.103294067, 0.0236439742, 0.998023689, 0.0582221746),i)
1190
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.0886116028, 0.633853912, -1.34011459, 0.642787635, -0.719846368, -0.262002528, -0.262002468, 0.11480581, -0.958214104, 0.719846308, 0.684573472, -0.114805803),i)
1191
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-2,0),i)
1192
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-2,0),i)
1193
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
1194
				head.C0 = head.C0:lerp(CFrame.new(0, 1.49240375, -0.0868234634, 1, 0, 0, 0, 0.98480773, 0.173648149, 0, -0.173648149, 0.98480773),i)
1195
				--
1196
				leftarmm.C0 = leftarmm.C0:lerp(CFrame.new(-1.5, 0.586824417, -0.492403984, 1, 0, 8.8817842e-16, 0, -0.173648149, -0.984807551, -1.33050135e-16, 0.984807611, -0.173648164),i)
1197
				headd.C0 = headd.C0:lerp(CFrame.new(0, 1.46984577, -0.171010256, 1, 0, 0, 0, 0.939692438, 0.342020303, -1.33050135e-16, -0.342020303, 0.939692438),i)
1198
				leftlegg.C0 = leftlegg.C0:lerp(CFrame.new(-0.5, -1.5, 0.866025209, 1, 0, 0, 0, 0.5, 0.86602509, -1.33050135e-16, -0.86602515, 0.50000006),i)
1199
				rightarmm.C0 = rightarmm.C0:lerp(CFrame.new(1.5, 0.75, 0.433012247, 0.99999994, -4.4408921e-16, 0, 0, -0.50000006, 0.86602515, -1.33050082e-16, -0.866025209, -0.500000119),i)
1200
				humanoidrootpartt.C0 = humanoidrootpartt.C0:lerp(CFrame.new(0, 0, 0.799999237, 1.19248806e-08, -0.99999994, 4.47034836e-08, 0, 4.47034836e-08, 0.99999994, -1, -1.19248798e-08, 6.66133815e-16),i)
1201
				rightlegg.C0 = rightlegg.C0:lerp(CFrame.new(0.5, -1.64278698, -0.766044378, 0.99999994, 0, 0, 0, 0.642787397, -0.766044319, -1.33050082e-16, 0.766044378, 0.642787457),i)
1202
				heartbeat:wait()
1203
			end
1204
			character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame * CFrame.fromEulerAnglesXYZ(0,0,1)
1205
			if character:findFirstChild("Torso") then
1206
				for i,v in pairs(character.Torso:GetChildren()) do
1207
					if v.ClassName == "Weld" or v.ClassName == "Motor6D" then
1208
						v:destroy()
1209
					end
1210
				end
1211
			end
1212
			local function spawned()
1213
				ragdollkill(character)
1214
			end
1215
			spawn(spawned)
1216
		end
1217
		cananimate = true
1218
		cando = true
1219
		humanoidofowner.WalkSpeed = 25
1220
		humanoidofowner.JumpPower = 50
1221
	else
1222
		ragdollkill(character)
1223
	end
1224
end
1225
function ragdollkill(character)
1226
	local victimshumanoid = character:findFirstChildOfClass("Humanoid")
1227
	if not character:findFirstChild("UpperTorso") then
1228
		character.Archivable = true
1229
		for i,v in pairs(character:GetChildren()) do
1230
			if v.ClassName == "Sound" then
1231
				v:remove()
1232
			end
1233
			for q,w in pairs(v:GetChildren()) do
1234
				if w.ClassName == "Sound" then
1235
					w:remove()
1236
				end
1237
			end
1238
		end
1239
		local ragdoll = character:Clone()
1240
		ragdoll:findFirstChildOfClass("Humanoid").Health = 0
1241
		if ragdoll:findFirstChild("Health") then
1242
			if ragdoll:findFirstChild("Health").ClassName == "Script" then
1243
				ragdoll:findFirstChild("Health").Disabled = true
1244
			end
1245
		end
1246
		for i,v in pairs(character:GetChildren()) do
1247
			if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
1248
				v:destroy()
1249
			end
1250
		end
1251
		for i,v in pairs(character:GetChildren()) do
1252
			if v.ClassName == "Accessory" then
1253
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
1254
				if attachment1 then
1255
					for q,w in pairs(character:GetChildren()) do
1256
						if w.ClassName == "Part" then
1257
							local attachment2 = w:findFirstChild(attachment1.Name)
1258
							if attachment2 then
1259
								local hinge = Instance.new("HingeConstraint", v.Handle)
1260
								hinge.Attachment0 = attachment1
1261
								hinge.Attachment1 = attachment2
1262
								hinge.LimitsEnabled = true
1263
								hinge.LowerAngle = 0
1264
								hinge.UpperAngle = 0
1265
							end
1266
						end
1267
					end
1268
				end
1269
			end
1270
		end
1271
		ragdoll.Parent = workspace
1272
		if ragdoll:findFirstChild("Right Arm") then
1273
			local glue = Instance.new("Glue", ragdoll.Torso)
1274
			glue.Part0 = ragdoll.Torso
1275
			glue.Part1 = ragdoll:findFirstChild("Right Arm")
1276
			glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1277
			glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1278
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
1279
			limbcollider.Size = Vector3.new(1.4,1,1)
1280
			limbcollider.Shape = "Cylinder"
1281
			limbcollider.Transparency = 1
1282
			limbcollider.Name = "LimbCollider"
1283
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1284
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
1285
			limbcolliderweld.Part1 = limbcollider
1286
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
1287
		end
1288
		if ragdoll:findFirstChild("Left Arm") then
1289
			local glue = Instance.new("Glue", ragdoll.Torso)
1290
			glue.Part0 = ragdoll.Torso
1291
			glue.Part1 = ragdoll:findFirstChild("Left Arm")
1292
			glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1293
			glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1294
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
1295
			limbcollider.Size = Vector3.new(1.4,1,1)
1296
			limbcollider.Shape = "Cylinder"
1297
			limbcollider.Name = "LimbCollider"
1298
			limbcollider.Transparency = 1
1299
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1300
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
1301
			limbcolliderweld.Part1 = limbcollider
1302
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
1303
		end
1304
		if ragdoll:findFirstChild("Left Leg") then
1305
			local glue = Instance.new("Glue", ragdoll.Torso)
1306
			glue.Part0 = ragdoll.Torso
1307
			glue.Part1 = ragdoll:findFirstChild("Left Leg")
1308
			glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1309
			glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1310
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
1311
			limbcollider.Size = Vector3.new(1.4,1,1)
1312
			limbcollider.Shape = "Cylinder"
1313
			limbcollider.Name = "LimbCollider"
1314
			limbcollider.Transparency = 1
1315
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1316
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
1317
			limbcolliderweld.Part1 = limbcollider
1318
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
1319
		end
1320
		if ragdoll:findFirstChild("Right Leg") then
1321
			local glue = Instance.new("Glue", ragdoll.Torso)
1322
			glue.Part0 = ragdoll.Torso
1323
			glue.Part1 = ragdoll:findFirstChild("Right Leg")
1324
			glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1325
			glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1326
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
1327
			limbcollider.Size = Vector3.new(1.4,1,1)
1328
			limbcollider.Shape = "Cylinder"
1329
			limbcollider.Name = "LimbCollider"
1330
			limbcollider.Transparency = 1
1331
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1332
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
1333
			limbcolliderweld.Part1 = limbcollider
1334
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
1335
		end
1336
		if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
1337
			local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
1338
			HeadAttachment.Position = Vector3.new(0, -0.5, 0)
1339
			local connection = Instance.new('HingeConstraint', ragdoll["Head"])
1340
			connection.LimitsEnabled = true
1341
			connection.Attachment0 = ragdoll.Torso.NeckAttachment
1342
			connection.Attachment1 = HeadAttachment
1343
			connection.UpperAngle = 60
1344
			connection.LowerAngle = -60
1345
		elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
1346
			local hedweld = Instance.new("Weld", ragdoll.Torso)
1347
			hedweld.Part0 = ragdoll.Torso
1348
			hedweld.Part1 = ragdoll.Head
1349
			hedweld.C0 = CFrame.new(0,1.5,0)
1350
		end
1351
		game.Debris:AddItem(ragdoll, 30)
1352
		local function doremove()
1353
			wait(0.3)
1354
			for q,w in pairs(ragdoll:GetChildren()) do
1355
				if w.ClassName == "BodyVelocity" then
1356
					w:destroy()
1357
				end
1358
				for e,r in pairs(w:GetChildren()) do
1359
					if r.ClassName == "BodyVelocity" then
1360
						r:destroy()
1361
					end
1362
				end
1363
			end
1364
		end
1365
		spawn(doremove)
1366
		wait(1)
1367
		if ragdoll:findFirstChildOfClass("Humanoid") then
1368
			ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
1369
		end
1370
		if ragdoll:findFirstChild("HumanoidRootPart") then
1371
			ragdoll:findFirstChild("HumanoidRootPart"):destroy()
1372
		end
1373
	elseif character:findFirstChild("UpperTorso") then
1374
		character.Archivable = true
1375
		for i,v in pairs(character:GetChildren()) do
1376
			if v.ClassName == "Sound" then
1377
				v:remove()
1378
			end
1379
			for q,w in pairs(v:GetChildren()) do
1380
				if w.ClassName == "Sound" then
1381
					w:remove()
1382
				end
1383
			end
1384
		end
1385
		local ragdoll = character:Clone()
1386
		ragdoll:findFirstChildOfClass("Humanoid").Health = 0
1387
		if ragdoll:findFirstChild("Health") then
1388
			if ragdoll:findFirstChild("Health").ClassName == "Script" then
1389
				ragdoll:findFirstChild("Health").Disabled = true
1390
			end
1391
		end
1392
		for i,v in pairs(character:GetChildren()) do
1393
			if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
1394
				v:destroy()
1395
			end
1396
		end
1397
		for i,v in pairs(character:GetChildren()) do
1398
			if v.ClassName == "Accessory" then
1399
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
1400
				if attachment1 then
1401
					for q,w in pairs(character:GetChildren()) do
1402
						if w.ClassName == "Part" or w.ClassName == "MeshPart" then
1403
							local attachment2 = w:findFirstChild(attachment1.Name)
1404
							if attachment2 then
1405
								local hinge = Instance.new("HingeConstraint", v.Handle)
1406
								hinge.Attachment0 = attachment1
1407
								hinge.Attachment1 = attachment2
1408
								hinge.LimitsEnabled = true
1409
								hinge.LowerAngle = 0
1410
								hinge.UpperAngle = 0
1411
							end
1412
						end
1413
					end
1414
				end
1415
			end
1416
		end
1417
		ragdoll.Parent = workspace
1418
		local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
1419
		Humanoid.PlatformStand = true
1420
		local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
1421
			local connection = Instance.new('BallSocketConstraint', limb)
1422
			connection.LimitsEnabled = true
1423
			connection.Attachment0 = attachementone
1424
			connection.Attachment1 = attachmenttwo
1425
			connection.TwistLimitsEnabled = true
1426
			connection.TwistLowerAngle = twistlower
1427
			connection.TwistUpperAngle = twistupper
1428
			local limbcollider = Instance.new("Part", limb)
1429
			limbcollider.Size = Vector3.new(0.1,1,1)
1430
			limbcollider.Shape = "Cylinder"
1431
			limbcollider.Transparency = 1
1432
			limbcollider:BreakJoints()
1433
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1434
			limbcolliderweld.Part0 = limb
1435
			limbcolliderweld.Part1 = limbcollider
1436
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
1437
		end
1438
		local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
1439
			local connection = Instance.new('HingeConstraint', limb)
1440
			connection.LimitsEnabled = true
1441
			connection.Attachment0 = attachementone
1442
			connection.Attachment1 = attachmenttwo
1443
			connection.LimitsEnabled = true
1444
			connection.LowerAngle = lower
1445
			connection.UpperAngle = upper
1446
			local limbcollider = Instance.new("Part", limb)
1447
			limbcollider.Size = Vector3.new(0.1,1,1)
1448
			limbcollider.Shape = "Cylinder"
1449
			limbcollider.Transparency = 1
1450
			limbcollider:BreakJoints()
1451
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1452
			limbcolliderweld.Part0 = limb
1453
			limbcolliderweld.Part1 = limbcollider
1454
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
1455
		end
1456
		local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
1457
		HeadAttachment.Position = Vector3.new(0, -0.5, 0)
1458
		makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
1459
		makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
1460
		makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
1461
		makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
1462
		makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
1463
		--
1464
		makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
1465
		makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
1466
		makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
1467
		--
1468
		makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
1469
		makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
1470
		makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
1471
		--
1472
		makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
1473
		makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
1474
		makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
1475
		for i,v in pairs(Humanoid.Parent:GetChildren()) do
1476
			if v.ClassName == "Accessory" then
1477
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
1478
				if attachment1 then
1479
					for q,w in pairs(Humanoid.Parent:GetChildren()) do
1480
						if w.ClassName == "Part" then
1481
							local attachment2 = w:findFirstChild(attachment1.Name)
1482
							if attachment2 then
1483
								local hinge = Instance.new("HingeConstraint", v.Handle)
1484
								hinge.Attachment0 = attachment1
1485
								hinge.Attachment1 = attachment2
1486
								hinge.LimitsEnabled = true
1487
								hinge.LowerAngle = 0
1488
								hinge.UpperAngle = 0
1489
							end
1490
						end
1491
					end
1492
				end
1493
			end
1494
		end
1495
		for i,v in pairs(ragdoll:GetChildren()) do
1496
			for q,w in pairs(v:GetChildren()) do
1497
				if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
1498
					w:destroy()
1499
				end
1500
			end
1501
		end
1502
		if ragdoll:findFirstChild("HumanoidRootPart") then
1503
			ragdoll.HumanoidRootPart.Anchored = true
1504
			ragdoll.HumanoidRootPart.CanCollide = false
1505
		end
1506
		if ragdoll:findFirstChildOfClass("Humanoid") then
1507
			ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
1508
		end
1509
		local function doremove()
1510
			wait(0.3)
1511
			if ragdoll:findFirstChild("HumanoidRootPart") then
1512
				ragdoll.HumanoidRootPart.Anchored = true
1513
				ragdoll.HumanoidRootPart.CanCollide = false
1514
			end
1515
			for q,w in pairs(ragdoll:GetChildren()) do
1516
				if w.ClassName == "BodyVelocity" then
1517
					w:destroy()
1518
				end
1519
				for e,r in pairs(w:GetChildren()) do
1520
					if r.ClassName == "BodyVelocity" then
1521
						r:destroy()
1522
					end
1523
				end
1524
			end
1525
		end
1526
		spawn(doremove)
1527
		game.Debris:AddItem(ragdoll, 30)
1528
	end
1529
end
1530
while game:GetService("RunService").Heartbeat:wait() do
1531
	if cananimate then
1532
		if waitforbounce > 0 then
1533
			waitforbounce = waitforbounce - 1
1534
		end
1535
	end
1536
	if jumping then
1537
		for i = 0,0.6 , 0.09 do
1538
			if jumping and cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
1539
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.328983307, 0.469837666, 1, 0, 0, 0, 0.342022061, 0.939691961, 0, -0.93969202, 0.342022061),i)
1540
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.586815834, -0.492397785, 1, 0, 0, 0, -0.173650756, -0.984807312, 0, 0.984807312, -0.173650786),i)
1541
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.34200048, 0.939681053, 1, 0, 0, 0, 0.342022181, 0.939691961, 0, -0.939691901, 0.34202221),i)
1542
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.34199452, -0.939673424, 1, 0, 0, 0, 0.34201777, -0.93969357, 0, 0.939693511, 0.34201777),i)
1543
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 2.98025861e-06, 0, -2.98025907e-06, 1),i)
1544
				head.C0 = head.C0:lerp(CFrame.new(0, 1.49997473, -4.29153442e-06, 1, 0, 0, 0, 1, 2.98025861e-06, 0, -2.98025907e-06, 1),i)
1545
				game:GetService("RunService").Heartbeat:wait()
1546
			end
1547
		end
1548
	end
1549
	if running and not jumping and cananimate then
1550
		local rarmc0 = rightarm.C0
1551
		local larmc0 = leftarm.C0
1552
		local llegc0 = leftleg.C0
1553
		local rlegc0 = rightleg.C0
1554
		local humrootc0 = humanoidrootpart.C0
1555
		local headc0 = head.C0
1556
		for i = 0,1 , 0.16 do
1557
			if running and not jumping and cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
1558
				rightarm.C0 = rarmc0:lerp(CFrame.new(1.68157005, 0.0485486984, 0.884954453, 0.98480773, -0.171010077, 0.0301536564, 0.0593911707, 0.494882554, 0.866927743, -0.163175955, -0.851966381, 0.497520655),i)
1559
				leftarm.C0 = larmc0:lerp(CFrame.new(-1.5, 0.671010017, -0.469846725, 1, 0, 0, 0, -0.342020094, -0.939692557, 0, 0.939692616, -0.342020124),i)
1560
				leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.34202051, 0.939691544, 1, 3.55271368e-15, 0, -7.10542736e-15, 0.342020154, 0.939692616, 1.77635705e-15, -0.939692616, 0.342020154),i)
1561
				rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -1.04278755, -1.56604576, 1, 0, 0, 0, 0.642787635, -0.766044319, 0, 0.766044378, 0.642787755),i)
1562
				humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0.18793869, -0.068403244, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.4,0),i)
1563
				head.C0 = headc0:lerp(CFrame.new(0, 1.46984625, 0.171009064, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
1564
				game:GetService("RunService").Heartbeat:wait()
1565
			end
1566
		end
1567
		local rarmc0 = rightarm.C0
1568
		local larmc0 = leftarm.C0
1569
		local llegc0 = leftleg.C0
1570
		local rlegc0 = rightleg.C0
1571
		local humrootc0 = humanoidrootpart.C0
1572
		local headc0 = head.C0
1573
		for i = 0,1 , 0.16 do
1574
			if running and not jumping and cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
1575
				rightarm.C0 = rarmc0:lerp(CFrame.new(1.56195927, -0.0699324608, 0.119949341, 0.98480773, -0.0868241489, 0.1503838, 0.0593911782, 0.982209623, 0.17814827, -0.163175985, -0.166510344, 0.972444296),i)
1576
				leftarm.C0 = larmc0:lerp(CFrame.new(-1.51513863, -0.129981518, -0.155303955, 0.998369873, 0.0540187061, 0.0184263606, -0.0462776423, 0.955111921, -0.292607933, -0.0334055424, 0.291278243, 0.956054926),i)
1577
				leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -0.863191605, -0.37587738, 1, 3.55271368e-15, 0, -7.10542736e-15, 0.342020154, 0.939692616, 1.77635705e-15, -0.939692616, 0.342020154),i)
1578
				rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -2.06334591, 0.204090118, 1, 8.8817842e-16, 0, -8.8817842e-16, 0.98480767, 0.173648238, 0, -0.173648268, 0.98480773),i)
1579
				humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.4,0),i)
1580
				head.C0 = headc0:lerp(CFrame.new(0, 1.46984673, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
1581
				game:GetService("RunService").Heartbeat:wait()
1582
			end
1583
		end
1584
		footstep:Play()
1585
		local rarmc0 = rightarm.C0
1586
		local larmc0 = leftarm.C0
1587
		local llegc0 = leftleg.C0
1588
		local rlegc0 = rightleg.C0
1589
		local humrootc0 = humanoidrootpart.C0
1590
		local headc0 = head.C0
1591
		for i = 0,1 , 0.16 do
1592
			if running and not jumping and cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
1593
				rightarm.C0 = rarmc0:lerp(CFrame.new(1.5, 0.671010017, -0.469846725, 1, 0, 0, 0, -0.342020035, -0.939692616, 0, 0.939692676, -0.342020065),i)
1594
				leftarm.C0 = larmc0:lerp(CFrame.new(-1.48023987, -0.0610394478, 0.792190552, 0.998369932, -0.0087661799, 0.0563976094, -0.0462775454, 0.454015464, 0.889791071, -0.033405453, -0.890950739, 0.452869713),i)
1595
				leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.26786566, -1.64663887, 1, 0, 0, 0, 0.642787933, -0.76604414, 0, 0.76604414, 0.642787993),i)
1596
				rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -1.42055845, 0.970134735, 1, 0, 0, 3.55271368e-15, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154),i)
1597
				humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0.18793869, -0.068403244, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.4,0),i)
1598
				head.C0 = headc0:lerp(CFrame.new(0, 1.46984673, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
1599
				game:GetService("RunService").Heartbeat:wait()
1600
			end
1601
		end
1602
		local rarmc0 = rightarm.C0
1603
		local larmc0 = leftarm.C0
1604
		local llegc0 = leftleg.C0
1605
		local rlegc0 = rightleg.C0
1606
		local humrootc0 = humanoidrootpart.C0
1607
		local headc0 = head.C0
1608
		for i = 0,1 , 0.16 do
1609
			if running and not jumping and cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
1610
				rightarm.C0 = rarmc0:lerp(CFrame.new(1.54040813, 0.09547472, 0.0500869751, 0.984807611, -0.0593915023, 0.163176641, 0.059391439, 0.998222768, 0.00488311052, -0.163176671, 0.00488239527, 0.986584723),i)
1611
				leftarm.C0 = larmc0:lerp(CFrame.new(-1.49622726, 0.0558686256, 0.152441025, 0.998369813, 0.0444596186, 0.03579133, -0.0462785624, 0.99758935, 0.0517075658, -0.0334061533, -0.0532796681, 0.998020709),i)
1612
				leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.93537951, 0.411506653, 1, 0, 0, 0, 0.939692199, 0.342021108, 0, -0.342021137, 0.939692259),i)
1613
				rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -0.941730499, -0.345434189, 1, 0, 0, 3.55271368e-15, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154),i)
1614
				humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.4,0),i)
1615
				head.C0 = headc0:lerp(CFrame.new(0, 1.46984625, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i)
1616
				game:GetService("RunService").Heartbeat:wait()
1617
			end
1618
		end
1619
		footstep:Play()
1620
	else
1621
		for i = 0,0.6 , 0.08 do
1622
			if not running and not jumping and cananimate and not owner.Character.HumanoidRootPart:findFirstChild("ow") then
1623
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.54167557, 0.0454807281, 1.90734863e-06, 0.99619472, -0.0871554986, 0, 0.0871554837, 0.996194661, -4.4408921e-16, 0, 0, 1),i)
1624
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.54167461, 0.0454807281, 0, 0.99619472, 0.0871554986, 0, -0.0871554837, 0.996194661, -4.4408921e-16, 0, 0, 1),i)
1625
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589057922, -2.03977203, 1.90734863e-06, 0.99619472, 0.0871554986, 0, -0.0871554837, 0.996194661, -4.4408921e-16, 0, 0, 1),i)
1626
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058876, -2.03977203, 0, 0.99619472, -0.0871554986, 0, 0.0871554837, 0.996194661, -4.4408921e-16, 0, 0, 1),i)
1627
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0, -0.173648283, 0, 1, 0, 0.173648283, 0, 0.98480773),i)
1628
				head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.98480773, 0, 0.173648283, 0, 1, 0, -0.173648283, 0, 0.98480773),i)
1629
				game:GetService("RunService").Heartbeat:wait()
1630
			end
1631-
end
1631+
1632
	end
1633
end
1634
1635
1636
1637
1638
1639
			coroutine.resume(coroutine.create(function()
1640
				for i=1,25 do
1641
					swait()
1642
					FT.Parent = Torso
1643
					FRA.Parent = RightArm
1644
					FLA.Parent = LeftArm
1645
					FRL.Parent = RightLeg
1646
					FLL.Parent = LeftLeg
1647
					Humanoid.CameraOffset = Vector3.new(math.random(-25,25)/2.5,math.random(-25,25)/2.5,math.random(-25,25)/2.5)/30
1648
					local oof = Instance.new("FlangeSoundEffect",eee)
1649
					for _,v in next, Character:GetDescendants() do
1650
						if(v:IsA'DataModelMesh')then
1651
							v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
1652
						end
1653
					end	
1654
				end
1655
				FT.Parent = nil
1656
				FRA.Parent = nil
1657
				FLA.Parent = nil
1658
				FRL.Parent = nil
1659
				FLL.Parent = nil
1660
				for _,v in next, Character:GetDescendants() do
1661
					if(v:IsA'DataModelMesh')then
1662
						v.Offset = Vector3.new(0,0,0)
1663
					end
1664
				end
1665
				eee:ClearAllChildren()
1666
				Humanoid.CameraOffset = Vector3.new(0,0,0)
1667
			end))
1668
		swait()