View difference between Paste ID: QjKQ0y4L and 7Xc16tv5
SHOW: | | - or go back to the newest paste.
1-
function lerp(weld,beglerp,endlerp,speed)
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end function lerp(weld,beglerp,endlerp,speed)
6
	weld.C0 = beglerp:lerp(endlerp,speed)
7
	return weld.C0
8
end
9
function lerp2(weld,beglerp,endlerp,speed)
10
	weld.C1 = beglerp:lerp(endlerp,speed)
11
	return weld.C1
12
end
13
local speed = 0.2
14
local angle = 0
15
local anglespeed = 1/2.5
16
action = "None"
17
on = false
18
enabled = true
19
damen = false
20
combo = 1
21
Player = game.Players.LocalPlayer
22
Char = Player.Character
23
Human = Char.Humanoid
24
mouse = Player:GetMouse()
25
Sounds = {"rbxasset://sounds/unsheath.wav", "rbxassetid://161006212", "rbxassetid://2248511", "rbxassetid://2101137", "rbxasset://sounds/icemetal3.mp3", "rbxasset://sounds/icestone.mp3", "rbxasset://sounds/icestone2.mp3", "rbxassetid://2248511","rbxassetid://157631498","rbxassetid://161006195"}
26
T = Char:findFirstChild("Torso")
27
Head = Char.Head
28
LA = Char:findFirstChild("Left Arm")
29
RA = Char:findFirstChild("Right Arm")
30
LL = Char:findFirstChild("Left Leg")
31
RL = Char:findFirstChild("Right Leg")
32
LS = T:findFirstChild("Left Shoulder")
33
RS = T:findFirstChild("Right Shoulder")
34
LH = T:findFirstChild("Left Hip")
35
RH = T:findFirstChild("Right Hip")
36
Neck = T:findFirstChild("Neck")
37
HM = Char:findFirstChild("HumanoidRootPart")
38
RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
39
Camera = workspace.CurrentCamera
40
Anim = Char:findFirstChild("Animate")
41
if Anim then
42
Anim:Destroy()
43
end
44
Animator = Human:findFirstChild("Animator")
45
if Animator then
46
Animator:Destroy()
47
end
48
MName = "Uroia"
49
model = Instance.new("Model", Char)
50
model.Name = MName
51
han = Instance.new("Part",model)
52
han.CanCollide = false
53
han.Locked = true
54
han.TopSurface = 0
55
han.BottomSurface = 0
56
han.FormFactor = 3
57
han.Size = Vector3.new(0.35,1,0.35)
58
han.BrickColor = BrickColor.new("Reddish brown")
59
han.Material = "SmoothPlastic"
60
han.TopSurface = 10
61
han.BottomSurface = 10
62
han.LeftSurface = 10
63
han.RightSurface = 10
64
han.FrontSurface = 10
65
han.BackSurface = 10
66
hanw = Instance.new("Weld",han)
67
hanw.Part0 = han
68
hanw.Part1 = T
69
hanw.C0 = CFrame.new(0,0,-0.6)
70
p1 = Instance.new("Part",model)
71
p1.CanCollide = false
72
p1.Locked = true
73
p1.TopSurface = 0
74
p1.BottomSurface = 0
75
p1.FormFactor = 3
76
p1.Size = Vector3.new(1.25,0.35,0.35)
77
p1.BrickColor = BrickColor.new("Reddish brown")
78
p1.Material = "SmoothPlastic"
79
p1.TopSurface = 10
80
p1.BottomSurface = 10
81
p1.LeftSurface = 10
82
p1.RightSurface = 10
83
p1.FrontSurface = 10
84
p1.BackSurface = 10
85
p1w = Instance.new("Weld",han)
86
p1w.Part0 = p1
87
p1w.Part1 = han
88
p1w.C0 = CFrame.new(0,-0.65,0)
89
p2 = Instance.new("Part",model)
90
p2.CanCollide = false
91
p2.Locked = true
92
p2.TopSurface = 0
93
p2.BottomSurface = 0
94
p2.FormFactor = 3
95
p2.Size = Vector3.new(0.5,4.5,0.35)
96
p2.Material = "SmoothPlastic"
97
p2.BrickColor = BrickColor.new("Dark stone grey")
98
p2.TopSurface = 10
99
p2.BottomSurface = 10
100
p2.LeftSurface = 10
101
p2.RightSurface = 10
102
p2.FrontSurface = 10
103
p2.BackSurface = 10
104
p2w = Instance.new("Weld",han)
105
p2w.Part0 = p2
106
p2w.Part1 = p1
107
p2w.C0 = CFrame.new(0,-2.4,0)
108
p3 = Instance.new("Part",model)
109
p3.CanCollide = false
110
p3.Locked = true
111
p3.TopSurface = 0
112
p3.BottomSurface = 0
113
p3.FormFactor = 3
114
p3.Size = Vector3.new(0.35,0.5,0.25)
115
p3.Material = "SmoothPlastic"
116
p3.BrickColor = BrickColor.new("Dark stone grey")
117
p3.TopSurface = 10
118
p3.BottomSurface = 10
119
p3.LeftSurface = 10
120
p3.RightSurface = 10
121
p3.FrontSurface = 10
122
p3.BackSurface = 10
123
p3m = Instance.new("SpecialMesh",p3)
124
p3m.MeshType = "Wedge"
125
p3w = Instance.new("Weld",han)
126
p3w.Part0 = p3
127
p3w.Part1 = p2
128
p3w.C0 = CFrame.new(0,-2.5,0.125) *CFrame.Angles(0,math.pi/2,0)
129
p4 = Instance.new("Part",model)
130
p4.CanCollide = false
131
p4.Locked = true
132
p4.TopSurface = 0
133
p4.BottomSurface = 0
134
p4.FormFactor = 3
135
p4.Size = Vector3.new(0.35,0.5,0.25)
136
p4.Material = "SmoothPlastic"
137
p4.BrickColor = BrickColor.new("Dark stone grey")
138
p4.TopSurface = 10
139
p4.BottomSurface = 10
140
p4.LeftSurface = 10
141
p4.RightSurface = 10
142
p4.FrontSurface = 10
143
p4.BackSurface = 10
144
p4m = Instance.new("SpecialMesh",p4)
145
p4m.MeshType = "Wedge"
146
p4w = Instance.new("Weld",han)
147
p4w.Part0 = p4
148
p4w.Part1 = p2
149
p4w.C0 = CFrame.new(0,-2.5,0.125) *CFrame.Angles(0,-math.pi/2,0)
150
hb = Instance.new("Part",model)
151
hb.Name = "Hitbox"
152
hb.CanCollide = false
153
hb.Locked = true
154
hb.Transparency = 1
155
hb.TopSurface = 0
156
hb.BottomSurface = 0
157
hb.FormFactor = 3
158
hb.BrickColor = BrickColor.new("Institutional white")
159
hb.Size = Vector3.new(0.5,3.5,0.35)
160
hb.Material = "SmoothPlastic"
161
hb.TopSurface = 10
162
hb.BottomSurface = 10
163
hb.LeftSurface = 10
164
hb.RightSurface = 10
165
hb.FrontSurface = 10
166
hb.BackSurface = 10
167
hbw = Instance.new("Weld",han)
168
hbw.Part0 = hb
169
hbw.Part1 = p2
170
WLS = Instance.new("Weld", T)
171
WLS.C0 = CFrame.new(-1.5, 0.5, 0)
172
WLS.C1 = CFrame.new(0, 0.5, 0)
173
WLS.Part0 = T
174
WLS.Part1 = LA
175
WRS = Instance.new("Weld", T)
176
WRS.Part0 = T
177
WRS.Part1 = RA
178
WRS.C0 = CFrame.new(1.5, 0.5, 0)
179
WRS.C1 = CFrame.new(0, 0.5, 0)
180
WLH = Instance.new("Weld", T)
181
WLH.C0 = CFrame.new(-0.5, -1, 0)
182
WLH.C1 = CFrame.new(0, 1, 0)
183
WLH.Part0 = T
184
WLH.Part1 = LL
185
WRH = Instance.new("Weld", T)
186
WRH.C0 = CFrame.new(0.5, -1, 0)
187
WRH.C1 = CFrame.new(0, 1, 0)
188
WRH.Part0 = T
189
WRH.Part1 = RL
190
LSC0 = WLS.C0
191
RSC0 = WRS.C0
192
LHC0 = WLH.C0
193
RHC0 = WRH.C0
194
RJ.Part0 = nil
195
WRJ = Instance.new("Weld", T)
196
WRJ.Part0 = T
197
WRJ.Part1 = HM
198
WRJ.C0 = CFrame.new()
199
WRJ.C1 = CFrame.new()
200
Neck.C0 = CFrame.new(0, 1, 0)
201
Neck.C1 = CFrame.new(0, -0.5, 0)
202
RJC0 = WRJ.C0
203
RJC1 = WRJ.C1
204
NC0 = Neck.C0
205
hopbin = Instance.new("HopperBin", Player.Backpack)
206
hopbin.Name = MName
207
saveohanw = hanw.C0
208
Run = game:GetService("RunService")
209
210
PlaySound = function(part,volume,pitch,id)
211
	local Sound = Instance.new("Sound", part)
