View difference between Paste ID: P9ufU2CB and VJR16XF9
SHOW: | | - or go back to the newest paste.
1
  if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
2
do
3
    script.Parent = owner.Character
4
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function NewFakeEvent()
6
        local Bind = Instance.new("BindableEvent")
7
        local Fake;Fake = {Connections = {},
8
        fakeEvent=true;
9
        Connect=function(self,Func)
10
            Bind.Event:connect(Func)
11
            self.Connections[Bind] = true
12
            return setmetatable({Connected = true},{
13
            __index = function (self,Index)
14
                if Index:lower() == "disconnect" then
15
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
16
                end
17
                return Fake[Index]
18
            end;
19
            __tostring = function() return "Connection" end;
20
        })
21
        end}
22
        Fake.connect = Fake.Connect;return Fake;
23
    end
24
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
    local function TriggerEvent(self,Event,...)
30
        local Trigger = Mouse[Event]
31
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
32
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
        end
34
    end
35
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
    Event.OnServerEvent:Connect(function(FiredBy,Input)
37
        if FiredBy.Name ~= owner.Name then return end
38
        if Input.MouseEvent then
39
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
        else
41
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
            for _,Action in pairs(ContextActionService.Actions) do
44
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
            end
46
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
        end
49
    end)
50
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
    Event.Parent = NLS([[
52
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
        local Input = function(Input,gameProcessedEvent)
54
            if gameProcessedEvent then return end
55
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
        end
57
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
        local Hit,Target
59
        while wait(1/30) do
60
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62
            end
63
        end
64
    ]],owner.Character)
65
end
66
RealGame = game;game = setmetatable({},{
67
    __index = function (self,Index)
68
        local Sandbox = function (Thing)
69
            if Thing:IsA("Player") then
70
                local RealPlayer = Thing
71
                return setmetatable({},{
72
                    __index = function (self,Index)
73
                        local Type = type(RealPlayer[Index])
74
                        if Type == "function" then
75
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76
                                return function (self)return InternalData["Mouse"] end
77
                            end
78
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
                        end
80
                        return RealPlayer[Index]
81
                    end;
82
                    __tostring = function(self) return RealPlayer.Name end
83
                })
84
            end
85
        end
86
        if RealGame[Index] then
87
            local Type = type(RealGame[Index])
88
            if Type == "function" then
89
                if Index:lower() == "getservice" or Index:lower() == "service" then
90
                    return function (self,Service)
91
                        local FakeServices = {
92
                            ["players"] = function()
93
                                return setmetatable({},{
94
                                    __index = function (self2,Index2)
95
                                        local RealService = RealGame:GetService(Service)
96
                                        local Type2 = type(Index2)
97
                                        if Type2 == "function" then
98
                                            return function (self,...) return RealService[Index2](RealService,...)end
99
                                        else
100
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
                                            return RealService[Index2]
102
                                        end
103
                                    end;
104
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
105
                                })
106
                            end;
107
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
109
                            ["runservice"] = function()
110
                                return setmetatable({},{
111
                                    __index = function(self2,Index2)
112
                                        local RealService = RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...) end
116
                                        else
117
                                            local RunServices = {
118
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
                                                ["renderstepped"] = function() return RealService["Stepped"] end
120
                                            }
121
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
                                            return RealService[Index2]
123
                                        end
124
                                    end
125
                                })
126
                            end
127
                        }
128
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
                        return RealGame:GetService(Service)
130
                    end
131
                end
132
                return function (self,...) return RealGame[Index](RealGame,...) end
133
            else
134
                if game:GetService(Index) then return game:GetService(Index) end
135
                return RealGame[Index]
136
            end
137
        end
138
        return nil
139
    end
140
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
141
142
-- Remake of Armatae by Mii_BrawIer
143
wait(.1)
144
local play = game.Players.LocalPlayer
145
local char = play.Character
146
local LeftArm = char["Left Arm"]
147
local RightArm = char["Right Arm"]
148
local LeftLeg = char["Left Leg"]
149
local RightLeg = char["Right Leg"]
150
local spawned = false
151
local debounce = false
152
local asdrot = 0
153
local bouncing = false
154
local mode = "Combo"
155
local mana = 200
156
local change = 0
157
local rage = false
158
local explosion = false
159
local golden = false
160
local equipped = true
161
local parry = true
162
local equipcheck = false
163
local charge = 1
164
local orb = false
165
local throwing = false
166
local sped = 1
167
local riding = false
168
local sine = 0
169
local torsovel = 0
170
local sit = false
171
local ult = false
172
local charging = false
173
local combo = 1
174
local Anim = "wot"
175
local attack = false
176
local NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
177
	char.Humanoid.Animator:Destroy()
178
	char.Animate:Destroy()
179
	local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
180
	local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
181
	local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
182
	RSH = nil
183
	RW = Instance.new("Weld")
184
	LW = Instance.new("Weld")
185
	RH = char.Torso["Right Hip"]
186
	LH = char.Torso["Left Hip"]
187
	RSH = char.Torso["Right Shoulder"]
188
	LSH = char.Torso["Left Shoulder"]
189
	RSH.Parent = nil
190
	LSH.Parent = nil
191
	RW.Name = "RW"
192
	RW.Part0 = char.Torso
193
	RW.C0 = CFrame.new(1.5, 0.5, 0)
194
	RW.C1 = CFrame.new(0, 0.5, 0)
195
	RW.Part1 = RightArm
196
	RW.Parent = char.Torso
197
	LW.Name = "LW"
198
	LW.Part0 = char.Torso
199
	LW.C0 = CFrame.new(-1.5, 0.5, 0)
200
	LW.C1 = CFrame.new(0, 0.5, 0)
201
	LW.Part1 = LeftArm
202
	LW.Parent = char.Torso
203
	
204
	clerp = function(a, b, t)
205
	
206
	return a:lerp(b, t)
207
	end
208
	
209
local model = Instance.new("Model", char)
210
model.Name = "weapon parts go here!"
211
local weapon = Instance.new("Model", model)
212
weapon.Name = "weapon"
213
local nolagplease = Instance.new("Model", char)
214
nolagplease.Name = "block spam goes here"
215
216
217
block = function(cfram,size,expansize,transp,color,kind)
218
local p = Instance.new("Part", nolagplease)
219
p.CFrame = cfram
220
p.Size = Vector3.new(1,1,1)
221
local pm = Instance.new("BlockMesh", p)
222
pm.Scale = size
223
p.Anchored = true
224
p.Material = "Neon"
225
p.CanCollide = false
226
p.BrickColor = color
227
if kind == 3 then
228
229
pm:Destroy()
230
p.Size = size
231
p.CanCollide = true
232
p.Touched:connect(function(hit)
233
if debounce == false then
234
if hit.Parent.Humanoid then
235
	debounce = true
236
	hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
237
	wait()
238
	debounce = false
239
end
240
end
241
end)
242
end
243
coroutine.resume(coroutine.create(function()
244
while p.Transparency < 1 do
245
if kind == 3 then
246
p.Transparency = p.Transparency + transp
247
p.Size = p.Size + expansize
248
else
249
250
p.Transparency = p.Transparency + transp
251
pm.Scale = pm.Scale + expansize
252
end
253
if kind == 1 then
254
p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,180)),math.rad(math.random(0,180)),math.rad(math.random(0,180)))
255
end
256
wait()
257
end
258
p:Destroy()
259
end))
260
end
261
262
263
local wave = function(cframe,color,v1,v2,trans,typ) 
264
local p = Instance.new("Part", nolagplease) 
265
p.BrickColor = color 
266
p.Transparency = 0 
267
p.Anchored = true 
268
p.CFrame = cframe
269
if typ == 1 then
270
	p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,180)),math.rad(math.random(0,180)),math.rad(math.random(0,180)))
271
end
272
p.CanCollide = false 
273
local pm = Instance.new("SpecialMesh", p) 
274
pm.MeshType = "FileMesh" 
275
pm.MeshId = "http://www.roblox.com/asset/?id=20329976" 
276
pm.Scale = v1
277
coroutine.resume(coroutine.create(function()
278
while p.Transparency < 1 do
279
wait() 
280
pm.Scale = pm.Scale + v2
281
p.Transparency = p.Transparency + trans
282
if typ == 1 then
283
	p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,180)),math.rad(math.random(0,180)),math.rad(math.random(0,180)))
284
end
285
end 
286
p:Remove() 
287
end))
288
end 	
289
	
290
local screengu = Instance.new("ScreenGui", play.PlayerGui)
291
screengu.Enabled = true
292
293
local fram = Instance.new("Frame",screengu)
294
fram.Position = UDim2.new(0.83,0,.46, 0)
295
fram.Size = UDim2.new(0.156, 0,0.487, 0)
296
fram.Style = "RobloxRound"
297
298
local makegui = function(pos1,pos2,tex)
299
local a = Instance.new("TextLabel",fram)
300
a.Size = UDim2.new(1, 0,.05, 0)
301
a.Text = tex
302
a.Position = UDim2.new(pos1,0,pos2,0)
303
a.TextScaled = true
304
a.TextColor3 = char.Torso.Color
305
a.TextXAlignment = "Left"
306
a.BackgroundTransparency = 1
307
coroutine.resume(coroutine.create(function()
308
if tex == "[X]" then
309
while true do
310
if equipcheck == false then
311
if equipped == true then
312
	a.Text = "[X]  Spin Attack  [35]"
313
elseif equipped == false then
314
	if parry == true then
315
	a.Text = "[X]  Parry  [35]"
316
	elseif parry == false then
317
	a.Text = "[X]  Forced Parry  [15]"
318
	end
319
end
320
else
321
a.Text = "[X] Hexagon Trap [150]"
322
end
323
wait(.1)
324
end
325
end
326
327
if tex == "[E]" then
328
while true do
329
if ult == false then
330
if equipped == true then
331
	a.Text = "[E]  Unequip"
332
elseif equipped == false then
333
	a.Text = "[E]  Equip"
334
end
335
end
336
if ult == true then
337
	a.Text = "[E]  Exit Ult"
338
end
339
wait(.1)
340
end	
341
end
342
343
if tex == "[C]" then
344
while true do
345
if ult == false then
346
	a.Text = "[C]  Orbs  [7/s]"
347
end
348
if ult == true then
349
	if equipcheck == true then
350
	a.Text = "[C]  Orbs  [11/s]"
351
	else
352
	a.Text = "[C]  Ultimate Orbs  [11/s]"
353
	end
354
end
355
wait(.1)
356
end	
357
end
358
359
if tex == "[H]" then
360
while true do
361
if equipped == true then
362
	if ult == false then
363
	a.Text = "[H]  Sword Ult Mode	[200]"
364
	end
365
elseif equipped == false then
366
	if ult == false then
367
	a.Text = "[H]  Magic Ult Mode	[200]"
368
	else
369
	if equipcheck == false then
370
	a.Text = "[H]  Magic Ult	[400]"
371
	else
372
	a.Text = "[H]  Sword Ult	[400]"
373
	end
374
	end
375
end
376
wait(.1)
377
end	
378
end
379
380
if tex == "[Z]" then
381
while true do
382
if ult == false then
383
	a.Text = "[Z]  Shield Dash  [25]"
384
else
385
	if equipcheck == true then
386
	a.Text = "[Z]  Sword Bounce  [25]"
387
	end
388
end
389
wait(.1)
390
end	
391
end
392
393
end))
394
end
395
396
local bar = Instance.new("Frame",screengu)
397
bar.Position = UDim2.new(.83,0,.385,0)
398
bar.Size = UDim2.new(0.156,0,0.055,0)
399
bar.Style = "RobloxRound"
400
401
local neg = Instance.new("Frame", bar)
402
neg.Position = UDim2.new(0,0,0,0)
403
neg.Size = UDim2.new(1,0,0.6,0)
404
neg.BackgroundColor3 = Color3.fromRGB(0,0,0)
405
neg.BorderColor3 = char.Torso.Color
406
407
local a = Instance.new("TextBox",neg)
408
a.Size = UDim2.new(1, 0,1, 0)
409
a.Position = UDim2.new(0, 0, 1, 0)
410
a.TextXAlignment = "Center"
411
coroutine.resume(coroutine.create(function()
412
while true do
413
a.Text = "Mana : "..math.floor(mana)..""
414
wait()
415
end
416
end))
417
a.TextScaled = true
418
a.TextColor3 = char.Torso.Color
419
a.BackgroundTransparency = 1
420
421
local manabar = Instance.new("Frame", neg)
422
manabar.Position = UDim2.new(0,0,0,0)
423
manabar.Size = UDim2.new(0,0,0,0)
424
manabar.BackgroundColor3 = char.Torso.Color
425
manabar.BorderColor3 = Color3.fromRGB(0,0,0)
426
coroutine.resume(coroutine.create(function()
427
while true do
428
manabar.Size = UDim2(0,mana*1.4,0,30)
429
wait()
430
end
431
end))
432
433
makegui(0,0,"[E]")
434
makegui(0,.12,"[Z]")
435
makegui(0,.18,"[X]")
436
makegui(0,.24,"[C]")
437
makegui(0,.36,"[H]")
438
makegui(0,.36,"[H]")
439
440
441
442
443
part = function(wel,cancollid,size,shape,r,g,b,transp,mat,weldpart,c0,nam)
444
local mat2 = "wow"
445
if mat == 1 then
446
		mat2 = "Marble"
