SHOW:
|
|
- or go back to the newest paste.
1 | - | --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: JUST RUN |
1 | + | |
2 | Player = script.Parent.Parent | |
3 | ||
4 | Character = Player.Character | |
5 | ||
6 | PlayerGui = Player.PlayerGui | |
7 | ||
8 | Backpack = Player.Backpack | |
9 | ||
10 | Torso = Character.Torso | |
11 | ||
12 | Head = Character.Head | |
13 | ||
14 | LeftArm = Character["Left Arm"] | |
15 | ||
16 | LeftLeg = Character["Left Leg"] | |
17 | ||
18 | RightArm = Character["Right Arm"] | |
19 | ||
20 | RightLeg = Character["Right Leg"] | |
21 | ||
22 | LS = Torso["Left Shoulder"] | |
23 | ||
24 | LH = Torso["Left Hip"] | |
25 | ||
26 | RS = Torso["Right Shoulder"] | |
27 | ||
28 | RH = Torso["Right Hip"] | |
29 | ||
30 | attack = false | |
31 | ||
32 | attackdebounce = false | |
33 | ||
34 | combo = 0 | |
35 | ||
36 | mana = 400 | |
37 | ||
38 | necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
39 | ||
40 | lightning = false | |
41 | ||
42 | restoring = false | |
43 | ||
44 | --player | |
45 | ||
46 | player = nil | |
47 | ||
48 | --save shoulders | |
49 | ||
50 | RSH, LSH = nil, nil | |
51 | ||
52 | --welds | |
53 | ||
54 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
55 | ||
56 | --what anim | |
57 | ||
58 | anim = "none" | |
59 | ||
60 | ||
61 | ||
62 | if Character:findFirstChild("Katana",true) ~= nil then | |
63 | ||
64 | Character:findFirstChild("Katana",true).Parent = nil | |
65 | ||
66 | end | |
67 | ||
68 | if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then | |
69 | ||
70 | Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil | |
71 | ||
72 | end | |
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 | local modelzorz = Instance.new("Model") | |
79 | ||
80 | modelzorz.Name = "Katana" | |
81 | ||
82 | modelzorz.Parent = Character | |
83 | ||
84 | ||
85 | ||
86 | local prt1 = Instance.new("Part") | |
87 | ||
88 | prt1.formFactor = 1 | |
89 | ||
90 | prt1.Parent = modelzorz | |
91 | ||
92 | prt1.CanCollide = false | |
93 | ||
94 | prt1.BrickColor = BrickColor.new("Really red") | |
95 | ||
96 | prt1.Name = "Handle" | |
97 | ||
98 | prt1.Transparency = 0 | |
99 | ||
100 | prt1.Size = Vector3.new(1,1,1) | |
101 | ||
102 | prt1.CFrame = Torso.CFrame | |
103 | ||
104 | local prt2 = Instance.new("Part") | |
105 | ||
106 | prt2.formFactor = 1 | |
107 | ||
108 | prt2.Parent = modelzorz | |
109 | ||
110 | prt2.CanCollide = false | |
111 | ||
112 | prt2.BrickColor = BrickColor.new("Really black") | |
113 | ||
114 | prt2.Name = "Handle2" | |
115 | ||
116 | prt2.Transparency = 0 | |
117 | ||
118 | prt2.Size = Vector3.new(1,1,1) | |
119 | ||
120 | prt2.CFrame = Torso.CFrame | |
121 | ||
122 | local prt3 = Instance.new("Part") | |
123 | ||
124 | prt3.formFactor = 1 | |
125 | ||
126 | prt3.Parent = modelzorz | |
127 | ||
128 | prt3.CanCollide = false | |
129 | ||
130 | prt3.BrickColor = BrickColor.new("Dark grey") | |
131 | ||
132 | prt3.Name = "Handle3" | |
133 | ||
134 | prt3.Transparency = 0 | |
135 | ||
136 | prt3.Size = Vector3.new(1,1,1) | |
137 | ||
138 | prt3.CFrame = Torso.CFrame | |
139 | ||
140 | local prt4 = Instance.new("Part") | |
141 | ||
142 | prt4.formFactor = 1 | |
143 | ||
144 | prt4.Parent = modelzorz | |
145 | ||
146 | prt4.CanCollide = false | |
147 | ||
148 | prt4.BrickColor = BrickColor.new("Really black") | |
149 | ||
150 | prt4.Name = "Blade1" | |
151 | ||
152 | prt4.Reflectance = 0.4 | |
153 | ||
154 | prt4.Transparency = 0 | |
155 | ||
156 | prt4.Size = Vector3.new(1,3,1) | |
157 | ||
158 | prt4.CFrame = Torso.CFrame | |
159 | ||
160 | local prt5 = Instance.new("Part") | |
161 | ||
162 | prt5.formFactor = 1 | |
163 | ||
164 | prt5.Parent = modelzorz | |
165 | ||
166 | prt5.CanCollide = false | |
167 | ||
168 | prt5.BrickColor = BrickColor.new("Really black") | |
169 | ||
170 | prt5.Name = "Blade2" | |
171 | ||
172 | prt5.Transparency = 0 | |
173 | ||
174 | prt5.Size = Vector3.new(1,1,1) | |
175 | ||
176 | prt5.CFrame = Torso.CFrame | |
177 | ||
178 | local prt6 = Instance.new("Part") | |
179 | ||
180 | prt6.formFactor = 1 | |
181 | ||
182 | prt6.Parent = modelzorz | |
183 | ||
184 | prt6.CanCollide = false | |
185 | ||
186 | prt6.BrickColor = BrickColor.new("Really black") | |
187 | ||
188 | prt6.Name = "Blade3" | |
189 | ||
190 | prt6.Reflectance = 0.4 | |
191 | ||
192 | prt6.Transparency = 0 | |
193 | ||
194 | prt6.Size = Vector3.new(1,1,1) | |
195 | ||
196 | prt6.CFrame = Torso.CFrame | |
197 | ||
198 | local prt7 = Instance.new("Part") | |
199 | ||
200 | prt7.formFactor = 1 | |
201 | ||
202 | prt7.Parent = modelzorz | |
203 | ||
204 | prt7.CanCollide = false | |
205 | ||
206 | prt7.BrickColor = BrickColor.new("Really red") | |
207 | ||
208 | prt7.Name = "Handle3" | |
209 | ||
210 | prt7.Transparency = 0 | |
211 | ||
212 | prt7.Size = Vector3.new(1,1,1) | |
213 | ||
214 | prt7.CFrame = Torso.CFrame | |
215 | ||
216 | local prt8 = Instance.new("Part") | |
217 | ||
218 | prt8.formFactor = 1 | |
219 | ||
220 | prt8.Parent = modelzorz | |
221 | ||
222 | prt8.CanCollide = false | |
223 | ||
224 | prt8.BrickColor = BrickColor.new("Really black") | |
225 | ||
226 | prt8.Name = "Handle4" | |
227 | ||
228 | prt8.Transparency = 0 | |
229 | ||
230 | prt8.Size = Vector3.new(1,1,1) | |
231 | ||
232 | prt8.CFrame = Torso.CFrame | |
233 | ||
234 | local prt9 = Instance.new("Part") | |
235 | ||
236 | prt9.formFactor = 1 | |
237 | ||
238 | prt9.Parent = modelzorz | |
239 | ||
240 | prt9.CanCollide = false | |
241 | ||
242 | prt9.BrickColor = BrickColor.new("Really black") | |
243 | ||
244 | prt9.Name = "Handle5" | |
245 | ||
246 | prt9.Transparency = 0 | |
247 | ||
248 | prt9.Size = Vector3.new(1,1,1) | |
249 | ||
250 | prt9.CFrame = Torso.CFrame | |
251 | ||
252 | local prt10 = Instance.new("Part") | |
253 | ||
254 | prt10.formFactor = 1 | |
255 | ||
256 | prt10.Parent = modelzorz | |
257 | ||
258 | prt10.CanCollide = false | |
259 | ||
260 | prt10.BrickColor = BrickColor.new("Really red") | |
261 | ||
262 | prt10.Name = "Handle6" | |
263 | ||
264 | prt10.Transparency = 0 | |
265 | ||
266 | prt10.Size = Vector3.new(1,1,1) | |
267 | ||
268 | prt10.CFrame = Torso.CFrame | |
269 | ||
270 | local prt11 = Instance.new("Part") | |
271 | ||
272 | prt11.formFactor = 1 | |
273 | ||
274 | prt11.Parent = modelzorz | |
275 | ||
276 | prt11.CanCollide = false | |
277 | ||
278 | prt11.BrickColor = BrickColor.new("Really red") | |
279 | ||
280 | prt11.Name = "Handle7" | |
281 | ||
282 | prt11.Transparency = 0 | |
283 | ||
284 | prt11.Size = Vector3.new(1,1,1) | |
285 | ||
286 | prt11.CFrame = Torso.CFrame | |
287 | ||
288 | local prt12 = Instance.new("Part") | |
289 | ||
290 | prt12.formFactor = 1 | |
291 | ||
292 | prt12.Parent = modelzorz | |
293 | ||
294 | prt12.CanCollide = false | |
295 | ||
296 | prt12.BrickColor = BrickColor.new("Dark grey") | |
297 | ||
298 | prt12.Name = "Handle8" | |
299 | ||
300 | prt12.Transparency = 0 | |
301 | ||
302 | prt12.Size = Vector3.new(1,1,1) | |
303 | ||
304 | prt12.CFrame = Torso.CFrame | |
305 | ||
306 | local prt13 = Instance.new("Part") | |
307 | ||
308 | prt13.formFactor = 1 | |
309 | ||
310 | prt13.Parent = modelzorz | |
311 | ||
312 | prt13.CanCollide = false | |
313 | ||
314 | prt13.BrickColor = BrickColor.new("Really black") | |
315 | ||
316 | prt13.Name = "Blade4" | |
317 | ||
318 | prt13.Reflectance = 0.4 | |
319 | ||
320 | prt13.Transparency = 0 | |
321 | ||
322 | prt13.Size = Vector3.new(1,1,1) | |
323 | ||
324 | prt13.CFrame = Torso.CFrame | |
325 | ||
326 | local prt14 = Instance.new("Part") | |
327 | ||
328 | prt14.formFactor = 1 | |
329 | ||
330 | prt14.Parent = modelzorz | |
331 | ||
332 | prt14.CanCollide = false | |
333 | ||
334 | prt14.BrickColor = BrickColor.new("Really black") | |
335 | ||
336 | prt14.Name = "Blade5" | |
337 | ||
338 | prt14.Reflectance = 0.4 | |
339 | ||
340 | prt14.Transparency = 0 | |
341 | ||
342 | prt14.Size = Vector3.new(1,1,1) | |
343 | ||
344 | prt14.CFrame = Torso.CFrame | |
345 | ||
346 | local prt15 = Instance.new("Part") | |
347 | ||
348 | prt15.formFactor = 1 | |
349 | ||
350 | prt15.Parent = modelzorz | |
351 | ||
352 | prt15.CanCollide = false | |
353 | ||
354 | prt15.BrickColor = BrickColor.new("Really black") | |
355 | ||
356 | prt15.Name = "Blade6" | |
357 | ||
358 | prt15.Reflectance = 0.4 | |
359 | ||
360 | prt15.Transparency = 0 | |
361 | ||
362 | prt15.Size = Vector3.new(1,1,1) | |
363 | ||
364 | prt15.CFrame = Torso.CFrame | |
365 | ||
366 | local prt16 = Instance.new("Part") | |
367 | ||
368 | prt16.formFactor = 1 | |
369 | ||
370 | prt16.Parent = modelzorz | |
371 | ||
372 | prt16.CanCollide = false | |
373 | ||
374 | prt16.BrickColor = BrickColor.new("Really black") | |
375 | ||
376 | prt16.Name = "Blade7" | |
377 | ||
378 | prt16.Reflectance = 0.4 | |
379 | ||
380 | prt16.Transparency = 0 | |
381 | ||
382 | prt16.Size = Vector3.new(1,1,1) | |
383 | ||
384 | prt16.CFrame = Torso.CFrame | |
385 | ||
386 | modelzorz:BreakJoints() | |
387 | ||
388 | ||
389 | ||
390 | local msh1 = Instance.new("CylinderMesh") | |
391 | ||
392 | msh1.Parent = prt1 | |
393 | ||
394 | msh1.Scale = Vector3.new(0.3,1,0.5) | |
395 | ||
396 | local msh2 = Instance.new("CylinderMesh") | |
397 | ||
398 | msh2.Parent = prt2 | |
399 | ||
400 | msh2.Scale = Vector3.new(0.3,0.1,0.5) | |
401 | ||
402 | local msh3 = Instance.new("BlockMesh") | |
403 | ||
404 | msh3.Parent = prt3 | |
405 | ||
406 | msh3.Scale = Vector3.new(0.4,0.3,0.4) | |
407 | ||
408 | local msh4 = Instance.new("BlockMesh") | |
409 | ||
410 | msh4.Parent = prt4 | |
411 | ||
412 | msh4.Scale = Vector3.new(0.1,1,0.3) | |
413 | ||
414 | local msh5 = Instance.new("CylinderMesh") | |
415 | ||
416 | msh5.Parent = prt5 | |
417 | ||
418 | msh5.Scale = Vector3.new(0.2,1,0.5) | |
419 | ||
420 | local msh6 = Instance.new("SpecialMesh") | |
421 | ||
422 | msh6.Parent = prt6 | |
423 | ||
424 | msh6.MeshType = "Wedge" | |
425 | ||
426 | msh6.Scale = Vector3.new(0.1,0.7,0.3) | |
427 | ||
428 | local msh7 = Instance.new("CylinderMesh") | |
429 | ||
430 | msh7.Parent = prt7 | |
431 | ||
432 | msh7.Scale = Vector3.new(0.2,0.1,0.5) | |
433 | ||
434 | local msh8 = Instance.new("CylinderMesh") | |
435 | ||
436 | msh8.Parent = prt8 | |
437 | ||
438 | msh8.Scale = Vector3.new(0.2,0.1,0.5) | |
439 | ||
440 | local msh9 = Instance.new("CylinderMesh") | |
441 | ||
442 | msh9.Parent = prt9 | |
443 | ||
444 | msh9.Scale = Vector3.new(0.2,0.1,0.5) | |
445 | ||
446 | local msh10 = Instance.new("CylinderMesh") | |
447 | ||
448 | msh10.Parent = prt10 | |
449 | ||
450 | msh10.Scale = Vector3.new(0.2,0.1,0.5) | |
451 | ||
452 | local msh11 = Instance.new("CylinderMesh") | |
453 | ||
454 | msh11.Parent = prt11 | |
455 | ||
456 | msh11.Scale = Vector3.new(0.2,0.1,0.5) | |
457 | ||
458 | local msh12 = Instance.new("BlockMesh") | |
459 | ||
460 | msh12.Parent = prt12 | |
461 | ||
462 | msh12.Scale = Vector3.new(0.2,0.2,0.3) | |
463 | ||
464 | local msh13 = Instance.new("BlockMesh") | |
465 | ||
466 | msh13.Parent = prt13 | |
467 | ||
468 | msh13.Scale = Vector3.new(0.1,0.5,0.3) | |
469 | ||
470 | local msh14 = Instance.new("BlockMesh") | |
471 | ||
472 | msh14.Parent = prt14 | |
473 | ||
474 | msh14.Scale = Vector3.new(0.1,0.1,0.1) | |
475 | ||
476 | local msh15 = Instance.new("BlockMesh") | |
477 | ||
478 | msh15.Parent = prt15 | |
479 | ||
480 | msh15.Scale = Vector3.new(0.1,0.3,0.3) | |
481 | ||
482 | local msh16 = Instance.new("SpecialMesh") | |
483 | ||
484 | msh16.Parent = prt16 | |
485 | ||
486 | msh16.MeshType = "Wedge" | |
487 | ||
488 | msh16.Scale = Vector3.new(0.1,0.5,0.3) | |
489 | ||
490 | ||
491 | ||
492 | local wld1 = Instance.new("Weld") | |
493 | ||
494 | wld1.Parent = prt1 | |
495 | ||
496 | wld1.Part0 = prt1 | |
497 | ||
498 | wld1.Part1 = Torso | |
499 | ||
500 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-1.7,0,0) * CFrame.new(1,1,0.5) | |
501 | ||
502 | wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
503 | ||
504 | local wld2 = Instance.new("Weld") | |
505 | ||
506 | wld2.Parent = prt2 | |
507 | ||
508 | wld2.Part0 = prt2 | |
509 | ||
510 | wld2.Part1 = prt1 | |
511 | ||
512 | wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.66,0) | |
513 | ||
514 | wld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
515 | ||
516 | local wld3 = Instance.new("Weld") | |
517 | ||
518 | wld3.Parent = prt3 | |
519 | ||
520 | wld3.Part0 = prt3 | |
521 | ||
522 | wld3.Part1 = prt1 | |
523 | ||
524 | wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.78,0) | |
525 | ||
526 | wld3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
527 | ||
528 | local wld4 = Instance.new("Weld") | |
529 | ||
530 | wld4.Parent = prt4 | |
531 | ||
532 | wld4.Part0 = prt4 | |
533 | ||
534 | wld4.Part1 = prt3 | |
535 | ||
536 | wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.35,0) | |
537 | ||
538 | wld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
539 | ||
540 | local wld5 = Instance.new("Weld") | |
541 | ||
542 | wld5.Parent = prt5 | |
543 | ||
544 | wld5.Part0 = prt5 | |
545 | ||
546 | wld5.Part1 = prt3 | |
547 | ||
548 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.77,0) | |
549 | ||
550 | wld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
551 | ||
552 | local wld6 = Instance.new("Weld") | |
553 | ||
554 | wld6.Parent = prt6 | |
555 | ||
556 | wld6.Part0 = prt6 | |
557 | ||
558 | wld6.Part1 = prt4 | |
559 | ||
560 | wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.61,0) | |
561 | ||
562 | wld6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
563 | ||
564 | local wld7 = Instance.new("Weld") | |
565 | ||
566 | wld7.Parent = prt7 | |
567 | ||
568 | wld7.Part0 = prt7 | |
569 | ||
570 | wld7.Part1 = Torso | |
571 | ||
572 | wld7.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1.57,0) * CFrame.new(0.6,1,-0.6) | |
573 | ||
574 | wld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
575 | ||
576 | local wld8 = Instance.new("Weld") | |
577 | ||
578 | wld8.Parent = prt8 | |
579 | ||
580 | wld8.Part0 = prt8 | |
581 | ||
582 | wld8.Part1 = prt7 | |
583 | ||
584 | wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.12,0) | |
585 | ||
586 | wld8.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
587 | ||
588 | local wld9 = Instance.new("Weld") | |
589 | ||
590 | wld9.Parent = prt9 | |
591 | ||
592 | wld9.Part0 = prt9 | |
593 | ||
594 | wld9.Part1 = prt7 | |
595 | ||
596 | wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.12,0) | |
597 | ||
598 | wld9.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
599 | ||
600 | local wld10 = Instance.new("Weld") | |
601 | ||
602 | wld10.Parent = prt10 | |
603 | ||
604 | wld10.Part0 = prt10 | |
605 | ||
606 | wld10.Part1 = prt7 | |
607 | ||
608 | wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,0) | |
609 | ||
610 | wld10.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
611 | ||
612 | local wld11 = Instance.new("Weld") | |
613 | ||
614 | wld11.Parent = prt11 | |
615 | ||
616 | wld11.Part0 = prt11 | |
617 | ||
618 | wld11.Part1 = prt7 | |
619 | ||
620 | wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.24,0) | |
621 | ||
622 | wld11.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
623 | ||
624 | local wld12 = Instance.new("Weld") | |
625 | ||
626 | wld12.Parent = prt12 | |
627 | ||
628 | wld12.Part0 = prt12 | |
629 | ||
630 | wld12.Part1 = prt7 | |
631 | ||
632 | wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.4,0) | |
633 | ||
634 | wld12.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
635 | ||
636 | local wld13 = Instance.new("Weld") | |
637 | ||
638 | wld13.Parent = prt13 | |
639 | ||
640 | wld13.Part0 = prt13 | |
641 | ||
642 | wld13.Part1 = prt12 | |
643 | ||
644 | wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.42,0) | |
645 | ||
646 | wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
647 | ||
648 | local wld14 = Instance.new("Weld") | |
649 | ||
650 | wld14.Parent = prt14 | |
651 | ||
652 | wld14.Part0 = prt14 | |
653 | ||
654 | wld14.Part1 = prt13 | |
655 | ||
656 | wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.35,0.1) | |
657 | ||
658 | wld14.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
659 | ||
660 | local wld15 = Instance.new("Weld") | |
661 | ||
662 | wld15.Parent = prt15 | |
663 | ||
664 | wld15.Part0 = prt15 | |
665 | ||
666 | wld15.Part1 = prt14 | |
667 | ||
668 | wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,-0.1) | |
669 | ||
670 | wld15.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
671 | ||
672 | local wld16 = Instance.new("Weld") | |
673 | ||
674 | wld16.Parent = prt16 | |
675 | ||
676 | wld16.Part0 = prt16 | |
677 | ||
678 | wld16.Part1 = prt15 | |
679 | ||
680 | wld16.C0 = CFrame.fromEulerAnglesXYZ(3.14,0,0) * CFrame.new(0,0.48,0) | |
681 | ||
682 | wld16.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
683 | ||
684 | ||
685 | ||
686 | local SlashSound = Instance.new("Sound") -- PRELOADING SOUNDS TROLOLOL | |
687 | ||
688 | --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
689 | ||
690 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209645" | |
691 | ||
692 | SlashSound.Parent = modelzorz | |
693 | ||
694 | SlashSound.Volume = .7 | |
695 | ||
696 | SlashSound.Pitch = 1 | |
697 | ||
698 | local SlashSound = Instance.new("Sound") | |
699 | ||
700 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
701 | ||
702 | SlashSound.Parent = modelzorz | |
703 | ||
704 | SlashSound.Volume = .5 | |
705 | ||
706 | SlashSound.Pitch = 1 | |
707 | ||
708 | local SlashSound = Instance.new("Sound") | |
709 | ||
710 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
711 | ||
712 | SlashSound.Parent = modelzorz | |
713 | ||
714 | SlashSound.Volume = .7 | |
715 | ||
716 | SlashSound.Pitch = 1 | |
717 | ||
718 | local SlashSound = Instance.new("Sound") | |
719 | ||
720 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793" | |
721 | ||
722 | SlashSound.Parent = modelzorz | |
723 | ||
724 | SlashSound.Volume = .7 | |
725 | ||
726 | SlashSound.Pitch = 1 | |
727 | ||
728 | ||
729 | ||
730 | local fengui = Instance.new("GuiMain") | |
731 | ||
732 | fengui.Parent = Player.PlayerGui | |
733 | ||
734 | fengui.Name = "manaGUI" | |
735 | ||
736 | local fenframe = Instance.new("Frame") | |
737 | ||
738 | fenframe.Parent = fengui | |
739 | ||
740 | fenframe.BackgroundColor3 = Color3.new(255,255,255) | |
741 | ||
742 | fenframe.BackgroundTransparency = 1 | |
743 | ||
744 | fenframe.BorderColor3 = Color3.new(17,17,17) | |
745 | ||
746 | fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0) | |
747 | ||
748 | local fentext = Instance.new("TextLabel") | |
749 | ||
750 | fentext.Parent = fenframe | |
751 | ||
752 | fentext.Text = "Mana("..mana..")" | |
753 | ||
754 | fentext.BackgroundTransparency = 1 | |
755 | ||
756 | fentext.SizeConstraint = "RelativeXY" | |
757 | ||
758 | fentext.TextXAlignment = "Center" | |
759 | ||
760 | fentext.TextYAlignment = "Center" | |
761 | ||
762 | fentext.Position = UDim2.new(0,80,1,200) | |
763 | ||
764 | local fentext2 = Instance.new("TextLabel") | |
765 | ||
766 | fentext2.Parent = fenframe | |
767 | ||
768 | fentext2.Text = " " | |
769 | ||
770 | fentext2.BackgroundTransparency = 0 | |
771 | ||
772 | fentext2.BackgroundColor3 = Color3.new(0,0,0) | |
773 | ||
774 | fentext2.SizeConstraint = "RelativeXY" | |
775 | ||
776 | fentext2.TextXAlignment = "Center" | |
777 | ||
778 | fentext2.TextYAlignment = "Center" | |
779 | ||
780 | fentext2.Position = UDim2.new(0,10,1,170) | |
781 | ||
782 | fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0) | |
783 | ||
784 | local fentext3 = Instance.new("TextLabel") | |
785 | ||
786 | fentext3.Parent = fenframe | |
787 | ||
788 | fentext3.Text = " " | |
789 | ||
790 | fentext3.BackgroundTransparency = 0 | |
791 | ||
792 | fentext3.BackgroundColor3 = Color3.new(1,1,0) | |
793 | ||
794 | fentext3.SizeConstraint = "RelativeXY" | |
795 | ||
796 | fentext3.TextXAlignment = "Center" | |
797 | ||
798 | fentext3.TextYAlignment = "Center" | |
799 | ||
800 | fentext3.Position = UDim2.new(0,10,1,170) | |
801 | ||
802 | fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0) | |
803 | ||
804 | --2.9000001, 0}, {0.450000018, 0} | |
805 | ||
806 | local gairo = Instance.new("BodyGyro") | |
807 | ||
808 | gairo.Parent = nil | |
809 | ||
810 | gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
811 | ||
812 | gairo.P = 20e+003 | |
813 | ||
814 | ||
815 | ||
816 | if (script.Parent.className ~= "HopperBin") then | |
817 | ||
818 | Tool = Instance.new("HopperBin") | |
819 | ||
820 | Tool.Parent = Backpack | |
821 | ||
822 | Tool.Name = "Katana" | |
823 | ||
824 | script.Parent = Tool | |
825 | ||
826 | end | |
827 | ||
828 | Bin = script.Parent | |
829 | ||
830 | ||
831 | ||
832 | function hideanim() | |
833 | ||
834 | for i = 0,1,0.1 do | |
835 | ||
836 | wait() | |
837 | ||
838 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5*i,0,0.4*i) | |
839 | ||
840 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i) | |
841 | ||
842 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0) | |
843 | ||
844 | RW.C0 = CFrame.new(1.5-1.2*i,0.5-0.2*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-1*i) | |
845 | ||
846 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3.14*i,0) | |
847 | ||
848 | end | |
849 | ||
850 | wld1.Part1 = Torso | |
851 | ||
852 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-1.7,0,0) * CFrame.new(1,1,0.5) | |
853 | ||
854 | wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
855 | ||
856 | wld7.Part1 = Torso | |
857 | ||
858 | wld7.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1.57,0) * CFrame.new(0.6,1,-0.6) | |
859 | ||
860 | wld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
861 | ||
862 | for i = 0,1,0.1 do | |
863 | ||
864 | wait() | |
865 | ||
866 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,0.4-0.4*i) | |
867 | ||
868 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i) | |
869 | ||
870 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0) | |
871 | ||
872 | RW.C0 = CFrame.new(1.5-1.2+1.2*i,0.5-0.2+0.2*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-1+1*i) | |
873 | ||
874 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3.14+3.14*i,0) | |
875 | ||
876 | end | |
877 | ||
878 | end | |
879 | ||
880 | ||
881 | ||
882 | function equipanim() | |
883 | ||
884 | for i = 0,1,0.1 do | |
885 | ||
886 | wait() | |
887 | ||
888 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5*i,0,0.4*i) | |
889 | ||
890 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
891 | ||
892 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
893 | ||
894 | RW.C0 = CFrame.new(1.5-1.2*i,0.5-0.2*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-1*i) | |
895 | ||
896 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,3.14*i,0) | |
897 | ||
898 | end | |
899 | ||
900 | wld1.Part1 = RightArm | |
901 | ||
902 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
903 | ||
904 | wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
905 | ||
906 | for i = 0,1,0.2 do | |
907 | ||
908 | wait() | |
909 | ||
910 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.6*i,0,0.4-0.4*i) | |
911 | ||
912 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
913 | ||
914 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
915 | ||
916 | RW.C0 = CFrame.new(1.5-1.2+1.2*i,0.5-0.2+0.2*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-1+2.77*i) | |
917 | ||
918 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,3.14+4.14*i,0) | |
919 | ||
920 | end | |
921 | ||
922 | wait(0.2) | |
923 | ||
924 | for i = 0,1,0.1 do | |
925 | ||
926 | wait() | |
927 | ||
928 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.6+0.1*i,0,0) | |
929 | ||
930 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i) | |
931 | ||
932 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0) | |
933 | ||
934 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,1.77-1.77*i) | |
935 | ||
936 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,7.28-7.28*i,0) | |
937 | ||
938 | end | |
939 | ||
940 | wld7.Part1 = LeftArm | |
941 | ||
942 | wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
943 | ||
944 | wld7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
945 | ||
946 | for i = 0,1,0.1 do | |
947 | ||
948 | wait() | |
949 | ||
950 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i) | |
951 | ||
952 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0) | |
953 | ||
954 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
955 | ||
956 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
957 | ||
958 | end | |
959 | ||
960 | Torso.Neck.C0=necko | |
961 | ||
962 | end | |
963 | ||
964 | ||
965 | ||
966 | function onehit() | |
967 | ||
968 | attack = true | |
969 | ||
970 | for i = 0,1,0.1 do | |
971 | ||
972 | wait() | |
973 | ||
974 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
975 | ||
976 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
977 | ||
978 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,1*i) | |
979 | ||
980 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0) | |
981 | ||
982 | end | |
983 | ||
984 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) | |
985 | ||
986 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end) | |
987 | ||
988 | ss(1) | |
989 | ||
990 | for i = 0,1,0.2 do | |
991 | ||
992 | wait() | |
993 | ||
994 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3*i,0,0) | |
995 | ||
996 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
997 | ||
998 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
999 | ||
1000 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1001 | ||
1002 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2-1*i,0,1-2*i) | |
1003 | ||
1004 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1,0) | |
1005 | ||
1006 | end | |
1007 | ||
1008 | con1:disconnect() | |
1009 | ||
1010 | con2:disconnect() | |
1011 | ||
1012 | attack = false | |
1013 | ||
1014 | end | |
1015 | ||
1016 | ||
1017 | ||
1018 | function twohit() | |
1019 | ||
1020 | attack = true | |
1021 | ||
1022 | for i = 0,1,0.1 do | |
1023 | ||
1024 | wait() | |
1025 | ||
1026 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.5*i,0,0) | |
1027 | ||
1028 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1029 | ||
1030 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) | |
1031 | ||
1032 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1033 | ||
1034 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-1+1.5*i,0,1-2+1*i) | |
1035 | ||
1036 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0) | |
1037 | ||
1038 | end | |
1039 | ||
1040 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) | |
1041 | ||
1042 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end) | |
1043 | ||
1044 | ss(1.2) | |
1045 | ||
1046 | for i = 0,1,0.2 do | |
1047 | ||
1048 | wait() | |
1049 | ||
1050 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.5+0.5*i,0,0) | |
1051 | ||
1052 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1053 | ||
1054 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) | |
1055 | ||
1056 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1057 | ||
1058 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-1+1.5-2*i,0,0) | |
1059 | ||
1060 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1061 | ||
1062 | end | |
1063 | ||
1064 | con1:disconnect() | |
1065 | ||
1066 | con2:disconnect() | |
1067 | ||
1068 | attack = false | |
1069 | ||
1070 | end | |
1071 | ||
1072 | ||
1073 | ||
1074 | function threehit() | |
1075 | ||
1076 | attack = true | |
1077 | ||
1078 | for i = 0,1,0.1 do | |
1079 | ||
1080 | wait() | |
1081 | ||
1082 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.3*i,0,0) | |
1083 | ||
1084 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1085 | ||
1086 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) | |
1087 | ||
1088 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1089 | ||
1090 | RW.C0 = CFrame.new(1.5-0.5*i,0.5+0.4*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07*i,0,-1.57*i) | |
1091 | ||
1092 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0) | |
1093 | ||
1094 | end | |
1095 | ||
1096 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) | |
1097 | ||
1098 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end) | |
1099 | ||
1100 | ss(0.9) | |
1101 | ||
1102 | for i = 0,1,0.2 do | |
1103 | ||
1104 | wait() | |
1105 | ||
1106 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1107 | ||
1108 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) | |
1109 | ||
1110 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1111 | ||
1112 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5+0.4-0.4*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07,0,-1.57+3.14*i) | |
1113 | ||
1114 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57,0) | |
1115 | ||
1116 | end | |
1117 | ||
1118 | con1:disconnect() | |
1119 | ||
1120 | con2:disconnect() | |
1121 | ||
1122 | attack = false | |
1123 | ||
1124 | end | |
1125 | ||
1126 | ||
1127 | ||
1128 | function fourhit() | |
1129 | ||
1130 | attack = true | |
1131 | ||
1132 | gairo.Parent = Head | |
1133 | ||
1134 | gairo.cframe = Head.CFrame | |
1135 | ||
1136 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) | |
1137 | ||
1138 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,20,10) end) | |
1139 | ||
1140 | ss(0.6) | |
1141 | ||
1142 | for i = 0,1,0.2 do | |
1143 | ||
1144 | wait() | |
1145 | ||
1146 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.4*i) | |
1147 | ||
1148 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90),0,0) * CFrame.new(0,1,0) | |
1149 | ||
1150 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,-0.5*i) | |
1151 | ||
1152 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1153 | ||
1154 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.2*i) | |
1155 | ||
1156 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0) | |
1157 | ||
1158 | end | |
1159 | ||
1160 | wait(0.1) | |
1161 | ||
1162 | con1:disconnect() | |
1163 | ||
1164 | con2:disconnect() | |
1165 | ||
1166 | attack = false | |
1167 | ||
1168 | end | |
1169 | ||
1170 | ||
1171 | ||
1172 | function fivehit() | |
1173 | ||
1174 | attack = true | |
1175 | ||
1176 | for i = 0,1,0.1 do | |
1177 | ||
1178 | wait() | |
1179 | ||
1180 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.4+0.8*i) | |
1181 | ||
1182 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1183 | ||
1184 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,0,-0.5+1.5*i) | |
1185 | ||
1186 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,0) | |
1187 | ||
1188 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-2.07*i,0,0.37-0.37*i) | |
1189 | ||
1190 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1191 | ||
1192 | end | |
1193 | ||
1194 | con1=prt14.Touched:connect(function(hit) Damagefunc1(hit,15,10) end) | |
1195 | ||
1196 | con2=prt15.Touched:connect(function(hit) Damagefunc1(hit,25,10) end) | |
1197 | ||
1198 | con3=prt16.Touched:connect(function(hit) Damagefunc1(hit,25,10) end) | |
1199 | ||
1200 | ss(1.4) | |
1201 | ||
1202 | for i = 0,1,0.2 do | |
1203 | ||
1204 | wait() | |
1205 | ||
1206 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.4+0.8-0.4*i) | |
1207 | ||
1208 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90),0,0) * CFrame.new(0,1,0) | |
1209 | ||
1210 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,0,1-2.57*i) | |
1211 | ||
1212 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,0) | |
1213 | ||
1214 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) | |
1215 | ||
1216 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1217 | ||
1218 | end | |
1219 | ||
1220 | wait(0.2) | |
1221 | ||
1222 | con1:disconnect() | |
1223 | ||
1224 | con2:disconnect() | |
1225 | ||
1226 | con3:disconnect() | |
1227 | ||
1228 | gairo.Parent = nil | |
1229 | ||
1230 | Torso.Neck.C0=necko | |
1231 | ||
1232 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
1233 | ||
1234 | attack = false | |
1235 | ||
1236 | end | |
1237 | ||
1238 | ||
1239 | ||
1240 | function WindCharge() | |
1241 | ||
1242 | if mana >= 20 then | |
1243 | ||
1244 | attack = true | |
1245 | ||
1246 | gairo.Parent = Head | |
1247 | ||
1248 | gairo.cframe = Head.CFrame | |
1249 | ||
1250 | efect() | |
1251 | ||
1252 | for i = 0,1,0.1 do | |
1253 | ||
1254 | wait() | |
1255 | ||
1256 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
1257 | ||
1258 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1259 | ||
1260 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1261 | ||
1262 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1263 | ||
1264 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,1*i) | |
1265 | ||
1266 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1267 | ||
1268 | end | |
1269 | ||
1270 | mana = mana - 0 | |
1271 | ||
1272 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,20,10) end) | |
1273 | ||
1274 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,30,10) end) | |
1275 | ||
1276 | ss(1) | |
1277 | ||
1278 | lightning = true | |
1279 | ||
1280 | coroutine.resume(coroutine.create(function() | |
1281 | ||
1282 | Stun2(prt4,10,25,10) | |
1283 | ||
1284 | --Stun2(prt4,10,25,10) | |
1285 | ||
1286 | end)) | |
1287 | ||
1288 | for i = 0,1,0.2 do | |
1289 | ||
1290 | wait() | |
1291 | ||
1292 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1293 | ||
1294 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.5*i) | |
1295 | ||
1296 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5*i) | |
1297 | ||
1298 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1299 | ||
1300 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-1.43*i,0,1-0.5*i) | |
1301 | ||
1302 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1303 | ||
1304 | end | |
1305 | ||
1306 | wait() | |
1307 | ||
1308 | local vel = Instance.new("BodyVelocity") | |
1309 | ||
1310 | vel.Parent = Player.Character.Torso | |
1311 | ||
1312 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1313 | ||
1314 | vel.velocity = Player.Character.Head.CFrame.lookVector * 100 | |
1315 | ||
1316 | wait(0.5) | |
1317 | ||
1318 | vel.Parent = nil | |
1319 | ||
1320 | lightning = false | |
1321 | ||
1322 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
1323 | ||
1324 | Torso.Neck.C0=necko | |
1325 | ||
1326 | con1:disconnect() | |
1327 | ||
1328 | con2:disconnect() | |
1329 | ||
1330 | gairo.Parent = nil | |
1331 | ||
1332 | attack = false | |
1333 | ||
1334 | end | |
1335 | ||
1336 | end | |
1337 | ||
1338 | ||
1339 | ||
1340 | function Restore() | |
1341 | ||
1342 | attack = true | |
1343 | ||
1344 | for i = 0,1,0.1 do | |
1345 | ||
1346 | wait() | |
1347 | ||
1348 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1*i,0,0) * CFrame.new(0,1,0) | |
1349 | ||
1350 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-0.4*i,0,0) | |
1351 | ||
1352 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
1353 | ||
1354 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1355 | ||
1356 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5*i,0,0) | |
1357 | ||
1358 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1359 | ||
1360 | end | |
1361 | ||
1362 | local lol = Instance.new("Part") | |
1363 | ||
1364 | lol.Parent = modelzorz | |
1365 | ||
1366 | lol.Shape = "Ball" | |
1367 | ||
1368 | lol.Position = Torso.Position | |
1369 | ||
1370 | lol.Anchored = false | |
1371 | ||
1372 | lol.Transparency = 0.5 | |
1373 | ||
1374 | lol.CanCollide = false | |
1375 | ||
1376 | lol.Size = Vector3.new(1,1,1) | |
1377 | ||
1378 | lol.BrickColor = BrickColor.new("Really red") | |
1379 | ||
1380 | lol.CFrame = Torso.CFrame | |
1381 | ||
1382 | local lolmesh = Instance.new("SpecialMesh") | |
1383 | ||
1384 | lolmesh.Parent = lol | |
1385 | ||
1386 | lolmesh.Scale = Vector3.new(0.5,0.5,0.5) | |
1387 | ||
1388 | lolmesh.MeshType = "Sphere" | |
1389 | ||
1390 | local lolweld = Instance.new("Weld") | |
1391 | ||
1392 | lolweld.Parent = lol | |
1393 | ||
1394 | lolweld.Part0 = lol | |
1395 | ||
1396 | lolweld.Part1 = prt6 | |
1397 | ||
1398 | wait(0) | |
1399 | ||
1400 | coroutine.resume(coroutine.create(function() | |
1401 | ||
1402 | for i = 0, 1, 0.05 do | |
1403 | ||
1404 | wait(0) | |
1405 | ||
1406 | lolmesh.Scale = lolmesh.Scale + Vector3.new(0.15,0.15,0.15) | |
1407 | ||
1408 | end | |
1409 | ||
1410 | end)) | |
1411 | ||
1412 | while restoring == true do | |
1413 | ||
1414 | wait(0.15) | |
1415 | ||
1416 | lolweld.C0 = CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1417 | ||
1418 | MMMAGIC(lol,2,2,2,0,0,0,BrickColor.new("Really red")) | |
1419 | ||
1420 | DifferentEffect() | |
1421 | ||
1422 | if mana >= 400 then | |
1423 | ||
1424 | mana = 400 | |
1425 | ||
1426 | else | |
1427 | ||
1428 | Character.Humanoid.Health = Character.Humanoid.Health + 0.05 | |
1429 | ||
1430 | mana = mana + 5 | |
1431 | ||
1432 | end | |
1433 | ||
1434 | end | |
1435 | ||
1436 | for i = 0, 1, 0.05 do | |
1437 | ||
1438 | wait(0) | |
1439 | ||
1440 | lol.Transparency = lol.Transparency + 0.03 | |
1441 | ||
1442 | lolmesh.Scale = lolmesh.Scale - Vector3.new(0.2,0.2,0.2) | |
1443 | ||
1444 | end | |
1445 | ||
1446 | for i = 0,1,0.1 do | |
1447 | ||
1448 | wait() | |
1449 | ||
1450 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1-1*i,0,0) * CFrame.new(0,1,0) | |
1451 | ||
1452 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-0.4+0.4*i,0,0) | |
1453 | ||
1454 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
1455 | ||
1456 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1457 | ||
1458 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.5-2.5*i,0,0) | |
1459 | ||
1460 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1461 | ||
1462 | end | |
1463 | ||
1464 | lol.Parent = nil | |
1465 | ||
1466 | attack = false | |
1467 | ||
1468 | end | |
1469 | ||
1470 | ||
1471 | ||
1472 | function JetStream() | |
1473 | ||
1474 | if mana >= 1 then | |
1475 | ||
1476 | attack = true | |
1477 | ||
1478 | charging = true | |
1479 | ||
1480 | for i = 0,1,0.1 do | |
1481 | ||
1482 | wait() | |
1483 | ||
1484 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+0.3*i,0,0) * CFrame.new(0,1,0) | |
1485 | ||
1486 | wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,-0.5*i) | |
1487 | ||
1488 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1489 | ||
1490 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.4*i,0,0.3*i) | |
1491 | ||
1492 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1493 | ||
1494 | RW.C0 = CFrame.new(1.5-0.8*i,0.5,-0.8*i) * CFrame.fromEulerAnglesXYZ(1.2*i,0,-1.2*i) | |
1495 | ||
1496 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0) | |
1497 | ||
1498 | end | |
1499 | ||
1500 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,35,20) end) | |
1501 | ||
1502 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,45,20) end) | |
1503 | ||
1504 | local vel = Instance.new("BodyVelocity") | |
1505 | ||
1506 | vel.Parent = Player.Character.Torso | |
1507 | ||
1508 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1509 | ||
1510 | vel.velocity = Player.Character.Head.CFrame.lookVector * 100 | |
1511 | ||
1512 | while charging == true and mana >= 1 do | |
1513 | ||
1514 | wait(0) | |
1515 | ||
1516 | mana = mana - 0 | |
1517 | ||
1518 | vel.velocity = Player.Character.Head.CFrame.lookVector * 100 | |
1519 | ||
1520 | MMMAGIC(prt2,1,1,1,0,0,0,BrickColor.new("Really red")) | |
1521 | ||
1522 | MOREMAGIX(prt2,0,1,1,1,BrickColor.new("Really red")) | |
1523 | ||
1524 | end | |
1525 | ||
1526 | wait(0.1) | |
1527 | ||
1528 | con1:disconnect() | |
1529 | ||
1530 | con2:disconnect() | |
1531 | ||
1532 | vel.Parent = nil | |
1533 | ||
1534 | gairo.Parent = nil | |
1535 | ||
1536 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
1537 | ||
1538 | wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
1539 | ||
1540 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1541 | ||
1542 | attack = false | |
1543 | ||
1544 | end | |
1545 | ||
1546 | end | |
1547 | ||
1548 | ||
1549 | ||
1550 | function Stab() | |
1551 | ||
1552 | attack = true | |
1553 | ||
1554 | gairo.Parent = Head | |
1555 | ||
1556 | gairo.cframe = Head.CFrame | |
1557 | ||
1558 | ss(1.2) | |
1559 | ||
1560 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,20,20) end) | |
1561 | ||
1562 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,30,20) end) | |
1563 | ||
1564 | for i = 0,1,0.2 do | |
1565 | ||
1566 | wait() | |
1567 | ||
1568 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1569 | ||
1570 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.3*i) | |
1571 | ||
1572 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2*i,0,-0.2*i) | |
1573 | ||
1574 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1575 | ||
1576 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,0.5*i) | |
1577 | ||
1578 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1579 | ||
1580 | end | |
1581 | ||
1582 | wait(0.1) | |
1583 | ||
1584 | con1:disconnect() | |
1585 | ||
1586 | con2:disconnect() | |
1587 | ||
1588 | for i = 0,1,0.2 do | |
1589 | ||
1590 | wait() | |
1591 | ||
1592 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0) | |
1593 | ||
1594 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.3+0.3*i) | |
1595 | ||
1596 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2+0.2*i,0,-0.2+0.2*i) | |
1597 | ||
1598 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1599 | ||
1600 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,0.5-0.5*i) | |
1601 | ||
1602 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1603 | ||
1604 | end | |
1605 | ||
1606 | gairo.Parent = nil | |
1607 | ||
1608 | Torso.Neck.C0=necko | |
1609 | ||
1610 | attack = false | |
1611 | ||
1612 | end | |
1613 | ||
1614 | ||
1615 | ||
1616 | function WindKatanaWheelSpin() | |
1617 | ||
1618 | if mana >= 20 then | |
1619 | ||
1620 | attack = true | |
1621 | ||
1622 | for i = 0,1,0.1 do | |
1623 | ||
1624 | wait() | |
1625 | ||
1626 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0) | |
1627 | ||
1628 | wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0) | |
1629 | ||
1630 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1631 | ||
1632 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1633 | ||
1634 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1635 | ||
1636 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1637 | ||
1638 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1639 | ||
1640 | end | |
1641 | ||
1642 | mana = mana - 0 | |
1643 | ||
1644 | lightning = true | |
1645 | ||
1646 | coroutine.resume(coroutine.create(function() | |
1647 | ||
1648 | Stun2(prt6,1,1,1) | |
1649 | ||
1650 | end)) | |
1651 | ||
1652 | con1=prt4.Touched:connect(function(hit) Damagefunc1(hit,30,20) end) | |
1653 | ||
1654 | con2=prt5.Touched:connect(function(hit) Damagefunc1(hit,40,20) end) | |
1655 | ||
1656 | con3=prt14.Touched:connect(function(hit) Damagefunc1(hit,25,10) end) | |
1657 | ||
1658 | con4=prt15.Touched:connect(function(hit) Damagefunc1(hit,35,10) end) | |
1659 | ||
1660 | con5=prt16.Touched:connect(function(hit) Damagefunc1(hit,35,10) end) | |
1661 | ||
1662 | cf = Head.CFrame | |
1663 | ||
1664 | gairo.Parent = Head | |
1665 | ||
1666 | gairo.cframe = Head.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1667 | ||
1668 | for i = 0,1,0.03 do | |
1669 | ||
1670 | wait() | |
1671 | ||
1672 | ss(1.1) | |
1673 | ||
1674 | gairo.cframe = gairo.cframe * CFrame.fromEulerAnglesXYZ(0,0.8,0) | |
1675 | ||
1676 | end | |
1677 | ||
1678 | gairo.cframe = cf | |
1679 | ||
1680 | con1:disconnect() | |
1681 | ||
1682 | con2:disconnect() | |
1683 | ||
1684 | con3:disconnect() | |
1685 | ||
1686 | con4:disconnect() | |
1687 | ||
1688 | con5:disconnect() | |
1689 | ||
1690 | lightning = false | |
1691 | ||
1692 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90),math.rad(90),0) * CFrame.new(0,1,0) | |
1693 | ||
1694 | wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90),math.rad(90),0) * CFrame.new(0,1,0) | |
1695 | ||
1696 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0) | |
1697 | ||
1698 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57-0.5) | |
1699 | ||
1700 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1701 | ||
1702 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57+0.5) | |
1703 | ||
1704 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1705 | ||
1706 | wait(3) | |
1707 | ||
1708 | gairo.Parent = nil | |
1709 | ||
1710 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
1711 | ||
1712 | wld7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
1713 | ||
1714 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1715 | ||
1716 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1717 | ||
1718 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1719 | ||
1720 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1721 | ||
1722 | attack = false | |
1723 | ||
1724 | end | |
1725 | ||
1726 | end | |
1727 | ||
1728 | ||
1729 | ||
1730 | function SlashShockwave() | |
1731 | ||
1732 | if mana >= 20 then | |
1733 | ||
1734 | attack = true | |
1735 | ||
1736 | for i = 0,1,0.1 do | |
1737 | ||
1738 | wait() | |
1739 | ||
1740 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57*i,0,0) * CFrame.new(0,1,0) | |
1741 | ||
1742 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3*i,0,0) | |
1743 | ||
1744 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
1745 | ||
1746 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1747 | ||
1748 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i,0,0) | |
1749 | ||
1750 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1751 | ||
1752 | end | |
1753 | ||
1754 | wait(0.1) | |
1755 | ||
1756 | ss(1) | |
1757 | ||
1758 | mana = mana - 20 | |
1759 | ||
1760 | local slash = Instance.new("Part") | |
1761 | ||
1762 | slash.Parent = modelzorz | |
1763 | ||
1764 | slash.Position = Torso.Position | |
1765 | ||
1766 | slash.Anchored = true | |
1767 | ||
1768 | slash.Transparency = 0.2 | |
1769 | ||
1770 | slash.CanCollide = false | |
1771 | ||
1772 | slash.Size = Vector3.new(1,1,1) | |
1773 | ||
1774 | slash.BrickColor = BrickColor.new("Really red") | |
1775 | ||
1776 | slash.CFrame = Torso.CFrame * CFrame.new(1.5,-3,-4) | |
1777 | ||
1778 | local testbrick = Instance.new("Part") | |
1779 | ||
1780 | testbrick.Parent = modelzorz | |
1781 | ||
1782 | testbrick.Anchored = true | |
1783 | ||
1784 | testbrick.Transparency = 1 | |
1785 | ||
1786 | testbrick.CFrame = Torso.CFrame * CFrame.new(1.5,0,-4) | |
1787 | ||
1788 | coroutine.resume(coroutine.create(function() | |
1789 | ||
1790 | local c = game.Workspace:GetChildren(); | |
1791 | ||
1792 | for i = 1, #c do | |
1793 | ||
1794 | local hum = c[i]:findFirstChild("Humanoid") | |
1795 | ||
1796 | if hum ~= nil and hum.Health ~= 0 then | |
1797 | ||
1798 | local head = c[i]:findFirstChild("Head"); | |
1799 | ||
1800 | if head ~= nil then | |
1801 | ||
1802 | local targ = head.Position - testbrick.Position; | |
1803 | ||
1804 | local mag = targ.magnitude; | |
1805 | ||
1806 | if mag <= 3 and c[i].Name ~= Player.Name then | |
1807 | ||
1808 | Damagefunc1(head,20,20) | |
1809 | ||
1810 | end | |
1811 | ||
1812 | end | |
1813 | ||
1814 | end | |
1815 | ||
1816 | end | |
1817 | ||
1818 | testbrick.Parent = nil | |
1819 | ||
1820 | end)) | |
1821 | ||
1822 | local lolmesh = Instance.new("SpecialMesh") | |
1823 | ||
1824 | lolmesh.Parent = slash | |
1825 | ||
1826 | lolmesh.Scale = Vector3.new(0.6,1,0.6) | |
1827 | ||
1828 | lolmesh.MeshType = "Sphere" | |
1829 | ||
1830 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1831 | ||
1832 | for i = 0, 1, 0.2 do | |
1833 | ||
1834 | wait(0) | |
1835 | ||
1836 | Mesh.Scale = Mesh.Scale + Vector3.new(0,0.7,0) | |
1837 | ||
1838 | end | |
1839 | ||
1840 | wait(0.5) | |
1841 | ||
1842 | for i = 0,1,0.1 do | |
1843 | ||
1844 | wait() | |
1845 | ||
1846 | Part.Transparency = Part.Transparency + 0.1 | |
1847 | ||
1848 | end | |
1849 | ||
1850 | Part.Parent = nil | |
1851 | ||
1852 | end),slash,lolmesh) | |
1853 | ||
1854 | coroutine.resume(coroutine.create(function() | |
1855 | ||
1856 | CF = -4 | |
1857 | ||
1858 | scale = 0.6 | |
1859 | ||
1860 | scale2 = 0.7 | |
1861 | ||
1862 | for i = 0,10 do | |
1863 | ||
1864 | wait(0.1) | |
1865 | ||
1866 | CF = CF * 1.2 | |
1867 | ||
1868 | scale = scale + 0.1 | |
1869 | ||
1870 | scale2 = scale2 + 0.2 | |
1871 | ||
1872 | ss(math.random()+math.random()) | |
1873 | ||
1874 | local slash = Instance.new("Part") | |
1875 | ||
1876 | slash.Parent = modelzorz | |
1877 | ||
1878 | slash.Position = Torso.Position | |
1879 | ||
1880 | slash.Anchored = true | |
1881 | ||
1882 | slash.Transparency = 0.2 | |
1883 | ||
1884 | slash.CanCollide = false | |
1885 | ||
1886 | slash.Size = Vector3.new(1,1,1) | |
1887 | ||
1888 | slash.BrickColor = BrickColor.new("Really red") | |
1889 | ||
1890 | slash.CFrame = Torso.CFrame * CFrame.new(1+math.random(),-3,CF) | |
1891 | ||
1892 | local testbrick = Instance.new("Part") | |
1893 | ||
1894 | testbrick.Parent = modelzorz | |
1895 | ||
1896 | testbrick.Anchored = true | |
1897 | ||
1898 | testbrick.Transparency = 1 | |
1899 | ||
1900 | testbrick.CFrame = Torso.CFrame * CFrame.new(1+math.random(),0,CF) | |
1901 | ||
1902 | coroutine.resume(coroutine.create(function() | |
1903 | ||
1904 | local c = game.Workspace:GetChildren(); | |
1905 | ||
1906 | for i = 1, #c do | |
1907 | ||
1908 | local hum = c[i]:findFirstChild("Humanoid") | |
1909 | ||
1910 | if hum ~= nil and hum.Health ~= 0 then | |
1911 | ||
1912 | local head = c[i]:findFirstChild("Head"); | |
1913 | ||
1914 | if head ~= nil then | |
1915 | ||
1916 | local targ = head.Position - testbrick.Position; | |
1917 | ||
1918 | local mag = targ.magnitude; | |
1919 | ||
1920 | if mag <= 3 and c[i].Name ~= Player.Name then | |
1921 | ||
1922 | Damagefunc1(head,20,20) | |
1923 | ||
1924 | end | |
1925 | ||
1926 | end | |
1927 | ||
1928 | end | |
1929 | ||
1930 | end | |
1931 | ||
1932 | testbrick.Parent = nil | |
1933 | ||
1934 | end)) | |
1935 | ||
1936 | local lolmesh = Instance.new("SpecialMesh") | |
1937 | ||
1938 | lolmesh.Parent = slash | |
1939 | ||
1940 | lolmesh.Scale = Vector3.new(scale,1,scale) | |
1941 | ||
1942 | lolmesh.MeshType = "Sphere" | |
1943 | ||
1944 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1945 | ||
1946 | Part.CFrame = Part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1947 | ||
1948 | for i = 0, 1, 0.2 do | |
1949 | ||
1950 | wait(0) | |
1951 | ||
1952 | Mesh.Scale = Mesh.Scale + Vector3.new(0,scale2,0) | |
1953 | ||
1954 | end | |
1955 | ||
1956 | wait(0.5) | |
1957 | ||
1958 | for i = 0,1,0.1 do | |
1959 | ||
1960 | wait() | |
1961 | ||
1962 | Part.Transparency = Part.Transparency + 0.1 | |
1963 | ||
1964 | end | |
1965 | ||
1966 | Part.Parent = nil | |
1967 | ||
1968 | end),slash,lolmesh) | |
1969 | ||
1970 | end | |
1971 | ||
1972 | end)) | |
1973 | ||
1974 | for i = 0,1,0.2 do | |
1975 | ||
1976 | wait() | |
1977 | ||
1978 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57-1.57*i,0,0) * CFrame.new(0,1,0) | |
1979 | ||
1980 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.6*i,0,0) | |
1981 | ||
1982 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0) | |
1983 | ||
1984 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1985 | ||
1986 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+2*i,0,0) | |
1987 | ||
1988 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1989 | ||
1990 | end | |
1991 | ||
1992 | attack = false | |
1993 | ||
1994 | end | |
1995 | ||
1996 | end | |
1997 | ||
1998 | ||
1999 | ||
2000 | function efect() | |
2001 | ||
2002 | local lol = Instance.new("Part") | |
2003 | ||
2004 | lol.Parent = Character | |
2005 | ||
2006 | lol.Shape = "Ball" | |
2007 | ||
2008 | lol.Position = Torso.Position | |
2009 | ||
2010 | lol.Anchored = true | |
2011 | ||
2012 | lol.CanCollide = false | |
2013 | ||
2014 | lol.Size = Vector3.new(1,1,1) | |
2015 | ||
2016 | lol.BrickColor = BrickColor.new("Really red") | |
2017 | ||
2018 | lol.Reflectance = 1 | |
2019 | ||
2020 | lol.CFrame = Torso.CFrame | |
2021 | ||
2022 | local lolmesh = Instance.new("SpecialMesh") | |
2023 | ||
2024 | lolmesh.Parent = lol | |
2025 | ||
2026 | lolmesh.Scale = Vector3.new(0.5,0.5,0.5) | |
2027 | ||
2028 | lolmesh.MeshType = "Sphere" | |
2029 | ||
2030 | wait(0) | |
2031 | ||
2032 | coroutine.resume(coroutine.create(function() | |
2033 | ||
2034 | for i = 0, 1, 0.05 do | |
2035 | ||
2036 | wait(0) | |
2037 | ||
2038 | lolmesh.Scale = lolmesh.Scale + Vector3.new(9,9,9) | |
2039 | ||
2040 | lol.Transparency = lol.Transparency + 0.20 | |
2041 | ||
2042 | lol.Reflectance = lol.Reflectance - 0.25 | |
2043 | ||
2044 | lol.CFrame = Torso.CFrame | |
2045 | ||
2046 | end | |
2047 | ||
2048 | lol:Remove() | |
2049 | ||
2050 | end)) | |
2051 | ||
2052 | end | |
2053 | ||
2054 | ||
2055 | ||
2056 | Stun2=function(Feh,x,y,z) | |
2057 | ||
2058 | coroutine.resume(coroutine.create(function(part) | |
2059 | ||
2060 | --[[ if part.Parent:FindFirstChild("Torso")==nil then | |
2061 | ||
2062 | return | |
2063 | ||
2064 | end]] | |
2065 | ||
2066 | Torsoh2=part | |
2067 | ||
2068 | End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10) | |
2069 | ||
2070 | ST2=Torsoh2.Position | |
2071 | ||
2072 | --[[ p=Instance.new("BodyPosition") | |
2073 | ||
2074 | p.P=3000 | |
2075 | ||
2076 | p.D=100 | |
2077 | ||
2078 | p.maxForce=Vector3.new(math.huge,0,math.huge) | |
2079 | ||
2080 | p.position=Torsoh2.Position | |
2081 | ||
2082 | p.Parent=Torsoh2]] | |
2083 | ||
2084 | while part.Parent ~= nil and lightning == true do | |
2085 | ||
2086 | -- f1:Play() | |
2087 | ||
2088 | -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50) | |
2089 | ||
2090 | Start2=End2 | |
2091 | ||
2092 | End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,math.random(-y,y)/10,math.random(-z,z)/10) | |
2093 | ||
2094 | e=Instance.new("Part") | |
2095 | ||
2096 | e.TopSurface=0 | |
2097 | ||
2098 | e.BottomSurface=0 | |
2099 | ||
2100 | e.CanCollide=false | |
2101 | ||
2102 | e.Anchored=true | |
2103 | ||
2104 | e.formFactor="Symmetric" | |
2105 | ||
2106 | e.Size=Vector3.new(1,1,1) | |
2107 | ||
2108 | Look2=(End2.p-Start2.p).unit | |
2109 | ||
2110 | m=Instance.new("BlockMesh") | |
2111 | ||
2112 | m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude) | |
2113 | ||
2114 | m.Parent=e | |
2115 | ||
2116 | e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99) | |
2117 | ||
2118 | e.Reflectance=.3 | |
2119 | ||
2120 | e.Name="Zap" | |
2121 | ||
2122 | e.BrickColor=BrickColor.new("Really red") | |
2123 | ||
2124 | e.Parent=part.Parent | |
2125 | ||
2126 | coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e) | |
2127 | ||
2128 | wait() | |
2129 | ||
2130 | end | |
2131 | ||
2132 | wait(.25) | |
2133 | ||
2134 | -- p.Parent=nil | |
2135 | ||
2136 | end),Feh) | |
2137 | ||
2138 | end | |
2139 | ||
2140 | ||
2141 | ||
2142 | function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
2143 | ||
2144 | local msh1 = Instance.new("BlockMesh") | |
2145 | ||
2146 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
2147 | ||
2148 | S=Instance.new("Part") | |
2149 | ||
2150 | S.Name="Effect" | |
2151 | ||
2152 | S.formFactor=0 | |
2153 | ||
2154 | S.Size=Vector3.new(x1,y1,z1) | |
2155 | ||
2156 | S.BrickColor=color | |
2157 | ||
2158 | S.Reflectance = 0 | |
2159 | ||
2160 | S.TopSurface=0 | |
2161 | ||
2162 | S.BottomSurface=0 | |
2163 | ||
2164 | S.Transparency=0 | |
2165 | ||
2166 | S.Anchored=true | |
2167 | ||
2168 | S.CanCollide=false | |
2169 | ||
2170 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2171 | ||
2172 | S.Parent=Character | |
2173 | ||
2174 | msh1.Parent = S | |
2175 | ||
2176 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
2177 | ||
2178 | end | |
2179 | ||
2180 | ||
2181 | ||
2182 | function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
2183 | ||
2184 | local msh1 = Instance.new("BlockMesh") | |
2185 | ||
2186 | msh1.Scale = Vector3.new(x1,y1,z1) | |
2187 | ||
2188 | S=Instance.new("Part") | |
2189 | ||
2190 | S.Name="Effect" | |
2191 | ||
2192 | S.formFactor=0 | |
2193 | ||
2194 | S.Size=Vector3.new(1,1,1) | |
2195 | ||
2196 | S.BrickColor=color | |
2197 | ||
2198 | S.Reflectance = 0 | |
2199 | ||
2200 | S.TopSurface=0 | |
2201 | ||
2202 | S.BottomSurface=0 | |
2203 | ||
2204 | S.Transparency=0 | |
2205 | ||
2206 | S.Anchored=true | |
2207 | ||
2208 | S.CanCollide=false | |
2209 | ||
2210 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2211 | ||
2212 | S.Parent=Character | |
2213 | ||
2214 | msh1.Parent = S | |
2215 | ||
2216 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
2217 | ||
2218 | end | |
2219 | ||
2220 | ||
2221 | ||
2222 | function MOREMAGIX(part,cframe,x,y,z,color) | |
2223 | ||
2224 | p2=Instance.new("Part") | |
2225 | ||
2226 | p2.Name="Blast" | |
2227 | ||
2228 | p2.TopSurface=0 | |
2229 | ||
2230 | p2.BottomSurface=0 | |
2231 | ||
2232 | p2.CanCollide=false | |
2233 | ||
2234 | p2.Anchored=true | |
2235 | ||
2236 | p2.BrickColor=color | |
2237 | ||
2238 | p2.Size=Vector3.new(x,y,z) | |
2239 | ||
2240 | p2.formFactor="Symmetric" | |
2241 | ||
2242 | p2.CFrame=part.CFrame*CFrame.new(0,cframe,0) | |
2243 | ||
2244 | p2.Parent=workspace | |
2245 | ||
2246 | m=Instance.new("BlockMesh") | |
2247 | ||
2248 | m.Parent=p2 | |
2249 | ||
2250 | m.Name="BlastMesh" | |
2251 | ||
2252 | coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) | |
2253 | ||
2254 | end | |
2255 | ||
2256 | ||
2257 | ||
2258 | function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
2259 | ||
2260 | local msh1 = Instance.new("SpecialMesh") | |
2261 | ||
2262 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
2263 | ||
2264 | msh1.MeshType = "Sphere" | |
2265 | ||
2266 | S=Instance.new("Part") | |
2267 | ||
2268 | S.Name="Effect" | |
2269 | ||
2270 | S.formFactor=0 | |
2271 | ||
2272 | S.Size=Vector3.new(x1,y1,z1) | |
2273 | ||
2274 | S.BrickColor=color | |
2275 | ||
2276 | S.Reflectance = 0 | |
2277 | ||
2278 | S.TopSurface=0 | |
2279 | ||
2280 | S.BottomSurface=0 | |
2281 | ||
2282 | S.Transparency=0 | |
2283 | ||
2284 | S.Anchored=true | |
2285 | ||
2286 | S.CanCollide=false | |
2287 | ||
2288 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
2289 | ||
2290 | S.Parent=Character | |
2291 | ||
2292 | msh1.Parent = S | |
2293 | ||
2294 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
2295 | ||
2296 | end | |
2297 | ||
2298 | ||
2299 | ||
2300 | function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
2301 | ||
2302 | local msh1 = Instance.new("SpecialMesh") | |
2303 | ||
2304 | msh1.Scale = Vector3.new(x1,y1,z1) | |
2305 | ||
2306 | msh1.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2307 | ||
2308 | S=Instance.new("Part") | |
2309 | ||
2310 | S.Name="Effect" | |
2311 | ||
2312 | S.formFactor=0 | |
2313 | ||
2314 | S.Size=Vector3.new(1,1,1) | |
2315 | ||
2316 | S.BrickColor=color | |
2317 | ||
2318 | S.Reflectance = 0 | |
2319 | ||
2320 | S.TopSurface=0 | |
2321 | ||
2322 | S.BottomSurface=0 | |
2323 | ||
2324 | S.Transparency=0 | |
2325 | ||
2326 | S.Anchored=true | |
2327 | ||
2328 | S.CanCollide=false | |
2329 | ||
2330 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
2331 | ||
2332 | S.Parent=Character | |
2333 | ||
2334 | msh1.Parent = S | |
2335 | ||
2336 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
2337 | ||
2338 | end | |
2339 | ||
2340 | ||
2341 | ||
2342 | function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
2343 | ||
2344 | local msh1 = Instance.new("SpecialMesh") | |
2345 | ||
2346 | msh1.Scale = Vector3.new(x1,y1,z1) | |
2347 | ||
2348 | msh1.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
2349 | ||
2350 | S=Instance.new("Part") | |
2351 | ||
2352 | S.Name="Effect" | |
2353 | ||
2354 | S.formFactor=0 | |
2355 | ||
2356 | S.Size=Vector3.new(1,1,1) | |
2357 | ||
2358 | S.BrickColor=color | |
2359 | ||
2360 | S.Reflectance = 0 | |
2361 | ||
2362 | S.TopSurface=0 | |
2363 | ||
2364 | S.BottomSurface=0 | |
2365 | ||
2366 | S.Transparency=0 | |
2367 | ||
2368 | S.Anchored=true | |
2369 | ||
2370 | S.CanCollide=false | |
2371 | ||
2372 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
2373 | ||
2374 | S.Parent=Character | |
2375 | ||
2376 | msh1.Parent = S | |
2377 | ||
2378 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
2379 | ||
2380 | end | |
2381 | ||
2382 | ||
2383 | ||
2384 | function DifferentEffect() | |
2385 | ||
2386 | p=Instance.new("Part") | |
2387 | ||
2388 | p.Name="FlameEm" | |
2389 | ||
2390 | p.Shape=0 | |
2391 | ||
2392 | p.TopSurface=0 | |
2393 | ||
2394 | p.BottomSurface=0 | |
2395 | ||
2396 | p.BrickColor=BrickColor.new("Really red") | |
2397 | ||
2398 | p.Anchored=true | |
2399 | ||
2400 | p.CanCollide=false | |
2401 | ||
2402 | p.Size=Vector3.new(1,1,1) | |
2403 | ||
2404 | p.CFrame=CFrame.new(Character["Torso"].CFrame.p+Vector3.new(0,-3,0))+Vector3.new(math.random(-10,10)/3,0,math.random(-10,10)/3) | |
2405 | ||
2406 | p.Parent=workspace | |
2407 | ||
2408 | m=Instance.new("SpecialMesh") | |
2409 | ||
2410 | m.MeshType="Sphere" | |
2411 | ||
2412 | m.Parent=p | |
2413 | ||
2414 | m.Scale=Vector3.new(1,1,1) | |
2415 | ||
2416 | coroutine.resume(coroutine.create(function(p) for i=1, 9 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(0,1.5,0) p.Transparency=p.Transparency+1/9 wait(0) end p.Parent=nil end),p) | |
2417 | ||
2418 | end | |
2419 | ||
2420 | ||
2421 | ||
2422 | function ss(pitch) | |
2423 | ||
2424 | ||
2425 | ||
2426 | local SlashSound = Instance.new("Sound") | |
2427 | ||
2428 | --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
2429 | ||
2430 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209645" | |
2431 | ||
2432 | SlashSound.Parent = workspace | |
2433 | ||
2434 | SlashSound.Volume = .7 | |
2435 | ||
2436 | SlashSound.Pitch = pitch | |
2437 | ||
2438 | SlashSound.PlayOnRemove = true | |
2439 | ||
2440 | coroutine.resume(coroutine.create(function() | |
2441 | ||
2442 | wait(0) | |
2443 | ||
2444 | SlashSound.Parent = nil | |
2445 | ||
2446 | end)) | |
2447 | ||
2448 | end | |
2449 | ||
2450 | function magicsound(pitch) | |
2451 | ||
2452 | ||
2453 | ||
2454 | local SlashSound = Instance.new("Sound") | |
2455 | ||
2456 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
2457 | ||
2458 | SlashSound.Parent = workspace | |
2459 | ||
2460 | SlashSound.Volume = .5 | |
2461 | ||
2462 | SlashSound.Pitch = pitch | |
2463 | ||
2464 | SlashSound.PlayOnRemove = true | |
2465 | ||
2466 | coroutine.resume(coroutine.create(function() | |
2467 | ||
2468 | wait(0) | |
2469 | ||
2470 | SlashSound.Parent = nil | |
2471 | ||
2472 | end)) | |
2473 | ||
2474 | end | |
2475 | ||
2476 | function critsound(pitch) | |
2477 | ||
2478 | ||
2479 | ||
2480 | local SlashSound = Instance.new("Sound") | |
2481 | ||
2482 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
2483 | ||
2484 | SlashSound.Parent = workspace | |
2485 | ||
2486 | SlashSound.Volume = .7 | |
2487 | ||
2488 | SlashSound.Pitch = pitch | |
2489 | ||
2490 | SlashSound.PlayOnRemove = true | |
2491 | ||
2492 | coroutine.resume(coroutine.create(function() | |
2493 | ||
2494 | wait(0) | |
2495 | ||
2496 | SlashSound.Parent = nil | |
2497 | ||
2498 | end)) | |
2499 | ||
2500 | end | |
2501 | ||
2502 | function spikesound(pitch) | |
2503 | ||
2504 | ||
2505 | ||
2506 | local SlashSound = Instance.new("Sound") | |
2507 | ||
2508 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793" | |
2509 | ||
2510 | SlashSound.Parent = workspace | |
2511 | ||
2512 | SlashSound.Volume = .7 | |
2513 | ||
2514 | SlashSound.Pitch = pitch | |
2515 | ||
2516 | SlashSound.PlayOnRemove = true | |
2517 | ||
2518 | coroutine.resume(coroutine.create(function() | |
2519 | ||
2520 | wait(0) | |
2521 | ||
2522 | SlashSound.Parent = nil | |
2523 | ||
2524 | end)) | |
2525 | ||
2526 | end | |
2527 | ||
2528 | ||
2529 | ||
2530 | Damagefunc1=function(hit,Damage,Knockback) | |
2531 | ||
2532 | if attackdebounce == false then | |
2533 | ||
2534 | attackdebounce = true | |
2535 | ||
2536 | coroutine.resume(coroutine.create(function() | |
2537 | ||
2538 | wait(0.1) | |
2539 | ||
2540 | attackdebounce = false | |
2541 | ||
2542 | end)) | |
2543 | ||
2544 | if hit.Parent==nil then | |
2545 | ||
2546 | return | |
2547 | ||
2548 | end | |
2549 | ||
2550 | CPlayer=Bin | |
2551 | ||
2552 | h=hit.Parent:FindFirstChild("Humanoid") | |
2553 | ||
2554 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
2555 | ||
2556 | if mana < 400 then | |
2557 | ||
2558 | mana = mana + math.random(5,15) | |
2559 | ||
2560 | end | |
2561 | ||
2562 | if mana > 400 then | |
2563 | ||
2564 | mana = 400 | |
2565 | ||
2566 | end | |
2567 | ||
2568 | Damage=Damage | |
2569 | ||
2570 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
2571 | ||
2572 | return | |
2573 | ||
2574 | end]] | |
2575 | ||
2576 | c=Instance.new("ObjectValue") | |
2577 | ||
2578 | c.Name="creator" | |
2579 | ||
2580 | c.Value=game.Players.LocalPlayer | |
2581 | ||
2582 | c.Parent=h | |
2583 | ||
2584 | game:GetService("Debris"):AddItem(c,.5) | |
2585 | ||
2586 | -- print(c.Value) | |
2587 | ||
2588 | if math.random(0,99)+math.random()<=10 then | |
2589 | ||
2590 | CRIT=true | |
2591 | ||
2592 | Damage=Damage*1.5 | |
2593 | ||
2594 | --[[ Knockback=Knockback*2 | |
2595 | ||
2596 | r=Instance.new("BodyAngularVelocity") | |
2597 | ||
2598 | r.P=3000 | |
2599 | ||
2600 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
2601 | ||
2602 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
2603 | ||
2604 | r.Parent=hit.Parent.Torso]] | |
2605 | ||
2606 | critsound(2) | |
2607 | ||
2608 | ||
2609 | ||
2610 | end | |
2611 | ||
2612 | Damage=Damage+math.random(0,10) | |
2613 | ||
2614 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2)) | |
2615 | ||
2616 | h:TakeDamage(Damage) | |
2617 | ||
2618 | showDamage(hit.Parent,Damage,.5) | |
2619 | ||
2620 | vp=Instance.new("BodyVelocity") | |
2621 | ||
2622 | vp.P=500 | |
2623 | ||
2624 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
2625 | ||
2626 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
2627 | ||
2628 | vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05 | |
2629 | ||
2630 | if Knockback>0 then | |
2631 | ||
2632 | vp.Parent=hit.Parent.Torso | |
2633 | ||
2634 | end | |
2635 | ||
2636 | game:GetService("Debris"):AddItem(vp,.25) | |
2637 | ||
2638 | --[[ r=Instance.new("BodyAngularVelocity") | |
2639 | ||
2640 | r.P=3000 | |
2641 | ||
2642 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
2643 | ||
2644 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
2645 | ||
2646 | r.Parent=hit.Parent.Torso]] | |
2647 | ||
2648 | game:GetService("Debris"):AddItem(r,.5) | |
2649 | ||
2650 | c=Instance.new("ObjectValue") | |
2651 | ||
2652 | c.Name="creator" | |
2653 | ||
2654 | c.Value=Player | |
2655 | ||
2656 | c.Parent=h | |
2657 | ||
2658 | game:GetService("Debris"):AddItem(c,.5) | |
2659 | ||
2660 | CRIT=false | |
2661 | ||
2662 | hitDeb=true | |
2663 | ||
2664 | AttackPos=6 | |
2665 | ||
2666 | end | |
2667 | ||
2668 | end | |
2669 | ||
2670 | end | |
2671 | ||
2672 | ||
2673 | ||
2674 | showDamage=function(Char,Dealt,du) | |
2675 | ||
2676 | m=Instance.new("Model") | |
2677 | ||
2678 | m.Name=tostring(Dealt) | |
2679 | ||
2680 | h=Instance.new("Humanoid") | |
2681 | ||
2682 | h.Health=0 | |
2683 | ||
2684 | h.MaxHealth=0 | |
2685 | ||
2686 | h.Parent=m | |
2687 | ||
2688 | c=Instance.new("Part") | |
2689 | ||
2690 | c.Transparency=0 | |
2691 | ||
2692 | c.BrickColor=BrickColor:Red() | |
2693 | ||
2694 | if CRIT==true then | |
2695 | ||
2696 | c.BrickColor=BrickColor.new("Really red") | |
2697 | ||
2698 | end | |
2699 | ||
2700 | c.Name="Head" | |
2701 | ||
2702 | c.TopSurface=0 | |
2703 | ||
2704 | c.BottomSurface=0 | |
2705 | ||
2706 | c.formFactor="Plate" | |
2707 | ||
2708 | c.Size=Vector3.new(1,.4,1) | |
2709 | ||
2710 | ms=Instance.new("CylinderMesh") | |
2711 | ||
2712 | ms.Bevel=.1 | |
2713 | ||
2714 | ms.Scale=Vector3.new(.8,.8,.8) | |
2715 | ||
2716 | if CRIT==true then | |
2717 | ||
2718 | ms.Scale=Vector3.new(1.25,1.5,1.25) | |
2719 | ||
2720 | ms.Bevel=.2 | |
2721 | ||
2722 | end | |
2723 | ||
2724 | ms.Parent=c | |
2725 | ||
2726 | c.Reflectance=0 | |
2727 | ||
2728 | Instance.new("BodyGyro").Parent=c | |
2729 | ||
2730 | c.Parent=m | |
2731 | ||
2732 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
2733 | ||
2734 | f=Instance.new("BodyPosition") | |
2735 | ||
2736 | f.P=2000 | |
2737 | ||
2738 | f.D=100 | |
2739 | ||
2740 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2741 | ||
2742 | f.position=c.Position+Vector3.new(0,3,0) | |
2743 | ||
2744 | f.Parent=c | |
2745 | ||
2746 | game:GetService("Debris"):AddItem(m,.5+du) | |
2747 | ||
2748 | c.CanCollide=false | |
2749 | ||
2750 | m.Parent=workspace | |
2751 | ||
2752 | c.CanCollide=false | |
2753 | ||
2754 | end | |
2755 | ||
2756 | ||
2757 | ||
2758 | ||
2759 | ||
2760 | hold = false | |
2761 | ||
2762 | ||
2763 | ||
2764 | function ob1d(mouse) | |
2765 | ||
2766 | if attack == true then return end | |
2767 | ||
2768 | hold = true | |
2769 | ||
2770 | if combo == 0 then | |
2771 | ||
2772 | combo = 1 | |
2773 | ||
2774 | onehit() | |
2775 | ||
2776 | coroutine.resume(coroutine.create(function() | |
2777 | ||
2778 | wait(0.5) | |
2779 | ||
2780 | if attack == false then | |
2781 | ||
2782 | combo = 0 | |
2783 | ||
2784 | gairo.Parent = nil | |
2785 | ||
2786 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
2787 | ||
2788 | Torso.Neck.C0=necko | |
2789 | ||
2790 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2791 | ||
2792 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2793 | ||
2794 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2795 | ||
2796 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2797 | ||
2798 | end | |
2799 | ||
2800 | end)) | |
2801 | ||
2802 | elseif combo == 1 then | |
2803 | ||
2804 | combo = 2 | |
2805 | ||
2806 | twohit() | |
2807 | ||
2808 | coroutine.resume(coroutine.create(function() | |
2809 | ||
2810 | wait(0.5) | |
2811 | ||
2812 | if attack == false then | |
2813 | ||
2814 | combo = 0 | |
2815 | ||
2816 | gairo.Parent = nil | |
2817 | ||
2818 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
2819 | ||
2820 | Torso.Neck.C0=necko | |
2821 | ||
2822 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2823 | ||
2824 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2825 | ||
2826 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2827 | ||
2828 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2829 | ||
2830 | end | |
2831 | ||
2832 | end)) | |
2833 | ||
2834 | elseif combo == 2 then | |
2835 | ||
2836 | combo = 3 | |
2837 | ||
2838 | threehit() | |
2839 | ||
2840 | coroutine.resume(coroutine.create(function() | |
2841 | ||
2842 | wait(0.5) | |
2843 | ||
2844 | if attack == false then | |
2845 | ||
2846 | combo = 0 | |
2847 | ||
2848 | gairo.Parent = nil | |
2849 | ||
2850 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
2851 | ||
2852 | Torso.Neck.C0=necko | |
2853 | ||
2854 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2855 | ||
2856 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2857 | ||
2858 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2859 | ||
2860 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2861 | ||
2862 | end | |
2863 | ||
2864 | end)) | |
2865 | ||
2866 | elseif combo == 3 then | |
2867 | ||
2868 | combo = 4 | |
2869 | ||
2870 | fourhit() | |
2871 | ||
2872 | coroutine.resume(coroutine.create(function() | |
2873 | ||
2874 | wait(0.5) | |
2875 | ||
2876 | if attack == false then | |
2877 | ||
2878 | combo = 0 | |
2879 | ||
2880 | gairo.Parent = nil | |
2881 | ||
2882 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
2883 | ||
2884 | Torso.Neck.C0=necko | |
2885 | ||
2886 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2887 | ||
2888 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2889 | ||
2890 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2891 | ||
2892 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2893 | ||
2894 | end | |
2895 | ||
2896 | end)) | |
2897 | ||
2898 | elseif combo == 4 then | |
2899 | ||
2900 | combo = 5 | |
2901 | ||
2902 | fivehit() | |
2903 | ||
2904 | combo = 0 | |
2905 | ||
2906 | coroutine.resume(coroutine.create(function() | |
2907 | ||
2908 | wait(0.5) | |
2909 | ||
2910 | if attack == false then | |
2911 | ||
2912 | combo = 0 | |
2913 | ||
2914 | gairo.Parent = nil | |
2915 | ||
2916 | wld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0) | |
2917 | ||
2918 | Torso.Neck.C0=necko | |
2919 | ||
2920 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2921 | ||
2922 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2923 | ||
2924 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2925 | ||
2926 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2927 | ||
2928 | end | |
2929 | ||
2930 | end)) | |
2931 | ||
2932 | end | |
2933 | ||
2934 | --[[onehit() | |
2935 | ||
2936 | twohit() | |
2937 | ||
2938 | threehit() | |
2939 | ||
2940 | fourhit() | |
2941 | ||
2942 | fivehit() ]] | |
2943 | ||
2944 | end | |
2945 | ||
2946 | ||
2947 | ||
2948 | function ob1u(mouse) | |
2949 | ||
2950 | hold = false | |
2951 | ||
2952 | end | |
2953 | ||
2954 | ||
2955 | ||
2956 | buttonhold = false | |
2957 | ||
2958 | ||
2959 | ||
2960 | function key(key) | |
2961 | ||
2962 | if attack == true then return end | |
2963 | ||
2964 | if key == "f" then | |
2965 | ||
2966 | WindCharge() | |
2967 | ||
2968 | end | |
2969 | ||
2970 | if key == "g" then | |
2971 | ||
2972 | restoring = true | |
2973 | ||
2974 | Restore() | |
2975 | ||
2976 | end | |
2977 | ||
2978 | if key == "z" then | |
2979 | ||
2980 | JetStream() | |
2981 | ||
2982 | end | |
2983 | ||
2984 | if key == "x" then | |
2985 | ||
2986 | Stab() | |
2987 | ||
2988 | end | |
2989 | ||
2990 | if key == "r" then | |
2991 | ||
2992 | WindKatanaWheelSpin() | |
2993 | ||
2994 | end | |
2995 | ||
2996 | if key == "t" then | |
2997 | ||
2998 | SlashShockwave() | |
2999 | ||
3000 | end | |
3001 | ||
3002 | end | |
3003 | ||
3004 | ||
3005 | ||
3006 | function key2(key) | |
3007 | ||
3008 | if key == "g"then | |
3009 | ||
3010 | restoring = false | |
3011 | ||
3012 | end | |
3013 | ||
3014 | if key == "z" then | |
3015 | ||
3016 | charging = false | |
3017 | ||
3018 | end | |
3019 | ||
3020 | end | |
3021 | ||
3022 | ||
3023 | ||
3024 | function s(mouse) | |
3025 | ||
3026 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
3027 | ||
3028 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
3029 | ||
3030 | mouse.KeyDown:connect(key) | |
3031 | ||
3032 | mouse.KeyUp:connect(key2) | |
3033 | ||
3034 | player = Player | |
3035 | ||
3036 | ch = Character | |
3037 | ||
3038 | RSH = ch.Torso["Right Shoulder"] | |
3039 | ||
3040 | LSH = ch.Torso["Left Shoulder"] | |
3041 | ||
3042 | -- | |
3043 | ||
3044 | RW.Part0 = ch.Torso | |
3045 | ||
3046 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
3047 | ||
3048 | RW.C1 = CFrame.new(0, 0.5, 0) | |
3049 | ||
3050 | RW.Part1 = ch["Right Arm"] | |
3051 | ||
3052 | RW.Parent = ch.Torso | |
3053 | ||
3054 | --_G.R = RW | |
3055 | ||
3056 | -- | |
3057 | ||
3058 | LW.Part0 = ch.Torso | |
3059 | ||
3060 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
3061 | ||
3062 | LW.C1 = CFrame.new(0, 0.5, 0) | |
3063 | ||
3064 | LW.Part1 = ch["Left Arm"] | |
3065 | ||
3066 | LW.Parent = ch.Torso | |
3067 | ||
3068 | --_G.L = LW | |
3069 | ||
3070 | -- | |
3071 | ||
3072 | equipanim() | |
3073 | ||
3074 | end | |
3075 | ||
3076 | ||
3077 | ||
3078 | function ds(mouse) | |
3079 | ||
3080 | hideanim() | |
3081 | ||
3082 | RW.Parent = nil | |
3083 | ||
3084 | LW.Parent = nil | |
3085 | ||
3086 | RSH.Parent = player.Character.Torso | |
3087 | ||
3088 | LSH.Parent = player.Character.Torso | |
3089 | ||
3090 | end | |
3091 | ||
3092 | ||
3093 | ||
3094 | Bin.Selected:connect(s) | |
3095 | ||
3096 | Bin.Deselected:connect(ds) | |
3097 | ||
3098 | ||
3099 | ||
3100 | function onRunning(speed) | |
3101 | ||
3102 | if attack == true then return end | |
3103 | ||
3104 | if speed>0 then | |
3105 | ||
3106 | walking = true | |
3107 | ||
3108 | for i = 0,1,0.1 do | |
3109 | ||
3110 | wait() | |
3111 | ||
3112 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
3113 | ||
3114 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3115 | ||
3116 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
3117 | ||
3118 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3119 | ||
3120 | end | |
3121 | ||
3122 | else | |
3123 | ||
3124 | walking = false | |
3125 | ||
3126 | for i = 0,1,0.1 do | |
3127 | ||
3128 | wait() | |
3129 | ||
3130 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
3131 | ||
3132 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3133 | ||
3134 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
3135 | ||
3136 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
3137 | ||
3138 | end | |
3139 | ||
3140 | ||
3141 | ||
3142 | end | |
3143 | ||
3144 | end | |
3145 | ||
3146 | Character.Humanoid.Running:connect(onRunning) | |
3147 | ||
3148 | ||
3149 | ||
3150 | while true do | |
3151 | ||
3152 | wait(0) | |
3153 | ||
3154 | fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0) | |
3155 | ||
3156 | fentext.Text = "Mana("..mana..")" | |
3157 | ||
3158 | fentext3.BackgroundColor3 = Color3.new(1,1,1) | |
3159 | ||
3160 | end |