212
	Sound.SoundId = id
213
	Sound.Pitch = pitch
214
	Sound.Volume = volume
215
	Sound:Play()
216
	Sound:remove()
217
end
218
219
ShowDmg = function(totake)
220
	local modl = Instance.new("Model", workspace)
221
	modl.Name = tostring(totake)
222
	local prt = Instance.new("Part", modl)
223
	prt.CanCollide = false
224
	prt.BrickColor = BrickColor.Red()
225
	prt.Name = "Head"
226
	prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0)
227
	prt.TopSurface = 0
228
	prt.BottomSurface = 0
229
	prt.FormFactor = 3
230
	prt.Size = Vector3.new(1, 0.2, 1)
231
	local bm = Instance.new("BlockMesh", prt)
232
	local hum = Instance.new("Humanoid", modl)
233
	hum.Health = 0
234
	hum.MaxHealth = 0
235
	hum.WalkSpeed = 0
236
	bodypos = Instance.new("BodyPosition", prt)
237
	bodypos.position = Head.Position +Vector3.new(0, 1, 0)
238
	bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
239
	game.Debris:AddItem(modl, 1)
240
	coroutine.resume(coroutine.create(function()
241
		for i = 1, 3 do
242
			bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0)
243
			wait(0.01)
244
		end
245
	end))
246
end
247
248
function Damage(hit,mm,mam)
249
	if hit ~= nil and damen == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then
250
		local rdmg = math.random(mm,mam)
251
		hit.Parent.Humanoid:TakeDamage(rdmg)
252
		coroutine.resume(coroutine.create(function()
253
			ShowDmg(rdmg)
254
		end))
255
		damen = false
256
	end
257
end
258
259
function Selected()
260
	click = mouse.Button1Down:connect(function()
261
		if combo == 1 and on == true and enabled == true then
262
			enabled = false
263
			action = "Slash1"
264
		elseif combo == 2 then
265
			enabled = false
266
			action = "Slash2"
267
			elseif combo == 3 then
268
			enabled = false
269
			action = "Slash3"
270
		end
271
	end)
272
	keys = mouse.KeyDown:connect(function(key)
273
		key = key:lower()
274
		if key == "z" and on == true and enabled == true then
275
			enabled = false
276
			action = "ChargeSlash"
277
		end
278
		if key == "x" and on == true and enabled == true then
279
			enabled = false
280
			action = "FireBurst"
281
		end
282
		if key == "c" and on == true and enabled == true then
283
			enabled = false
284
			action = "IceSting"
285
		end
286
		if key == "v" and on == true and enabled == true then
287
			enabled = false
288
			action = "JumpSlam"
289
		end
290
		if key == string.char(52) and enabled == true then
291
			Char.Humanoid.WalkSpeed = 30
292
		end
293
		if key == "f" and on == false and enabled == true then
294
			enabled = false
295
			action = "Equip"
296
			wait(0.5)
297
			enabled = true
298
		elseif key == "f" and on == true and enabled == true then
299
			enabled = false
300
			action = "Unequip"
301
			wait(0.5)
302
			enabled = true
303
		end
304
	end)
305
end
306
307
keysup = mouse.KeyUp:connect(function(key)
308
	if key == string.char(52) and enabled == true then
309
		Char.Humanoid.WalkSpeed = 16
310
	end
311
end)
312
313
function Deselected()
314
	click:disconnect()
315
	keys:disconnect()
316
end
317
318
function Jumping()
319
	if enabled == true then
320
		action = "Jumping"
321
	end
