View difference between Paste ID: UMRgcMje and LshVMQ7H
SHOW: | | - or go back to the newest paste.
1
--Yamato Sword Gifted by TheRedAngel, Local Script!
2
3-
Player = game:GetService("Players").peyquinn
3+
Player = game:GetService("Players").XxXexe5
4
Character = Player.Character 
5
PlayerGui = Player.PlayerGui 
6
Backpack = Player.Backpack 
7
Torso = Character.Torso 
8
Head = Character.Head 
9
LeftArm = Character["Left Arm"] 
10
LeftLeg = Character["Left Leg"] 
11
RightArm = Character["Right Arm"] 
12
RightLeg = Character["Right Leg"] 
13
LS = Torso["Left Shoulder"] 
14
LH = Torso["Left Hip"] 
15
RS = Torso["Right Shoulder"] 
16
RH = Torso["Right Hip"] 
17
ModelName = "Weapon"
18
ToolName = "Yamato"
19
attack = false
20
attacktype = 1
21
mindamage = 15
22
maxdamage = 25
23
crtmaxdamage = 45
24
omindamage = 15
25
omaxdamage = 25
26
ocrtmaxdamage = 45
27
crtrate = 12
28
fireboost = 0
29
iceboost = 0
30
darkboost = 0
31
Mode = "None"
32
ssh = false
33
atktypez = 1
34
Hitdeb = 0
35
ammo = 1
36
MMouse = nil
37
point = false
38
offset = 0
39
radv = 90
40
----------------------------
41
--Customize
42
DarkFire = true
43
MaxFT = 40
44
 
45
 
46
 
47
---------------------------------------------------------------------------------------------------------------------------------------
48
if Character:findFirstChild("EquippedVal",true) ~= nil then
49
Character:findFirstChild("EquippedVal",true).Parent = nil
50
end
51
ev = Instance.new("BoolValue")
52
ev.Parent = Character
53
ev.Name = "EquippedVal"
54
ev.Value = false
55
--player
56
player = nil
57
--welds
58
RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
59
--what anim
60
anim = "none"
61
--other var
62
player = Player
63
ch = Character
64
--save shoulders
65
AoETrue = {}
66
RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
67
 
68
function RWFunc()
69
 RW.Part1 = ch["Right Arm"]
70
 RSH.Part1 = nil
71
end
72
function LWFunc()
73
 LW.Part1 = ch["Left Arm"]
74
 LSH.Part1 = nil
75
end
76
function RWLFunc()
77
 RWL.Part1 = ch["Right Leg"]
78
 RHL.Part1 = nil
79
 ch["Right Leg"].Name = "RightLeg"
80
 RightLeg.CanCollide = false
81
end
82
function LWLFunc()
83
 LWL.Part1 = ch["Left Leg"]
84
 LHL.Part1 = nil
85
 ch["Left Leg"].Name = "LeftLeg"
86
 LeftLeg.CanCollide = true
87
end
88
function RWLRem()
89
 RightLeg.Name = "Right Leg"
90
 RWL.Part1 = nil
91
 RHL.Part1 = ch["Right Leg"]
92
 RightLeg.CanCollide = false
93
end
94
function LWLRem()
95
 LeftLeg.Name = "Left Leg"
96
 LWL.Part1 = nil
97
 LHL.Part1 = ch["Left Leg"]
98
 LeftLeg.CanCollide = false
99
end
100
function RWRem()
101
 RW.Part1 = nil
102
 RSH.Part1 = ch["Right Arm"]
103
end
104
function LWRem()
105
 LW.Part1 = nil
106
 LSH.Part1 = ch["Left Arm"]
107
end
108
 
109
 
110
if Character:findFirstChild(ModelName,true) ~= nil then
111
Character:findFirstChild(ModelName,true).Parent = nil
112
 RHL.Part1 = ch["Right Leg"]
113
 LHL.Part1 = ch["Left Leg"]
114
 RSH.Part1 = ch["Right Arm"]
115
 LSH.Part1 = ch["Left Arm"]
116
end
117
 
118
 
119
 
120
local swordholder = Instance.new("Model")
121
swordholder.Name = ModelName
122
swordholder.Parent = Character
123
--derp
124
 RW.Part0 = ch.Torso
125
 RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
126
 RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
127
 RW.Parent = swordholder
128
 --
129
 LW.Part0 = ch.Torso
130
 LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
131
 LW.C1 = CFrame.new(0, 0.5, 0)
132
 LW.Parent = swordholder
133
 --
134
 RWL.Part0 = ch.Torso
135
 RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
136
 RWL.C1 = CFrame.new(0.5, 1, 0)
137
 RWL.Parent = swordholder
138
 --
139
 LWL.Part0 = ch.Torso
140
 LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
141
 LWL.C1 = CFrame.new(-0.5, 1, 0)
142
 LWL.Parent = swordholder
143
handlecolor = BrickColor.new("Really black")
144
scndryclr = BrickColor.new("Bright violet")
145
firepri = BrickColor.new("Bright red")
146
icepri = BrickColor.new("Bright blue")
147
local msh1 = Instance.new("CylinderMesh")
148
msh1.Scale = Vector3.new(1,1,1)
149
local msh2 = Instance.new("BlockMesh")
150
msh2.Scale = Vector3.new(1,1,1)
151
--
152
local msh3 = Instance.new("BlockMesh")
153
msh3.Scale = Vector3.new(1,1,1)
154
local msh3a = Instance.new("SpecialMesh")
155
msh3a.Scale = Vector3.new(1,1,1)
156
msh3a.MeshType = "Wedge"
157
local msh4 = Instance.new("BlockMesh")
158
msh4.Scale = Vector3.new(1,1,1)
159
local msh4a = Instance.new("SpecialMesh")
160
msh4a.Scale = Vector3.new(1,1,1)
161
msh4a.MeshType = "Wedge"
162
--
163
local msh5 = Instance.new("SpecialMesh")
164
msh5.Scale = Vector3.new(1,1,2)
165
msh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
166
local msh6 = Instance.new("BlockMesh")
167
msh6.Scale = Vector3.new(1,1,0.5)
168
local msh7 = Instance.new("BlockMesh")
169
msh7.Scale = Vector3.new(1,1,1)
170
local msh8 = Instance.new("BlockMesh")
171
msh8.Scale = Vector3.new(0.5,1,1)
172
local prt1 = Instance.new("Part")
173
prt1.formFactor = 3
174
prt1.CanCollide = false
175
prt1.Name = "Handle"
176
prt1.Locked = true
177
prt1.Size = Vector3.new(0.2,1.5,0.2)
178
prt1.Parent = swordholder
179
msh1.Parent = prt1
180
prt1.BrickColor = handlecolor
181
local prt2 = Instance.new("Part")
182
prt2.formFactor = 3
183
prt2.CanCollide = false
184
prt2.Name = "HandleTop"
185
prt2.Locked = true
186
prt2.Size = Vector3.new(1.6,0.2,0.5)
187
prt2.Parent = swordholder
188
msh2.Parent = prt2
189
prt2.BrickColor = scndryclr
190
---
191
local prt3 = Instance.new("Part")
192
prt3.formFactor = 3
193
prt3.CanCollide = false
194
prt3.Name = "FlameBlade"
195
prt3.Locked = true
196
prt3.Size = Vector3.new(0.4,3,0.2)
197
prt3.Parent = swordholder
198
msh3.Parent = prt3
199
prt3.BrickColor = firepri
200
prt3.Reflectance = 0
201
local prt3a = Instance.new("Part")
202
prt3a.formFactor = 3
203
prt3a.CanCollide = false
204
prt3a.Name = "FlameBladeP1"
205
prt3a.Locked = true
206
prt3a.Size = Vector3.new(0.2,1,0.4)
207
prt3a.Parent = swordholder
208
msh3a.Parent = prt3a
209
prt3a.BrickColor = firepri
210
prt3a.Reflectance = 0
211
--
212
local prt4 = Instance.new("Part")
213
prt4.formFactor = 3
214
prt4.CanCollide = false
215
prt4.Name = "FrostBlade"
216
prt4.Locked = true
217
prt4.Size = Vector3.new(0.4,3,0.2)
218
prt4.Parent = swordholder
219
msh4.Parent = prt4
220
prt4.BrickColor = icepri
221
prt4.Reflectance = 0.5
222
local prt4a = Instance.new("Part")
223
prt4a.formFactor = 3
224
prt4a.CanCollide = false
225
prt4a.Name = "FrostBladeP1"
226
prt4a.Locked = true
227
prt4a.Size = Vector3.new(0.2,1,0.4)
228
prt4a.Parent = swordholder
229
msh4a.Parent = prt4a
230
prt4a.BrickColor = icepri
231
prt4a.Reflectance = 0.5
232
--
233
local prt5 = Instance.new("Part")
234
prt5.formFactor = 3
235
prt5.CanCollide = false
236
prt5.Name = "HandleRing"
237
prt5.Locked = true
238
prt5.Size = Vector3.new(1,1,0.2)
239
prt5.Parent = swordholder
240
msh5.Parent = prt5
241
prt5.BrickColor = scndryclr
242
prt5.Reflectance = 0
243
local DFlame = Instance.new("Fire")
244
DFlame.Parent = prt5
245
DFlame.Color = Color3.new(0.5,0,0.5)
246
DFlame.SecondaryColor = Color3.new(0.5,0,0.5)
247
DFlame.Heat = 25
248
DFlame.Size = 1
249
DFlame.Enabled = DarkFire
250
local prt6 = Instance.new("Part")
251
prt6.formFactor = 3
252
prt6.CanCollide = false
253
prt6.Name = "HandleP1"
254
prt6.Locked = true
255
prt6.Size = Vector3.new(0.2,1.5,0.2)
256
prt6.Parent = swordholder
257
msh6.Parent = prt6
258
prt6.BrickColor = scndryclr
259
prt6.Reflectance = 0
260
local prt7 = Instance.new("Part")
261
prt7.formFactor = 3
262
prt7.CanCollide = false
263
prt7.Name = "HandleP2"
264
prt7.Locked = true
265
prt7.Size = Vector3.new(0.7,0.2,0.2)
266
prt7.Parent = swordholder
267
msh7.Parent = prt7
268
prt7.BrickColor = scndryclr
269
prt7.Reflectance = 0
270
local prt8 = Instance.new("Part")
271
prt8.formFactor = 3
272
prt8.CanCollide = false
273
prt8.Name = "DarkBlade"
274
prt8.Locked = true
275
prt8.Size = Vector3.new(0.2,4,0.2)
276
prt8.Parent = swordholder
277
msh8.Parent = prt8
278
prt8.BrickColor = handlecolor
279
prt8.Transparency = 1
280
local hitbox = Instance.new("Part")
281
hitbox.formFactor = 3
282
hitbox.CanCollide = false
283
hitbox.Name = "Hitbox"
284
hitbox.Locked = true
285
hitbox.Size = Vector3.new(1,4,0.2)
286
hitbox.Parent = swordholder
287
hitbox.Transparency = 1
288
local hbw = Instance.new("Weld")
289
hbw.Parent = hitbox
290
hbw.Part0 = hitbox
291
hbw.Part1 = prt1
292
hbw.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
293
hbw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
294
 