447
	end
448
	if mat == 2 then
449
		mat2 = "Granite"
450
	end
451
	if mat == 3 then
452
		mat2 = "Metal"
453
	end
454
	if mat == 4 then
455
		mat2 = "SmoothPlastic"
456
	end
457
	if mat == 5 then
458
		mat2 = "Wood"
459
	end
460
	if mat == 6 then
461
		mat2 = "Neon"
462
	end
463
if shape ~= "Wedge" then
464
local q = Instance.new("Part", weapon)
465
q.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
466
q.Shape = shape
467
q.Size = size
468
q.Transparency = transp
469
q.Color = Color3.new(r,g,b)
470
q.Material = mat2
471
if r == 1 and g == 0 and b == 0 then
472
	q.BrickColor = char.Torso.BrickColor
473
end
474
q.FrontSurface = "Smooth"
475
q.BackSurface = "Smooth"
476
q.LeftSurface = "Smooth"
477
q.RightSurface = "Smooth"
478
q.BottomSurface = "Smooth"
479
q.TopSurface = "Smooth"
480
if cancollid == 1 then
481
q.CanCollide = false
482
end
483
q.Name = nam
484
if wel == 1 then
485
local qw = Instance.new("Weld", q)
486
qw.Part0 = weldpart
487
qw.Part1 = q
488
qw.C0 = c0
489
end
490
end
491
if shape == "Wedge" then
492
local q = Instance.new("WedgePart", weapon)
493
q.Size = size
494
q.Transparency = transp
495
q.Color = Color3.new(r,g,b)
496
if r == 1 and g == 0 and b == 0 then
497
	q.BrickColor = char.Torso.BrickColor
498
end
499
q.Material = mat2
500
if cancollid == 1 then
501
q.CanCollide = false
502
end
503
q.Name = nam
504
local qw = Instance.new("Weld", q)
505
qw.Part0 = weldpart
506
qw.Part1 = q
507
qw.C0 = c0
508
end
509
end
510
511
local sword1 = Instance.new("Part", weapon)
512
sword1.CanCollide = false
513
sword1.Transparency = 1
514
sword1.BrickColor = BrickColor.new("Institutional white")
515
local mesh1 = Instance.new("SpecialMesh", sword1)
516
mesh1.MeshType = "FileMesh"
517
mesh1.MeshId = "rbxasset://fonts/sword.mesh"
518
local weld1 = Instance.new("Weld", sword1)
519
weld1.Part0 = char.Torso
520
weld1.Part1 = sword1
521
weld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(15),math.rad(90)) * CFrame.new(.5,-.8,3.4)
522
523
local sword2 = Instance.new("Part", weapon)
524
sword2.CanCollide = false
525
sword2.Transparency = 1
526
sword2.BrickColor = BrickColor.new("Institutional white")
527
local mesh2 = Instance.new("SpecialMesh", sword2)
528
mesh2.MeshType = "FileMesh"
529
mesh2.MeshId = "rbxasset://fonts/sword.mesh"
530
local weld2 = Instance.new("Weld", sword2)
531
weld2.Part0 = char.Torso
532
weld2.Part1 = sword2
533
weld2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-15),math.rad(90)) * CFrame.new(.5,.8,3.4)
534
535
local sword11 = Instance.new("Part", weapon)
536
sword11.CanCollide = false
537
sword11.Transparency = 1
538
sword11.BrickColor = BrickColor.new("Institutional white")
539
local mesh11 = Instance.new("SpecialMesh", sword11)
540
mesh11.MeshType = "FileMesh"
541
mesh11.MeshId = "rbxasset://fonts/sword.mesh"
542
local weld11 = Instance.new("Weld", sword11)
543
weld11.Part0 = char.Torso
544
weld11.Part1 = sword11
545
weld11.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(15),math.rad(90)) * CFrame.new(0,-.8,3)
546
547
local sword21 = Instance.new("Part", weapon)
548
sword21.CanCollide = false
549
sword21.Transparency = 1
550
sword21.BrickColor = BrickColor.new("Institutional white")
551
local mesh21 = Instance.new("SpecialMesh", sword21)
552
mesh21.MeshType = "FileMesh"
553
mesh21.MeshId = "rbxasset://fonts/sword.mesh"
554
local weld21 = Instance.new("Weld", sword21)
555
weld21.Part0 = char.Torso
556
weld21.Part1 = sword21
557
weld21.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(-15),math.rad(90)) * CFrame.new(0,.8,3)
558
559
local sword12 = Instance.new("Part", weapon)
560
sword12.CanCollide = false
561
sword12.Transparency = 1
562
sword12.BrickColor = BrickColor.new("Institutional white")
563
local mesh12 = Instance.new("SpecialMesh", sword12)
564
mesh12.MeshType = "FileMesh"
565
mesh12.MeshId = "rbxasset://fonts/sword.mesh"
566
local weld12 = Instance.new("Weld", sword12)
567
weld12.Part0 = char.Torso
568
weld12.Part1 = sword12
569
weld12.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(15),math.rad(90)) * CFrame.new(-.5,-.8,3.4)
570
571
local sword22 = Instance.new("Part", weapon)
572
sword22.CanCollide = false
573
sword22.Transparency = 1
574
sword22.BrickColor = BrickColor.new("Institutional white")
575
local mesh22 = Instance.new("SpecialMesh", sword22)
576
mesh22.MeshType = "FileMesh"
577
mesh22.MeshId = "rbxasset://fonts/sword.mesh"
578
local weld22 = Instance.new("Weld", sword22)
579
weld22.Part0 = char.Torso
580
weld22.Part1 = sword22
581
weld22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(-15),math.rad(90)) * CFrame.new(-.5,.8,3.4)
582
583
584
585
part(1,1,Vector3.new(1,1,1),"Block",0,0,0,1,2,LeftArm,CFrame.new(0,-1,0),"ST")
586
part(1,1,Vector3.new(1.3333345651627,0.66666728258133,1.3333345651627),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,RightArm,CFrame.new(0,0.0033329725265503,-0.0028928816318512)*CFrame.fromOrientation(0,0,0),"Handle2")
587
part(1,1,Vector3.new(0.50000047683716,0.66666728258133,0.50000047683716),"Block",1,0,0,0,6,weapon.Handle2,CFrame.new(0,0.086666345596313,-0.71837568283081)*CFrame.fromOrientation(0,-0.78539816339745,0),"Block")
588
part(1,1,Vector3.new(0.16666682064533,0.8333340883255,0.8333340883255),"Wedge",1,0,0,0,6,weapon.Handle2,CFrame.new(0.41666704416275,0.16999989748001,-1.2528940439224)*CFrame.fromOrientation(0,-1.5707963267949,1.5707963267949),"Wedge")
589
part(1,1,Vector3.new(0.16666682064533,0.66666728258133,0.66666728258133),"Wedge",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(-0.33333364129066,0.25333324074745,-1.0028936862946)*CFrame.fromOrientation(0,0,1.5707963267949),"Wedge")
590
part(1,1,Vector3.new(0.50000047683716,1.0000009536743,1.0000009536743),"Wedge",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(-0.50000047683716,-0.080000340938568,-1.5028941631317)*CFrame.fromOrientation(0,0,1.5707963267949),"Wedge")
591
part(1,1,Vector3.new(0.50000047683716,1.0000009536743,1.0000009536743),"Wedge",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(0.50000047683716,-0.080000340938568,-1.5028941631317)*CFrame.fromOrientation(0,0,-1.5707963267949),"Wedge")
592
part(1,1,Vector3.new(0.16666682064533,0.8333340883255,0.8333340883255),"Wedge",1,0,0,0,6,weapon.Handle2,CFrame.new(-0.41666704416275,0.16999989748001,-1.2528940439224)*CFrame.fromOrientation(0,0,1.5707963267949),"Wedge")
593
part(1,1,Vector3.new(0.16666682064533,0.66666728258133,0.66666728258133),"Wedge",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(0.33333364129066,0.25333324074745,-1.0028936862946)*CFrame.fromOrientation(0,0,-1.5707963267949),"Wedge")
594
part(1,1,Vector3.new(1.666668176651,0.50000047683716,1.666668176651),"Block",1,0,0,0,6,weapon.Handle2,CFrame.new(0,0.0033329725265503,-0.0028928816318512)*CFrame.fromOrientation(0,0,0),"Block")
595
part(1,1,Vector3.new(2.0000019073486,0.50000071525574,2.0000019073486),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(0,-0.080000519752502,-0.0028928816318512)*CFrame.fromOrientation(0,0,0),"Block")
596
part(1,1,Vector3.new(0.66666728258133,0.50000047683716,1.0000009536743),"Block",1,0,0,0,6,weapon.Handle2,CFrame.new(-0.88214945793152,0.0033442378044128,0.87925684452057)*CFrame.fromOrientation(0,-0.78539816339745,0),"Block")
597
part(1,1,Vector3.new(1.0000009536743,0.50000047683716,1.0000009536743),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(-1.0000009536743,-0.079989075660706,0.9971079826355)*CFrame.fromOrientation(0,-0.78539816339745,0),"Block")
598
part(1,1,Vector3.new(0.33333364129066,0.58333384990692,0.8333340883255),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(0.84344428777695,0.045011043548584,0.82033109664917)*CFrame.fromOrientation(0,0.78539816339745,0),"Block")
599
part(1,1,Vector3.new(0.66666728258133,0.66666728258133,0.66666728258133),"Block",1,0,0,0,6,weapon.Handle2,CFrame.new(0,0.086666345596313,0.080440580844879)*CFrame.fromOrientation(0,-0.78539816339745,0),"Block")
600
part(1,1,Vector3.new(1.0000009536743,0.50000047683716,1.0000009536743),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(1.0000009536743,-0.079989075660706,0.9971079826355)*CFrame.fromOrientation(0,-0.78539816339745,0),"Block")
601
part(1,1,Vector3.new(0.91666752099991,0.50000047683716,0.66666728258133),"Block",1,0,0,0,6,weapon.Handle2,CFrame.new(0.91161245107651,0.0033442378044128,0.90871953964233)*CFrame.fromOrientation(0,-0.78539816339745,0),"Block")
602
part(1,1,Vector3.new(0.33333364129066,0.58333384990692,0.8333340883255),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle2,CFrame.new(-0.82322382926941,0.045011043548584,0.82033109664917)*CFrame.fromOrientation(0,-0.78539816339745,0),"Block")
603
604
part(1,1,Vector3.new(0.29704913496971,0.29704913496971,0.29704913496971),"Block",0.63921570777893,0.63529413938522,0.64705884456635,1,1,LeftArm,CFrame.new(0.15389770269394,-0.20993836224079,-0.37024655938148)*CFrame.fromOrientation(0.75258595481783,2.3242549329229,1.9734437799037),"Handle")
605
part(1,1,Vector3.new(0.29704913496971,0.29704913496971,0.14852456748486),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0.59409826993942,0,-0.59950757026672)*CFrame.fromOrientation(0,1.5707963267949,0),"Block")
606
part(1,1,Vector3.new(0.89114737510681,0.29704913496971,0.29704913496971),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0,0,-0.59950757026672)*CFrame.fromOrientation(0,0,0),"Block")
607
part(1,1,Vector3.new(0.89114737510681,0.29704913496971,0.29704913496971),"Cylinder",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0,0,-0.0054092407226563)*CFrame.fromOrientation(0,1.5707963267949,0),"Cylinder")
608
part(1,1,Vector3.new(0.59409826993942,0.14852456748486,2.2278685569763),"Block",1,0,0,0,6,weapon.Handle,CFrame.new(0,0,-1.8619664907455)*CFrame.fromOrientation(0,0,0),"Block")
609
part(1,1,Vector3.new(0.14852456748486,0.29704913496971,0.59409826993942),"Wedge",1,0,0,0,6,weapon.Handle,CFrame.new(0.14852456748486,0,-3.2729496955872)*CFrame.fromOrientation(0,0,-1.5707963267949),"Wedge")
610
part(1,1,Vector3.new(0.29704913496971,0.14852456748486,0.29704913496971),"Wedge",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(-0.074262283742428,0,-3.1244254112244)*CFrame.fromOrientation(0,0,1.5707963267949),"Wedge")
611
part(1,1,Vector3.new(0.29704913496971,0.14852456748486,0.29704913496971),"Wedge",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0.074262283742428,0,-3.1244254112244)*CFrame.fromOrientation(0,0,-1.5707963267949),"Wedge")
612
part(1,1,Vector3.new(0.089114740490913,0.59409826993942,0.59409826993942),"Cylinder",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0,0,0.66295099258423)*CFrame.fromOrientation(0,0,1.5707963267949),"Cylinder")
613
part(1,1,Vector3.new(0.29704913496971,0.29704913496971,0.29704913496971),"Ball",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0,4.4263770426767e-09,0.44016432762146)*CFrame.fromOrientation(0,0,0),"Ball")
614
part(1,1,Vector3.new(0.11881965398788,0.44557368755341,0.44557368755341),"Cylinder",1,0,0,0,6,weapon.Handle,CFrame.new(0,0,0.66295099258423)*CFrame.fromOrientation(0,0,1.5707963267949),"Cylinder")
615
part(1,1,Vector3.new(0.29704913496971,0.29704913496971,2.2278685569763),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0,0,-1.8619664907455)*CFrame.fromOrientation(0,0,0),"Block")
616
part(1,1,Vector3.new(0.14852456748486,0.29704913496971,0.29704913496971),"Cylinder",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(0,0,0.66295099258423)*CFrame.fromOrientation(0,0,1.5707963267949),"Cylinder")
617
part(1,1,Vector3.new(0.14852456748486,0.29704913496971,0.59409826993942),"Wedge",1,0,0,0,6,weapon.Handle,CFrame.new(-0.14852456748486,0,-3.2729496955872)*CFrame.fromOrientation(0,0,1.5707963267949),"Wedge")
618
part(1,1,Vector3.new(1.4852457046509,0.14852456748486,0.14852456748486),"Block",1,0,0,0,6,weapon.Handle,CFrame.new(0,0,-0.59950757026672)*CFrame.fromOrientation(0,0,0),"Block")
619
part(1,1,Vector3.new(0.29704913496971,0.29704913496971,0.14852456748486),"Block",0.066666670143604,0.066666670143604,0.066666670143604,0,2,weapon.Handle,CFrame.new(-0.59409826993942,0,-0.59950757026672)*CFrame.fromOrientation(0,1.5707963267949,0),"Block")
620
621
	