322
end
323
324
hopbin.Selected:connect(Selected)
325
hopbin.Deselected:connect(Deselected)
326
Human.Jumping:connect(Jumping)
327
328
while true do
329
	angle = (angle % 100) +anglespeed/10
330
	local lscf = LSC0
331
	local rscf = RSC0
332
	local llcf = LHC0
333
	local rlcf = RHC0
334
	local rjcf = RJC0
335
	local rjcf1 = RJC1
336
	local ncf = NC0
337
	if on == true then
338
		local hancf = savehanw
339
	end
340
	if T.Velocity.y <= -1 then
341
		action = "FallingDown"
342
	end
343
	if action == "Equip" then
344
		PlaySound(Head,0.5,0.7,Sounds[1])
345
		for i = 1, 10 do
346
			speed = 0.5
347
			anglespeed = 1.5
348
			ncf = NC0
349
			rjcf = RJC0
350
			rjcf1 = RJC1
351
			lscf = LSC0
352
			rscf = RSC0 *CFrame.new(-0.25,0,0) *CFrame.Angles(-math.pi/3,0,-math.pi/3)
353
			llcf = LHC0
354
			rlcf = RHC0
355
			if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
356
				speed = 0.2
357
				anglespeed = 3
358
				angle = (angle % 100) +anglespeed/10
359
				llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
360
				rlcf = RHC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
361
			end
362
			lerp(Neck,Neck.C0,ncf,speed)
363
			lerp(WRJ,WRJ.C0,rjcf,speed)
364
			lerp2(WRJ,WRJ.C1,rjcf1,speed)
365
			lerp(WLS,WLS.C0,lscf,speed)
366
			lerp(WRS,WRS.C0,rscf,speed)
367
			lerp(WLH,WLH.C0,llcf,speed)
368
			lerp(WRH,WRH.C0,rlcf,speed)
369
			wait()
370
		end
371
		hanw.Part1 = RA
372
		hanw.C0 = CFrame.new(-1,0,0) *CFrame.Angles(math.pi/2,0,math.pi/2)
373
		savehanw = hanw.C0
374
		action = "None"
375
		on = true
376
	end
377
	if action == "Unequip" then
378
		hanw.Part1 = T
379
		hanw.C0 = saveohanw
380
		for i = 1, 10 do
381
			speed = 0.5
382
			anglespeed = 1.5
383
			ncf = NC0
384
			rjcf = RJC0
385
			rjcf1 = RJC1
386
			lscf = LSC0
387
			rscf = RSC0 *CFrame.new(-0.25,0,0) *CFrame.Angles(-math.pi/3,0,-math.pi/3)
388
			llcf = LHC0
389
			rlcf = RHC0
390
			if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
391
				speed = 0.2
392
				anglespeed = 3
393
				angle = (angle % 100) +anglespeed/10
394
				llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
395
				rlcf = RHC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
396
			end
397
			lerp(Neck,Neck.C0,ncf,speed)
398
			lerp(WRJ,WRJ.C0,rjcf,speed)
399
			lerp2(WRJ,WRJ.C1,rjcf1,speed)
400
			lerp(WLS,WLS.C0,lscf,speed)
401
			lerp(WRS,WRS.C0,rscf,speed)
402
			lerp(WLH,WLH.C0,llcf,speed)
403
			lerp(WRH,WRH.C0,rlcf,speed)
404
			wait()
405
		end
406
		action = "None"
407
		on = false
408
	end
409
	if action == "Jumping" then
410
		enabled = false
411
		for i = 1, 10 do
412
			speed = 0.7
413
			anglespeed = 3
414
			ncf = NC0
415
			rjcf = RJC0 *CFrame.Angles(math.pi/10,0,0)
416
			rjcf1 = RJC1
417
			lscf = LSC0 *CFrame.Angles(-math.pi/4,0,0)
418
			rscf = RSC0 *CFrame.Angles(-math.pi/4,0,0)
419
			llcf = LHC0 *CFrame.new(0,1.25,-0.5)
420
			rlcf = RHC0 *CFrame.new(0,0,-0.5) *CFrame.Angles(-math.pi/5,0,0)
421
			lerp(Neck,Neck.C0,ncf,speed)
422
			lerp(WRJ,WRJ.C0,rjcf,speed)
423
			lerp2(WRJ,WRJ.C1,rjcf1,speed)
424
			lerp(WLS,WLS.C0,lscf,speed)
425
			lerp(WRS,WRS.C0,rscf,speed)
426
			lerp(WLH,WLH.C0,llcf,speed)
427
			lerp(WRH,WRH.C0,rlcf,speed)
428
			wait()
429
		end
430
		enabled = true
431
		action = "None"
432
	end
433
	if action == "FallingDown" then
434
		for i = 1, 10 do
435
			speed = 0.7
436
			anglespeed = 3
437
			ncf = NC0
438
			rjcf = RJC0
439
			rjcf1 = RJC1
440
			lscf = LSC0 *CFrame.Angles(math.pi/1.5,0,0)
441
			rscf = RSC0 *CFrame.Angles(math.pi/1.5,0,0)
442
			llcf = LHC0 *CFrame.new(0,1,-0.5)
443
			rlcf = RHC0 *CFrame.new(0,1,-0.5)
444
			lerp(Neck,Neck.C0,ncf,speed)
445
			lerp(WRJ,WRJ.C0,rjcf,speed)
446
			lerp2(WRJ,WRJ.C1,rjcf1,speed)
447
			lerp(WLS,WLS.C0,lscf,speed)
448
			lerp(WRS,WRS.C0,rscf,speed)
449
			lerp(WLH,WLH.C0,llcf,speed)
450
			lerp(WRH,WRH.C0,rlcf,speed)
451
			wait()
452
		end
453
		enabled = true
454
		action = "None"
455
	end
456
	if on == false then
457
		if action == "None" then
458
			if Vector3.new(T.Velocity.X,0,T.Velocity.Z).Magnitude <=2 then
459
				speed = 0.2
460
				anglespeed = 0.5
461
				ncf = NC0
462
				rjcf = RJC0
463
				rjcf1 = RJC1
464
				lscf = LSC0
465
				rscf = RSC0
466
				hancf = savehanw
467
				llcf = LHC0
468
				rlcf = RHC0
469
			elseif Vector3.new(T.Velocity.X,0,T.Velocity.Z).Magnitude <=20 then
470
				speed = 0.2
471
				anglespeed = 2