295
local w1 = Instance.new("Weld")
296
w1.Parent = prt1
297
w1.Part0 = prt1
298
local w2 = Instance.new("Weld")
299
w2.Parent = prt2
300
w2.Part0 = prt2
301
w2.Part1 = prt1
302
w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
303
w2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -0.85, 0)
304
--
305
local w3 = Instance.new("Weld")
306
w3.Parent = prt3
307
w3.Part0 = prt3
308
w3.Part1 = prt1
309
w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
310
w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0.25, -2.45, 0)
311
local w3a = Instance.new("Weld")
312
w3a.Parent = prt3a
313
w3a.Part0 = prt3a
314
w3a.Part1 = prt1
315
w3a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
316
w3a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(-90),0) * CFrame.new(0.25, -4.45, 0)
317
local w4 = Instance.new("Weld")
318
w4.Parent = prt4
319
w4.Part0 = prt4
320
w4.Part1 = prt1
321
w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
322
w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, -2.45, 0)
323
local w4a = Instance.new("Weld")
324
w4a.Parent = prt4a
325
w4a.Part0 = prt4a
326
w4a.Part1 = prt1
327
w4a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
328
w4a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90),0) * CFrame.new(-0.25, -4.45, 0)
329
--
330
local w5 = Instance.new("Weld")
331
w5.Parent = prt5
332
w5.Part0 = prt5
333
w5.Part1 = prt1
334
w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
335
w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0, -0.85, 0)
336
local w6 = Instance.new("Weld")
337
w6.Parent = prt6
338
w6.Part0 = prt6
339
w6.Part1 = prt1
340
w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
341
w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.5, -0, 0)
342
local w7 = Instance.new("Weld")
343
w7.Parent = prt7
344
w7.Part0 = prt7
345
w7.Part1 = prt1
346
w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
347
w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, 0.75, 0)
348
local w8 = Instance.new("Weld")
349
w8.Parent = prt8
350
w8.Part0 = prt8
351
w8.Part1 = prt1
352
w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
353
w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
354
for ringi = 0 , math.rad(350) , math.rad(50) do
355
local ringm = Instance.new("BlockMesh")
356
ringm.Scale = Vector3.new(1,1.5,1)
357
local ringp = Instance.new("Part")
358
ringp.formFactor = 3
359
ringp.CanCollide = false
360
ringp.Name = "HandleRingP"..ringi
361
ringp.Locked = true
362
ringp.Size = Vector3.new(0.2,0.2,0.2)
363
ringp.Parent = swordholder
364
ringm.Parent = ringp
365
ringp.BrickColor = scndryclr
366
ringp.Reflectance = 0.1
367
local ringw = Instance.new("Weld")
368
ringw.Parent = ringp
369
ringw.Part0 = ringp
370
ringw.Part1 = prt5
371
ringw.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90), -ringi, 0) * CFrame.new(0, 0 , 0)
372
ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-msh5.Scale.x/1.625, 0, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.z/3.25
373
end
374
 
375
local Objects = {} 
376
function getAllObjects(obj)
377
 for a,v in pairs(obj:GetChildren()) do 
378
  if v:IsA("BasePart") then 
379
   table.insert(Objects,v) 
380
    end 
381
    if #v:GetChildren() > 0 then 
382
   getAllObjects(v) 
383
  end 
384
 end 
385
end 
386
getAllObjects(Workspace)
387
function Raycast(Start,End,Range) 
388
--
389
for ii = 0 , #Objects do
390
table.remove(Objects,ii)
391
end
392
getAllObjects(Workspace)
393
 local MA = math.abs
394
  local CF = CFrame.new(Start,End) 
395
   local CP = Start
396
    for i = 1, Range do--(Start - End).magnitude do 
397
     for b,v in pairs(Objects) do
398
      if v.Parent ~= nil then 
399
       local pos = Start + (CF.lookVector*i) 
400
        local dist = v.CFrame:pointToObjectSpace(pos) 
401
       if MA(dist.x) < v.Size.x/2 and MA(dist.y) < v.Size.y/2 and MA(dist.z) < v.Size.z/2 then 
402
        if v.Parent ~= Character or v.Parent ~= swordholder or v.Parent.Parent ~= Character then 
403
      return v,Start,pos 
404
      end
405
     end 
406
    end 
407
   end 
408
  end 
409
 return nil,Start,End 
410
end 
411
local RAP = Instance.new("Part")
412
RAP.formFactor = 0
413
RAP.CanCollide = false
414
RAP.Name = "RAPart"
415
RAP.Locked = true
416
RAP.Size = Vector3.new(1,1,1)
417
RAP.Parent = swordholder
418
RAP.Transparency = 1
419
local w = Instance.new("Weld")
420
w.Parent = RAP
421
w.Part0 = RAP
422
w.Part1 = RightArm
423
w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
424
w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
425
 
426
function unequipweld()
427
w1.Part1 = Torso
428
w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
429
w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(-150)) * CFrame.new(-1, -1.5, -0.6)
430
end
431
unequipweld()
432
 
433
function equipweld()
434
w1.Part1 = RAP
435
w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
436
w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
437
end
438
 
439
function ss(parent,p) --Slash
440
local SlashSound = Instance.new("Sound")
441
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
442
SlashSound.Parent = parent
443
SlashSound.Volume = .7
444
SlashSound.Pitch = p
445
SlashSound.PlayOnRemove = true
446
coroutine.resume(coroutine.create(function()
447
wait() 
448
SlashSound.Parent = nil
449
end))
450
end
451
function uss(parent,p) --unsheath
452
local SlashSound = Instance.new("Sound")
453
SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
454
SlashSound.Parent = parent
455
SlashSound.Volume = .7
456
SlashSound.Pitch = p
457
SlashSound.PlayOnRemove = true
458
coroutine.resume(coroutine.create(function()
459
wait() 
460
SlashSound.Parent = nil
461
end))
462
end
463
function cs(parent,p) --Magic Charge
464
local SlashSound = Instance.new("Sound")
465
SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
466
SlashSound.Parent = parent
467
SlashSound.Volume = .7
468
SlashSound.Pitch = p
469
SlashSound.PlayOnRemove = true
470
coroutine.resume(coroutine.create(function()
471
wait() 
472
SlashSound.Parent = nil
473
end))
474
end
475
function ls(parent,p) --Lazer Sound
476
local SlashSound = Instance.new("Sound")
477
SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
478
SlashSound.Parent = parent
479
SlashSound.Volume = .7
480
SlashSound.Pitch = p
481
SlashSound.PlayOnRemove = true
482
coroutine.resume(coroutine.create(function()
483
wait()
484
SlashSound.Parent = nil
485
end))
486
end
487
function is(parent,p) --Ice Sound
488
local SlashSound = Instance.new("Sound")
489
local rndm = math.random(1,3)
490
if rndm == 1 then
491
SlashSound.SoundId = "rbxasset://sounds\\ice.ogg"
492
elseif rndm == 2 then
493
SlashSound.SoundId = "rbxasset://sounds\\ice2.ogg"
494
elseif rndm == 3 then
495
SlashSound.SoundId = "rbxasset://sounds\\ice3.ogg"
496
end
497
SlashSound.Parent = parent
498
SlashSound.Volume = .7
499
SlashSound.Pitch = p
500
SlashSound.PlayOnRemove = true
501
coroutine.resume(coroutine.create(function()
502
wait()
503
SlashSound.Parent = nil
504
end))
505
end
506
function fs(parent,p) --Fire Sound
507
local SlashSound = Instance.new("Sound")
508
SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
509
SlashSound.Parent = parent
510
SlashSound.Volume = .7
511
SlashSound.Pitch = p
512
SlashSound.PlayOnRemove = true
513
coroutine.resume(coroutine.create(function()
514
wait()
515
SlashSound.Parent = nil
516
end))
517
end
518
function bs(parent,p) --Boom Sound
519
local SlashSound = Instance.new("Sound")
520
SlashSound.SoundId = "rbxasset://sounds/Rocket shot.wav"
521
SlashSound.Parent = parent
522
SlashSound.Volume = .7
523
SlashSound.Pitch = p
524
SlashSound.PlayOnRemove = true
525
coroutine.resume(coroutine.create(function()
526
wait()
527
SlashSound.Parent = nil
528
end))
529
end
530
--
531
 
532
 
533
function hideanim()
534
attack = true
535
 for i = 0 , 1 , 0.2 do
536
                wait()
537
  RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i))
538
  LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45-45*i))
539
        end 
540
  LWRem() 
541
 for i = 0 , 1 , 0.15 do
542
                wait()
543
  RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i))
544
        end  
545
  unequipweld()
546
 wait(0.1)
547
 for i = 0 , 1 , 0.1 do
548
                wait()
549
  RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i))
550
        end  
551
  RWRem()
552
attack = false
553
end
554
 
555
function equipanim()
556
attack = true
557
RWFunc()
558
 for i = 0 , 1 , 0.1 do
559
                wait()
560
  RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i))
561
        end 
562
  equipweld()
563
 uss(Head,1)
564
 for i = 0 , 1 , 0.2 do
565
                wait()
566
  RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i))
567
        end  
568
 for i = 0 , 1 , 0.15 do
569
                wait()
570
  RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i))
571
        end  
572
 LWFunc()
573
 for i = 0 , 1 , 0.1 do
574
                wait()
575
  RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(45-90*i))
576
  LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45*i))
577
        end 
578
attack = false
579
end
580
 
581
if (script.Parent.className ~= "HopperBin") then 
582
Tool = Instance.new("HopperBin") 
583
Tool.Parent = Backpack 
584
Tool.Name = ToolName
585
script.Parent = Tool 
586
end 
587
Bin = script.Parent 
588
 