622
--[[
623
coroutine.resume(coroutine.create(function()
624
.Touched:connect(function(hit)
625
game:service'RunService'.RenderStepped:connect(function() 
626
627
end)
628
game:GetService("Debris"):AddItem(p, 1)
629
local d = char:GetChildren()
630
for i=1, #d  do 
631
	d[i]
632
	end 
633
end
634
]]
635
636
CreateSound = function(id, par, vol, pit)
637
	
638
	coroutine.resume(coroutine.create(function()
639
		
640
		local sou = Instance.new("Sound", par)
641
		sou.Volume = vol
642
		sou.Pitch = pit
643
		sou.SoundId = id
644
		wait()
645
		sou:play()
646
		game:GetService("Debris"):AddItem(sou, 6)
647
	end
648
))
649
end
650
651
652
rayCast = function(Position, Direction, Range, Ignore)
653
	
654
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
655
end
656
657
Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
658
	
659
	local laza = Instance.new("Part", nolagplease)	
660
	laza.CanCollide = false
661
	if golden == false then
662
	laza.BrickColor = brickcolor
663
	end
664
	if golden == true then
665
	laza.BrickColor = BrickColor.new("New Yeller")
666
	end
667
	laza.Size = Vector3.new(0.5,0.5,0.5)
668
	laza.Anchored = true
669
	laza.CFrame = cframe
670
	laza.Material = "Neon"
671
	local msh = Instance.new("CylinderMesh",laza)
672
	msh.Scale = Vector3.new(x1,y1,z1)
673
	game:GetService("Debris"):AddItem(laza, 10)
674
	coroutine.resume(coroutine.create(function(Part, Mesh)
675
		
676
		for i = 0, 1, delay do
677
			wait()
678
			Part.Transparency = i
679
			Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
680
		end
681
		Part.Parent = nil
682
	end
683
	), laza, msh)
684
end
685
686
shoottrail = function(mouse, partt, SpreadAmount, multiply)
687
	
688
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
689
	local ActualPosition = partt.Position
690
	local MainPos2 = Vector3.new()
691
	if mouse == play:GetMouse() then
692
	MainPos2 = mouse.Hit.p + SpreadVectors
693
	else
694
		MainPos2 = mouse.Position
695
	end
696
	local MouseLook = CFrame.new((ActualPosition + MainPos2) / 2, MainPos2)
697
	local distance = 150
698
	if rage == true then
699
		distance = distance * 2
700
	end
701
	local remainder = 1
702
	local charge2 = charge
703
	charge = 1
704
	coroutine.resume(coroutine.create(function()
705
		
706
		repeat
707
			wait()
708
			local hit, pos = rayCast(ActualPosition, MouseLook.lookVector, distance, char.HumanoidRootPart.Parent)
709
			local magnitude = (ActualPosition - pos).magnitude
710
			Laser(char.Torso.BrickColor, CFrame.new((ActualPosition + pos) / 2, pos) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0), 3, magnitude *(-distance / (distance / 2)), 3, -.1, 0, -.1, .1)
711
			ActualPosition = ActualPosition + MouseLook.lookVector * distance
712
			remainder = remainder - 1
713
			--MouseLook = MouseLook * CFrame.Angles(-.01,0, 0)
714
			if hit ~= nil then
715
				remainder = 0
716
			end
717
			do
718
				if remainder <= 0 then
719
					local magnblock = Instance.new("Part", nolagplease)
720
					magnblock.Transparency = 1
721
					magnblock.CanCollide = false
722
					magnblock.Anchored = true
723
					magnblock.CFrame = CFrame.new(pos)
724
					block(CFrame.new(pos),Vector3.new(2,2,2),Vector3.new(.5,.5,.5),.05,char.Torso.BrickColor,1)
725
					magn(10,magnblock,7)
726
					game:GetService("Debris"):AddItem(magnblock, 0.1)
727
				end
728
			end
729
		until remainder <= 0
730
	end
731
))
732
end
733
734
shoottrail2 = function(mouse, partt, SpreadAmount, multiply)
735
	
736
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
737
	local MainPos = partt.Position
738
	local MainPos2 = Vector3.new()
739
	if mouse == play:GetMouse() then
740
	MainPos2 = mouse.Hit.p + SpreadVectors
741
	else
742
		MainPos2 = mouse.Position
743
	end
744
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
745
	local speed = 30
746
	if rage == true then
747
		speed = speed * 2
748
	end
749
	local remainder = 5
750
	local charge2 = charge
751
	charge = 1
752
	coroutine.resume(coroutine.create(function()
753
		
754
		repeat
755
			wait()
756
			MainPos2 = mouse.Hit.p + SpreadVectors
757
			MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) * CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5)))
758
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, char.HumanoidRootPart.Parent)
759
			local mag = (MainPos - pos).magnitude
760
			Laser(BrickColor.new("Institutional white"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag *(-speed / (speed / 2)), 1, -.1, 0, -.1, .3)
761
			MainPos = MainPos + MouseLook.lookVector * speed
762
			remainder = remainder - 1
763
			if hit ~= nil then
764
				remainder = 0
765
				local refpart = Instance.new("Part", nolagplease)
766
				refpart.Transparency = 1
767
				refpart.CanCollide = false
768
				refpart.Anchored = true
769
				refpart.CFrame = CFrame.new(pos)
770
				game:GetService("Debris"):AddItem(refpart, 2)
771
			end
772
			do
773
				if remainder <= 0 then
774
					local refpart = Instance.new("Part", nolagplease)
775
					refpart.Transparency = 1
776
					refpart.CanCollide = false
777
					refpart.Anchored = true
778
					refpart.CFrame = CFrame.new(pos)
779
					block(CFrame.new(pos),Vector3.new(1,1,1),Vector3.new(.5,.5,.5),.1,BrickColor.new("Really black"),1)
780
					magn(6,refpart,2)
781
					--CreateSound("http://www.roblox.com/asset/?id=10209590",refpart,1,1)
782
					game:GetService("Debris"):AddItem(refpart, 0.1)
783
				end
784
			end
785
		until remainder <= 0
786
	end
787
))
788
end
789
790
swordthrow = function(mouse, partt, SpreadAmount, multiply, sword, reweldc0)
791
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
792
	local ActualPosition = partt.Position
793
	local MainPos2 = Vector3.new()
794
	local kappa = 0
795
	if mouse == play:GetMouse() then
796
	MainPos2 = mouse.Hit.p + SpreadVectors
797
	else
798
	MainPos2 = mouse.Position
799
	end
800
	local MouseLook = CFrame.new((ActualPosition + MainPos2) / 2, MainPos2)
801
	local distance = 4
802
	local remainder = 25
803
	local reweld = sword.Weld.Part0
804
	sword.Weld.Part0 = sword
805
	sword.Anchored = true
806
	coroutine.resume(coroutine.create(function()
807
		
808
		repeat
809
			wait()
810
			throwing = true
811
			local hit, pos = rayCast(ActualPosition, MouseLook.lookVector, distance, char.HumanoidRootPart.Parent)
812
			local magnitude = (ActualPosition - pos).magnitude
813
			kappa = kappa + 30
814
			sword.CFrame = CFrame.new((ActualPosition + pos) / 2, pos) * CFrame.fromEulerAnglesXYZ(math.rad(-kappa),0,math.rad(90))
815
			ActualPosition = ActualPosition + MouseLook.lookVector * distance
816
			remainder = remainder - 1
817
			--MouseLook = MouseLook * CFrame.Angles(-.01,0, 0)
818
			if hit ~= nil then
819
				remainder = 0
820
			end
821
			do
822
				if remainder <= 0 then
823
					local magnblock = Instance.new("Part", nolagplease)
824
					magnblock.Transparency = 1
825
					magnblock.CanCollide = false
826
					magnblock.Anchored = true
827
					magnblock.CFrame = CFrame.new(pos)
828
					block(CFrame.new(pos),Vector3.new(2,2,2),Vector3.new(.5,.5,.5),.05,BrickColor.new("Really black"),1)
829
					magn(10,magnblock,7)
830
					game:GetService("Debris"):AddItem(magnblock, 0.1)
831
				end
832
			end
833
		until remainder <= 0
834
		while attack == true do
835
		sword.Transparency = 1
836
		wait()
837
		end
838
		sword.Transparency = 0.4
839
		sword.Anchored = false
840
		sword.Weld.Part0 = char.Torso
841
		sword.Weld.C0 = reweldc0
842
		
843
		block(sword.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
844
		throwing = false
845
	end
846
))
847
end
848
849
magn = function(dam,par,dist)
850
	
851
	for _,c in pairs(workspace:children()) do
852
		local hum = c:findFirstChild("Humanoid")
853
		if hum ~= nil then
854
			local head = c:findFirstChild("Torso")
855
			if head ~= nil then
856
				local targ = head.Position - par.Position
857
				local mag = targ.magnitude
858
				if mag <= dist and c.Name ~= play.Name then
859
					hum.Health = hum.Health - dam * (hum.MaxHealth/100)
860
					mana = mana + dam/5
861
					if ult == true and equipcheck == false then
862
					mana = mana + dam/5
863
					end
864
					if ult == true and equipcheck == true then
865
					char.Humanoid.Health = char.Humanoid.Health + dam/5
866
					end
867
				end
868
			end
869
		end
870
	end
871
end
872
873
magna = function(dam,par,dist)
874
	
875
	for _,c in pairs(workspace:children()) do
876
		local hum = c:findFirstChild("Humanoid")
877
		if hum ~= nil then
878
			local head = c:findFirstChild("Torso")
879
			if head ~= nil then
880
				local targ = head.Position - par.Position
881
				local mag = targ.magnitude
882
				if mag <= dist then
883
					hum.Health = hum.Health - dam * (hum.MaxHealth/100)
884
				end
885
			end
886
		end
887
	end
888
end
889
890
local pasthp = 0
891
892
part = function(wel,cancollid,size,shape,color,transp,mat,weldpart,c0,nam)
893
if shape ~= "Wedge" then
894
local q = Instance.new("Part", weapon)
895
q.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
896
q.Shape = shape
897
q.Size = size
898
q.Transparency = transp
899
q.BrickColor = color
900
q.Material = mat
901
q.FrontSurface = "Smooth"
902
q.BackSurface = "Smooth"
903
q.LeftSurface = "Smooth"
904
q.RightSurface = "Smooth"
905
q.BottomSurface = "Smooth"
906
q.TopSurface = "Smooth"
907
if cancollid == 1 then
908
q.CanCollide = false
909
end
910
q.Name = nam
911
if wel == 1 then
912
local qw = Instance.new("Weld", q)
913
qw.Part0 = weldpart
914
qw.Part1 = q
915
qw.C0 = c0
916
end
917
end
918
if shape == "Wedge" then
919
local q = Instance.new("WedgePart", weapon)
920
q.Size = size
921
q.Transparency = transp
922
q.BrickColor = color
923
q.Material = mat
924
if cancollid == 1 then
925
q.CanCollide = false
926
end
927
q.Name = nam
928
local qw = Instance.new("Weld", q)
929
qw.Part0 = weldpart
930
qw.Part1 = q
931
qw.C0 = c0
932
end
933
end
934
935
936
attack1 = function()
937
	attack = true
938
	local kekke = 0
939
	for i = 0, 1, 0.1 do
940
		wait()
941
		kekke = kekke + 8
942
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(kekke+70)), 0.3)
943
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
944
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 01)
945
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
946
		weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1)