472
				ncf = NC0
473
				rjcf = RJC0
474
				rjcf1 = RJC1
475
				lscf = LSC0 *CFrame.Angles(math.sin(angle),0,0)
476
				rscf = RSC0 *CFrame.Angles(math.sin(-angle),0,0)
477
				llcf = LHC0 *CFrame.Angles(math.sin(angle),0,0)
478
				rlcf = RHC0 *CFrame.Angles(math.sin(-angle),0,0)
479
			elseif Vector3.new(T.Velocity.X,0,T.Velocity.Z).Magnitude >= 20 then
480
				speed = 0.8
481
				anglespeed = 3
482
				ncf = NC0
483
				rjcf = RJC0
484
				rjcf1 = RJC1
485
				lscf = LSC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/50),0,0)
486
				rscf = RSC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/50),0,0)
487
				llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/50), 0, -math.rad(0.5))
488
				rlcf = RHC0 *CFrame.Angles(math.sin(-angle*Human.WalkSpeed/50), 0, math.rad(0.5))
489
			end
490
			lerp(WLS,WLS.C0,lscf,speed)
491
			lerp(WRS,WRS.C0,rscf,speed)
492
			lerp(WRJ,WRJ.C0,rjcf,speed)
493
			lerp2(WRJ,WRJ.C1,rjcf1,speed)
494
			lerp(Neck,Neck.C0,ncf,speed)
495
			lerp(WLH,WLH.C0,llcf,speed)
496
			lerp(WRH,WRH.C0,rlcf,speed)
497
		end
498
	end
499
	if on == true then
500
		if action == "ChargeSlash" then
501
			coroutine.resume(coroutine.create(function()
502
				wait(1.2)
503
				local circ = Instance.new("Part",Char)
504
				circ.Anchored = true
505
				circ.CanCollide = false
506
				circ.TopSurface = 0
507
				circ.BottomSurface = 0
508
				circ.FormFactor = 3
509
				circ.BrickColor = BrickColor.Black()
510
				circ.Size = Vector3.new(3,3,3)
511
				circ.CFrame = T.CFrame
512
				circm = Instance.new("SpecialMesh",circ)
513
				circm.MeshType = "Sphere"
514
				game.Debris:AddItem(circ,2)
515
				PlaySound(Head,0.5,0.85,Sounds[3])
516
				coroutine.resume(coroutine.create(function()
517
					for i = 0,1,0.1 do
518
						circ.Transparency = 1*i
519
						circm.Scale = circm.Scale +Vector3.new(1,1,1)
520
						wait()
521
					end
522
				end))
523
			end))
524
			for i = 1, 75 do
525
				speed = 0.3
526
				anglespeed = 1.2
527
				local setweldr = 0.85
528
				if i == 1 then
529
					PlaySound(Head,0.5,1,Sounds[4])
530
				elseif i <= 30 then
531
					local eff = Instance.new("Part",Char)
532
					eff.Anchored = true
533
					eff.CanCollide = false
534
					eff.TopSurface = 0
535
					eff.BottomSurface = 0
536
					eff.FormFactor = 3
537
					eff.Transparency = 0.9
538
					eff.BrickColor = BrickColor.Black()
539
					eff.Size = Vector3.new(1.5,1.5,1.5)
540
					eff.CFrame = LA.CFrame *CFrame.new(0,-1.5,0) *CFrame.Angles(math.rad(-360,360),math.rad(-360,360),math.rad(-360,360))
541
					game.Debris:AddItem(eff,0.25)
542
					ncf = NC0
543
					rjcf = RJC0 *CFrame.new(0,1,0) *CFrame.Angles(math.pi/10,0,0)
544
					rjcf1 = RJC1
545
					lscf = LSC0 *CFrame.new(0,0.5,0) *CFrame.Angles(0,0,-math.pi/1.2)
546
					rscf = RSC0 *CFrame.Angles(-math.pi/8,0,0)
547
					hancf = savehanw
548
					llcf = LHC0 *CFrame.new(0,setweldr,-0.5) *CFrame.Angles(-math.pi/10,0,0)
549
					rlcf = RHC0 *CFrame.new(0,setweldr,-0.5)
550
				elseif i == 31 then
551
					local get = workspace:GetChildren()
552
					for i = 1, #get do
553
						if get[i] ~= Char and get[i]:FindFirstChild("Humanoid") ~= nil and get[i]:FindFirstChild("Humanoid").Health > 0 and get[i]:FindFirstChild("Torso") ~= nil then
554
							if (get[i].Torso.Position - T.Position).Magnitude <= 15 then
555
								rack = math.random(15,20.9)
556
								get[i].Humanoid:TakeDamage(rack)
557
								get[i].Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
558
								v = Instance.new("BodyVelocity", get[i].Torso)
559
								v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
560
								v.velocity = HM.CFrame.lookVector *70 game.Debris:AddItem(v, 0.3) ShowDmg(rack)
561
							end
562
						end
563
					end
564
				elseif i <= 75 then
565
					setweldr = 1.5
566
					local eff = Instance.new("Part",Char)
567
					eff.Anchored = true
568
					eff.CanCollide = false
569
					eff.TopSurface = 0
570
					eff.BottomSurface = 0
571
					eff.FormFactor = 3
572
					eff.Transparency = 0.9
573
					eff.BrickColor = BrickColor.Black()
574
					eff.Size = Vector3.new(1.5,1.5,1.5)
575
					eff.CFrame = LA.CFrame *CFrame.new(0,-1.5,0) *CFrame.Angles(math.rad(-360,360),math.rad(-360,360),math.rad(-360,360))
576
					game.Debris:AddItem(eff,0.25)
577
					ncf = NC0
578
					rjcf = RJC0 *CFrame.new(0,1.8,0) *CFrame.Angles(math.pi/10,0,0)
579
					rjcf1 = RJC1
580
					lscf = LSC0 *CFrame.new(0,-0.5,0) *CFrame.Angles(0,-math.pi/2.5,-math.pi/4)
581
					rscf = RSC0 *CFrame.Angles(-math.pi/8,0,0)
582
					hancf = savehanw
583
					llcf = LHC0 *CFrame.new(0,setweldr,-0.5) *CFrame.Angles(-math.pi/10,0,0)
584
					rlcf = RHC0 *CFrame.new(0,setweldr,-0.5)
585
				end
586
				if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
587
					speed = 0.2
588
					anglespeed = 3