589
function damagesplat(dmg,hit,critornot,healornot)
590
local OffsetX = -2.5
591
local OffsetY = 5
592
local OffsetZ = 0
593
local bill = Instance.new("BillboardGui")
594
bill.Size = UDim2.new(1,0,1,0)
595
bill.Adornee = hit
596
bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ)
597
bill.Parent = hit.Parent
598
bill.Name = "DamageSplat"
599
local tex = Instance.new("TextLabel")
600
tex.Size = UDim2.new(5,0,2.5,0)
601
tex.Parent = bill
602
tex.Text = dmg
603
tex.BackgroundTransparency = 1
604
tex.ZIndex = 4
605
tex.FontSize = "Size24"
606
local tex2 = Instance.new("ImageLabel")
607
tex2.Size = UDim2.new(1,0,1,0)
608
tex2.Parent = tex
609
tex2.BackgroundTransparency = 1
610
tex2.Image = "http://www.roblox.com/asset/?id=42611276"
611
if critornot == true then
612
tex.TextColor3 = Color3.new(1,0.2,0.2)
613
elseif critornot == false then
614
tex.TextColor3 = Color3.new(0,0,0)
615
end
616
if healornot == true then
617
tex.TextColor3 = Color3.new(0.2,0.5,0.5)
618
end
619
coroutine.resume(coroutine.create(function()
620
wait(0.25)
621
for i = 0 , 1 , 0.075 do
622
wait()
623
bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ)
624
tex.TextTransparency = 1*i
625
end
626
bill.Parent = nil
627
end))
628
end
629
function FireEff(Part,Time,Color1,Color2,Color3)
630
local Firee = Part
631
local Spawn = Part
632
local colors = {} 
633
if Color1 ~= nil then
634
table.insert(colors,BrickColor.new(Color1))
635
end
636
if Color2 ~= nil then
637
table.insert(colors,BrickColor.new(Color2))
638
end
639
if Color3 ~= nil then
640
table.insert(colors,BrickColor.new(Color3))
641
end
642
if Color4 ~= nil then
643
table.insert(colors,BrickColor.new(Color4))
644
end
645
local Embers = {} 
646
local modelz = Instance.new("Model",Firee)
647
modelz.Name = "FireHolder"
648
for X = 1, 3 do
649
local f = Instance.new("Part") 
650
f.Parent = nil
651
f.BrickColor = colors[math.random(1, # colors)] 
652
f.Size = Vector3.new(1,1,1) 
653
f.formFactor = 1
654
f.Anchored = true 
655
f.Locked = true 
656
f.CanCollide = false 
657
f.Transparency = 0.5 
658
f.Name = "Fire"
659
f.TopSurface = 0
660
f.BottomSurface = 0
661
table.insert(Embers, f) 
662
end 
663
local R = 0
664
coroutine.resume(coroutine.create(function ()
665
repeat 
666
wait() 
667
R = R + 1
668
for X = 1, # Embers do 
669
Embers[X].Parent = modelz
670
local FM = math.fmod(R + X, # Embers) 
671
if FM == 1 then 
672
RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10) 
673
RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) 
674
Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, Spawn.Position + RandPos + RandDir) 
675
else 
676
Embers[X].CFrame = CFrame.new(Embers[X].Position + Vector3.new(0,0.5,0), Embers[X].Position + Vector3.new(0,0.5,0) + Embers[X].CFrame.lookVector) 
677
end 
678
end 
679
until R == Time
680
for i = 0 ,1 , 0.1 do
681
wait(0.2)
682
for X = 1, # Embers do 
683
Embers[X].Transparency = 0.5+0.5*i
684
end
685
end
686
for X = 1, # Embers do 
687
Embers[X].Parent = nil
688
end
689
end))
690
end
691
 
692
function OT(hit) --Normal Damage
693
if Hitdeb == 1 then return end
694
if hit.Parent == nil then return end
695
local hum = hit.Parent:findFirstChild("Humanoid")
696
if hum ~= nil and hum ~= Character.Humanoid then
697
local critrandomizer = math.random(1,crtrate)
698
if critrandomizer ~= 1 then
699
local rndmdamage = math.random(mindamage,maxdamage)
700
damagesplat(rndmdamage,hit,false)
701
hum:TakeDamage(rndmdamage)
702
elseif critrandomizer == 1 then
703
local rndmdamage = math.random(maxdamage,crtmaxdamage)
704
damagesplat(rndmdamage,hit,true)
705
hum:TakeDamage(rndmdamage)
706
end
707
Hitdeb = 1
708
end
709
end
710
 
711
function OTND(part) --No Debounce Damage
712
coroutine.resume(coroutine.create(function() 
713
local dd = false
714
while part.Parent ~= nil and not dd do
715
wait() 
716
local c = game.Workspace:GetChildren(); 
717
for i = 1, #c do 
718
local hum = c[i]:findFirstChild("Humanoid") 
719
if hum ~= nil and hum.Health ~= 0 then 
720
local head = c[i]:findFirstChild("Torso"); 
721
if head ~= nil then 
722
local targ = head.Position - part.Position;                                              ------------------------------------------------Local 
723
local mag = targ.magnitude; 
724
if mag <= 5 and c[i].Name ~= Player.Name then 
725
dd = true
726
local rndmdamage = math.random(1,7+5*math.random()) + fireboost
727
damagesplat(rndmdamage,head,false)
728
hum:TakeDamage(rndmdamage)
729
FireEff(head,150,"Bright red","Bright orange","Cool yellow")
730
part.Parent = nil
731
 
732
end 
733
end 
734
end 
735
end 
736
end 
737
end)) 
738
end
739
 
740
function AoE(p,magnitude,damage,critornot) 
741
 local c = game.Workspace:GetChildren();
742
 for i = 1, #c do
743
                local hum = c[i]:findFirstChild("Humanoid")
744
                if hum ~= nil and hum.Health ~= 0 then
745
  local head = c[i]:findFirstChild("Head");
746
                if head ~= nil then
747
  local targ = head.Position - p;
748
  local mag = targ.magnitude;
749
  if mag <= magnitude and c[i].Name ~= Character.Name then
750
  local foundd = false
751
  for ii = 1 , #AoETrue do
752
  if AoETrue[ii] == c[i].Name then
753
  --delay(1,function() table.remove(AoETrue,ii) end)
754
  --blast(2.5,0.5,"Bright red",prt2,false)
755
  foundd = true
756
  end
757
  end
758
  if foundd then
759
  end
760
  --
761
  if not foundd then
762
  hum:TakeDamage(damage)
763
  damagesplat(damage,head,critornot)
764
  table.insert(AoETrue,c[i].Name)
765
  --blast(2.5,0.5,"Bright red",prt2)
766
  end
767
  end
768
  end
769
                end
770
 end
771
end
772
function AoEP(p,magnitude,damage,critornot) 
773
 local c = game.Workspace:GetChildren();
774
 for i = 1, #c do
775
                local hum = c[i]:findFirstChild("Humanoid")
776
                if hum ~= nil and hum.Health ~= 0 then
777
  local head = c[i]:findFirstChild("Head");
778
                if head ~= nil then
779
  local targ = head.Position - p;
780
  local mag = targ.magnitude;
781
  if mag <= magnitude and c[i].Name ~= Character.Name then
782
  local foundd = false
783
  for ii = 1 , #AoETrue do
784
  if AoETrue[ii] == c[i].Name then
785
  --delay(1,function() table.remove(AoETrue,ii) end)
786
  --blast(2.5,0.5,"Bright red",prt2,false)
787
  foundd = true
788
  end
789
  end
790
  if foundd then
791
  end
792
  --
793
  if not foundd then
794
  hum:TakeDamage(damage)
795
  damagesplat(damage,head,critornot)
796
  c[i].Humanoid.Sit = true
797
  coroutine.resume(coroutine.create(function() 
798
local bp = Instance.new("BodyVelocity",c[i].Torso)
799
bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
800
bp.P = bp.P*2
801
bp.velocity = CFrame.new(c[i].Torso.Position , p).lookVector * 150 + Vector3.new(0,25,0)
802
coroutine.resume(coroutine.create(function() 
803
for i=1, 
804
bp.velocity.y/3 do 
805
bp.velocity = bp.velocity+Vector3.new(0,-4.25,0) 
806
wait() 
807
end  
808
bp.Parent = nil   
809
end))
810
c[i].Torso.RotVelocity = CFrame.new(c[i].Torso.Position , p).lookVector * 25
811
wait(0.4) c[i].Humanoid.Sit = false end))
812
  table.insert(AoETrue,c[i].Name)
813
  end
814
  end
815
  end
816
                end
817
 end
818
end
819
--
820
 
821
local LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
822
function effect(Color,Ref,LP,P1,returnn)
823
local effectsmsh = Instance.new("BlockMesh")
824
effectsmsh.Scale = Vector3.new(0.5,1,0.5)
825
effectsmsh.Name = "Mesh"
826
local effectsg = Instance.new("Part")
827
effectsg.formFactor = 3
828
effectsg.CanCollide = false
829
effectsg.Name = "Eff"
830
effectsg.Locked = true
831
effectsg.Anchored = true
832
effectsg.Size = Vector3.new(0.2,1,0.2)
833
effectsg.Parent = swordholder
834
effectsmsh.Parent = effectsg
835
effectsg.BrickColor = BrickColor.new(Color)
836
effectsg.Reflectance = Ref
837
local point1 = P1
838
local mg = (LP.p - point1.p).magnitude
839
effectsg.Size = Vector3.new(0.2,mg,0.2)
840
effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
841
if returnn then return effectsg end
842
coroutine.resume(coroutine.create(function()
843
if not returnn then
844
for i = 0 , 1 , 0.1 do
845
wait()
846
effectsg.Transparency = 1*i
847
end
848
wait()
849
effectsg.Parent = nil
850
end
851
end))
852
end
853
 
854
con = nil
855
function dmgcnnct(p)
856
con = p.Touched:connect(OT)
857
end
858
function dmgdc()
859
if con ~= nil then
860
con:disconnect()
861
Hitdeb = 0
862
end
863
end
864
function atktype(s,e)
865
coroutine.resume(coroutine.create(function ()
866
attacktype = e
867
wait(0.5)
868
repeat wait() until attack
869
attacktype = s
870
end))
871
end
872
 
873
hold = false 
874
function Combo1a()
875
attack=true
876
 for i = 0 , 1 , 0.1 do
877
                wait()
878
  RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i))
879
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0))
880
  LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45+45*i),math.rad(45-20*i))
881
    end 
882
 dmgcnnct(hitbox)
883
 ss(Head,1.5)
884
 for i = 0 , 1 , 0.2 do
885
 LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
886
                wait()
887
  RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
888
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0))
889
  LW.C0 = CFrame.new(-1+1*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(25+65*i))
890
  effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
891
    end 
892
 dmgdc()
893
 for i = 0 , 1 , 0.2 do
894
  LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
895
                wait()
896
  RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
897
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0))
898
  LW.C0 = CFrame.new(-0.25*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90+10*i))
899
  effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
900
    end 
901
 attacktype = 2
902
 coroutine.resume(coroutine.create(function ()
903
 wait(0.25)
904
 attacktype = 1
905
 end))
906
 attack=false
907
 wait(0.15)
908
 wait()
909
 for i = 0 , 1 , 0.1 do
910
 if not attack then 
911
                wait()
912
  RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
913
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0))
914
  LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(100-55*i))
915
 end
916
    end 
917
 
918
end
919
function Combo1b()
920
attack=true
921
 for i = 0 , 1 , 0.1 do
922
                wait()
923
  RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
924
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-155*i), math.rad(50-40*i), math.rad(0))
925
  LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(100-50*i))
926
    end 
927
 
928
cs(Head,1.5)
929
local tempmod = Instance.new("Model",swordholder)
930
for l = 1 , 20 do
931
local meshz = Instance.new("SpecialMesh")
932
meshz.Scale = Vector3.new(0.5,0.5,0.5)
933
meshz.MeshType = "Sphere"
934
local shellz = Instance.new("Part")
935
meshz.Parent = shellz
936
shellz.Anchored = false
937
shellz.formFactor = 0
938
shellz.Size = Vector3.new(1,1,1)
939
shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
940
shellz.Parent = tempmod
941
shellz.Transparency = 0.5
942
shellz.BrickColor = BrickColor.new("Bright violet")
943
shellz.CanCollide = false
944
shellz.Reflectance = 0.25
945
local bv = Instance.new("BodyPosition") 
946
bv.Parent = shellz
947
bv.maxForce = Vector3.new(200000,200000,200000) 
948
bv.position = shellz.Position
949
coroutine.resume(coroutine.create(function()
950
for i = 0 , 1 , 0.025 do
951
wait()
952
shellz.Transparency = 1-1*i
953
end
954
shellz.Transparency = 0
955
end))
956
coroutine.resume(coroutine.create(function()
957
wait(0.05)
958
bv.position = hitbox.Position 
959
for i = 1 , 20 do
960
wait(0.1)
961
bv.position = shell.Position 
962
end
963
shellz.Parent = nil
964
end))
965
wait(0.01)
966
end
967
coroutine.resume(coroutine.create(function ()
968
wait(0.25)
969
tempmod.Parent = nil
970
end))
971
 for i = 0 , 1 , 0.2 do