947
	end
948
	for i = 0, 1, 0.1 do
949
		wait()
950
		magn(1.5,weapon.Handle2,4)
951
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
952
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
953
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
954
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
955
		weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1)
956
	end
957
	attack = false
958
end
959
960
attack2 = function()
961
	attack = true
962
	local kekke = 0
963
	for i = 0, 1, 0.1 do
964
		wait()
965
		kekke = kekke + 20
966
		magn(3,weapon.Handle,4)
967
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-kekke+70)), 1)
968
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
969
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 1)
970
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.3)
971
		weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1)
972
	end
973
	attack = false
974
end
975
976
swordattack3 = function()
977
	attack = true
978
	local kekke = 0
979
	for i = 0, 1, 0.1 do
980
		wait()
981
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
982
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
983
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-75), math.rad(0), math.rad(0)), 0.3)
984
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-75), math.rad(0), math.rad(0)), 0.3)
985
	end
986
	weld11.Part0 = LeftArm
987
	weld21.Part0 = RightArm
988
	weld21.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(180),0) * CFrame.new(0,0,2.5)
989
	weld11.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(180),0) * CFrame.new(0,0,2.5)
990
	for i = 0, 1, 0.2 do
991
		wait()
992
		magn(1,sword11,4)
993
		magn(1,sword21,4)
994
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
995
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
996
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
997
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
998
	end
999
	for i = 0, 1, 0.2 do
1000
		wait()
1001
		
1002
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1003
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1004
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(45)), 0.6)
1005
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(160), math.rad(-60), math.rad(45)), 0.6)
1006
	end
1007
	magn(7.5,sword21,4)
1008
	for i = 0, 1, 0.2 do
1009
		wait()
1010
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1011
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1012
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(160), math.rad(60), math.rad(-45)), 0.6)
1013
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(-45), math.rad(-45)), 0.6)
1014
	end
1015
	magn(7.5,sword11,4)
1016
	for i = 0, 1, 0.2 do
1017
		wait()
1018
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1019
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1020
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(180), math.rad(40), math.rad(-45)), 0.6)
1021
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(180), math.rad(-40), math.rad(45)), 0.6)
1022
	end
1023
	magn(7.5,sword11,4)
1024
	magn(7.5,sword21,4)
1025
	for i = 0, 1, 0.2 do
1026
		wait()
1027
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1028
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1029
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-60), math.rad(45), math.rad(45)), 0.6)
1030
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-60), math.rad(-45), math.rad(-45)), 0.6)
1031
	end
1032
	weld11.Part0 = char.Torso
1033
	weld11.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(15),math.rad(90)) * CFrame.new(0,-.8,3)
1034
	weld21.Part0 = char.Torso
1035
	weld21.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(-15),math.rad(90)) * CFrame.new(0,.8,3)
1036
	block(sword11.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1037
	block(sword21.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1038
	attack = false
1039
end
1040
1041
swordattack4 = function()
1042
	attack = true
1043
	local kekke = 0
1044
	for i = 0, 1, 0.1 do
1045
		wait()
1046
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1047
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1048
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.3)
1049
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1050
	end
1051
	weld12.Part0 = LeftArm
1052
	weld22.Part0 = RightArm
1053
	weld22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(180),0) * CFrame.new(0,0,2.5)
1054
	weld12.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(180),0) * CFrame.new(0,0,2.5)
1055
	for i = 0, 1, 0.2 do
1056
		wait()
1057
		magn(1,sword11,4)
1058
		magn(1,sword21,4)
1059
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(10)), 0.3)
1060
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.3)
1061
	end
1062
	swordthrow(play:GetMouse(),sword22,0,0,sword22, CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(-15),math.rad(90)) * CFrame.new(-.5,.8,3.4))
1063
	for i = 0, 1, 0.2 do
1064
		wait()
1065
		magn(1,sword11,4)
1066
		magn(1,sword21,4)
1067
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(10)), 0.3)
1068
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3)
1069
	end
1070
	swordthrow(play:GetMouse(),sword12,0,0,sword12, CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(15),math.rad(90)) * CFrame.new(-.5,-.8,3.4))
1071
	for i = 0, 1, 0.2 do
1072
		wait()
1073
		magn(1,sword11,4)
1074
		magn(1,sword21,4)
1075
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3)
1076
	end
1077
	attack = false
1078
end
1079
1080
swordattack5 = function()
1081
	attack = true
1082
	local kekke = 60
1083
	for i = 0, 1, 0.2 do
1084
		wait()
1085
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1086
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1087
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(240), math.rad(0), math.rad(0)), 0.3)
1088
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(240), math.rad(0), math.rad(0)), 0.3)
1089
	end
1090
	weld1.Part0 = LeftArm
1091
	weld2.Part0 = RightArm
1092
	weld2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180),0) * CFrame.new(0,-1,0)
1093
	weld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180),0) * CFrame.new(0,-1,0)
1094
	for i = 0, 1, 0.2 do
1095
		wait()
1096
		magn(1,sword11,4)
1097
		magn(1,sword21,4)
1098
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-kekke)), 0.3)
1099
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(kekke)), 0.3)
1100
	end
1101
	while kekke > -120 do
1102
		wait()
1103
		magn(1,sword1,2)
1104
		magn(1,sword2,2)
1105
		kekke = kekke - 7
1106
		weld2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180+kekke*15),0) * CFrame.new(0,-1,0)
1107
		weld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180-kekke*15),0) * CFrame.new(0,-1,0)
1108
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-kekke)), 0.3)
1109
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(kekke)), 0.3)
1110
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1111
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1112
	end
1113
	attack = false
1114
	weld1.Part0 = char.Torso
1115
	weld2.Part0 = char.Torso
1116
	weld2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-15),math.rad(90)) * CFrame.new(.5,.8,3.4)
1117
	weld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(15),math.rad(90)) * CFrame.new(.5,-.8,3.4)
1118
	block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1119
	block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1120
end
1121
1122
swordattack6 = function()
1123
	attack = true
1124
	local sworda = Instance.new("Part", char)
1125
	sworda.CanCollide = false
1126
	sworda.Transparency = 1
1127
	local aw = Instance.new("Weld", sworda)
1128
	aw.Part0 = sworda
1129
	aw.Part1 = char.HumanoidRootPart
1130
	local kekke = 0
1131
	for i = 0, 1, 0.2 do
1132
		wait()
1133
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1134
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1135
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
1136
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
1137
	end
1138
	sword1.Weld.Part0 = sworda
1139
	sword2.Weld.Part0 = sworda
1140
	sword11.Weld.Part0 = sworda
1141
	sword21.Weld.Part0 = sworda
1142
	sword12.Weld.Part0 = sworda
1143
	sword22.Weld.Part0 = sworda
1144
	sword1.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(60),math.rad(0)) * CFrame.new(0,0,4)
1145
	sword2.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(120),math.rad(0)) * CFrame.new(0,0,4)
1146
	sword11.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180),math.rad(0)) * CFrame.new(0,0,4)
1147
	sword21.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(240),math.rad(0)) * CFrame.new(0,0,4)
1148
	sword12.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(300),math.rad(0)) * CFrame.new(0,0,4)
1149
	sword22.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(360),math.rad(0)) * CFrame.new(0,0,4)
1150
	block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1151
	block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1152
	block(sword11.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1153
	block(sword21.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1154
	block(sword12.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1155
	block(sword22.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1156
	while kekke > -120 do
1157
		wait()
1158
		kekke = kekke - 3.5
1159
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(-3.5),0)
1160
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45+kekke)), 0.3)
1161
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45+kekke)), 0.3)
1162
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1163
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1164
	end
1165
	for i = 0,1,0.1 do
1166
		wait()
1167
		magn(1,sword1,4)
1168
		magn(1,sword2,4)
1169
		magn(1,sword11,4)
1170
		magn(1,sword21,4)
1171
		magn(1,sword12,4)
1172
		magn(1,sword22,4)
1173
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(28),0)
1174
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.6)
1175
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.6)
1176
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1177
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1178
	end
1179
	kekke = 28
1180
	while kekke >= 0 do
1181
		wait()
1182
		kekke = kekke - 0.4
1183
		magn(1*(kekke/28),sword1,4)
1184
		magn(1*(kekke/28),sword2,4)
1185
		magn(1*(kekke/28),sword11,4)
1186
		magn(1*(kekke/28),sword21,4)
1187
		magn(1*(kekke/28),sword12,4)
1188
		magn(1*(kekke/28),sword22,4)
1189
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(kekke),0)
1190
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1191
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1192
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1193
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1194
	end
1195
	attack = false
1196
	weld1.Part0 = char.Torso
1197
	weld2.Part0 = char.Torso
1198
	weld11.Part0 = char.Torso
1199
	weld21.Part0 = char.Torso
1200
	weld12.Part0 = char.Torso
1201
	weld22.Part0 = char.Torso
1202
	weld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(15),math.rad(90)) * CFrame.new(.5,-.8,3.4)
1203
	weld2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-15),math.rad(90)) * CFrame.new(.5,.8,3.4)
1204
	weld11.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(15),math.rad(90)) * CFrame.new(0,-.8,3)
1205
	weld21.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(-15),math.rad(90)) * CFrame.new(0,.8,3)
1206
	weld12.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(15),math.rad(90)) * CFrame.new(-.5,-.8,3.4)
1207
	weld22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(-15),math.rad(90)) * CFrame.new(-.5,.8,3.4)
1208
	block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1209
	block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1210
	block(sword11.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1211
	block(sword21.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1212
	block(sword12.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1213
	block(sword22.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1214
	sworda:Destroy()
1215
	
1216
end
1217
1218
swordult = function()
1219
	attack = true
1220
	local sworda = Instance.new("Part", char)
1221
	sworda.CanCollide = false
1222
	sworda.Transparency = 1
1223
	local aw = Instance.new("Weld", sworda)
1224
	aw.Part0 = sworda
1225
	aw.Part1 = char.HumanoidRootPart
1226
	local kekke = 0
1227
	for i = 0, 1, 0.2 do
1228
		wait()
1229
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1230
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1231
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
1232
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
1233
	end
1234
	sword1.Weld.Part0 = sworda
1235
	sword2.Weld.Part0 = sworda
1236
	sword11.Weld.Part0 = sworda
1237
	sword21.Weld.Part0 = sworda
1238
	sword12.Weld.Part0 = sworda
1239
	sword22.Weld.Part0 = sworda
1240
	sword1.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(60),math.rad(0)) * CFrame.new(0,0,4)
1241
	sword2.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(120),math.rad(0)) * CFrame.new(0,0,4)
1242
	sword11.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180),math.rad(0)) * CFrame.new(0,0,4)