589
					angle = (angle % 100) +anglespeed/10
590
					llcf = LHC0 *CFrame.new(0,setweldr,-0.5) *CFrame.Angles(-math.pi/10,0,0) *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
591
					rlcf = RHC0 *CFrame.new(0,setweldr,-0.5) *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
592
				end
593
				lerp(WLS,WLS.C0,lscf,speed)
594
				lerp(WRS,WRS.C0,rscf,speed)
595
				lerp(WRJ,WRJ.C0,rjcf,speed)
596
				lerp2(WRJ,WRJ.C1,rjcf1,speed)
597
				lerp(Neck,Neck.C0,ncf,speed)
598
				lerp(WLH,WLH.C0,llcf,speed)
599
				lerp(WRH,WRH.C0,rlcf,speed)
600
				lerp(hanw,hanw.C0,hancf,speed)
601
				wait()
602
			end
603
			enabled = true
604
			action = "None"
605
		end
606
		if action == "FireBurst" then
607
			local spred = 0
608
			local mycf = HM.CFrame
609
			coroutine.resume(coroutine.create(function()
610
				wait(0.2)
611
				for i = 1, 8 do
612
					PlaySound(Head,0.5,1.2,Sounds[3])
613
					spred = spred -6
614
					local prtfi = Instance.new("Part",Char)
615
					prtfi.Anchored = true
616
					prtfi.CanCollide = false
617
					prtfi.TopSurface = 0
618
					prtfi.BottomSurface = 0
619
					prtfi.FormFactor = 3
620
					prtfi.Transparency = 0.15
621
					prtfi.BrickColor = BrickColor.Red()
622
					prtfi.Size = Vector3.new(2,10,2)
623
					prtfi.CFrame = CFrame.new(mycf *Vector3.new(0,-2,spred))
624
					local prtfim = Instance.new("SpecialMesh",prtfi)
625
					prtfim.MeshType = "Sphere"
626
					local prteff = Instance.new("Part",Char)
627
					prteff.Anchored = true
628
					prteff.CanCollide = false
629
					prteff.TopSurface = 0
630
					prteff.BottomSurface = 0
631
					prteff.FormFactor = 3
632
					prteff.Transparency = 0.25
633
					prteff.BrickColor = BrickColor.Red()
634
					prteff.Size = Vector3.new(3,1,3)
635
					prteff.CFrame = CFrame.new(mycf *Vector3.new(0,-2,spred))
636
					local prteffm = Instance.new("SpecialMesh",prteff)
637
					prteffm.Offset = Vector3.new(0,-0.5,0)
638
					prteffm.MeshId = "http://www.roblox.com/asset/?id=20329976"
639
					prteffm.Scale = prteff.Size
640
					prtfi.Touched:connect(function(hit) if hit ~= nil and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then local fir = Instance.new("Fire",hit.Parent.Torso) game.Debris:AddItem(fir,1) for i = 1, 10 do hit.Parent.Humanoid:TakeDamage(0.75) wait() end end end)
641
					for i = 1, 4 do
642
						prtfim.Scale = prtfim.Scale +Vector3.new(0,0.5,0)
643
						wait()
644
					end
645
					game.Debris:AddItem(prtfi,0.5)
646
					game.Debris:AddItem(prteff,0.5)
647
					wait()
648
				end
649
			end))
650
			for i = 1, 25 do
651
				speed = 0.3
652
				anglespeed = 2
653
				ncf = NC0 *CFrame.Angles(0,math.pi/2,0)
654
				rjcf = RJC0 *CFrame.Angles(0,math.pi/2,0)
655
				rjcf1 = RJC1
656
				lscf = LSC0 *CFrame.Angles(0,0,-math.pi/2)
657
				rscf = RSC0 *CFrame.Angles(math.pi/8,0,0)
658
				hancf = savehanw
659
				llcf = LHC0
660
				rlcf = RHC0
661
				if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
662
					speed = 0.2
663
					anglespeed = 3
664
					angle = (angle % 100) +anglespeed/10
665
					llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
666
					rlcf = RHC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
667
				end
668
				lerp(WLS,WLS.C0,lscf,speed)
669
				lerp(WRS,WRS.C0,rscf,speed)
670
				lerp(WRJ,WRJ.C0,rjcf,speed)
671
				lerp2(WRJ,WRJ.C1,rjcf1,speed)
672
				lerp(Neck,Neck.C0,ncf,speed)
673
				lerp(WLH,WLH.C0,llcf,speed)
674
				lerp(WRH,WRH.C0,rlcf,speed)
675
				lerp(hanw,hanw.C0,hancf,speed)
676
				wait()
677
			end
678
			wait(0.5)
679
			enabled = true
680
			action = "None"
681
		end
682
		if action == "JumpSlam" then
683
			for i = 1, 88 do
684
				if i == 1 then
685
					PlaySound(Head,0.5,0.6,Sounds[9])
686
					speed = 0.2
687
					anglespeed = 1
688
					bv = Instance.new("BodyVelocity",HM)
689
					bv.maxForce = Vector3.new(0,1/0,0)
690
					bv.velocity = Vector3.new(0,50,0)
691
				end
692
				if i <= 49 then
693
					ncf = NC0 *CFrame.Angles(math.pi/4,0,0)
694
					rjcf = RJC0 *CFrame.Angles(-math.pi/10,0,0)
695
					rjcf1 = RJC1
696
					lscf = LSC0 *CFrame.Angles(0,0,-math.pi/2.2)
697
					rscf = RSC0 *CFrame.Angles(0,0,math.pi/2.2)
698
					hancf = savehanw
699
					llcf = LHC0 *CFrame.Angles(-math.pi/4,0,0)
700
					rlcf = RHC0 *CFrame.new(0,0.5,-0.5) *CFrame.Angles(-math.pi/4,0,0)
701
				elseif i == 50 then
702
					bv:remove()
703
				elseif i == 52 then
704
					Human.WalkSpeed = 0
705
					local touched = true