972
  LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
973
                wait()
974
  RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
975
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10), math.rad(0))
976
  LW.C0 = CFrame.new(-1+1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(50+40*i))
977
 effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
978
    end 
979
local gyro = Instance.new("BodyGyro")
980
gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
981
gyro.P = gyro.P + 10000
982
local CF = Torso.CFrame
983
gyro.cframe = CF
984
gyro.Parent = Torso
985
dmgcnnct(hitbox)
986
ss(Head,1)
987
 for i = 0 , 1 , 0.1 do
988
 LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
989
 wait()
990
 gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
991
 effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
992
 end
993
ss(Head,1)
994
Hitdeb = 0
995
 for i = 0 , 1 , 0.1 do
996
 LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
997
 wait()
998
 gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
999
 effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
1000
 end
1001
dmgdc()
1002
 attacktype = 3
1003
 coroutine.resume(coroutine.create(function ()
1004
 wait(0.5)
1005
 attacktype = 1
1006
 end))
1007
 wait(0.15)
1008
 wait()
1009
gyro.Parent = nil
1010
  attack=false
1011
 for i = 0 , 1 , 0.1 do
1012
 if not attack then 
1013
                wait()
1014
  RW.C0 = CFrame.new(0.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
1015
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
1016
  LW.C0 = CFrame.new(0.5-1.5*i,0.5,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(50-5*i))
1017
 end
1018
 end
1019
end
1020
 
1021
function Combo1c()
1022
attack=true
1023
local bp = Instance.new("BodyPosition")
1024
bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1025
bp.P = bp.P + 10000
1026
local CF = Torso.CFrame
1027
bp.position = CF.p
1028
bp.Parent = Torso
1029
RWLFunc()
1030
LWLFunc()
1031
for zz = 1 , 2  do
1032
local mesh = Instance.new("SpecialMesh")
1033
mesh.MeshType = "FileMesh"
1034
mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
1035
mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
1036
local shell = Instance.new("Part")
1037
mesh.Parent = shell
1038
shell.Anchored = true
1039
shell.formFactor = 1
1040
shell.Size = Vector3.new(1,1,1)
1041
shell.CFrame = Torso.CFrame * CFrame.Angles(0,0.5*zz,0) + Vector3.new(0,-2.5,0) -- + shellspawn.CFrame.lookVector * 2
1042
shell.Parent = swordholder
1043
shell.Transparency = 0
1044
shell.BrickColor = BrickColor.new("White")
1045
shell.CanCollide = false
1046
coroutine.resume(coroutine.create(function()
1047
for i = 0 , 1 , 0.05 do
1048
wait()
1049
mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
1050
shell.Transparency = 1*i
1051
end
1052
shell.Transparency = 1
1053
shell.Parent = nil
1054
end))
1055
end
1056
 for i = 0 , 1 , 0.1 do
1057
 LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1058
 wait()
1059
  RW.C0 = CFrame.new(0.5+0.5*i,0.5+1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i), math.rad(90-90*i), math.rad(-45*i))
1060
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
1061
  LW.C0 = CFrame.new(0.5-1.5*i,0.5+1*i,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i),math.rad(0),math.rad(50-5*i))
1062
w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
1063
w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
1064
 bp.position = CF.p + Vector3.new(0,10,0)
1065
 RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
1066
 LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
1067
 prt8.Transparency = 1-1*i
1068
 effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
1069
end
1070
 cs(Head,1.5)
1071
coroutine.resume(coroutine.create(function ()
1072
local tempmod = Instance.new("Model",swordholder)
1073
for l = 1 , 20 do
1074
local meshz = Instance.new("SpecialMesh")
1075
meshz.Scale = Vector3.new(1.5,1.5,1.5)
1076
meshz.MeshType = "Sphere"
1077
local shellz = Instance.new("Part")
1078
meshz.Parent = shellz
1079
shellz.Anchored = false
1080
shellz.formFactor = 0
1081
shellz.Size = Vector3.new(1,1,1)
1082
shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
1083
shellz.Parent = tempmod
1084
shellz.Transparency = 0.5
1085
shellz.BrickColor = BrickColor.new("Really black")
1086
shellz.CanCollide = false
1087
shellz.Reflectance = 0
1088
local bv = Instance.new("BodyPosition") 
1089
bv.Parent = shellz
1090
bv.maxForce = Vector3.new(200000,200000,200000) 
1091
bv.position = shellz.Position
1092
local hx = false
1093
coroutine.resume(coroutine.create(function()
1094
for i = 0 , 1 , 0.05 do
1095
wait()
1096
shellz.Transparency = 1-1*i
1097
end
1098
shellz.Transparency = 0
1099
end))
1100
coroutine.resume(coroutine.create(function()
1101
wait(0.05)
1102
bv.position = hitbox.Position 
1103
for i = 1 , 20 do
1104
wait(0.1)
1105
bv.position = shell.Position 
1106
end
1107
shellz.Parent = nil
1108
end))
1109
wait(0.01)
1110
end
1111
coroutine.resume(coroutine.create(function ()
1112
repeat wait() until hx
1113
tempmod.Parent = nil
1114
end))
1115
end))
1116
 for i = 0 , 1 , 0.1 do
1117
 LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1118
 wait()
1119
  RW.C0 = CFrame.new(1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i), math.rad(0), math.rad(-45))
1120
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1121
  LW.C0 = CFrame.new(-1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i),math.rad(0),math.rad(45))
1122
  effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
1123
 end
1124
 for i = 0 , 1 , 0.1 do
1125
 LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1126
 wait()
1127
  RW.C0 = CFrame.new(1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i), math.rad(0), math.rad(-45))
1128
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1129
  LW.C0 = CFrame.new(-1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i),math.rad(0),math.rad(45))
1130
w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
1131
w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
1132
 bp.position = CF.p + CF.lookVector * 2.5 + Vector3.new(0,-1,0)
1133
 RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
1134
 LWL.C0 = CFrame.new(-1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
1135
  effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
1136
 end
1137
 hx = true
1138
 wait(0.1)
1139
local Hit,A, B = Raycast(hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 1 ,hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 101 ,100)
1140
local effectsmsh = Instance.new("CylinderMesh")
1141
effectsmsh.Scale = Vector3.new(1,1,1)
1142
local effectsg = Instance.new("Part")
1143
effectsg.formFactor = 3
1144
effectsg.CanCollide = false
1145
effectsg.Name = "LAZOR"
1146
effectsg.Locked = true
1147
effectsg.Anchored = true
1148
effectsg.Parent = swordholder
1149
effectsmsh.Parent = effectsg
1150
effectsg.BrickColor = BrickColor.new("Black")
1151
effectsg.Reflectance = 0.5
1152
local point1 = B
1153
local point0 = A
1154
for zz = 1 , 5  do
1155
local mesh = Instance.new("SpecialMesh")
1156
mesh.MeshType = "FileMesh"
1157
mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
1158
mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
1159
local shell = Instance.new("Part")
1160
mesh.Parent = shell
1161
shell.Anchored = true
1162
shell.formFactor = 1
1163
shell.Size = Vector3.new(1,1,1)
1164
shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 2
1165
shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0.5*zz,0)
1166
shell.Parent = swordholder
1167
shell.Transparency = 0
1168
if math.fmod(zz,2) == 0 then
1169
shell.BrickColor = BrickColor.new("Really black")
1170
else
1171
shell.BrickColor = BrickColor.new("Bright violet")
1172
end
1173
shell.CanCollide = false
1174
coroutine.resume(coroutine.create(function()
1175
for i = 0 , 1 , 0.01 do
1176
wait()
1177
mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
1178
shell.Transparency = 1*i
1179
end
1180
shell.Transparency = 1
1181
shell.Parent = nil
1182
end))
1183
end
1184
for zz = 1 , 1 do
1185
local mesh = Instance.new("SpecialMesh")
1186
mesh.MeshType = "Sphere"
1187
mesh.Scale = Vector3.new(20,15,10) * Vector3.new(0.01,0.01,0.01)
1188
local shell = Instance.new("Part")
1189
mesh.Parent = shell
1190
shell.Anchored = true
1191
shell.formFactor = 1
1192
shell.Size = Vector3.new(1,1,1)
1193
shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 10
1194
shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
1195
shell.Parent = swordholder
1196
shell.Transparency = 0
1197
shell.BrickColor = BrickColor.new("Bright violet")
1198
shell.CanCollide = false
1199
coroutine.resume(coroutine.create(function()
1200
for i = 0 , 1 , 0.02 do
1201
wait()
1202
mesh.Scale = Vector3.new(10,15,15) * Vector3.new(i,1,i)
1203
shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
1204
shell.Transparency = 1-1*i
1205
end
1206
for i = 0 , 1 , 0.05 do
1207
wait()
1208
shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
1209
shell.Transparency = 1*i
1210
end
1211
shell.Transparency = 1
1212
shell.Parent = nil
1213
end))
1214
end
1215
for zz = 1 , 1 do
1216
local mesh = Instance.new("CylinderMesh")
1217
mesh.Scale = Vector3.new(20,0.5,10) * Vector3.new(0.01,0.01,0.01)
1218
local shell = Instance.new("Part")
1219
mesh.Parent = shell
1220
shell.Anchored = true
1221
shell.formFactor = 1
1222
shell.Size = Vector3.new(1,1,1)
1223
shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * -0.5
1224
shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
1225
shell.Parent = swordholder
1226
shell.Transparency = 0
1227
shell.BrickColor = BrickColor.new("Bright violet")
1228
shell.CanCollide = false
1229
coroutine.resume(coroutine.create(function()
1230
for i = 0 , 1 , 0.02 do
1231
wait()
1232
mesh.Scale = Vector3.new(20,0.5,20) * Vector3.new(i,1,i)
1233
shell.Transparency = 1-1*i
1234
end
1235
for i = 0 , 1 , 0.02 do
1236
wait()
1237
shell.Transparency = 1*i
1238
end
1239
shell.Transparency = 1
1240
shell.Parent = nil
1241
end)) 
1242
end
1243
for zz = 1 , 10  do
1244
local mesh = Instance.new("SpecialMesh")
1245
mesh.MeshType = "FileMesh"
1246
mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
1247
mesh.Scale = Vector3.new(5,5,5) * Vector3.new(0.01,0.01,0.01)
1248
local shell = Instance.new("Part")
1249
mesh.Parent = shell
1250
shell.Anchored = true
1251
shell.formFactor = 1
1252
shell.Size = Vector3.new(1,1,1)
1253
shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)
1254
shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90)+2*math.random(),2*math.random(),2*math.random())
1255
shell.Parent = swordholder
1256
shell.Transparency = 0
1257
if math.fmod(zz,2) == 0 then
1258
shell.BrickColor = BrickColor.new("Really black")
1259
else
1260
shell.BrickColor = BrickColor.new("Bright violet")
1261
end
1262
shell.CanCollide = false
1263
coroutine.resume(coroutine.create(function()
1264
for i = 0 , 1 , 0.01 do
1265
wait()
1266
mesh.Scale = Vector3.new(25,25,25) * Vector3.new(i,i,i)
1267
shell.Transparency = 1*i
1268
end
1269
shell.Transparency = 1
1270
shell.Parent = nil
1271
end))
1272
end
1273
coroutine.resume(coroutine.create(function()
1274
effectsg.Transparency = 1
1275
for i = 0 , 1 , 0.1 do
1276
wait()
1277
effectsg.Transparency = 1-1*i
1278
end
1279
wait(2)
1280
for i = 0 , 1 , 0.1 do
1281
wait()
1282
effectsg.Transparency = 1*i
1283
end
1284
effectsg.Parent = nil
1285
end))
1286
local mg = 100
1287
if Hit ~= nil then
1288
mg = (point0-point1).magnitude
1289
elseif Hit == nil then
1290
mg = 100
1291
end
1292
ls(Head,0.5)
1293
ls(Head,0.75)
1294
cs(Head,0.25)
1295
ls(Head,1)
1296
ls(Head,3)
1297
cs(Head,0.15)
1298
for mgg = 0 , 1,0.1 do
1299
wait()
1300
effectsg.Size = Vector3.new(5,(mg*mgg)+0.2,5)
1301
local durr = CFrame.new((point0+(point1))/2,(point1))
1302
effectsg.CFrame = CFrame.new((point0+(point1-durr.lookVector * (mg*(1-mgg))))/2,(point1)) * CFrame.Angles(math.rad(90),0,0)
1303
end
1304
local critrandomizer = math.random(1,crtrate)
1305
if critrandomizer ~= 1 then
1306
local rndmdamage = math.random(mindamage+30,maxdamage+30)
1307
AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,false) 
1308
elseif critrandomizer == 1 then
1309
local rndmdamage = math.random(maxdamage+30,crtmaxdamage+30)
1310
AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,true)
1311
end
1312
bp.Parent = nil
1313
 for i = 0 , 1 , 0.1 do