1243
	sword21.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(240),math.rad(0)) * CFrame.new(0,0,4)
1244
	sword12.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(300),math.rad(0)) * CFrame.new(0,0,4)
1245
	sword22.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(360),math.rad(0)) * CFrame.new(0,0,4)
1246
	block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1247
	block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1248
	block(sword11.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1249
	block(sword21.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1250
	block(sword12.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1251
	block(sword22.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1252
	while kekke > -135 do
1253
		wait()
1254
		kekke = kekke - 1
1255
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(-3.5),0)
1256
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-45-kekke)), 0.6)
1257
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45+kekke)), 0.6)
1258
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1259
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1260
	end
1261
	local spinneblock = Instance.new("Part", char)
1262
	spinneblock.CanCollide = false
1263
	spinneblock.Transparency = 1
1264
	local spinneweld = Instance.new("Weld",spinneblock)
1265
	spinneweld.Part0 = spinneblock
1266
	spinneweld.Part1 = char.Torso
1267
	local spinnemesh = Instance.new("SpecialMesh", spinneblock)
1268
	spinnemesh.MeshType = "FileMesh"
1269
	spinnemesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
1270
	spinnemesh.Scale = Vector3.new(4,6,4)
1271
	spinneblock.BrickColor = char.Torso.BrickColor
1272
	for i = 0,1,0.1 do
1273
		wait()
1274
		magn(1,sword1,4)
1275
		magn(1,sword2,4)
1276
		magn(1,sword11,4)
1277
		magn(1,sword21,4)
1278
		magn(1,sword12,4)
1279
		magn(1,sword22,4)
1280
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(28),0)
1281
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.6)
1282
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.6)
1283
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1284
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1285
	end
1286
	kekke = 0
1287
	char.Humanoid.AutoRotate = false
1288
	char.Humanoid.WalkSpeed = 64
1289
	for i = 0,1,0.005 do
1290
		wait()
1291
		spinneblock.Transparency = spinneblock.Transparency - 0.01
1292
		kekke = kekke + 30
1293
		magn(2,sword1,6)
1294
		magn(2,sword2,6)
1295
		magn(2,sword11,6)
1296
		magn(2,sword21,6)
1297
		magn(2,sword12,6)
1298
		magn(2,sword22,6)
1299
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(15),0)
1300
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
1301
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-kekke)), .6)
1302
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1303
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1304
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1305
	end
1306
	attack = false
1307
	char.Humanoid.AutoRotate = true
1308
	weld1.Part0 = char.Torso
1309
	weld2.Part0 = char.Torso
1310
	weld11.Part0 = char.Torso
1311
	weld21.Part0 = char.Torso
1312
	weld12.Part0 = char.Torso
1313
	weld22.Part0 = char.Torso
1314
	weld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(15),math.rad(90)) * CFrame.new(.5,-.8,3.4)
1315
	weld2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-15),math.rad(90)) * CFrame.new(.5,.8,3.4)
1316
	weld11.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(15),math.rad(90)) * CFrame.new(0,-.8,3)
1317
	weld21.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(-15),math.rad(90)) * CFrame.new(0,.8,3)
1318
	weld12.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(15),math.rad(90)) * CFrame.new(-.5,-.8,3.4)
1319
	weld22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(-15),math.rad(90)) * CFrame.new(-.5,.8,3.4)
1320
	sworda:Destroy()
1321
	spinneblock:Destroy()
1322
	ult = false
1323
	weapon.Handle2.Weld.Part0 = RightArm
1324
	sword1.Transparency = 1
1325
	sword2.Transparency = 1
1326
	sword11.Transparency = 1
1327
	sword21.Transparency = 1
1328
	sword12.Transparency = 1
1329
	sword22.Transparency = 1
1330
	char.Humanoid.Health = 1
1331
	mana = mana - 400
1332
end
1333
1334
swordspin = function()
1335
	attack = true
1336
	local thrown = false
1337
	local side = false
1338
	local sworda = Instance.new("Part", char)
1339
	sworda.CanCollide = false
1340
	sworda.Transparency = 1
1341
	local aw = Instance.new("Weld", sworda)
1342
	aw.Part0 = sworda
1343
	aw.Part1 = char.HumanoidRootPart
1344
	local kekke = 0
1345
	for i = 0, 1, 0.2 do
1346
		wait()
1347
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1348
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1349
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
1350
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
1351
	end
1352
	sword1.Weld.Part0 = sworda
1353
	sword2.Weld.Part0 = sworda
1354
	sword11.Weld.Part0 = sworda
1355
	sword21.Weld.Part0 = sworda
1356
	sword12.Weld.Part0 = sworda
1357
	sword22.Weld.Part0 = sworda
1358
	sword1.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(60),math.rad(0)) * CFrame.new(0,0,4)
1359
	sword2.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(120),math.rad(0)) * CFrame.new(0,0,4)
1360
	sword11.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180),math.rad(0)) * CFrame.new(0,0,4)
1361
	sword21.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(240),math.rad(0)) * CFrame.new(0,0,4)
1362
	sword12.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(300),math.rad(0)) * CFrame.new(0,0,4)
1363
	sword22.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(360),math.rad(0)) * CFrame.new(0,0,4)
1364
	while kekke > -120 do
1365
		wait()
1366
		kekke = kekke - 3.5
1367
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(-3.5),0)
1368
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45+kekke)), 0.3)
1369
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45+kekke)), 0.3)
1370
		--block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1371
		--block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.3,BrickColor.new("Institutional white"),2)
1372
	end
1373
	coroutine.resume(coroutine.create(function()
1374
	swordthrow(play:GetMouse(),sword22,0,0,sword22, CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(-15),math.rad(90)) * CFrame.new(-.5,.8,3.4)		)
1375
	side = true
1376
	wait(.42)
1377
	swordthrow(play:GetMouse(),sword1,0,0,sword1, CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(15),math.rad(90)) * CFrame.new(.5,-.8,3.4)		)	
1378
	side = false	
1379
	wait(.42)
1380
	swordthrow(play:GetMouse(),sword2,0,0,sword2, CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-15),math.rad(90)) * CFrame.new(.5,.8,3.4)		)
1381
	side = true	
1382
	wait(.42)
1383
	swordthrow(play:GetMouse(),sword11,0,0,sword11, CFrame.fromEulerAnglesXYZ(0,math.rad(15),math.rad(90)) * CFrame.new(0,-.8,3)					)	
1384
	side = false	
1385
	wait(.42)
1386
	swordthrow(play:GetMouse(),sword21,0,0,sword21, CFrame.fromEulerAnglesXYZ(0,math.rad(-15),math.rad(90)) * CFrame.new(0,.8,3)					)	
1387
	side = true	
1388
	wait(.42)
1389
	swordthrow(play:GetMouse(),sword12,0,0,sword12, CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(15),math.rad(90)) * CFrame.new(-.5,-.8,3.4)		)
1390
	side = false	
1391
	wait(.42)
1392
	thrown = true
1393
	end))
1394
	while thrown == false do
1395
	wait()
1396
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(28),0)
1397
		
1398
		if side == true then
1399
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), .6)
1400
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .6)
1401
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), .6)			
1402
		else
1403
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .6)
1404
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), .6)
1405
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .6)	
1406
		end
1407
	end
1408
	attack = false
1409
	sworda:Destroy()
1410
end
1411
1412
swordcombo = function()
1413
	attack = true
1414
	local thrown = false
1415
	local side = false
1416
	local sworda = Instance.new("Part", char)
1417
	sworda.CanCollide = false
1418
	sworda.Transparency = 1
1419
	local aw = Instance.new("Weld", sworda)
1420
	aw.Part0 = sworda
1421
	aw.Part1 = char.HumanoidRootPart
1422
	local kekke = 0
1423
	for i = 0, 1, 0.2 do
1424
		wait()
1425
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1426
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1427
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
1428
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
1429
	end
1430
	sword1.Weld.Part0 = sworda
1431
	sword2.Weld.Part0 = sworda
1432
	sword11.Weld.Part0 = sworda
1433
	sword21.Weld.Part0 = sworda
1434
	sword12.Weld.Part0 = sworda
1435
	sword22.Weld.Part0 = sworda
1436
	sword1.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(60),math.rad(90)) * CFrame.new(0,0,4)
1437
	sword2.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(120),math.rad(90)) * CFrame.new(0,0,4)
1438
	sword11.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180),math.rad(90)) * CFrame.new(0,0,4)
1439
	sword21.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(240),math.rad(90)) * CFrame.new(0,0,4)
1440
	sword12.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(300),math.rad(90)) * CFrame.new(0,0,4)
1441
	sword22.Weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(360),math.rad(90)) * CFrame.new(0,0,4)
1442
	while kekke > -180 do
1443
		wait()
1444
		kekke = kekke - 4
1445
		aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(-4),0)
1446
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-kekke/2)), 0.3)
1447
		sword1.Weld.C0 = clerp(sword1.Weld.C0, CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(60),math.rad(0)) * CFrame.new(0,0,4-kekke/15) * CFrame.fromEulerAnglesXYZ(math.rad(kekke),0,0), 1)
1448
		sword2.Weld.C0 = clerp(sword2.Weld.C0, CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(120),math.rad(0)) * CFrame.new(0,0,4-kekke/15) * CFrame.fromEulerAnglesXYZ(math.rad(kekke),0,0), 1)
1449
		sword11.Weld.C0 = clerp(sword11.Weld.C0, CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180),math.rad(0)) * CFrame.new(0,0,4-kekke/15) * CFrame.fromEulerAnglesXYZ(math.rad(kekke),0,0), 1)
1450
		sword21.Weld.C0 = clerp(sword21.Weld.C0, CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(240),math.rad(0)) * CFrame.new(0,0,4-kekke/15) * CFrame.fromEulerAnglesXYZ(math.rad(kekke),0,0), 1)
1451
		sword12.Weld.C0 = clerp(sword12.Weld.C0, CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(300),math.rad(0)) * CFrame.new(0,0,4-kekke/15) * CFrame.fromEulerAnglesXYZ(math.rad(kekke),0,0), 1)
1452
		sword22.Weld.C0 = clerp(sword22.Weld.C0, CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(360),math.rad(0)) * CFrame.new(0,0,4-kekke/15) * CFrame.fromEulerAnglesXYZ(math.rad(kekke),0,0), 1)
1453
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(kekke/2)), 0.3)
1454
	end
1455
	coroutine.resume(coroutine.create(function()
1456
	
1457
	end))
1458
	aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(-20),0)
1459
	block(sword2.CFrame,Vector3.new(20,200,1),Vector3.new(0,.1,0),.005,BrickColor.new("Institutional white"),3)
1460
	block(sword12.CFrame,Vector3.new(20,200,1),Vector3.new(0,.1,0),.005,BrickColor.new("Really black"),3)
1461
	block(sword11.CFrame,Vector3.new(20,200,1),Vector3.new(0,.1,0),.005,BrickColor.new("Institutional white"),3)
1462
	block(sword22.CFrame,Vector3.new(20,200,1),Vector3.new(0,.1,0),.005,BrickColor.new("Really black"),3)
1463
	block(sword1.CFrame,Vector3.new(20,200,1),Vector3.new(0,.1,0),.005,BrickColor.new("Institutional white"),3)
1464
	block(sword21.CFrame,Vector3.new(20,200,1),Vector3.new(0,.1,0),.005,BrickColor.new("Really black"),3)
1465
	attack = false
1466
	weld1.Part0 = char.Torso
1467
	weld2.Part0 = char.Torso
1468
	weld11.Part0 = char.Torso
1469
	weld21.Part0 = char.Torso
1470
	weld12.Part0 = char.Torso
1471
	weld22.Part0 = char.Torso
1472
	weld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(15),math.rad(90)) * CFrame.new(.5,-.8,3.4)
1473
	weld2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-15),math.rad(90)) * CFrame.new(.5,.8,3.4)
1474
	weld11.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(15),math.rad(90)) * CFrame.new(0,-.8,3)
1475
	weld21.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(-15),math.rad(90)) * CFrame.new(0,.8,3)
1476
	weld12.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(15),math.rad(90)) * CFrame.new(-.5,-.8,3.4)
1477
	weld22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(-15),math.rad(90)) * CFrame.new(-.5,.8,3.4)