706
					con = RL.Touched:connect(function()
707
						if touched == false then return end
708
						touched = false
709
						coroutine.resume(coroutine.create(function()
710
							prtshk = Instance.new("Part",Char)
711
							prtshk.Anchored = true
712
							prtshk.CanCollide = false
713
							prtshk.TopSurface = 0
714
							prtshk.BottomSurface = 0
715
							prtshk.FormFactor = 3
716
							prtshk.Size = Vector3.new(1,1,1)
717
							prtshk.CFrame = CFrame.new(RL.CFrame.p) *CFrame.new(0,-RL.Size.Y/2,0)
718
							prtshkm = Instance.new("SpecialMesh",prtshk)
719
							prtshkm.MeshId = "http://www.roblox.com/asset/?id=20329976"
720
							game.Debris:AddItem(prtshk,2)
721
							for i = 0,1,0.1 do
722
								prtshk.Transparency = i
723
								prtshkm.Scale = prtshkm.Scale +Vector3.new(2,0,2)
724
								prtshk.Size = prtshkm.Scale
725
								selbox = Instance.new("SelectionBox",prtshk)
726
								selbox.Adornee = prtshk
727
								wait()
728
							end
729
						end))
730
						local get = workspace:GetChildren()
731
						for i = 1, #get do
732
							if get[i] ~= Char and get[i]:FindFirstChild("Humanoid") ~= nil and get[i]:FindFirstChild("Humanoid").Health > 0 and get[i]:FindFirstChild("Torso") ~= nil then
733
								if (get[i].Torso.Position - T.Position).Magnitude <= Vector3.new(prtshk.Size.X,prtshk.Size.Y,prtshk.Size.Z).Magnitude then
734
									rack = math.random(18.15,20.92)
735
									get[i].Humanoid:TakeDamage(rack)
736
									get[i].Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
737
									v = Instance.new("BodyVelocity", get[i].Torso)
738
									v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
739
									v.velocity = HM.CFrame.lookVector *70 game.Debris:AddItem(v, 0.3) ShowDmg(rack)
740
								end
741
							end
742
						end
743
					end)
744
				elseif i <= 87 then
745
					ncf = NC0 *CFrame.Angles(-math.pi/5,0,0)
746
					rjcf = RJC0 *CFrame.Angles(math.pi/10,0,0)
747
					rjcf1 = RJC1
748
					lscf = LSC0 *CFrame.Angles(0,0,-math.pi/1.05)
749
					rscf = RSC0 *CFrame.Angles(0,0,math.pi/1.05)
750
					hancf = savehanw
751
					llcf = LHC0 *CFrame.Angles(-math.pi/3.35,0,0)
752
					rlcf = RHC0 *CFrame.new(0,-0.1,0) *CFrame.Angles(math.pi/5,0,0)
753
				elseif i == 88 then
754
					con:disconnect()
755
				end
756
				lerp(WLS,WLS.C0,lscf,speed)
757
				lerp(WRS,WRS.C0,rscf,speed)
758
				lerp(WRJ,WRJ.C0,rjcf,speed)
759
				lerp2(WRJ,WRJ.C1,rjcf1,speed)
760
				lerp(Neck,Neck.C0,ncf,speed)
761
				lerp(WLH,WLH.C0,llcf,speed)
762
				lerp(WRH,WRH.C0,rlcf,speed)
763
				lerp(hanw,hanw.C0,hancf,speed)
764
				wait()
765
			end
766
			Human.WalkSpeed = 16
767
			enabled = true
768
			action = "None"
769
		end
770
		if action == "IceSting" then
771
			local sep = 1
772
			local savespeed = Char.Humanoid.WalkSpeed
773
			coroutine.resume(coroutine.create(function()
774
				wait(0.8)
775
				local hmpos = HM.CFrame
776
				for i = 1,10 do
777
					sep = sep +4
778
					local spk = Instance.new("Part", Char)
779
					spk.Anchored = true
780
					spk.TopSurface = 0
781
					spk.BottomSurface = 0
782
					spk.FormFactor = 3
783
					spk.Reflectance = 0.35
784
					spk.BrickColor = BrickColor.Blue()
785
					spk.Size = Vector3.new(1*3,3.8*3,1*3)
786
					spk.CFrame = CFrame.new(hmpos *Vector3.new(0,-5,-sep))
787
					local spkm = Instance.new("SpecialMesh", spk)
788
					spkm.MeshId = "http://www.roblox.com/asset/?id=1033714"
789
					spkm.Scale = Vector3.new(0.6*3, 5.4*3, 0.6*3)
790
					coroutine.resume(coroutine.create(function()
791
						for i = 1, 12 do
792
							spk.CFrame = spk.CFrame *CFrame.new(0,0.15,0)
793
							wait()
794
						end
795
					end))
796
					coroutine.resume(coroutine.create(function()
797
						local custodmg = true
798
						local dspk = spk.Touched:connect(function(hit) if hit.Parent ~= nil and custodmg == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then
799
								local ddmg = math.random(5,12)
800
								hit.Parent.Humanoid:TakeDamage(ddmg)
801
								ShowDmg(ddmg)
802
								custodmg = false
803
							end
804
						end)
805
						coroutine.resume(coroutine.create(function()
806
							wait(0.5)
807
							custodmg = false
808
							dspk:disconnect()
809
						end))
810
					end))
811
					game.Debris:AddItem(spk,1)
812
					local pit = math.random(0.7,2)
813
					local masound = math.random(5,7)
814
					PlaySound(spk,0.5,pit,Sounds[masound])
815
					for i = 1, 3 do
816
						local prt = Instance.new("Part",Char)
817
						prt.Anchored = true
818
						prt.TopSurface = 0
819
						prt.BottomSurface = 0
820
						prt.FormFactor = 3
821
						prt.Transparency = 0.5
822
						prt.Reflectance = 0.6
823
						prt.BrickColor = BrickColor.Blue()
824
						prt.Size = Vector3.new(2*1.5,2*1.5,2*1.5)
825
						prt.CFrame = CFrame.new(spk.CFrame *Vector3.new(math.random(-2,2),1,math.random(-1,1))) *CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
826
						game.Debris:AddItem(prt,1)
827
					end
828
					wait(0.05)
829
				end
830
			end))
831
			for i = 1, 45 do
832
				speed = 0.2
833
				anlespeed = 1.2
834
				if i == 1 then
835
					PlaySound(Head,0.5,1.15,Sounds[4])
836
				elseif i <= 11 then
837
					ncf = NC0 *CFrame.Angles(math.pi/4,0,0)
838
					rjcf = RJC0
839
					rjcf1 = RJC1
840
					lscf = LSC0 *CFrame.new(1.25,0,0) *CFrame.Angles(math.pi/1.1,0,math.pi/6)
841
					rscf = RSC0 *CFrame.new(-0.5,0,0) *CFrame.Angles(math.pi/1.1,0,-math.pi/8)