1314
                wait()
1315
  RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90-45*i), math.rad(-45))
1316
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1317
  LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45*i),math.rad(45))
1318
w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
1319
w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
1320
 RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1321
 LWL.C0 = CFrame.new(-1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1322
 prt8.Transparency = 1*i
1323
    end 
1324
  for ii = 1 , #AoETrue do
1325
  table.remove(AoETrue,#AoETrue)
1326
  end
1327
RWLRem()
1328
LWLRem()
1329
attack = false
1330
attacktype = 1
1331
end
1332
function BlizzardSword()
1333
attack=true
1334
 for i = 0 , 1 , 0.2 do
1335
                wait()
1336
  RW.C0 = CFrame.new(1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45))
1337
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1338
  LW.C0 = CFrame.new(-1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i),math.rad(-45+45*i),math.rad(45))
1339
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1340
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
1341
    end 
1342
 local wssave = Character.Humanoid.WalkSpeed
1343
 Character.Humanoid.WalkSpeed = 0
1344
 ss(Head,1.5)
1345
 local efftab = {}
1346
 for i = 0 , 1 , 0.2 do
1347
   LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1348
                wait()
1349
  RW.C0 = CFrame.new(1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i), math.rad(0), math.rad(-45))
1350
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1351
  LW.C0 = CFrame.new(-1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i),math.rad(0),math.rad(45))
1352
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1353
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0.2)
1354
  local eff = effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
1355
  table.insert(efftab,eff)
1356
    end 
1357
local trspos = Torso.Position
1358
 Character.Humanoid.WalkSpeed = wssave
1359
 for _,efff in pairs(efftab) do
1360
 wait()
1361
 coroutine.resume(coroutine.create(function()
1362
 for i = 0 , 1 , 0.15 do 
1363
 wait()
1364
 efff.Transparency = 1*i
1365
 end 
1366
 wait()
1367
 efff.Transparency = 1
1368
 end))
1369
 end
1370
 for io,eff in pairs(efftab) do
1371
 wait()
1372
for zz = 1 , 1 do
1373
local mesh = Instance.new("CylinderMesh")
1374
mesh.Scale = Vector3.new(0.1,0.5,0.1)
1375
local shell = Instance.new("Part")
1376
mesh.Parent = shell
1377
shell.Anchored = true
1378
shell.formFactor = 1
1379
shell.Size = Vector3.new(1,1,1)
1380
local dur = CFrame.new(trspos,eff.Position)
1381
local CF1 = dur * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,-6,0)
1382
shell.CFrame = CF1
1383
shell.Parent = eff
1384
shell.Transparency = 1
1385
shell.Reflectance = 0.25
1386
shell.BrickColor = BrickColor.new("Bright blue")
1387
shell.CanCollide = false
1388
is(shell,0.5)
1389
 coroutine.resume(coroutine.create(function()
1390
 for i = 0 , 1 , 0.1 do 
1391
 wait()
1392
 shell.Transparency = 1-1*i
1393
 mesh.Scale = Vector3.new(0.1+4.9*i,0.5,0.1+4.9*i)
1394
 end
1395
 wait(0.25)
1396
 for i = 0 , 1 , 0.1 do 
1397
 wait()
1398
 shell.Transparency = 1*i
1399
 mesh.Scale = Vector3.new(5-5*i,0.5-0.5*i,5-5*i)
1400
 end
1401
 shell.Parent = nil
1402
 end))
1403
end
1404
end
1405
 for io,eff in pairs(efftab) do
1406
 wait()
1407
for zz = 1 , 1 do
1408
local mesh = Instance.new("SpecialMesh")
1409
mesh.MeshType = "FileMesh"
1410
mesh.Scale = Vector3.new(5,2,1)
1411
mesh.MeshId = "rbxasset://fonts/sword.mesh"
1412
local shell = Instance.new("Part")
1413
mesh.Parent = shell
1414
shell.Anchored = true
1415
shell.formFactor = 1
1416
shell.Size = Vector3.new(2,2,5)
1417
local dur = CFrame.new(trspos,eff.Position)
1418
local CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5)* CFrame.Angles(0,0,math.rad(90)) 
1419
shell.CFrame = CF1
1420
shell.Parent = eff
1421
shell.Transparency = 1
1422
shell.Reflectance = 0.25
1423
shell.BrickColor = BrickColor.new("Bright blue")
1424
shell.CanCollide = false
1425
local hitd = 0
1426
coroutine.resume(coroutine.create(function() 
1427
local dd = false
1428
while shell.Parent ~= nil and not dd do
1429
wait() 
1430
local c = game.Workspace:GetChildren(); 
1431
for i = 1, #c do 
1432
local hum = c[i]:findFirstChild("Humanoid") 
1433
if hum ~= nil and hum.Health ~= 0 then 
1434
local head = c[i]:findFirstChild("Torso"); 
1435
if head ~= nil then 
1436
local targ = head.Position - shell.Position; 
1437
local mag = targ.magnitude; 
1438
if mag <= 3 and c[i].Name ~= Player.Name then 
1439
dd = true
1440
local critrandomizer = math.random(1,crtrate)
1441
if critrandomizer ~= 1 then
1442
local rndmdamage = math.random(mindamage+iceboost,maxdamage+iceboost)
1443
damagesplat(rndmdamage,head,false)
1444
hum:TakeDamage(rndmdamage)
1445
elseif critrandomizer == 1 then
1446
local rndmdamage = math.random(maxdamage+iceboost,crtmaxdamage+iceboost)
1447
damagesplat(rndmdamage,head,true)
1448
hum:TakeDamage(rndmdamage)
1449
end
1450
end 
1451
end 
1452
end 
1453
end 
1454
end 
1455
end)) 
1456
 coroutine.resume(coroutine.create(function()
1457
 uss(eff,1)
1458
 
1459
 for i = 0 , 1 , 0.1 do 
1460
 wait()
1461
 shell.Transparency = 1-1*i
1462
CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5+2*i)* CFrame.Angles(0,0,math.rad(90)) 
1463
 shell.CFrame = CF1
1464
 mesh.Scale = Vector3.new(5,2,1+0.5*i)
1465
 end
1466
 wait(0.25)
1467
 ss(eff,2)
1468
 for i = 0 , 1 , 0.1 do 
1469
 wait()
1470
 shell.Transparency = 1*i
1471
CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,8.5+25*i)* CFrame.Angles(0,0,math.rad(90)) 
1472
 shell.CFrame = CF1
1473
 mesh.Scale = Vector3.new(5-5*i,2-2*i,1.5-1.5*i*i)
1474
 end
1475
 shell.Parent = nil
1476
 end))
1477
end
1478
end
1479
 coroutine.resume(coroutine.create(function()
1480
 wait(1.5)
1481
 for _,eff in pairs(efftab) do
1482
 wait()
1483
 eff.Parent = nil
1484
 end end))
1485
 for i = 0 , 1 , 0.1 do
1486
                wait()
1487
  RW.C0 = CFrame.new(1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(45*i), math.rad(-45))
1488
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1489
  LW.C0 = CFrame.new(-1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45))
1490
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1491
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
1492
    end 
1493
 attack=false
1494
end
1495
local FTCount = 0
1496
function FlameTrail()
1497
attack=true
1498
 for i = 0 , 1 , 0.15 do
1499
                wait()
1500
  RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+55*i))
1501
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(0), math.rad(0))
1502
  LW.C0 = CFrame.new(-1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45+20*i))
1503
     end 
1504
 wait(0.1)
1505
 ss(Head,1.5)
1506
 fs(Head,0.5+1.5*math.random())
1507
 local efftab = {}
1508
  RW.C0 = CFrame.new(0.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
1509
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0))
1510
  LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(65))
1511
 dmgcnnct(hitbox)
1512
 for i = 0 , 1 , 0.15 do
1513
  LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1514
                wait()
1515
  RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
1516
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i*i), math.rad(0), math.rad(0))
1517
  LW.C0 = CFrame.new(-0.5-1*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+20*i),math.rad(-45),math.rad(65-155*i))
1518
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1519
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
1520
  if FTCount <= MaxFT then
1521
  local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
1522
  eff.Transparency = 1
1523
  table.insert(efftab,eff)
1524
  FTCount = FTCount + 1
1525
  OTND(eff)
1526
 coroutine.resume(coroutine.create(function()
1527
 for i = 0 , 1 , 0.15 do 
1528
 wait()
1529
 eff.Transparency = 1-0.5*i
1530
 end 
1531
 wait()
1532
 eff.Transparency = 0.5
1533
 end))
1534
 end
1535
     end 
1536
 local rndmneg = math.random(1,2)
1537
 if rndmneg == 1 then
1538
 rndmdec1 = 13 * math.random()
1539
 else
1540
 rndmdec1 = -13 * math.random()
1541
 end
1542
 for i = 0 , 1 , 0.1 do
1543
                wait()
1544
  RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1*i), math.rad(90), math.rad(10-(rndmdec1*2)*i))