1478
	block(sword1.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1479
	block(sword2.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1480
	block(sword11.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1481
	block(sword21.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1482
	block(sword12.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1483
	block(sword22.CFrame,Vector3.new(1,1,5),Vector3.new(0,0,0),.1,BrickColor.new("Institutional white"),2)
1484
	sworda:Destroy()
1485
end
1486
1487
attack3 = function()
1488
	attack = true
1489
	for i = 0, 1, 0.1 do
1490
		wait()
1491
		magn(2,LeftArm,2)
1492
		block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(1,1,1),Vector3.new(.1,.1,.1),.1,char.Torso.BrickColor,1)
1493
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1494
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1495
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .3)
1496
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(0)), 1)
1497
	end
1498
	block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(5,5,5),Vector3.new(1,1,1),.1,char.Torso.BrickColor,1)
1499
	for i = 0, 1, 0.1 do
1500
		wait()
1501
		block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(1.5,1.5,1.5),Vector3.new(.1,.1,.1),.2,char.Torso.BrickColor,1)
1502
		magn(2,LeftArm,2)
1503
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1504
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1505
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .3)
1506
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
1507
	end
1508
	attack = false
1509
end
1510
1511
attack4 = function()
1512
	attack = true
1513
	for i = 0, 1, 0.1 do
1514
		wait()
1515
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
1516
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1517
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), .3)
1518
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 1)
1519
	end
1520
	block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(5,5,5),Vector3.new(1,1,1),.1,char.Torso.BrickColor,1)
1521
	shoottrail(weapon.ST,LeftArm,0,1)
1522
	for i = 0, 1, 0.1 do
1523
		wait()
1524
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
1525
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1526
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), .3)
1527
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 1)
1528
	end
1529
	attack = false
1530
end
1531
1532
magicattack3 = function()
1533
	attack = true
1534
	local kekke = 0
1535
	local shotsfired = 0
1536
	for i = 0, 1, 0.1 do
1537
		wait()
1538
		block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(3,3,3),Vector3.new(.1,.1,.1),.2,BrickColor.new("Institutional white"),1)
1539
		magn(0.3,LeftArm,6)
1540
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1541
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1542
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .3)
1543
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(0)), 1)
1544
	end
1545
	block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(5,5,5),Vector3.new(1,1,1),.1,BrickColor.new("Institutional white"),1)
1546
	magn(10,LeftArm,5)
1547
	local a4 = Instance.new("Part", char)
1548
	a4.Anchored = true
1549
	a4.CanCollide = false
1550
	a4.Transparency = 1
1551
	a4.Size = Vector3.new(1,1,1)
1552
	a4.CFrame = LeftArm.CFrame * CFrame.new(0,-1,0)
1553
	coroutine.resume(coroutine.create(function()
1554
	while shotsfired < 5 do
1555
	kekke = kekke + 1
1556
	block(a4.CFrame,Vector3.new(3*(1-shotsfired/5),3*(1-shotsfired/5),3*(1-shotsfired/5)),Vector3.new(.1,.1,.1),.2,BrickColor.new("Institutional white"),1)
1557
	if kekke >= 15 then
1558
		kekke = 0
1559
		block(a4.CFrame,Vector3.new(10,10,10),Vector3.new(-1,-1,-1),.2,BrickColor.new("Really black"),1)
1560
		magn(5,a4,5)
1561
		shotsfired = shotsfired + 1
1562
	end
1563
	wait()
1564
	end
1565
	a4:Destroy()
1566
	end))
1567
	for i = 0, 1, 0.1 do
1568
		wait()
1569
		block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(3,3,3),Vector3.new(.1,.1,.1),.2,BrickColor.new("Really black"),1)
1570
		magn(1,LeftArm,6)
1571
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1572
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1573
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .3)
1574
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
1575
	end
1576
	attack = false
1577
end
1578
1579
magicattack4 = function()
1580
	attack = true
1581
	local kekke = 0
1582
	local shotsfired = 0
1583
	for i = 0, 1, 0.1 do
1584
		wait()
1585
		block(RightArm.CFrame*CFrame.new(0,-1,0),Vector3.new(3,3,3),Vector3.new(.1,.1,.1),.2,BrickColor.new("Really black"),1)
1586
		magn(0.3,RightArm,6)
1587
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1588
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1589
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(0)), .3)
1590
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 1)
1591
	end
1592
	block(RightArm.CFrame*CFrame.new(0,-1,0),Vector3.new(5,5,5),Vector3.new(1,1,1),.1,BrickColor.new("Really black"),1)
1593
	magn(10,RightArm,5)
1594
	local a4 = Instance.new("Part", char)
1595
	a4.Anchored = true
1596
	a4.CanCollide = false
1597
	a4.Transparency = 1
1598
	a4.Size = Vector3.new(1,1,1)
1599
	a4.CFrame = RightArm.CFrame * CFrame.new(0,-1,0)
1600
	coroutine.resume(coroutine.create(function()
1601
	while shotsfired < 5 do
1602
	kekke = kekke + 1
1603
	block(a4.CFrame,Vector3.new(3*(1-shotsfired/5),3*(1-shotsfired/5),3*(1-shotsfired/5)),Vector3.new(.1,.1,.1),.2,BrickColor.new("Really black"),1)
1604
	if kekke >= 15 then
1605
		kekke = 0
1606
		shoottrail2(play:GetMouse(),a4,0,0)
1607
		shotsfired = shotsfired + 1
1608
	end
1609
	wait()
1610
	end
1611
	a4:Destroy()
1612
	end))
1613
	for i = 0, 1, 0.1 do
1614
		wait()
1615
		block(RightArm.CFrame*CFrame.new(0,-1,0),Vector3.new(3,3,3),Vector3.new(.1,.1,.1),.2,BrickColor.new("Institutional white"),1)
1616
		magn(1,RightArm,6)
1617
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1618
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1619
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
1620
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .3)
1621
	end
1622
	attack = false
1623
end
1624
1625
1626
shieldbash = function()
1627
	attack = true
1628
	local kekke = 0
1629
	for i = 0, 1, 0.1 do
1630
		wait()
1631
		kekke = kekke + 8
1632
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
1633
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1634
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 01)
1635
		if equipped == true then
1636
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(-90), math.rad(0)), 0.3)
1637
		end
1638
		if equipped == false then
1639
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1640
		end
1641
	end
1642
	char.Humanoid.Jump = true
1643
	for i = 0, 1, 0.1 do
1644
		wait()
1645
		char.Torso.Velocity = char.HumanoidRootPart.CFrame.lookVector * 150
1646
		block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(1,1,1),Vector3.new(.5,.5,.5),.04,char.Torso.BrickColor,1)
1647
		magn(3,char.Torso,5)
1648
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(90)),char.Torso.BrickColor,Vector3.new(2.5,2.5,2.5),Vector3.new(0.5,0,.5),0.04,2)
1649
	end
1650
	block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(15,15,15),Vector3.new(1,1,1),.1,char.Torso.BrickColor,1)
1651
	magn(10,char.Torso,15)
1652
	for i = 0, 1, 0.1 do
1653
		wait()
1654
		magn(1.5,weapon.Handle2,4)
1655
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
1656
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
1657
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
1658
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
1659
	end
1660
	attack = false
1661
end
1662
1663
teleportback = function()
1664
	attack = true
1665
	parry = false
1666
	char.Humanoid.WalkSpeed = 4
1667
	local kekke = 0
1668
	while parry == false do
1669
		wait()
1670
		kekke = kekke + 8
1671
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1672
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1673
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
1674
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
1675
	end
1676
	block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(15,15,15),Vector3.new(1,1,1),.1,char.Torso.BrickColor,1)
1677
	magn(20,char.Torso,15)
1678
	char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0,15)
1679
	char.Humanoid.WalkSpeed = 16
1680
	attack = false
1681
end
1682
1683
supershieldbash = function()
1684
	attack = true
1685
	local kekke = 0
1686
	for i = 0, 1, 0.1 do
1687
		wait()
1688
		kekke = kekke + 8
1689
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
1690
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1691
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 01)
1692
		if equipped == true then
1693
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(-90), math.rad(0)), 0.3)
1694
		end
1695
		if equipped == false then
1696
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1697
		end
1698
	end
1699
	char.Humanoid.Jump = true
1700
	for i = 0, 1, 0.05 do
1701
		wait()
1702
		char.Torso.Velocity = char.HumanoidRootPart.CFrame.lookVector * 150
1703
		block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(2,2,2),Vector3.new(1,1,1),.04,BrickColor.new("Institutional white"),1)
1704
		magn(3,char.Torso,10)
1705
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(90)),BrickColor.new("Really black"),Vector3.new(5,5,5),Vector3.new(0.5,0,.5),0.02,1)
1706
	end
1707
	block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(30,30,30),Vector3.new(1,1,1),.1,BrickColor.new("Really black"),1)
1708
	magn(10,char.Torso,30)
1709
	for i = 0, 1, 0.1 do
1710
		wait()
1711
		magn(1.5,weapon.Handle2,4)
1712
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
1713
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
1714
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
1715
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
1716
	end
1717
	attack = false
1718
end
1719
1720
superteleportback = function()
1721
	attack = true
1722
	parry = false
1723
	char.Humanoid.WalkSpeed = 4
1724
	local kekke = 0
1725
	while parry == false do
1726
		wait()
1727
		kekke = kekke + 8
1728
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1729
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1730
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
1731
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
1732
	end
1733
	char.Humanoid.AutoRotate = false
1734
	for i = 0,2 do
1735
	block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(2,2,2),Vector3.new(1,1,1),.04,BrickColor.new("Really black"),1)
1736
		magn(3,char.Torso,10)
1737
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(90)),BrickColor.new("Institutional white"),Vector3.new(5,5,5),Vector3.new(0.5,0,.5),0.02,1)
1738
	char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0,15)
1739
	end
1740
	wait(.3)
1741
	for i = 0,5 do
1742
	block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(2,2,2),Vector3.new(1,1,1),.04,BrickColor.new("Institutional white"),1)
1743
		magn(3,char.Torso,10)
1744
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(90)),BrickColor.new("Really black"),Vector3.new(5,5,5),Vector3.new(0.5,0,.5),0.02,1)
1745
	char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0,-15)
1746
	end
1747
	wait(.3)
1748
	for i = 0,8 do
1749
	block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(2,2,2),Vector3.new(1,1,1),.04,BrickColor.new("Really black"),1)
1750
		magn(3,char.Torso,10)
1751
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(90)),BrickColor.new("Institutional white"),Vector3.new(5,5,5),Vector3.new(0.5,0,.5),0.02,1)
1752
	char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0,15)
1753
	end
1754
	wait(.3)
1755
	for i = 0,8 do
1756
	block(char.HumanoidRootPart.CFrame*CFrame.new(0,0,3),Vector3.new(2,2,2),Vector3.new(1,1,1),.04,BrickColor.new("Institutional white"),1)
1757
		magn(3,char.Torso,10)
1758
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(90)),BrickColor.new("Really black"),Vector3.new(5,5,5),Vector3.new(0.5,0,.5),0.02,1)
1759
	char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0,-15)
1760
	end
1761
	char.Humanoid.WalkSpeed = 16
1762
	attack = false
1763
	char.Humanoid.AutoRotate = true
1764
end
1765
1766
local equip = function()
1767
	attack = true
1768
	for i = 0, 1, 0.1 do
1769
		wait()
1770
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1771
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1772
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.2 - 0.1 * math.cos((sine) / 15), -1) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.5)
1773
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(-90), math.rad(0)), 0.3)
1774
	end
1775
	if equipped == true then
1776
	char.Humanoid.WalkSpeed = 32
1777
	equipped = false
1778
	weapon.Handle.Weld.Part0 = weapon.Handle2
1779
	weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -.1, 2.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1780
	elseif equipped == false then
1781
	equipped = true
1782
	char.Humanoid.WalkSpeed = 16
1783
	weapon.Handle.Weld.Part0 = LeftArm
1784
	weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1)
1785
	end
1786
	attack = false
1787
end
1788
1789
1790
1791
comboattack = function()
1792
	attack = true
1793
	local kekke = 0
1794
	while kekke < 1440 do
1795
		wait()
1796
		kekke = kekke + 40
1797
		magn(4,weapon.Handle,4)
1798
		block(LeftArm.CFrame*CFrame.new(0,-2,0),Vector3.new(1,1,4),Vector3.new(0,0,1),.1,char.Torso.BrickColor,1)
1799
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-kekke)), 1)
1800
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
1801
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 1)
1802
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1803
		weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-90)), 1)
1804
	end