842
					hancf = savehanw
843
					llcf = LHC0
844
					rlcf = RHC0
845
				elseif i == 12 then
846
					PlaySound(Head,0.5,1,Sounds[2])
847
				elseif i == 22 then
848
					damen = true
849
					dmgbx = hb.Touched:connect(function(hit) Damage(hit,9,15) end)
850
				elseif i <= 23 then
851
					ncf = NC0 *CFrame.Angles(-math.pi/4,0,0)
852
					rjcf = RJC0
853
					rjcf1 = RJC1
854
					lscf = LSC0 *CFrame.new(1.25,-0.5,-0.25) *CFrame.Angles(math.pi/10,0,math.pi/6)
855
					rscf = RSC0 *CFrame.new(-0.5,-0.5,-0.25) *CFrame.Angles(math.pi/10,0,-math.pi/8)
856
					hancf = savehanw *CFrame.new(0,-0.8,0.85) *CFrame.Angles(math.pi/2,0,0)
857
					llcf = LHC0
858
					rlcf = RHC0
859
				elseif i <= 45 then
860
					damen = false
861
					dmgbx:disconnect()
862
					ncf = NC0 *CFrame.Angles(-math.pi/4,0,0)
863
					rjcf = RJC0
864
					rjcf1 = RJC1
865
					lscf = LSC0 *CFrame.new(1.25,-0.5,-0.25) *CFrame.Angles(math.pi/10,0,math.pi/6)
866
					rscf = RSC0 *CFrame.new(-0.5,-0.5,-0.25) *CFrame.Angles(math.pi/10,0,-math.pi/8)
867
					hancf = savehanw *CFrame.new(0,-0.8,0.85) *CFrame.Angles(math.pi/2,0,0)
868
					llcf = LHC0
869
					rlcf = RHC0
870
					Human.WalkSpeed = 0
871
				end
872
				if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
873
					speed = 0.2
874
					anglespeed = 3
875
					angle = (angle % 100) +anglespeed/10
876
					llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
877
					rlcf = RHC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
878
				end
879
				lerp(WLS,WLS.C0,lscf,speed)
880
				lerp(WRS,WRS.C0,rscf,speed)
881
				lerp(WRJ,WRJ.C0,rjcf,speed)
882
				lerp2(WRJ,WRJ.C1,rjcf1,speed)
883
				lerp(Neck,Neck.C0,ncf,speed)
884
				lerp(WLH,WLH.C0,llcf,speed)
885
				lerp(WRH,WRH.C0,rlcf,speed)
886
				lerp(hanw,hanw.C0,hancf,speed)
887
				wait()
888
			end
889
			Human.WalkSpeed = savespeed
890
			damen = false
891
			enabled = true
892
			action = "None"
893
		end
894
		if action == "Slash1" then
895
			for i = 1, 23 do
896
				speed = 0.2
897
				anglespeed = 1.2
898
				hancf = savehanw
899
				if i <= 11 then
900
					ncf = NC0
901
					rjcf = RJC0 *CFrame.Angles(0,-math.pi/2,0)
902
					rjcf1 = RJC1
903
					lscf = LSC0 *CFrame.Angles(-math.pi/5,0,0)
904
					rscf = RSC0 *CFrame.Angles(math.pi/2,math.pi/2,0)
905
					hancf = savehanw
906
					llcf = LHC0
907
					rlcf = RHC0
908
				elseif i == 12 then
909
					PlaySound(Head,0.5,1,Sounds[2])
910
					damen = true
911
					dmgbx = hb.Touched:connect(function(hit) Damage(hit,9,15) end)
912
				elseif i <= 23 then
913
					speed = 0.2
914
					anglespeed = 1.2
915
					ncf = NC0
916
					rjcf = RJC0 *CFrame.Angles(0,math.pi/2,0)
917
					rjcf1 = RJC1
918
					lscf = LSC0 *CFrame.Angles(-math.pi/5,0,0)
919
					rscf = RSC0 *CFrame.Angles(0,0,math.pi/2)
920
					hancf = savehanw
921
					llcf = LHC0
922
					rlcf = RHC0
923
				end
924
				if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
925
					speed = 0.2
926
					anglespeed = 3
927
					angle = (angle % 100) +anglespeed/10
928
					llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
929
					rlcf = RHC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
930
				end
931
				lerp(WLS,WLS.C0,lscf,speed)
932
				lerp(WRS,WRS.C0,rscf,speed)
933
				lerp(WRJ,WRJ.C0,rjcf,speed)
934
				lerp2(WRJ,WRJ.C1,rjcf1,speed)
935
				lerp(Neck,Neck.C0,ncf,speed)
936
				lerp(WLH,WLH.C0,llcf,speed)
937
				lerp(WRH,WRH.C0,rlcf,speed)
938
				lerp(hanw,hanw.C0,hancf,speed)
939
				wait()
940
			end
941
			combo = 2
942
			enabled = true
943
			dmgbx:disconnect()
944
			damen = false
945
			action = "None"
946
		end
947
		if action == "Slash2" then
948
			for i = 1, 23 do
949
				speed = 0.2
950
				anglespeed = 1.2
951
				hancf = savehanw
952
				if i <= 11 then
953
					ncf = NC0 *CFrame.Angles(0,math.pi/2,0)
954
					rjcf = RJC0 *CFrame.Angles(0,math.pi/2,0)
955
					rjcf1 = RJC1
956
					lscf = LSC0 *CFrame.Angles(-math.pi/5,0,0)
957
					rscf = RSC0 *CFrame.Angles(math.pi/1.1,0,0)
958
					hancf = savehanw
959
					llcf = LHC0
960
					rlcf = RHC0
961
				elseif i == 12 then
962
					PlaySound(Head,0.5,1.1,Sounds[2])
963
					damen = true
964
					dmgbx = hb.Touched:connect(function(hit) Damage(hit,9,15) end)
965
				elseif i <= 23 then
966
					speed = 0.2
967
					anglespeed = 1.2
968
					ncf = NC0 *CFrame.Angles(0,-math.pi/2,0)
969
					rjcf = RJC0 *CFrame.Angles(0,-math.pi/2,0)
970
					rjcf1 = RJC1
971
					lscf = LSC0 *CFrame.Angles(-math.pi/5,0,0)
972
					rscf = RSC0 *CFrame.Angles(math.sin(0.01),0,0)