1545
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(0), math.rad(0))
1546
  LW.C0 = CFrame.new(-1.5,0.5,-0) * CFrame.fromEulerAnglesXYZ(math.rad(100),math.rad(-45),math.rad(-90))
1547
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1548
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
1549
     end 
1550
 ss(Head,1.5)
1551
 fs(Head,0.5+1.5*math.random())
1552
 Hitdeb = 0
1553
 for i = 0 , 1 , 0.15 do
1554
  LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1555
                wait()
1556
  RW.C0 = CFrame.new(1.5-1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1), math.rad(90), math.rad(10-(rndmdec1*2)))
1557
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-200*i), math.rad(0), math.rad(0))
1558
  LW.C0 = CFrame.new(-1.5+1*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(100-80*i),math.rad(-45),math.rad(-90+135*i))
1559
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1560
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
1561
  if FTCount <= MaxFT then
1562
  local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
1563
  eff.Transparency = 1
1564
  table.insert(efftab,eff)
1565
  FTCount = FTCount + 1
1566
  OTND(eff)
1567
 coroutine.resume(coroutine.create(function()
1568
 for i = 0 , 1 , 0.15 do 
1569
 wait()
1570
 eff.Transparency = 1-0.5*i
1571
 end 
1572
 wait()
1573
 eff.Transparency = 0.5
1574
 end))
1575
 end
1576
     end 
1577
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
1578
 for i = 0 , 1 , 0.2 do
1579
                wait()
1580
  local rndmd = rndmdec1-rndmdec1*i
1581
  RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad((90-rndmd)), math.rad(90), math.rad((10-(rndmd*2))-20*i))
1582
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90-10*i), math.rad(0), math.rad(0))
1583
  LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
1584
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1585
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
1586
  end 
1587
 for i = 0 , 1 , 0.1 do
1588
                wait()
1589
  RW.C0 = CFrame.new(1*i,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90-20*i), math.rad(90-90*i), math.rad(-10-35*i))
1590
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-100+100*i), math.rad(0), math.rad(0))
1591
  LW.C0 = CFrame.new(-0.5-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-10*i),math.rad(-45+45*i),math.rad(45))
1592
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1593
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
1594
  end 
1595
 ss(Head,1.5)
1596
 fs(Head,0.5+1.5*math.random())
1597
 wait(0.1)
1598
 Hitdeb = 0
1599
 for i = 0 , 1 , 0.2 do
1600
  LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1601
                wait()
1602
  RW.C0 = CFrame.new(1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i), math.rad(0), math.rad(-45))
1603
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1604
  LW.C0 = CFrame.new(-1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i),math.rad(0),math.rad(45))
1605
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1606
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
1607
  if FTCount <= MaxFT then
1608
  local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
1609
  eff.Transparency = 1
1610
  table.insert(efftab,eff)
1611
  FTCount = FTCount + 1
1612
  OTND(eff)
1613
 coroutine.resume(coroutine.create(function()
1614
 for i = 0 , 1 , 0.15 do 
1615
 wait()
1616
 eff.Transparency = 1-0.5*i
1617
 end 
1618
 wait()
1619
 eff.Transparency = 0.5
1620
 end))
1621
 end
1622
  end 
1623
 coroutine.resume(coroutine.create(function()
1624
 wait(5)
1625
 for _,eff in pairs(efftab) do
1626
 wait()
1627
 eff.Parent = nil
1628
 FTCount = FTCount - 1
1629
 end end))
1630
 for i = 0 , 1 , 0.1 do
1631
                wait()
1632
  RW.C0 = CFrame.new(1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i), math.rad(45*i), math.rad(-45))
1633
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1634
  LW.C0 = CFrame.new(-1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i),math.rad(-45*i),math.rad(45))
1635
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
1636
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
1637
   end 
1638
 dmgdc()
1639
 attack=false
1640
end
1641
 
1642
 
1643
function LifeDrain()
1644
attack=true
1645
 for i = 0 , 1 , 0.1 do
1646
                wait()
1647
  RW.C0 = CFrame.new(1,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45), math.rad(-45+90*i))
1648
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
1649
  LW.C0 = CFrame.new(-1+1.25*i,0.5+0.25*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+25*i),math.rad(-45+90*i),math.rad(45+25*i))
1650
  LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
1651
  w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
1652
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
1653
     end 
1654
------
1655
local nrmag = 50
1656
local nrprsn = nil
1657
wait() 
1658
--
1659
local c = game.Workspace:GetChildren(); 
1660
for i = 1, #c do 
1661
local hum = c[i]:findFirstChild("Humanoid") 
1662
if hum ~= nil and hum.Health ~= 0 then 
1663
local head = c[i]:findFirstChild("Torso"); 
1664
if head ~= nil then 
1665
local targ = head.Position - Torso.Position; 
1666
local mag = targ.magnitude; 
1667
if mag <= 50 and c[i].Name ~= Player.Name then 
1668
if mag < nrmag then
1669
nrmag = mag
1670
nrprsn = c[i]
1671
end
1672
end end end end
1673
--
1674
if nrprsn == nil then 
1675
attack = false     
1676
return end
1677
local C = 0
1678
local bp = Instance.new("BodyPosition")
1679
local bg = Instance.new("BodyGyro")
1680
bp.Parent = Torso
1681
bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1682
bp.P = bp.P + 10000
1683
local CF = nrprsn.Torso.CFrame
1684
bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * -3
1685
bg.Parent = Torso
1686
bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
1687
bg.P = bg.P + 100000
1688
bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(0),0,0)
1689
ss(Head,2)
1690
wait(0.1)
1691
local FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1692
local LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1693
 for i = 0 , 1 , 0.2 do
1694
                wait()
1695
  C = C + 1
1696
  RW.C0 = CFrame.new(1-1*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-90*i), math.rad(45), math.rad(45-135*i))
1697
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
1698
  LW.C0 = CFrame.new(0.25-1.75*i,0.75-0.25*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),math.rad(45),math.rad(70-125*i))
1699
  LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
1700
  w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
1701
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
1702
  if C == 3 then
1703
  bp.P = bp.P + 10000
1704
bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * 6
1705
bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(-45),0,0)
1706
  end
1707
  if C == 2 then
1708
  FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1709
  elseif C == 5 then
1710
  LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
1711
  end
1712
     end 
1713
local effectsmsh = Instance.new("SpecialMesh")
1714
effectsmsh.Scale = Vector3.new(5,1,5)
1715
effectsmsh.MeshType = "Sphere"
1716
local effectsg = Instance.new("Part")
1717
effectsg.formFactor = 3
1718
effectsg.CanCollide = false
1719
effectsg.Name = "Eff"
1720
effectsg.Locked = true
1721
effectsg.Anchored = true
1722
effectsg.Size = Vector3.new(0.2,1,0.2)
1723
effectsg.Parent = swordholder
1724
effectsmsh.Parent = effectsg
1725
effectsg.BrickColor = BrickColor.new("White")
1726
effectsg.Reflectance = Ref
1727
local point1 = FirstP
1728
local LP = LastP
1729
local mg = (LP.p - point1.p).magnitude
1730
effectsg.Size = Vector3.new(0.2,mg,0.2)
1731
effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
1732
if returnn then return effectsg end
1733
coroutine.resume(coroutine.create(function()
1734
if not returnn then
1735
for i = 0 , 1 , 0.1 do
1736
wait()
1737
effectsg.Transparency = 1*i
1738
end
1739
wait()
1740
effectsg.Parent = nil
1741
end
1742
end))
1743
local critrandomizer = math.random(1,crtrate)
1744
local rndmdamage = 0
1745
if critrandomizer ~= 1 then
1746
rndmdamage = math.random(mindamage,maxdamage)
1747
damagesplat(rndmdamage,nrprsn.Head,false)
1748
nrprsn.Humanoid:TakeDamage(rndmdamage)
1749
elseif critrandomizer == 1 then
1750
rndmdamage = math.random(maxdamage,crtmaxdamage)
1751
damagesplat(rndmdamage,nrprsn.Head,true)
1752
nrprsn.Humanoid:TakeDamage(rndmdamage)
1753
end
1754
local tempmod = Instance.new("Model",Workspace)
1755
for l = 1 , rndmdamage/5 do
1756
local meshz = Instance.new("SpecialMesh")
1757
meshz.Scale = Vector3.new(1.5,1.5,1.5)
1758
meshz.MeshType = "Sphere"
1759
local shellz = Instance.new("Part")
1760
meshz.Parent = shellz
1761
shellz.Anchored = false
1762
shellz.formFactor = 0
1763
shellz.Size = Vector3.new(1,1,1)
1764
shellz.CFrame = hitbox.CFrame
1765
shellz.Parent = tempmod
1766
shellz.Transparency = 0.5
1767
shellz.BrickColor = BrickColor.new("White")
1768
shellz.CanCollide = false
1769
shellz.Reflectance = 0
1770
local bv = Instance.new("BodyPosition") 
1771
bv.Parent = shellz
1772
bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) 
1773
bv.P = bv.P + 10000
1774
bv.position = shellz.Position + Vector3.new(math.random(-25,25),math.random(-2.5,7.5),math.random(-25,25))
1775
coroutine.resume(coroutine.create(function()
1776
wait(3)
1777
bv.maxForce = Vector3.new(0,math.huge,0) 
1778
coroutine.resume(coroutine.create(function() 
1779
local dd = false
1780
while shellz.Transparency ~= 1 and not dd do
1781
wait(0.1) 
1782
local cc = game.Workspace:GetChildren(); 
1783
for i = 1, #c do 
1784
local hum = cc[i]:findFirstChild("Humanoid") 
1785
if hum ~= nil and hum.Health ~= 0 then 
1786
local head = cc[i]:findFirstChild("Head"); 
1787
if head ~= nil then 
1788
local targ = head.Position - shellz.Position; 
1789
local mag = targ.magnitude; 
1790
if mag <= 5 then 
1791
dd = true
1792
damagesplat(5+darkboost,head,false)
1793
hum.Health = hum.Health + 5 + darkboost
1794
for i = 0 , 1 , 0.05 do
1795
wait()
1796
shellz.Transparency = 1*i
1797
end
1798
shellz.Parent = nil
1799
end 
1800
end 
1801
end 
1802
end 
1803
end 
1804
end)) 
1805
 
1806
end))
1807
local hx = false
1808
coroutine.resume(coroutine.create(function()
1809
for i = 0 , 1 , 0.05 do
1810
wait()
1811
shellz.Transparency = 1-1*i
1812
end
1813
shellz.Transparency = 0
1814
end))
1815
coroutine.resume(coroutine.create(function()
1816
wait(60)
1817
for ii,shellz in pairs(tempmod:GetChildren()) do
1818
for i = 0 , 1 , 0.1 do
1819
wait()
1820
shellz.Transparency = 1*i
1821
end
1822
shellz.Parent = nil
1823
end
1824
tempmod.Parent = nil
1825
end))
1826
end
1827
wait(0.5)
1828
----
1829
  RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
1830
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1831
  LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
1832
  LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1833
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
1834
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
1835
 attack=false
1836
bp.Parent = nil bg.Parent = nil
1837
end
1838
 
1839
 
1840
--TEST
1841
 