1805
	attack = false
1806
end
1807
1808
orbs = function()
1809
	local kekke = 0
1810
	local shot1 = 1
1811
	local a = Instance.new("Part", char)
1812
	a.CanCollide = false
1813
	a.Transparency = 1
1814
	a.Size = Vector3.new(1,1,1)
1815
	local aw = Instance.new("Weld", a)
1816
	aw.Part0 = a
1817
	aw.Part1 = char.HumanoidRootPart
1818
	if ult == true and equipcheck == false then
1819
	aw.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(-18))
1820
	end
1821
	local a2 = Instance.new("Part", char)
1822
	a2.Anchored = true
1823
	a2.CanCollide = false
1824
	a2.Transparency = 1
1825
	a2.Size = Vector3.new(1,1,1)
1826
	local a3 = Instance.new("Part", char)
1827
	a3.Anchored = true
1828
	a3.CanCollide = false
1829
	a3.Transparency = 1
1830
	a3.Size = Vector3.new(1,1,1)
1831
	local a4 = Instance.new("Part", char)
1832
	a4.Anchored = true
1833
	a4.CanCollide = false
1834
	a4.Transparency = 1
1835
	a4.Size = Vector3.new(1,1,1)
1836
	while mana >= 1 and orb == true do
1837
		wait()
1838
		kekke = kekke + 1
1839
		if ult == false then
1840
			magn(.3,a2,4)
1841
			block(a2.CFrame,Vector3.new(1,1,1),Vector3.new(-.2,-.2,-.2),.1,char.Torso.BrickColor,1)
1842
			magn(.3,a3,4)
1843
			block(a3.CFrame,Vector3.new(1,1,1),Vector3.new(-.2,-.2,-.2),.1,char.Torso.BrickColor,1)
1844
			magn(.3,a4,4)
1845
			block(a4.CFrame,Vector3.new(1,1,1),Vector3.new(-.2,-.2,-.2),.1,char.Torso.BrickColor,1)
1846
			mana = mana - 0.3
1847
			aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(6),0)
1848
			a2.CFrame = a.CFrame * CFrame.new(2,0,-4)
1849
			a3.CFrame = a.CFrame * CFrame.new(2,0,4)
1850
			a4.CFrame = a.CFrame * CFrame.new(-4,0,0)
1851
		else
1852
			if kekke >= 20 and equipcheck == false then
1853
					kekke = 0
1854
					if shot1 == 1 then
1855
					shot1 = 2
1856
					shoottrail2(play:GetMouse(),a4,0,1)
1857
					elseif shot1 == 2 then
1858
					shot1 = 3
1859
					shoottrail2(play:GetMouse(),a2,0,1)
1860
					elseif shot1 == 3 then
1861
					shot1 = 1
1862
					shoottrail2(play:GetMouse(),a3,0,1)
1863
					end
1864
			end
1865
			magn(.4,a2,6)
1866
			block(a2.CFrame,Vector3.new(1.5,1.5,1.5),Vector3.new(-.2,-.2,-.2),.1,BrickColor.new("Really black"),1)
1867
			magn(.4,a3,6)
1868
			block(a3.CFrame,Vector3.new(1.5,1.5,1.5),Vector3.new(-.2,-.2,-.2),.1,BrickColor.new("Really black"),1)
1869
			magn(.4,a4,6)
1870
			block(a4.CFrame,Vector3.new(1.5,1.5,1.5),Vector3.new(-.2,-.2,-.2),.1,BrickColor.new("Really black"),1)
1871
			mana = mana - .6
1872
			if equipcheck == false then
1873
			aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(6))
1874
			a2.CFrame = a.CFrame * CFrame.new(2,-4,0)
1875
			a3.CFrame = a.CFrame * CFrame.new(2,4,0)
1876
			a4.CFrame = a.CFrame * CFrame.new(-4,0,0)
1877
			else
1878
			aw.C0 = aw.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(6),0)
1879
			a2.CFrame = a.CFrame * CFrame.new(2,0,-4)
1880
			a3.CFrame = a.CFrame * CFrame.new(2,0,4)
1881
			a4.CFrame = a.CFrame * CFrame.new(-4,0,0)	
1882
			end
1883
		end
1884
	end
1885
	a:Destroy()
1886
	a2:Destroy()
1887
	a3:Destroy()
1888
	a4:Destroy()
1889
end
1890
1891
local magictransform = function()
1892
	attack = true
1893
	char.Humanoid.WalkSpeed = 0
1894
	char.Humanoid.JumpPower = 0
1895
	local kekke = 0
1896
	local kekke1 = 0
1897
	local kekke2 = 0
1898
	local kekke3 = 0
1899
	local coold = 1
1900
	for i = 0,1,0.01 do
1901
		wait()
1902
		magn(0.5,char.Torso,10)
1903
		kekke = kekke + 0.1
1904
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(-1,-1,-1),.2,BrickColor.new("Really black"),1)
1905
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,1,1),Vector3.new(1,0,0),.05,BrickColor.new("Institutional white"),1)
1906
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, kekke - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1907
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1908
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 1)
1909
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1910
	end
1911
	coroutine.resume(coroutine.create(function()
1912
	while attack == true do
1913
	kekke1 = math.random(0,180)
1914
	kekke2 = math.random(0,180)
1915
	kekke3 = math.random(0,180)
1916
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(kekke1),math.rad(kekke2),math.rad(kekke3)),BrickColor.new("Institutional white"),Vector3.new(10,10,10),Vector3.new(1,-1,1),0.1,2)
1917
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(kekke1),math.rad(kekke2),math.rad(180+kekke3)),BrickColor.new("Really black"),Vector3.new(10,10,10),Vector3.new(1,-1,1),0.1,2)
1918
	magn(0.5,char.Torso,20)
1919
	wait(coold)
1920
	end
1921
	end))
1922
	for i = 0,1,0.01 do
1923
		wait()
1924
		coold = coold - 0.01
1925
		print(coold)
1926
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.2,BrickColor.new("Really black"),1)
1927
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.2,BrickColor.new("Institutional white"),1)
1928
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, kekke - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1929
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1930
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(40)), 1)
1931
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(-45), math.rad(-40)), 0.3)
1932
	end
1933
	block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.02,BrickColor.new("Really black"),1)
1934
	block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.02,BrickColor.new("Institutional white"),1)
1935
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0),BrickColor.new("Institutional white"),Vector3.new(10,10,10),Vector3.new(1,-1,1),0.01,2)
1936
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),BrickColor.new("Really black"),Vector3.new(10,10,10),Vector3.new(1,-1,1),0.01,2)
1937
	attack = false
1938
	char.Humanoid.WalkSpeed = 16
1939
	char.Humanoid.JumpPower = 50
1940
end
1941
1942
local magicult = function()
1943
	attack = true
1944
	char.Humanoid.WalkSpeed = 0
1945
	char.Humanoid.JumpPower = 0
1946
	local kekke = 0
1947
	local coold = 1
1948
	coroutine.resume(coroutine.create(function()
1949
	while kekke == 0 do
1950
	block(RightArm.CFrame*CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(.33,.33,.33),Vector3.new(2,2,2),Vector3.new(.5,.5,.5),.025,BrickColor.new("Really black"),1)
1951
	block(LeftArm.CFrame*CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(.33,.33,.33),Vector3.new(2,2,2),Vector3.new(0.5,0.5,0.5),.025,BrickColor.new("Institutional white"),1)
1952
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),BrickColor.new("Institutional white"),Vector3.new(10,10,10),Vector3.new(-.2,-.2,-.2),0.1,2)
1953
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(180)),BrickColor.new("Really black"),Vector3.new(10,10,10),Vector3.new(-.2,-.2,-.2),0.1,2)
1954
	magn(0.5,char.Torso,20)
1955
	wait(coold)
1956
	end
1957
	kekke = 0
1958
	end))
1959
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 1)
1960
	LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1)
1961
	for i = 0,1,0.012 do
1962
		wait()
1963
		coold = coold
1964
		print(coold)
1965
		magn(0.5,char.Torso,10)
1966
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1967
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1968
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-60)), 0.05)
1969
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.05)
1970
	end
1971
	kekke = 1
1972
	for i = 0,1,0.01 do
1973
		wait()
1974
		kekke = kekke + 0.1
1975
		block(RightArm.CFrame*CFrame.new(0,0,0),Vector3.new(kekke,kekke,kekke),Vector3.new(0,0,0),.2,BrickColor.new("Really black"),1)
1976
		block(LeftArm.CFrame*CFrame.new(0,0,0),Vector3.new(kekke,kekke,kekke),Vector3.new(0,0,0),.2,BrickColor.new("Institutional white"),1)
1977
	end
1978
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0),BrickColor.new("Institutional white"),Vector3.new(110,50000,110),Vector3.new(30,-1,30),0.05,2)
1979
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),BrickColor.new("Really black"),Vector3.new(110,50000,110),Vector3.new(30,-1,30),0.05,2)
1980
	wait(2)
1981
	kekke = 100
1982
	magn(90,char.Torso,100)
1983
	for i = 0,1,0.05 do
1984
		wait()
1985
		kekke = kekke + 0.1
1986
		block(RightArm.CFrame*CFrame.new(0,0,0),Vector3.new(kekke,kekke,kekke),Vector3.new(0,0,0),.2,BrickColor.new("Really black"),1)
1987
		block(LeftArm.CFrame*CFrame.new(0,0,0),Vector3.new(kekke,kekke,kekke),Vector3.new(0,0,0),.2,BrickColor.new("Institutional white"),1)
1988
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0),BrickColor.new("Institutional white"),Vector3.new(110,-90,110),Vector3.new(0,0,0),0.01,1)
1989
		wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),BrickColor.new("Really black"),Vector3.new(110,-90,110),Vector3.new(0,0,0),0.01,1)
1990
	end
1991
	
1992
	attack = false
1993
	char.Humanoid.Health = 1
1994
	ult = false
1995
	weapon.Handle2.Weld.Part0 = RightArm
1996
	mana = mana - 400
1997
	char.Humanoid.WalkSpeed = 24
1998
	char.Humanoid.JumpPower = 50
1999
end
2000
2001
local swordtransform = function()
2002
	attack = true
2003
	char.Humanoid.WalkSpeed = 0
2004
	char.Humanoid.JumpPower = 0
2005
	
2006
	local kekke = 0
2007
	local kekke1 = 0
2008
	local kekke2 = 0
2009
	local kekke3 = 0
2010
	local coold = 1
2011
	for i = 0,1,0.01 do
2012
		wait()
2013
		magn(0.5,char.Torso,10)
2014
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(-1,-1,-1),.2,BrickColor.new("Really black"),1)
2015
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,1,1),Vector3.new(1,0,0),.05,BrickColor.new("Institutional white"),1)
2016
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
2017
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2018
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 1)
2019
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
2020
	end
2021
	--[[coroutine.resume(coroutine.create(function()
2022
	while attack == true do
2023
	kekke1 = math.random(0,180)
2024
	kekke2 = math.random(0,180)
2025
	kekke3 = math.random(0,180)
2026
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(kekke1),math.rad(kekke2),math.rad(kekke3)),BrickColor.new("Institutional white"),Vector3.new(5,10,5),Vector3.new(-.5,1,-.5),0.1,1)
2027
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(kekke1),math.rad(kekke2),math.rad(180+kekke3)),BrickColor.new("Really black"),Vector3.new(5,10,5),Vector3.new(-.5,1,-.5),0.1,1)
2028
	magn(0.5,char.Torso,20)
2029
	wait(coold)
2030
	end
2031
	end))]]
2032
	
2033
	block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.02,BrickColor.new("Really black"),1)
2034
	block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.02,BrickColor.new("Institutional white"),1)
2035
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0),BrickColor.new("Institutional white"),Vector3.new(210,-190,210),Vector3.new(-2,1,-2),0.01,2)
2036
	wave(char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),BrickColor.new("Really black"),Vector3.new(210,-190,210),Vector3.new(-2,1,-2),0.01,2)
2037
	for i = 0,1,0.01 do
2038
		wait()
2039
		coold = coold - 0.01
2040
		print(coold)
2041
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.2,BrickColor.new("Really black"),1)
2042
		block(char.Torso.CFrame*CFrame.new(0,0,0),Vector3.new(8,8,8),Vector3.new(1,-1,-1),.2,BrickColor.new("Institutional white"),1)
2043
		kekke = kekke + 0.5
