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