1842
hammer = Torso
1843
 
1844
function doDamage(hit)
1845
 local humanoid = hit.Parent:findFirstChild("Humanoid")
1846
 local hum = Player.Character:findFirstChild("Humanoid") -- non-nil if tool held by a character
1847
 if humanoid~=nil and humanoid ~= hum and hum ~= nil then
1848
  local foundd = false
1849
  for ii = 1 , #AoETrue do
1850
  if AoETrue[ii] == hit.Parent.Name then
1851
  foundd = true
1852
  end
1853
  end
1854
  if foundd then
1855
  end
1856
  --
1857
  if not foundd then
1858
  humanoid:TakeDamage(5)
1859
  if Mode == "Fire" then
1860
  end
1861
  damagesplat(5,humanoid.Parent.Torso,false)
1862
  table.insert(AoETrue,hit.Parent)
1863
  end
1864
 
1865
  if humanoid.Health <= 0 then
1866
   local c = hit.CFrame
1867
   hit.CFrame = CFrame.new(hit.Position)
1868
   hit.CFrame = c
1869
  end
1870
  delay(1, function() end)
1871
 else
1872
  local c = hit.CFrame hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c
1873
 end
1874
end
1875
function bewm(obj, pos, notme)
1876
 if (obj ~= notme) then
1877
  if (obj.className == "Part") or (obj.className == "Seat") then
1878
   if (not obj.Anchored) and (((pos - obj.Position) * Vector3.new(1, 0, 1)).magnitude < 24) and (pos.y <= obj.Position.y + 2) and (pos.y >= obj.Position.y - 2) then
1879
    delay((pos - obj.Position).magnitude / 24, function() obj.Velocity = ((obj.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 96 + obj.Velocity obj.RotVelocity = obj.RotVelocity + Vector3.new(obj.Position.z - pos.z, 0, pos.x - obj.Position.x).unit * 40 doDamage(obj)    end)
1880
   end
1881
  elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
1882
   local list = obj:GetChildren()
1883
   for x = 1, #list do
1884
    bewm(list[x], pos, notme)
1885
   end
1886
  end
1887
 end
1888
end
1889
 
1890
function attackr()
1891
local shockRing = Instance.new("Part")
1892
shockRing.formFactor = 2
1893
shockRing.Size = Vector3.new(1, 0.4, 1)
1894
shockRing.Anchored = true
1895
shockRing.Locked = true
1896
shockRing.CanCollide = false
1897
shockRing.archivable = false
1898
shockRing.TopSurface = 0
1899
shockRing.BottomSurface = 0
1900
shockRing.Transparency = 0
1901
if Mode == "Fire" then
1902
shockRing.BrickColor = BrickColor.new("Really red")
1903
elseif Mode == "Dark" then
1904
shockRing.BrickColor = BrickColor.new("Bright violet")
1905
elseif Mode == "Ice" then
1906
shockRing.BrickColor = BrickColor.new("Bright blue")
1907
shockRing.Reflectance = 0.2
1908
end
1909
local decal = Instance.new("CylinderMesh")
1910
decal.Parent = shockRing
1911
decal.Scale = Vector3.new(1,0.1,1)
1912
 wait(0.2)
1913
 local pos = hammer.CFrame * (Vector3.new(0, -2.5, 0))
1914
 bewm(game.Workspace, pos, Player.Character)
1915
 shockRing.CFrame = CFrame.new(pos)
1916
 for x = 0, 1 , 0.0625 do
1917
  delay((x*16) / 30, function() shockRing.Parent = nil shockRing.Size = Vector3.new(0, 0.4, 0) + Vector3.new(3.2, 0, 3.2) * (x*16) shockRing.Transparency = 1*x    shockRing.Parent = Player.Character end)
1918
 end
1919
 delay(1, function() 
1920
  shockRing.Parent = nil   
1921
  for ii = 1 , #AoETrue do
1922
  table.remove(AoETrue,#AoETrue)
1923
  end end)
1924
end
1925
local modemodel = Instance.new("Model",swordholder)
1926
local mrdychng = false
1927
function FireMode()
1928
attack=true
1929
Mode = "Fire"
1930
fireboost = 5
1931
mrdychng = true
1932
 for i = 0 , 1 , 0.1 do
1933
                wait()
1934
  RW.C0 = CFrame.new(1+0.5*i,0.5+1*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45+45*i))
1935
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1936
  LW.C0 = CFrame.new(-1+1*i,0.5+1*i,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45+65*i))
1937
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
1938
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
1939
 end 
1940
cs(Head,1.5)
1941
local tempmod = Instance.new("Model",swordholder)
1942
for l = 1 , 20 do
1943
local meshz = Instance.new("SpecialMesh")
1944
meshz.Scale = Vector3.new(0.5,0.5,0.5)
1945
meshz.MeshType = "Sphere"
1946
local shellz = Instance.new("Part")
1947
meshz.Parent = shellz
1948
shellz.Anchored = false
1949
shellz.formFactor = 0
1950
shellz.Size = Vector3.new(1,1,1)
1951
shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
1952
shellz.Parent = tempmod
1953
shellz.Transparency = 0.5
1954
shellz.BrickColor = BrickColor.new("Really red")
1955
shellz.CanCollide = false
1956
shellz.Reflectance = 0
1957
local bv = Instance.new("BodyPosition") 
1958
bv.Parent = shellz
1959
bv.maxForce = Vector3.new(200000,200000,200000) 
1960
bv.position = shellz.Position
1961
coroutine.resume(coroutine.create(function()
1962
for i = 0 , 1 , 0.025 do
1963
wait()
1964
shellz.Transparency = 1-1*i
1965
end
1966
shellz.Transparency = 0
1967
end))
1968
coroutine.resume(coroutine.create(function()
1969
wait(0.05)
1970
bv.position = hitbox.Position 
1971
for i = 1 , 20 do
1972
wait(0.1)
1973
bv.position = shell.Position 
1974
end
1975
shellz.Parent = nil
1976
end))
1977
wait(0.01)
1978
end
1979
coroutine.resume(coroutine.create(function ()
1980
wait(0.25)
1981
tempmod.Parent = nil
1982
end))
1983
 for i = 0 , 1 , 0.2 do
1984
                wait()
1985
  RW.C0 = CFrame.new(1.5,1.5-1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(135-45*i), math.rad(0), math.rad(0))
1986
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
1987
  LW.C0 = CFrame.new(0,1.5-1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(110-45*i))
1988
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
1989
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
1990
 end 
1991
bs(Head,0.75)
1992
attackr()
1993
for zz = 1 , 1  do
1994
local mesh = Instance.new("SpecialMesh")
1995
mesh.MeshType = "FileMesh"
1996
mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
1997
mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
1998
local shell = Instance.new("Part")
1999
mesh.Parent = shell
2000
shell.Anchored = true
2001
shell.formFactor = 1
2002
shell.Size = Vector3.new(1,1,1)
2003
shell.CFrame = Torso.CFrame * CFrame.new(0,-1.5,0)
2004
shell.Parent = swordholder
2005
shell.Transparency = 0
2006
shell.BrickColor = BrickColor.new("Really red")
2007
shell.CanCollide = false
2008
coroutine.resume(coroutine.create(function()
2009
for i = 0 , 1 , 0.075 do
2010
wait()
2011
mesh.Scale = Vector3.new(20,5,20) * Vector3.new(i,1,i)
2012
shell.Transparency = 1*i
2013
end
2014
shell.Transparency = 1
2015
shell.Parent = nil
2016
end))
2017
end
2018
for zz = 1 , 1  do
2019
local mesh = Instance.new("SpecialMesh")
2020
mesh.MeshType = "FileMesh"
2021
mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
2022
mesh.Scale = Vector3.new(10,20,10) * Vector3.new(0.01,0.01,0.01)
2023
local shell = Instance.new("Part")
2024
mesh.Parent = shell
2025
shell.Anchored = true
2026
shell.formFactor = 1
2027
shell.Size = Vector3.new(1,1,1)
2028
shell.CFrame = Torso.CFrame * CFrame.new(0,1,0)
2029
shell.Parent = swordholder
2030
shell.Transparency = 0
2031
shell.BrickColor = BrickColor.new("Really red")
2032
shell.CanCollide = false
2033
coroutine.resume(coroutine.create(function()
2034
for i = 0 , 1 , 0.05 do
2035
wait()
2036
mesh.Scale = Vector3.new(10,20,10) * Vector3.new(i,1,i)
2037
shell.Transparency = 1*i
2038
end
2039
shell.Transparency = 1
2040
shell.Parent = nil
2041
end))
2042
end
2043
for zz = 1 , 3  do
2044
local mesh = Instance.new("SpecialMesh")
2045
mesh.MeshType = "Sphere"
2046
mesh.Scale = Vector3.new(5*zz,5*zz,5*zz) * Vector3.new(0.01,0.01,0.01)
2047
local shell = Instance.new("Part")
2048
mesh.Parent = shell
2049
shell.Anchored = true
2050
shell.formFactor = 3
2051
shell.Size = Vector3.new(1,1,1)
2052
shell.CFrame = Torso.CFrame * CFrame.new(0,-1,0)
2053
shell.Parent = swordholder
2054
shell.Transparency = 0
2055
if math.fmod(zz,2) == 1 then
2056
shell.BrickColor = BrickColor.new("Bright orange")
2057
elseif math.fmod(zz,2) == 0.5 then
2058
shell.BrickColor = BrickColor.new("Bright red")
2059
else
2060
shell.BrickColor = BrickColor.new("Bright yellow")
2061
end
2062
shell.CanCollide = false
2063
coroutine.resume(coroutine.create(function()
2064
for i = 0 , 1 , 0.025 do
2065
wait()
2066
mesh.Scale = Vector3.new(10*zz,10*zz,10*zz) * Vector3.new(i,i,i)
2067
shell.Transparency = 1*i
2068
end
2069
shell.Transparency = 1
2070
shell.Parent = nil
2071
end))
2072
end
2073
 
2074
 
2075
for ii,z in pairs(modemodel:GetChildren()) do
2076
z.Parent = nil
2077
end
2078
 
2079
local wing1m = Instance.new("BlockMesh")
2080
wing1m.Scale = Vector3.new(1,1,1)
2081
local wing1p = Instance.new("Part")
2082
wing1p.formFactor = 3
2083
wing1p.CanCollide = false
2084
wing1p.Name = "FlameWingP1"
2085
wing1p.Locked = true
2086
wing1p.Size = Vector3.new(0.2,0.2,0.2)
2087
wing1p.Parent = modemodel
2088
wing1m.Parent = wing1p
2089
wing1p.BrickColor = BrickColor.new("Bright red")
2090
wing1p.Transparency = 1
2091
local wing1w = Instance.new("Weld")
2092
wing1w.Parent = wing1p
2093
wing1w.Part0 = wing1p
2094
wing1w.Part1 = Torso
2095
wing1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
2096
wing1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(-1, 0, 0) 
2097
local wing2m = Instance.new("BlockMesh")
2098
wing2m.Scale = Vector3.new(1,1,1)
2099
local wing2p = Instance.new("Part")
2100
wing2p.formFactor = 3
2101
wing2p.CanCollide = false
2102
wing2p.Name = "FlameWingP2"
2103
wing2p.Locked = true
2104
wing2p.Size = Vector3.new(0.2,0.2,0.2)
2105
wing2p.Parent = modemodel
2106
wing2m.Parent = wing2p
2107
wing2p.BrickColor = BrickColor.new("Bright red")
2108
wing2p.Transparency = 1
2109
local wing2w = Instance.new("Weld")
2110
wing2w.Parent = wing2p
2111
wing2w.Part0 = wing2p
2112
wing2w.Part1 = Torso
2113
wing2w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
2114
wing2w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(1, 0, 0) 
2115
coroutine.resume(coroutine.create(function()
2116
for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
2117
wait(0.1)
2118
local ringm = Instance.new("BlockMesh")
2119
ringm.Scale = Vector3.new(1,1,1)
2120
local ringp = Instance.new("Part")
2121
ringp.formFactor = 3
2122
ringp.CanCollide = false
2123
ringp.Name = "FlameWing"..ringi
2124
ringp.Locked = true
2125
ringp.Size = Vector3.new(0.2,2,0.8)
2126
ringp.Parent = modemodel
2127
ringm.Parent = ringp
2128
ringp.BrickColor = BrickColor.new("Bright red")
2129
ringp.Reflectance = 0.1
2130
ringp.Transparency = 1
2131
local ringw = Instance.new("Weld")
2132
ringw.Parent = ringp
2133
ringw.Part0 = ringp
2134
ringw.Part1 = wing1p
2135
ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi, 0, 0) * CFrame.new(0, ringp.Size.y/4 , 0)
2136
ringw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(45)) * CFrame.new(0, -1, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.x/1.625
2137
coroutine.resume(coroutine.create(function()
2138
for i = 0 , 1 , 0.025 do
2139
wait()
2140
ringp.Transparency = 1-1*i
2141
end
2142
ringp.Transparency = 0
2143
end))
2144
end end))
2145
coroutine.resume(coroutine.create(function()
2146
for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
2147
wait(0.1)
2148
local ringm = Instance.new("BlockMesh")
2149
ringm.Scale = Vector3.new(1,1,1)
2150
local ringp = Instance.new("Part")
2151
ringp.formFactor = 3
2152
ringp.CanCollide = false
2153
ringp.Name = "FlameWing2_"..ringi
2154
ringp.Locked = true
2155
ringp.Size = Vector3.new(0.2,2,0.8)
2156
ringp.Parent = modemodel
2157
ringm.Parent = ringp
2158
ringp.BrickColor = BrickColor.new("Bright red")
2159
ringp.Reflectance = 0.1
2160
ringp.Transparency = 1
2161
local ringw = Instance.new("Weld")
2162
ringw.Parent = ringp
2163
ringw.Part0 = ringp
2164
ringw.Part1 = wing2p
2165
ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi+math.rad(0), 0, 0) * CFrame.new(-0, ringp.Size.y/4 , 0)
2166
ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(-45)) * CFrame.new(-0, -1, 0)
2167
coroutine.resume(coroutine.create(function()
2168
for i = 0 , 1 , 0.025 do
2169
wait()
2170
ringp.Transparency = 1-1*i
2171
end
2172
ringp.Transparency = 0
2173
end))
2174
end end))
2175
local wingp1m = Instance.new("SpecialMesh")
2176
wingp1m.Scale = Vector3.new(1,1,1)
2177
wingp1m.MeshType = "Sphere"
2178
local wingp1p = Instance.new("Part")
2179
wingp1p.formFactor = 3
2180
wingp1p.CanCollide = false
2181
wingp1p.Name = "FlameOrb"
2182
wingp1p.Locked = true
2183
wingp1p.Size = Vector3.new(1,1,1)
2184
wingp1p.Parent = modemodel
2185
wingp1m.Parent = wingp1p
2186
wingp1p.Reflectance = 0.2
2187
wingp1p.BrickColor = BrickColor.new("Bright red")
2188
local wingp1w = Instance.new("Weld")
2189
wingp1w.Parent = wingp1p
2190
wingp1w.Part0 = wingp1p
2191
wingp1w.Part1 = Torso
2192
wingp1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
2193
wingp1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, -0.5, 0.5) 
2194
coroutine.resume(coroutine.create(function()
2195
for i = 0 , 1 , 0.025 do
2196
wait()
2197
wingp1p.Transparency = 1-1*i
2198
end
2199
wingp1p.Transparency = 0
2200
end))
2201
local Firee = modemodel
2202
local Spawn = wingp1p
2203
local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright yellow"),BrickColor.new("Bright orange")} 
2204
local Embers = {} 
2205
local modelz = Instance.new("Model",Firee)
2206
modelz.Name = "FireHolder"
2207
for X = 1, 15 do
2208
local f = Instance.new("Part") 
2209
f.Parent = nil
2210
f.BrickColor = colors[math.random(1, # colors)] 
2211
f.Size = Vector3.new(1,1,1) 
2212
f.formFactor = 3
2213
f.Anchored = true 
2214
f.Locked = true 
2215
f.CanCollide = false 
2216
f.Transparency = 0.5 
2217
f.Name = "Fire"
2218
f.TopSurface = 0
2219
f.BottomSurface = 0
2220
Instance.new("BlockMesh",f)
2221
table.insert(Embers, f) 
2222
end 
2223
local R = 0
2224
coroutine.resume(coroutine.create(function ()
2225
repeat 
2226
wait() 
2227
R = R + 1
2228
for X = 1, # Embers do 
2229
Embers[X].Parent = modelz
2230
local FM = math.fmod(R + X, # Embers) 
2231
if FM == 1 then 
2232
RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10) 
2233
RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) 
2234
Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, (Spawn.Position * rndm) + RandPos + RandDir) 
2235
Embers[X].Mesh.Scale = Vector3.new(1,1,1)
2236
else 
2237
Embers[X].CFrame = Embers[X].CFrame + Embers[X].CFrame.lookVector*0.5
2238
Embers[X].Mesh.Scale = Embers[X].Mesh.Scale - Vector3.new(0.1,0.1,0.1)
2239
end 
2240
end 
2241
until wingp1p.Parent == nil
2242
for i = 0 ,1 , 0.1 do
2243
wait(0.2)
2244
for X = 1, # Embers do 
2245
Embers[X].Transparency = 0.5+0.5*i
2246
end
2247
end
2248
for X = 1, # Embers do 
2249
Embers[X].Parent = nil
2250
end
2251
end))
2252
  for ii = 1 , #AoETrue do