2044
		block(char.Torso.CFrame*CFrame.new(math.random(-kekke,kekke),0,math.random(-kekke,kekke)),Vector3.new(1,1,1),Vector3.new(0,kekke/2,0),.2,BrickColor.new("Institutional white"),2)
2045
		block(char.Torso.CFrame*CFrame.new(math.random(-kekke,kekke),0,math.random(-kekke,kekke)),Vector3.new(1,1,1),Vector3.new(0,kekke/2,0),.2,BrickColor.new("Really black"),2)
2046
		char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
2047
		char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2048
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(40)), 1)
2049
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(-45), math.rad(-40)), 0.3)
2050
	end
2051
	attack = false
2052
	sword1.Transparency = 0.4
2053
	sword2.Transparency = 0.4
2054
	sword11.Transparency = 0.4
2055
	sword21.Transparency = 0.4
2056
	sword12.Transparency = 0.4
2057
	sword22.Transparency = 0.4
2058
	char.Humanoid.WalkSpeed = 24
2059
	char.Humanoid.JumpPower = 50
2060
end
2061
2062
local ultimate = function()
2063
	ult = true
2064
	weapon.Handle.Weld.Part0 = weapon.Handle2
2065
	weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -.1, 2.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
2066
	weapon.Handle2.Weld.Part0 = char.Torso
2067
	weapon.Handle2.Weld.C0 = clerp(weapon.Handle2.Weld.C0, CFrame.new(0, 0, .8) * CFrame.Angles(math.rad(90), math.rad(180), math.rad(0)), 1)
2068
		if equipped == false then
2069
			equipcheck = false
2070
			magictransform()
2071
		elseif equipped == true then
2072
			equipcheck = true
2073
			equipped = false
2074
			char.Humanoid.MaxHealth = 200
2075
			swordtransform()	
2076
			char.Humanoid.Health = 200
2077
			sword1.Transparency = 0.4
2078
			sword2.Transparency = 0.4
2079
			sword11.Transparency = 0.4
2080
			sword21.Transparency = 0.4
2081
			sword12.Transparency = 0.4
2082
			sword22.Transparency = 0.4
2083
		end
2084
		
2085
		while ult == true do
2086
			if Anim == "Walk" then
2087
			weapon.Handle2.Weld.C0 = clerp(weapon.Handle2.Weld.C0, CFrame.new(0, 0, .8) * CFrame.Angles(math.rad(100), math.rad(180), math.rad(0)), .3)
2088
			else
2089
			weapon.Handle2.Weld.C0 = clerp(weapon.Handle2.Weld.C0, CFrame.new(0, 0, .8) * CFrame.Angles(math.rad(90), math.rad(180), math.rad(0)), .3)
2090
			end
2091
		wait()
2092
	end
2093
end
2094
2095
play:GetMouse().Button1Down:connect(function()
2096
	if attack == false and throwing == false then
2097
		if combo == 1 and attack == false and throwing == false and equipped == true then
2098
			attack1()
2099
			combo = 2
2100
		elseif combo == 2 and attack == false and throwing == false and equipped == true then
2101
			attack2()
2102
			combo = 1
2103
		elseif combo == 1 and attack == false and throwing == false and equipped == false and mana >= 15 then
2104
			mana = mana - 15
2105
			if ult == false then
2106
			attack3()
2107
			else
2108
			if equipcheck == false then
2109
			magicattack3()
2110
			else
2111
			mana = mana + 15
2112
			swordattack3()
2113
			
2114
			end
2115
			end
2116
			combo = 2
2117
		elseif combo == 2 and attack == false and throwing == false and equipped == false and mana >= 20 and throwing == false then
2118
			mana = mana - 20
2119
			if ult == false then
2120
			attack4()
2121
			combo = 1
2122
			else
2123
			if equipcheck == false then
2124
			magicattack4()
2125
			combo = 1
2126
			else
2127
			mana = mana + 20
2128
			swordattack4()
2129
			
2130
			combo = 3
2131
			end
2132
			end
2133
		elseif combo == 3 and attack == false and throwing == false and equipped == false and equipcheck == true and mana >= 10 then
2134
			mana = mana + 0
2135
			swordattack5()
2136
			combo = 4
2137
		elseif combo == 4 and attack == false and throwing == false and equipped == false and equipcheck == true and mana >= 10 then
2138
			mana = mana + 0
2139
			swordattack6()
2140
			combo = 1
2141
		end
2142
	end
2143
end)
2144
2145
play:GetMouse().Button1Up:connect(function()
2146
	if charging == true then
2147
		charging = false
2148
		
2149
	end
2150
end)
2151
2152
play:GetMouse().KeyDown:connect(function(k)
2153
	
2154
	k = k:lower()
2155
	if k == "z" and attack == false and throwing == false and mana >= 25 then
2156
		if ult == false then
2157
		mana = mana - 25
2158
		shieldbash()
2159
		end
2160
		if ult == true then
2161
			if equipcheck == false then
2162
			mana = mana - 25
2163
			supershieldbash()
2164
			else
2165
			swordspin()
2166
			mana = mana - 25
2167
			end
2168
		end
2169
	elseif k == "e" and attack == false and throwing == false then
2170
		ult = false
2171
		sword1.Transparency = 1
2172
		sword2.Transparency = 1
2173
		sword11.Transparency = 1
2174
		sword21.Transparency = 1
2175
		sword12.Transparency = 1
2176
		sword22.Transparency = 1
2177
		char.Humanoid.MaxHealth = 100
2178
		if combo >= 3 then
2179
		combo = 1
2180
		end
2181
		weapon.Handle2.Weld.C0 = clerp(weapon.Handle2.Weld.C0, CFrame.new(.5, 0.05, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-90)), 1)
2182
		weapon.Handle2.Weld.Part0 = RightArm
2183
		equip()
2184
	elseif k == "x" and attack == false and throwing == false and mana >= 35 then
2185
		if ult == false then
2186
		mana = mana - 35
2187
		if equipped == true then
2188
			comboattack()
2189
		elseif equipped == false then
2190
			teleportback()
2191
		end
2192
		else
2193
		if equipcheck == false then
2194
		superteleportback()
2195
		else
2196
		swordcombo()
2197
		end
2198
		end
2199
	elseif k == "x" and attack == true and parry == false and mana >= 15 then
2200
		mana = mana - 15
2201
		char.Humanoid.Health = char.Humanoid.Health - 10
2202
	elseif k == "c" and attack == false and throwing == false and mana >= 20 and orb == false then
2203
		orb = true
2204
		orbs()
2205
	elseif k == "c" and orb == true then
2206
		orb = false
2207
	elseif k == "h" and attack == false and throwing == false and mana >= 200 then
2208
		if ult == false then
2209
		ultimate()
2210
		else
2211
		if mana >= 400 then
2212
		if equipcheck == false then
2213
		magicult()
2214
		else
2215
		swordult()
2216
		equip()
2217
		end
2218
		end
2219
		end
2220
	end
2221
end)
2222
2223
local keke = 0
2224
coroutine.resume(coroutine.create(function()
2225
while true do
2226
pasthp = char.Humanoid.Health
2227
wait(.5)
2228
if char.Humanoid.Health < pasthp then
2229
parry = true
2230
if equipped == true then
2231
char.Humanoid.Health = char.Humanoid.Health + (pasthp-char.Humanoid.Health)/2
2232
mana = mana + (pasthp-char.Humanoid.Health)*2
2233
CreateSound("rbxassetid://10209583",weapon.Handle2,.1,1)
2234
print("Blocked!")
2235
end
2236
if ult == true and equipcheck == false and mana >= (pasthp-char.Humanoid.Health)*2 then
2237
	mana = mana - (pasthp-char.Humanoid.Health)*2
2238
	block(char.Torso.CFrame,Vector3.new((1*(pasthp-char.Humanoid.Health)/5),(1*(pasthp-char.Humanoid.Health)/5),(1*(pasthp-char.Humanoid.Health)/5)),Vector3.new(0.5,.5,.5),0.1,char.Torso.BrickColor,1)
2239
	char.Humanoid.Health = pasthp
2240
end
2241
end
2242
end
2243
end))
2244
2245
coroutine.resume(coroutine.create(function()
2246
while true do
2247
mana = mana + 1
2248
if ult == true and equipcheck == false then
2249
	mana = mana + 4
2250
end
2251
if mana >= 400 then
2252
	mana = 400
2253
end
2254
wait(.5)
2255
end
2256
end))
2257
2258
coroutine.resume(coroutine.create(function()
2259
while true do
2260
keke = keke + 1
2261
if keke > 10 then
2262
	keke = 0
2263
end
2264
	if asdrot <= 360 then
2265
		asdrot = asdrot + 2
2266
		else
2267
		asdrot = 0
2268
	end
2269
	manabar:TweenSize(UDim2.new(1 * (mana /400), 0, 1, 0), "Out", "Quad", 0.5)
2270
	if sit == true then
2271
	mana = mana + .33
2272
	end
2273
	if ult == true and equipcheck == false then
2274
		block(LeftArm.CFrame*CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(0,0.333,0),Vector3.new(1,1,1),Vector3.new(0.1,0.1,0.1),0.2,BrickColor.new("Institutional white"),1)
2275
		block(RightArm.CFrame*CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(0,0.333,0),Vector3.new(1,1,1),Vector3.new(0.1,0.1,0.1),0.2,BrickColor.new("Really black"),1)
2276
	end
2277
	if riding == true and attack == false and debounce2 == false then
2278
		coroutine.resume(coroutine.create(function()
2279
		debounce2 = true
2280
		magn(3,6,model.spinneblock,5)
2281
		wait(0.2)
2282
		debounce2 = false
2283
		end))
2284
	end
2285
	sine = sine + change
2286
	torsovel = (char.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
2287
					if sit == false then
2288
					if char.HumanoidRootPart.Velocity.Y > 1 then
2289
						Anim = "Jump"
2290
						if attack == false and sit == false then
2291
							char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2292
							char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2293
							RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
2294
							LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
2295
							RH.C0 = clerp(RH.C0, CFrame.new(1, -.5 + 0.1 * math.cos((sine) / 20), -0.4) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
2296
							LH.C0 = clerp(LH.C0, CFrame.new(-1, -.5 + 0.1 * math.cos((sine) / 20), -0.4) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.3)
2297
						end
2298
					elseif torsovel < 1 then
2299
						Anim = "Idle"
2300
							change = 1
2301
							if attack == false and sit == false then
2302
							if equipped == true then
2303
							char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
2304
							char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
2305
							RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
2306
							LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
2307
							weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1)
2308
							end
2309
							if equipped == false then
2310
							char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2311
							char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2312
							if ult == false then
2313
							RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(0)), 0.3)
2314
							else
2315
							RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2316
							end
2317
							LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2318
							end
2319
							if ult == false then
2320
							weapon.Handle2.Weld.C0 = clerp(weapon.Handle2.Weld.C0, CFrame.new(.5, .05, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-90)), 0.3)
2321
							end
2322
							end
2323
							RH.C0 = clerp(RH.C0, CFrame.new(1, -1 + 0.1 * math.cos((sine) / 20), 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2324
							LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 + 0.1 * math.cos((sine) / 20), 0.1) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)	
2325
					elseif 2 < torsovel then
2326
							Anim = "Walk"
2327
								if attack == false and sit == false then
2328
								if equipped == true then
2329
								char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
2330
								char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
2331
								RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
2332
								LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
2333
								weapon.Handle.Weld.C0 = clerp(weapon.Handle.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1)
2334
								end
2335
								if equipped == false then
2336
								char.HumanoidRootPart.RootJoint.C0 = clerp(char.HumanoidRootPart.RootJoint.C0, RootCF * CFrame.new(0, 0, 0 - 0.1 * math.cos((sine) / 20)) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
2337
								char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
2338
								RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.3)
2339
								LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 15), 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.3)
2340
								end
2341
								if ult == false then
2342
								weapon.Handle2.Weld.C0 = clerp(weapon.Handle2.Weld.C0, CFrame.new(.5, 0.05, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-90)), 0.3)
2343
								end
2344
								end
2345
								RH.C0 = clerp(RH.C0, CFrame.new(1, -1 + 0.1 * math.cos((sine) / 20), 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 - 50 * math.cos((sine) / 3))), 0.3)
2346
								LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 + 0.1 * math.cos((sine) / 20), 0.1) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 - 50 * math.cos((sine) / 3))), 0.3)
2347
					end
2348
					end
2349
wait()
2350
end
2351
end))
2352
2353
while true do
2354
wait()
2355
end