973
					hancf = savehanw
974
					llcf = LHC0
975
					rlcf = RHC0
976
				end
977
				if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
978
					speed = 0.2
979
					anglespeed = 3
980
					angle = (angle % 100) +anglespeed/10
981
					llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
982
					rlcf = RHC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
983
				end
984
				lerp(WLS,WLS.C0,lscf,speed)
985
				lerp(WRS,WRS.C0,rscf,speed)
986
				lerp(WRJ,WRJ.C0,rjcf,speed)
987
				lerp2(WRJ,WRJ.C1,rjcf1,speed)
988
				lerp(Neck,Neck.C0,ncf,speed)
989
				lerp(WLH,WLH.C0,llcf,speed)
990
				lerp(WRH,WRH.C0,rlcf,speed)
991
				lerp(hanw,hanw.C0,hancf,speed)
992
				wait()
993
			end
994
			combo = 3
995
			dmgbx:disconnect()
996
			damen = false
997
			enabled = true
998
			action = "None"
999
		end
1000
		if action == "Slash3" then
1001
			for i = 1,3 do
1002
				damen = true
1003
				dmgbx = hb.Touched:connect(function(hit) Damage(hit,15,25) end)
1004
				hancf = savehanw
1005
				for i = 0,1,0.1 do
1006
					speed = 0.2
1007
					anglespeed = 1.2
1008
					ncf = NC0
1009
					rjcf = RJC0
1010
					rjcf1 = RJC1 *CFrame.Angles(0,math.rad(-360*i),0)
1011
					lscf = LSC0 *CFrame.Angles(-math.pi/5,0,0)
1012
					rscf = RSC0 *CFrame.Angles(0,math.pi/2.3,math.pi/2)
1013
					hancf = savehanw
1014
					llcf = LHC0
1015
					rlcf = RHC0
1016
					if Vector3.new(T.Velocity.x,0,T.Velocity.z).Magnitude >= 2 then
1017
						speed = 0.2
1018
						anglespeed = 3
1019
						angle = (angle % 100) +anglespeed/10
1020
						llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/20), 0, -math.rad(0.5))
1021
						rlcf = RHC0 *CFrame.Angles(-math.sin(angle*Human.WalkSpeed/20), 0, math.rad(0.5))
1022
					end
1023
					lerp(WLS,WLS.C0,lscf,speed)
1024
					lerp(WRS,WRS.C0,rscf,speed)
1025
					lerp(WRJ,WRJ.C0,rjcf,speed)
1026
					lerp2(WRJ,WRJ.C1,rjcf1,speed)
1027
					lerp(Neck,Neck.C0,ncf,speed)
1028
					lerp(WLH,WLH.C0,llcf,speed)
1029
					lerp(WRH,WRH.C0,rlcf,speed)
1030
					lerp(hanw,hanw.C0,hancf,speed)
1031
					wait()
1032
				end
1033
				PlaySound(Head,0.5,1,Sounds[10])
1034
				dmgbx:disconnect()
1035
			end
1036
			combo = 1
1037
			damen = false
1038
			enabled = true
1039
			action = "None"
1040
		end
1041
		if action == "None" then
1042
			if Vector3.new(T.Velocity.X,0,T.Velocity.Z).Magnitude <=2 then
1043
				speed = 0.3
1044
				anglespeed = 1/2.5
1045
				ncf = NC0 *CFrame.Angles(0,math.pi/5,0)
1046
				rjcf = RJC0 *CFrame.new(0,math.sin(angle)*0.03,0) *CFrame.Angles(0,math.pi/5,0)
1047
				rjcf1 = RJC1
1048
				lscf = LSC0 *CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, -math.rad(5))
1049
				rscf = RSC0 *CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, -math.rad(15), math.rad(5))
1050
				llcf = LHC0 *CFrame.Angles(math.rad(4.5), 0, -math.rad(2.5))
1051
				rlcf = RHC0 *CFrame.Angles(-math.rad(2.5), 0, math.rad(2.5))
1052
				hancf = savehanw
1053
			elseif Vector3.new(T.Velocity.X,0,T.Velocity.Z).Magnitude <=20 then
1054
				speed = 0.2
1055
				anglespeed = 1.5
1056
				ncf = NC0
1057
				rjcf = RJC0 *CFrame.Angles(math.pi/24,0,0)
1058
				rjcf1 = RJC1
1059
				lscf = LSC0 *CFrame.Angles(-math.pi/12,0,0)
1060
				rscf = RSC0 *CFrame.Angles(-math.pi/12,0,0)
1061
				llcf = LHC0 *CFrame.Angles(math.sin(angle), 0, -math.rad(0.5))
1062
				rlcf = RHC0 *CFrame.Angles(-math.sin(angle), 0, math.rad(0.5))
1063
				hancf = savehanw
1064
			elseif Vector3.new(T.Velocity.X,0,T.Velocity.Z).Magnitude >= 20 then
1065
				speed = 0.8
1066
				anglespeed = 1.5
1067
				ncf = NC0
1068
				rjcf = RJC0 *CFrame.Angles(math.pi/13,0,0)
1069
				rjcf1 = RJC1
1070
				lscf = LSC0 *CFrame.Angles(0,math.sin(angle*Human.WalkSpeed/30),-math.pi/2.5)
1071
				rscf = RSC0 *CFrame.Angles(0,math.sin(angle*Human.WalkSpeed/30),math.pi/2.5)
1072
				llcf = LHC0 *CFrame.Angles(math.sin(angle*Human.WalkSpeed/30), 0, -math.rad(0.5))
1073
				rlcf = RHC0 *CFrame.Angles(math.sin(-angle*Human.WalkSpeed/30), 0, math.rad(0.5))
1074
				hancf = savehanw
1075
			end
1076
			lerp(WLS,WLS.C0,lscf,speed)
1077
			lerp(WRS,WRS.C0,rscf,speed)
1078
			lerp(WRJ,WRJ.C0,rjcf,speed)
1079
			lerp2(WRJ,WRJ.C1,rjcf1,speed)
1080
			lerp(Neck,Neck.C0,ncf,speed)
1081
			lerp(WLH,WLH.C0,llcf,speed)
1082
			lerp(WRH,WRH.C0,rlcf,speed)
1083
			lerp(hanw,hanw.C0,hancf,speed)
1084
		end
1085
	end
1086
	Run.RenderStepped:wait()
1087
end