2253
  table.remove(AoETrue,#AoETrue)
2254
  end
2255
 wait(0.25)
2256
 for i = 0 , 1 , 0.1 do
2257
                wait()
2258
  RW.C0 = CFrame.new(1.5,0.5+0.5*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+25*i), math.rad(0), math.rad(0))
2259
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
2260
  LW.C0 = CFrame.new(0,0.5+0.5*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(65+25*i))
2261
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
2262
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
2263
 end 
2264
 for i = 0 , 1 , 0.1 do
2265
                wait()
2266
  RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(115-35*i), math.rad(45*i), math.rad(-45*i))
2267
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
2268
  LW.C0 = CFrame.new(-1*i,1-0.5*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(0),math.rad(90-45*i))
2269
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
2270
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
2271
 end 
2272
  RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
2273
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
2274
  LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
2275
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
2276
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
2277
attack=false
2278
wait(1.5)
2279
mrdychng = false
2280
end
2281
function NeutralMode()
2282
attack=true
2283
Mode = "None"
2284
fireboost = 0
2285
iceboost = 0
2286
darkboost = 0
2287
ss(Head,1)
2288
cs(Head,2)
2289
mrdychng = true
2290
 for i = 0 , 1 , 0.2 do
2291
                wait()
2292
  RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45), math.rad(-45+45*i))
2293
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
2294
  LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45),math.rad(45-45*i))
2295
  LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
2296
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
2297
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
2298
 end 
2299
coroutine.resume(coroutine.create(function()
2300
for ii,z in pairs(modemodel:GetChildren()) do
2301
if string.sub(z.Name,0,string.len(z.Name)-1) ~= "FlameWingP" then
2302
wait()
2303
coroutine.resume(coroutine.create(function()
2304
for i = 0 , 1 , 0.1 do
2305
wait()
2306
z.Transparency = (1-z.Transparency)*i
2307
end
2308
z.Parent = nil
2309
end))
2310
end
2311
end
2312
wait(0.5)
2313
for ii,z in pairs(modemodel:GetChildren()) do
2314
wait()
2315
z.Parent = nil
2316
end
2317
end))
2318
 for i = 0 , 1 , 0.1 do
2319
                wait()
2320
  RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(45), math.rad(0))
2321
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
2322
  LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0))
2323
  LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
2324
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
2325
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70+20*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
2326
 end 
2327
 
2328
 wait(0.25)
2329
 for i = 0 , 1 , 0.1 do
2330
                wait()
2331
  RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(45), math.rad(-45*i))
2332
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
2333
  LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45),math.rad(45*i))
2334
  LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
2335
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
2336
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90-90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
2337
 end 
2338
  RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
2339
  RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
2340
  LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
2341
  LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
2342
  w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
2343
  w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
2344
attack=false
2345
wait(0.5)
2346
mrdychng = false
2347
end
2348
 
2349
function ob1d(mouse) 
2350
hold = true 
2351
if attack == true then return end
2352
end 
2353
function ob1u(mouse)  
2354
end 
2355
buttonhold = false
2356
function key(key)
2357
if attack == true then return end
2358
if key == "q" then
2359
if attacktype == 1 then
2360
Combo1a()
2361
elseif attacktype == 2 then
2362
Combo1b()
2363
elseif attacktype == 3 then
2364
Combo1c()
2365
end
2366
end
2367
if key == "e" then
2368
if attacktype == 1 then
2369
BlizzardSword()
2370
end
2371
end
2372
if key == "r" then
2373
FlameTrail()
2374
end
2375
if key == "t" then
2376
LifeDrain()
2377
end
2378
if Mode == "None" and not mrdychng then
2379
if key == "z" then
2380
FireMode()
2381
end
2382
elseif not mrdychng then
2383
if key == "z" or key == "x" or key == "c" then
2384
NeutralMode()
2385
end
2386
end
2387
end 
2388
 
2389
function key2(key) 
2390
end 
2391
function s(mouse) 
2392
repeat wait() until not attack
2393
while ev.Value ~= false do
2394
wait(0.1)
2395
end
2396
MMouse = mouse
2397
mouse.Button1Down:connect(function() ob1d(mouse) end) 
2398
mouse.Button1Up:connect(function() ob1u(mouse) end) 
2399
mouse.KeyDown:connect(key) 
2400
mouse.KeyUp:connect(key2) 
2401
        equipanim()
2402
  ev.Value = true
2403
--[[
2404
script.Parent = Bin.Parent
2405
Bin:remove()]]
2406
end 
2407
function ds(mouse) 
2408
repeat wait() until not attack
2409
while ev.Value == false do
2410
wait(0.1)
2411
end
2412
 
2413
hideanim()
2414
        wait(0.1)
2415
ev.Value = false
2416
end 
2417
Bin.Selected:connect(s) 
2418
Bin.Deselected:connect(ds) 
2419
 
2420
 
2421
--lego