SHOW:
|
|
- or go back to the newest paste.
1 | -- as always remove wolfwv from the name | |
2 | ||
3 | tool = Instance.new("HopperBin") | |
4 | ||
5 | ||
6 | ||
7 | - | player = game.Players.Wolfwv |
7 | + | player = game.Players.beasrt |
8 | ||
9 | char = player.Character | |
10 | ||
11 | tool = Instance.new("HopperBin") | |
12 | ||
13 | tool.Parent = player.Backpack | |
14 | ||
15 | script.Parent = tool | |
16 | ||
17 | tool.Name = "Wand" | |
18 | ||
19 | ||
20 | ||
21 | spin = false | |
22 | ||
23 | ||
24 | ||
25 | landc = "Earth green" | |
26 | ||
27 | firec = "Bright red" | |
28 | ||
29 | icec = "Light blue" | |
30 | ||
31 | windc = "Institutional white" | |
32 | ||
33 | helthc = "Lime green" | |
34 | ||
35 | elec = "New Yeller" | |
36 | ||
37 | ||
38 | ||
39 | norm = 18 | |
40 | ||
41 | ||
42 | ||
43 | handle = Instance.new("Part") | |
44 | ||
45 | handle.Parent = game.Lighting | |
46 | ||
47 | handle.Name = "Handle" | |
48 | ||
49 | handle.FormFactor = "Symmetric" | |
50 | ||
51 | handle.Size = Vector3.new(1,4,1) | |
52 | ||
53 | handle.TopSurface = 0 | |
54 | ||
55 | handle.BottomSurface = 0 | |
56 | ||
57 | handle.BrickColor = BrickColor.new("Black") | |
58 | ||
59 | handle.Anchored = false | |
60 | ||
61 | handle.Position = char["Right Arm"].Position | |
62 | ||
63 | handle.CanCollide = false | |
64 | ||
65 | handle.Locked = true | |
66 | ||
67 | handle2 = Instance.new("Part") | |
68 | ||
69 | handle2.Parent = game.Lighting | |
70 | ||
71 | handle2.Name = "Handle2" | |
72 | ||
73 | handle2.Shape = "Ball" | |
74 | ||
75 | handle2.Size = Vector3.new(1,1,1) | |
76 | ||
77 | handle2.TopSurface = 0 | |
78 | ||
79 | handle2.BottomSurface = 0 | |
80 | ||
81 | handle2.BrickColor = BrickColor.new("Bright red") | |
82 | ||
83 | handle2.Anchored = false | |
84 | ||
85 | handle2.Position = char["Right Arm"].Position | |
86 | ||
87 | handle2.Transparency = 0.1 | |
88 | ||
89 | handle2.CanCollide = false | |
90 | ||
91 | handle2.Locked = true | |
92 | ||
93 | ||
94 | ||
95 | handle3 = Instance.new("Part") | |
96 | ||
97 | handle3.Parent = game.Lighting | |
98 | ||
99 | handle3.Name = "Handle2" | |
100 | ||
101 | handle3.Shape = "Ball" | |
102 | ||
103 | handle3.Size = Vector3.new(1,1,1) | |
104 | ||
105 | handle3.TopSurface = 0 | |
106 | ||
107 | handle3.BottomSurface = 0 | |
108 | ||
109 | handle3.BrickColor = BrickColor.new("Black") | |
110 | ||
111 | handle3.Anchored = false | |
112 | ||
113 | handle3.Position = char["Right Arm"].Position | |
114 | ||
115 | handle3.CanCollide = false | |
116 | ||
117 | handle3.Locked = true | |
118 | ||
119 | local m = Instance.new("CylinderMesh") | |
120 | ||
121 | m.Parent = handle | |
122 | ||
123 | m.Scale = Vector3.new(0.42,1,0.42) | |
124 | ||
125 | local m2 = Instance.new("SpecialMesh") | |
126 | ||
127 | m2.Parent = handle2 | |
128 | ||
129 | m2.MeshType = "Sphere" | |
130 | ||
131 | m2.Scale = Vector3.new(0.8,0.8,0.8) | |
132 | ||
133 | local m3 = Instance.new("SpecialMesh") | |
134 | ||
135 | m3.Parent = handle3 | |
136 | ||
137 | m3.MeshType = "FileMesh" | |
138 | ||
139 | m3.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
140 | ||
141 | m3.Scale = Vector3.new(0.4,0.85,0.4) | |
142 | ||
143 | brick1 = Instance.new("Part") | |
144 | ||
145 | brick1.Parent = char | |
146 | ||
147 | brick1.formFactor = "Symmetric" | |
148 | ||
149 | brick1.Size = Vector3.new(1,1,1) | |
150 | ||
151 | brick1.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) | |
152 | ||
153 | brick1.Shape = "Ball" | |
154 | ||
155 | brick1.CanCollide = false | |
156 | ||
157 | brick1.Transparency = 1 | |
158 | ||
159 | brick1.Locked = true | |
160 | ||
161 | mesh1 = Instance.new("SpecialMesh") | |
162 | ||
163 | mesh1.Parent = brick1 | |
164 | ||
165 | mesh1.MeshType = "Sphere" | |
166 | ||
167 | mesh1.Scale = Vector3.new(1.4,1.4,1.4) | |
168 | ||
169 | brick2 = Instance.new("Part") | |
170 | ||
171 | brick2.Parent = game.Lighting | |
172 | ||
173 | brick2.formFactor = "Symmetric" | |
174 | ||
175 | brick2.Size = Vector3.new(1,1,1) | |
176 | ||
177 | brick2.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) | |
178 | ||
179 | brick2.Shape = "Ball" | |
180 | ||
181 | brick2.CanCollide = false | |
182 | ||
183 | brick2.Transparency = 1 | |
184 | ||
185 | brick2.BrickColor = handle2.BrickColor | |
186 | ||
187 | brick2.Locked = true | |
188 | ||
189 | mesh2 = Instance.new("SpecialMesh") | |
190 | ||
191 | mesh2.Parent = brick2 | |
192 | ||
193 | mesh2.MeshType = "Sphere" | |
194 | ||
195 | mesh2.Scale = Vector3.new(0.5,0.5,0.5) | |
196 | ||
197 | brick3 = Instance.new("Part") | |
198 | ||
199 | brick3.Parent = game.Lighting | |
200 | ||
201 | brick3.formFactor = "Symmetric" | |
202 | ||
203 | brick3.Size = Vector3.new(1,1,1) | |
204 | ||
205 | brick3.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) | |
206 | ||
207 | brick3.Shape = "Ball" | |
208 | ||
209 | brick3.CanCollide = false | |
210 | ||
211 | brick3.Transparency = 1 | |
212 | ||
213 | brick3.BrickColor = handle2.BrickColor | |
214 | ||
215 | brick3.Locked = true | |
216 | ||
217 | mesh3 = Instance.new("SpecialMesh") | |
218 | ||
219 | mesh3.Parent = brick3 | |
220 | ||
221 | mesh3.MeshType = "Sphere" | |
222 | ||
223 | mesh3.Scale = Vector3.new(0.5,0.5,0.5) | |
224 | ||
225 | wads = Instance.new("Weld") | |
226 | ||
227 | wads.Parent = char.Torso | |
228 | ||
229 | wads.Part0 = wads.Parent | |
230 | ||
231 | wads.Part1 = brick1 | |
232 | ||
233 | wads.C1 = CFrame.new(-1.5,-0.5,0) | |
234 | ||
235 | wads2 = Instance.new("Weld") | |
236 | ||
237 | wads2.Parent = handle2 | |
238 | ||
239 | wads2.Part0 = wads2.Parent | |
240 | ||
241 | wads2.Part1 = brick2 | |
242 | ||
243 | wads2.C1 = CFrame.new(1,0,0) | |
244 | ||
245 | wads3 = Instance.new("Weld") | |
246 | ||
247 | wads3.Parent = handle2 | |
248 | ||
249 | wads3.Part0 = wads2.Parent | |
250 | ||
251 | wads3.Part1 = brick2 | |
252 | ||
253 | wads3.C1 = CFrame.new(-1,0,0) | |
254 | ||
255 | ||
256 | ||
257 | wa = Instance.new("Weld") | |
258 | ||
259 | wa.Parent = brick1 | |
260 | ||
261 | wa.Part0 = nil | |
262 | ||
263 | wa.Part1 = nil | |
264 | ||
265 | ||
266 | ||
267 | weld = Instance.new("Weld") | |
268 | ||
269 | ||
270 | ||
271 | toha = Instance.new("Weld") | |
272 | ||
273 | toha.Parent = char.Torso | |
274 | ||
275 | toha.Part0 = nil | |
276 | ||
277 | toha.Part1 = nil | |
278 | ||
279 | toha.C1 = CFrame.fromEulerAnglesXYZ(0,0,-2.5) * CFrame.new(0,0,-0.7) | |
280 | ||
281 | ||
282 | ||
283 | original = CFrame.fromEulerAnglesXYZ(-1.55,0,0) * CFrame.new(0,0,0.6) | |
284 | ||
285 | weporigin = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 1.1, 0.5) | |
286 | ||
287 | ||
288 | ||
289 | myhum = char.Humanoid | |
290 | ||
291 | myhum.WalkSpeed = norm | |
292 | ||
293 | ||
294 | ||
295 | enabled = false | |
296 | ||
297 | hol = false | |
298 | ||
299 | ||
300 | ||
301 | function select(mouse, key) | |
302 | ||
303 | wa.Part0 = wa.Parent | |
304 | ||
305 | wa.Part1 = char["Right Arm"] | |
306 | ||
307 | wa.C1 = original | |
308 | ||
309 | weld.Parent = char["Right Arm"] | |
310 | ||
311 | weld.Part0 = nil | |
312 | ||
313 | weld.Part1 = nil | |
314 | ||
315 | weld.C1 = weporigin | |
316 | ||
317 | handle.Parent = char | |
318 | ||
319 | handle2.Parent = char | |
320 | ||
321 | handle3.Parent = char | |
322 | ||
323 | for i = 1, 8 do | |
324 | ||
325 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.35,0,0) | |
326 | ||
327 | wait() | |
328 | ||
329 | end | |
330 | ||
331 | for i = 1, 4 do | |
332 | ||
333 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.2,0) | |
334 | ||
335 | wait() | |
336 | ||
337 | end | |
338 | ||
339 | toha.Part0 = nil | |
340 | ||
341 | toha.Part1 = nil | |
342 | ||
343 | weld.Part0 = weld.Parent | |
344 | ||
345 | weld.Part1 = handle | |
346 | ||
347 | for i = 1, 4 do | |
348 | ||
349 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.2,0) | |
350 | ||
351 | wait() | |
352 | ||
353 | end | |
354 | ||
355 | for i = 1, 8 do | |
356 | ||
357 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.35,0,0) | |
358 | ||
359 | wait() | |
360 | ||
361 | end | |
362 | ||
363 | wa.C1 = original | |
364 | ||
365 | spin = true | |
366 | ||
367 | brick2.Transparency = 0.3 | |
368 | ||
369 | brick2.Parent = char | |
370 | ||
371 | brick3.Transparency = 0.3 | |
372 | ||
373 | brick3.Parent = char | |
374 | ||
375 | weld2 = Instance.new("Weld") | |
376 | ||
377 | weld2.Parent = handle | |
378 | ||
379 | weld2.Part0 = weld2.Parent | |
380 | ||
381 | weld2.Part1 = handle2 | |
382 | ||
383 | weld2.C1 = CFrame.new(0, 0, 2.1) | |
384 | ||
385 | weld3 = Instance.new("Weld") | |
386 | ||
387 | weld3.Parent = handle | |
388 | ||
389 | weld3.Part0 = weld3.Parent | |
390 | ||
391 | weld3.Part1 = handle3 | |
392 | ||
393 | weld3.C1 = CFrame.new(0, 0, 1.4) | |
394 | ||
395 | weld.C1 = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 1.1, 0.5) | |
396 | ||
397 | weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, -2.1, 0) | |
398 | ||
399 | weld3.C1 = CFrame.fromEulerAnglesXYZ(3.2,0,0) * CFrame.new(0, -1.5, 0) | |
400 | ||
401 | coroutine.resume(coroutine.create(function() | |
402 | ||
403 | while spin == true do | |
404 | ||
405 | for i=1, 20 do | |
406 | ||
407 | wait() | |
408 | ||
409 | handle2.Transparency = handle2.Transparency + 0.025 | |
410 | ||
411 | end | |
412 | ||
413 | for i=1, 20 do | |
414 | ||
415 | wait() | |
416 | ||
417 | handle2.Transparency = handle2.Transparency - 0.025 | |
418 | ||
419 | end | |
420 | ||
421 | end | |
422 | ||
423 | end)) | |
424 | ||
425 | coroutine.resume(coroutine.create(function() | |
426 | ||
427 | while spin == true do | |
428 | ||
429 | wait() | |
430 | ||
431 | wads2.C1 = wads2.C1 * CFrame.fromEulerAnglesXYZ(0,0.15,0) | |
432 | ||
433 | wads3.C1 = wads3.C1 * CFrame.fromEulerAnglesXYZ(0,0.15,0) | |
434 | ||
435 | local fade = brick2:clone() | |
436 | ||
437 | fade.Parent = char | |
438 | ||
439 | fade.CFrame = brick2.CFrame | |
440 | ||
441 | local weld = wads2:clone() | |
442 | ||
443 | weld.Parent = handle2 | |
444 | ||
445 | weld.Part0 = weld.Parent | |
446 | ||
447 | weld.Part1 = fade | |
448 | ||
449 | local fade2 = brick3:clone() | |
450 | ||
451 | fade2.Parent = char | |
452 | ||
453 | fade2.CFrame = brick3.CFrame | |
454 | ||
455 | local weld2 = wads3:clone() | |
456 | ||
457 | weld2.Parent = handle2 | |
458 | ||
459 | weld2.Part0 = weld2.Parent | |
460 | ||
461 | weld2.Part1 = fade2 | |
462 | ||
463 | coroutine.resume(coroutine.create(function() | |
464 | ||
465 | for i=1, 8 do | |
466 | ||
467 | wait() | |
468 | ||
469 | fade.Transparency = fade.Transparency + 0.12 | |
470 | ||
471 | fade2.Transparency = fade2.Transparency + 0.12 | |
472 | ||
473 | end | |
474 | ||
475 | fade:remove() | |
476 | ||
477 | fade2:remove() | |
478 | ||
479 | end)) | |
480 | ||
481 | end | |
482 | ||
483 | end)) | |
484 | ||
485 | enabled = false | |
486 | ||
487 | mouse.KeyDown:connect(function(key) | |
488 | ||
489 | key = key:lower() | |
490 | ||
491 | if (key == "k") then | |
492 | ||
493 | if enabled == true then return end | |
494 | ||
495 | enabled = true | |
496 | ||
497 | hol = true | |
498 | ||
499 | for i=1, 6 do | |
500 | ||
501 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.1,0.1,0) | |
502 | ||
503 | wait() | |
504 | ||
505 | end | |
506 | ||
507 | handle2.BrickColor = BrickColor.new(landc) | |
508 | ||
509 | brick2.BrickColor = handle2.BrickColor | |
510 | ||
511 | brick3.BrickColor = handle2.BrickColor | |
512 | ||
513 | while hol == true do | |
514 | ||
515 | wait(0.05) | |
516 | ||
517 | local ki = Instance.new("Part") | |
518 | ||
519 | ki.Parent = workspace | |
520 | ||
521 | ki.Name = "Landmon" | |
522 | ||
523 | ki.Size = Vector3.new(1,1,1) | |
524 | ||
525 | ki.BrickColor = handle2.BrickColor | |
526 | ||
527 | ki.TopSurface = 0 | |
528 | ||
529 | ki.BottomSurface = 0 | |
530 | ||
531 | ki.CanCollide = false | |
532 | ||
533 | ki.Anchored = true | |
534 | ||
535 | ki.CFrame = CFrame.new(mouse.Hit.p) | |
536 | ||
537 | ki.CFrame = ki.CFrame * CFrame.new(0, -4, 0) | |
538 | ||
539 | local mef = Instance.new("SpecialMesh") | |
540 | ||
541 | mef.Parent = ki | |
542 | ||
543 | mef.MeshType = "Sphere" | |
544 | ||
545 | mef.Scale = Vector3.new(9,16,9) | |
546 | ||
547 | coroutine.resume(coroutine.create(function() | |
548 | ||
549 | for i=1, 5 do | |
550 | ||
551 | wait() | |
552 | ||
553 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.12,0) | |
554 | ||
555 | end | |
556 | ||
557 | for i=1, 5 do | |
558 | ||
559 | wait() | |
560 | ||
561 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.12,0) | |
562 | ||
563 | end | |
564 | ||
565 | end)) | |
566 | ||
567 | coroutine.resume(coroutine.create(function() | |
568 | ||
569 | for i=1, 25 do | |
570 | ||
571 | wait() | |
572 | ||
573 | ki.CFrame = ki.CFrame * CFrame.new(0, 0.3, 0) | |
574 | ||
575 | end | |
576 | ||
577 | loo = ki.CFrame | |
578 | ||
579 | ki.CanCollide = true | |
580 | ||
581 | mef.Scale = Vector3.new(1,1,1) | |
582 | ||
583 | ki.Size = Vector3.new(9,16,9) | |
584 | ||
585 | ki.CFrame = loo | |
586 | ||
587 | wait(7) | |
588 | ||
589 | for i=1, 20 do | |
590 | ||
591 | wait() | |
592 | ||
593 | ki.Transparency = ki.Transparency + 0.05 | |
594 | ||
595 | end | |
596 | ||
597 | ki:remove() | |
598 | ||
599 | end)) | |
600 | ||
601 | end | |
602 | ||
603 | elseif (key == "f") then | |
604 | ||
605 | if enabled == true then return end | |
606 | ||
607 | enabled = true | |
608 | ||
609 | pof = mouse.Hit.p | |
610 | ||
611 | local part = Instance.new("Part") | |
612 | ||
613 | local fire = Instance.new("Fire") | |
614 | ||
615 | fire.Parent = part | |
616 | ||
617 | fire.Heat = 30 | |
618 | ||
619 | fire.Size = 40 | |
620 | ||
621 | local smoke = Instance.new("Smoke") | |
622 | ||
623 | smoke.Parent = part | |
624 | ||
625 | smoke.RiseVelocity = 2 | |
626 | ||
627 | smoke.Size = 20 | |
628 | ||
629 | smoke.Color = Color3.new(0,0,0) | |
630 | ||
631 | smoke.Opacity = 1 | |
632 | ||
633 | local par = Instance.new("Part") | |
634 | ||
635 | par.Parent = workspace | |
636 | ||
637 | par.Size = Vector3.new(9,1,1) | |
638 | ||
639 | par.Transparency = 0 | |
640 | ||
641 | par.Anchored = true | |
642 | ||
643 | par.TopSurface = 0 | |
644 | ||
645 | par.BottomSurface = 0 | |
646 | ||
647 | par.BrickColor = BrickColor.new(firec) | |
648 | ||
649 | par.CFrame = CFrame.new(pof) * CFrame.new(0,-0.498,0) | |
650 | ||
651 | par.CFrame = par.CFrame * CFrame.Angles(0,0.8,0) | |
652 | ||
653 | par.CanCollide = false | |
654 | ||
655 | local mes = Instance.new("SpecialMesh") | |
656 | ||
657 | mes.Parent = par | |
658 | ||
659 | mes.MeshType = "Brick" | |
660 | ||
661 | mes.Scale = Vector3.new(1,1,1) | |
662 | ||
663 | local pa = par:clone() | |
664 | ||
665 | pa.Parent = workspace | |
666 | ||
667 | pa.CFrame = CFrame.new(pof) * CFrame.new(0,-0.498,0) | |
668 | ||
669 | pa.CFrame = pa.CFrame * CFrame.Angles(0,-0.8,0) | |
670 | ||
671 | handle2.BrickColor = BrickColor.new(firec) | |
672 | ||
673 | brick2.BrickColor = handle2.BrickColor | |
674 | ||
675 | brick3.BrickColor = handle2.BrickColor | |
676 | ||
677 | for i=1, 10 do | |
678 | ||
679 | wait(0.03) | |
680 | ||
681 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0.05,0) | |
682 | ||
683 | end | |
684 | ||
685 | for i=1, 4 do | |
686 | ||
687 | for i=1, 3 do | |
688 | ||
689 | wait(0.01) | |
690 | ||
691 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.05,0.1) | |
692 | ||
693 | end | |
694 | ||
695 | for i=1, 3 do | |
696 | ||
697 | wait(0.01) | |
698 | ||
699 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.03,0.05,-0.1) | |
700 | ||
701 | end | |
702 | ||
703 | end | |
704 | ||
705 | for i=1, 7 do | |
706 | ||
707 | wait(0.01) | |
708 | ||
709 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.1,-0.1) | |
710 | ||
711 | end | |
712 | ||
713 | wait(0.6) | |
714 | ||
715 | for i=1, 10 do | |
716 | ||
717 | wait(0.02) | |
718 | ||
719 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.1,-0.05,0.3) | |
720 | ||
721 | par.Transparency = par.Transparency + 0.1 | |
722 | ||
723 | pa.Transparency = pa.Transparency + 0.1 | |
724 | ||
725 | mes.Scale = mes.Scale + Vector3.new(0.1,0,0.05) | |
726 | ||
727 | pa.Mesh.Scale = pa.Mesh.Scale + Vector3.new(0.1,0,0.05) | |
728 | ||
729 | end | |
730 | ||
731 | wait(0.1) | |
732 | ||
733 | pa:remove() | |
734 | ||
735 | par:remove() | |
736 | ||
737 | part.Parent = workspace | |
738 | ||
739 | part.Size = Vector3.new(3,3,3) | |
740 | ||
741 | part.Anchored = true | |
742 | ||
743 | part.CFrame = CFrame.new(pof) | |
744 | ||
745 | part.CFrame = part.CFrame * CFrame.Angles(1.2,0,0) | |
746 | ||
747 | part.Transparency = 1 | |
748 | ||
749 | coroutine.resume(coroutine.create(function() | |
750 | ||
751 | for i=1, 100 do | |
752 | ||
753 | wait() | |
754 | ||
755 | part.CFrame = part.CFrame * CFrame.Angles(0,0,0.4) | |
756 | ||
757 | end | |
758 | ||
759 | end)) | |
760 | ||
761 | local explode = Instance.new("Explosion") | |
762 | ||
763 | explode.Parent = char | |
764 | ||
765 | explode.BlastRadius = 11 | |
766 | ||
767 | explode.BlastPressure = 400000 | |
768 | ||
769 | explode.Position = part.Position | |
770 | ||
771 | explode.archivable = false | |
772 | ||
773 | wait(0.3) | |
774 | ||
775 | wa.C1 = original | |
776 | ||
777 | wait(0.7) | |
778 | ||
779 | fire.Enabled = false | |
780 | ||
781 | smoke.Enabled = false | |
782 | ||
783 | wait(0.2) | |
784 | ||
785 | part:remove() | |
786 | ||
787 | wait(1) | |
788 | ||
789 | enabled = false | |
790 | ||
791 | elseif (key == "q") then | |
792 | ||
793 | if enabled == true then return end | |
794 | ||
795 | enabled = true | |
796 | ||
797 | handle2.BrickColor = BrickColor.new(windc) | |
798 | ||
799 | brick2.BrickColor = handle2.BrickColor | |
800 | ||
801 | brick3.BrickColor = handle2.BrickColor | |
802 | ||
803 | for i=1, 8 do | |
804 | ||
805 | wait(0.01) | |
806 | ||
807 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0,-0.18) | |
808 | ||
809 | end | |
810 | ||
811 | for i=1, 2 do | |
812 | ||
813 | wait(0.01) | |
814 | ||
815 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.15,0) | |
816 | ||
817 | end | |
818 | ||
819 | wait(0.3) | |
820 | ||
821 | for i=1, 2 do | |
822 | ||
823 | wait(0.01) | |
824 | ||
825 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.3,0) | |
826 | ||
827 | end | |
828 | ||
829 | local p = Instance.new("Part") | |
830 | ||
831 | p.Parent = workspace | |
832 | ||
833 | p.Name = "Sword" | |
834 | ||
835 | p.Size = Vector3.new(1,4,1) | |
836 | ||
837 | p.BottomSurface = 0 | |
838 | ||
839 | p.TopSurface = 0 | |
840 | ||
841 | p.Anchored = false | |
842 | ||
843 | p.CanCollide = false | |
844 | ||
845 | p.CFrame = handle.CFrame | |
846 | ||
847 | p.CFrame = p.CFrame * CFrame.Angles(0,0,1.55) | |
848 | ||
849 | p:BreakJoints() | |
850 | ||
851 | local mt = Instance.new("SpecialMesh") | |
852 | ||
853 | mt.Parent = p | |
854 | ||
855 | mt.MeshType = "FileMesh" | |
856 | ||
857 | mt.MeshId = "http://www.roblox.com/asset/?id=12768042" | |
858 | ||
859 | mt.TextureId = "http://www.roblox.com/asset/?id=21262906" | |
860 | ||
861 | local bv = Instance.new("BodyVelocity") | |
862 | ||
863 | bv.Parent = p | |
864 | ||
865 | bv.velocity = char.Torso.CFrame.lookVector * 45 | |
866 | ||
867 | local bva = Instance.new("BodyAngularVelocity") | |
868 | ||
869 | bva.Parent = p | |
870 | ||
871 | bva.angularvelocity = Vector3.new(0,14,0) | |
872 | ||
873 | p.Touched:connect(function(hit) | |
874 | ||
875 | if hit.Parent.Name == player.Name then return end | |
876 | ||
877 | local hum = hit.Parent:findFirstChild("Humanoid") | |
878 | ||
879 | if hum ~= nil then | |
880 | ||
881 | local hed = hit.Parent:findFirstChild("Head") | |
882 | ||
883 | if hed ~= nil then | |
884 | ||
885 | for i=1, 5 do | |
886 | ||
887 | wait() | |
888 | ||
889 | hed.Parent.Torso.Neck.C1 = hed.Parent.Torso.Neck.C1 * CFrame.new(0, 0, -0.9) | |
890 | ||
891 | end | |
892 | ||
893 | hum.Health = 0 | |
894 | ||
895 | wait(0.05) | |
896 | ||
897 | hed.Velocity = Vector3.new(math.random(-30,30),40,math.random(-30,30)) | |
898 | ||
899 | hed.RotVelocity = Vector3.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)) | |
900 | ||
901 | end | |
902 | ||
903 | hum.Health = 0 | |
904 | ||
905 | end | |
906 | ||
907 | end) | |
908 | ||
909 | local spi = true | |
910 | ||
911 | coroutine.resume(coroutine.create(function() | |
912 | ||
913 | while spi == true do | |
914 | ||
915 | local fad = p:clone() | |
916 | ||
917 | fad.Parent = workspace | |
918 | ||
919 | fad.BrickColor = BrickColor.new(windc) | |
920 | ||
921 | fad.Transparency = 0.2 | |
922 | ||
923 | fad.Mesh.TextureId = "Clear" | |
924 | ||
925 | fad.Anchored = true | |
926 | ||
927 | coroutine.resume(coroutine.create(function() | |
928 | ||
929 | for i=1, 8 do | |
930 | ||
931 | wait() | |
932 | ||
933 | fad.Transparency = fad.Transparency + 0.1 | |
934 | ||
935 | end | |
936 | ||
937 | fad:remove() | |
938 | ||
939 | end)) | |
940 | ||
941 | wait() | |
942 | ||
943 | end | |
944 | ||
945 | end)) | |
946 | ||
947 | for i=1, 4 do | |
948 | ||
949 | wait(0.01) | |
950 | ||
951 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.3,0) | |
952 | ||
953 | end | |
954 | ||
955 | wait(0.3) | |
956 | ||
957 | for i=1, 7 do | |
958 | ||
959 | wait(0.01) | |
960 | ||
961 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.2,0.3) | |
962 | ||
963 | end | |
964 | ||
965 | wa.C1 = original | |
966 | ||
967 | wait(0.3) | |
968 | ||
969 | enabled = false | |
970 | ||
971 | wait(1.2) | |
972 | ||
973 | spi = false | |
974 | ||
975 | wait() | |
976 | ||
977 | p:remove() | |
978 | ||
979 | elseif (key == "e") then | |
980 | ||
981 | if enabled == true then return end | |
982 | ||
983 | enabled = true | |
984 | ||
985 | myhum.WalkSpeed = 0 | |
986 | ||
987 | handle2.BrickColor = BrickColor.new(helthc) | |
988 | ||
989 | brick2.BrickColor = handle2.BrickColor | |
990 | ||
991 | brick3.BrickColor = handle2.BrickColor | |
992 | ||
993 | hol = true | |
994 | ||
995 | for i=1, 6 do | |
996 | ||
997 | wait(0.01) | |
998 | ||
999 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.13,0,0) | |
1000 | ||
1001 | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.1) | |
1002 | ||
1003 | end | |
1004 | ||
1005 | wait(0.5) | |
1006 | ||
1007 | for i=1, 3 do | |
1008 | ||
1009 | wait(0.01) | |
1010 | ||
1011 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.4,0,0) | |
1012 | ||
1013 | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.23) | |
1014 | ||
1015 | end | |
1016 | ||
1017 | local pf = Instance.new("Part") | |
1018 | ||
1019 | pf.Parent = workspace | |
1020 | ||
1021 | pf.Name = "Healthbump" | |
1022 | ||
1023 | pf.Size = Vector3.new(7,1,7) | |
1024 | ||
1025 | pf.BottomSurface = 0 | |
1026 | ||
1027 | pf.TopSurface = 0 | |
1028 | ||
1029 | pf.Anchored = true | |
1030 | ||
1031 | pf.CanCollide = false | |
1032 | ||
1033 | pf.CFrame = char.Torso.CFrame * CFrame.new(0,-2.8, 0) | |
1034 | ||
1035 | pf.Transparency = 0.3 | |
1036 | ||
1037 | pf.BrickColor = handle2.BrickColor | |
1038 | ||
1039 | local meg = Instance.new("CylinderMesh") | |
1040 | ||
1041 | meg.Parent = pf | |
1042 | ||
1043 | meg.Scale = Vector3.new(0.6,0.8,0.6) | |
1044 | ||
1045 | hecols = {"Bright green", "Lime green", "Dark green", "Camo"} | |
1046 | ||
1047 | coroutine.resume(coroutine.create(function() | |
1048 | ||
1049 | for i=1, 50 do | |
1050 | ||
1051 | wait() | |
1052 | ||
1053 | pf.Transparency = pf.Transparency + 0.02 | |
1054 | ||
1055 | meg.Scale = meg.Scale + Vector3.new(0.045,0,0.045) | |
1056 | ||
1057 | end | |
1058 | ||
1059 | end)) | |
1060 | ||
1061 | while hol == true do | |
1062 | ||
1063 | wait(0) | |
1064 | ||
1065 | myhum.Health = myhum.Health + 0.5 | |
1066 | ||
1067 | local chanc = math.random(1,20) | |
1068 | ||
1069 | if chanc == 8 then | |
1070 | ||
1071 | coroutine.resume(coroutine.create(function() | |
1072 | ||
1073 | pf.Transparency = 0.3 | |
1074 | ||
1075 | meg.Scale = Vector3.new(0.6,0.8,0.6) | |
1076 | ||
1077 | for i=1, 50 do | |
1078 | ||
1079 | wait() | |
1080 | ||
1081 | pf.Transparency = pf.Transparency + 0.02 | |
1082 | ||
1083 | meg.Scale = meg.Scale + Vector3.new(0.045,0,0.045) | |
1084 | ||
1085 | end | |
1086 | ||
1087 | end)) | |
1088 | ||
1089 | end | |
1090 | ||
1091 | local hp = Instance.new("Part") | |
1092 | ||
1093 | hp.Parent = workspace | |
1094 | ||
1095 | hp.formFactor = "Symmetric" | |
1096 | ||
1097 | local randsiz = math.random(1,2) | |
1098 | ||
1099 | local col = math.random(1,4) | |
1100 | ||
1101 | hp.Size = Vector3.new(randsiz,randsiz,randsiz) | |
1102 | ||
1103 | hp.BrickColor = BrickColor.new(hecols[col]) | |
1104 | ||
1105 | hp.TopSurface = 0 | |
1106 | ||
1107 | hp.BottomSurface = 0 | |
1108 | ||
1109 | hp.Transparency = 0.1 | |
1110 | ||
1111 | hp.CFrame = char.Torso.CFrame * CFrame.new(math.random(-5,5),-3,math.random(-5,5)) | |
1112 | ||
1113 | hp.CFrame = hp.CFrame * CFrame.Angles(math.random(),math.random(),math.random()) | |
1114 | ||
1115 | hp.CanCollide = false | |
1116 | ||
1117 | hp.Anchored = false | |
1118 | ||
1119 | hp:BreakJoints() | |
1120 | ||
1121 | local mf = Instance.new("SpecialMesh") | |
1122 | ||
1123 | mf.MeshType = "Brick" | |
1124 | ||
1125 | mf.Parent = hp | |
1126 | ||
1127 | mf.Scale = Vector3.new(0.65,0.65,0.65) | |
1128 | ||
1129 | local bv = Instance.new("BodyVelocity") | |
1130 | ||
1131 | bv.Parent = hp | |
1132 | ||
1133 | bv.velocity = Vector3.new(0,10,0) | |
1134 | ||
1135 | coroutine.resume(coroutine.create(function() | |
1136 | ||
1137 | wait(0.9) | |
1138 | ||
1139 | for i=1, 9 do | |
1140 | ||
1141 | hp.Transparency = hp.Transparency + 0.1 | |
1142 | ||
1143 | wait() | |
1144 | ||
1145 | end | |
1146 | ||
1147 | hp:remove() | |
1148 | ||
1149 | end)) | |
1150 | ||
1151 | end | |
1152 | ||
1153 | elseif (key == "r") then | |
1154 | ||
1155 | if enabled == true then return end | |
1156 | ||
1157 | enabled = true | |
1158 | ||
1159 | myhum.WalkSpeed = 0 | |
1160 | ||
1161 | handle2.BrickColor = BrickColor.new(elec) | |
1162 | ||
1163 | brick2.BrickColor = handle2.BrickColor | |
1164 | ||
1165 | brick3.BrickColor = handle2.BrickColor | |
1166 | ||
1167 | cols = {"Neon orange", "New Yeller", "Bright yellow", "Bright orange"} | |
1168 | ||
1169 | for i=1, 6 do | |
1170 | ||
1171 | wait(0.01) | |
1172 | ||
1173 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.11,0,0) | |
1174 | ||
1175 | end | |
1176 | ||
1177 | wait(0.35) | |
1178 | ||
1179 | tab = {} | |
1180 | ||
1181 | for i=1, 50 do | |
1182 | ||
1183 | for i=1, 20 do | |
1184 | ||
1185 | local a = Instance.new("Part") | |
1186 | ||
1187 | a.Parent = workspace | |
1188 | ||
1189 | a.formFactor = "Symmetric" | |
1190 | ||
1191 | a.Size = Vector3.new(4,1,1) | |
1192 | ||
1193 | a.TopSurface = 0 | |
1194 | ||
1195 | a.BottomSurface = 0 | |
1196 | ||
1197 | local numb = math.random(1,4) | |
1198 | ||
1199 | a.BrickColor = BrickColor.new(cols[numb]) | |
1200 | ||
1201 | a.Anchored = true | |
1202 | ||
1203 | a.CanCollide = false | |
1204 | ||
1205 | a.Transparency = 0.3 | |
1206 | ||
1207 | local mo = Instance.new("SpecialMesh") | |
1208 | ||
1209 | mo.Parent = a | |
1210 | ||
1211 | mo.MeshType = "Brick" | |
1212 | ||
1213 | mo.Scale = Vector3.new(1,0.2,0.2) | |
1214 | ||
1215 | a.CFrame = handle2.CFrame | |
1216 | ||
1217 | a.CFrame = a.CFrame * CFrame.Angles(math.random(-3.2,3.2),math.random(-3.2,3.2),math.random(-3.2,3.2)) * CFrame.new(2,0,0) | |
1218 | ||
1219 | table.insert(tab, a) | |
1220 | ||
1221 | end | |
1222 | ||
1223 | wait() | |
1224 | ||
1225 | for _, v in pairs(tab) do | |
1226 | ||
1227 | v:remove() | |
1228 | ||
1229 | end | |
1230 | ||
1231 | end | |
1232 | ||
1233 | for i=1, 7 do | |
1234 | ||
1235 | wait(0.01) | |
1236 | ||
1237 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.17,0.1,0) | |
1238 | ||
1239 | end | |
1240 | ||
1241 | coroutine.resume(coroutine.create(function() | |
1242 | ||
1243 | for i=1, 10 do | |
1244 | ||
1245 | wait(0.2) | |
1246 | ||
1247 | local h = Instance.new("Part") | |
1248 | ||
1249 | h.Parent = workspace | |
1250 | ||
1251 | h.Shape = "Ball" | |
1252 | ||
1253 | h.Size = Vector3.new(3,3,3) | |
1254 | ||
1255 | h.TopSurface = 0 | |
1256 | ||
1257 | h.BottomSurface = 0 | |
1258 | ||
1259 | local numb = math.random(1,4) | |
1260 | ||
1261 | h.BrickColor = BrickColor.new(cols[numb]) | |
1262 | ||
1263 | h.Anchored = true | |
1264 | ||
1265 | h.CanCollide = false | |
1266 | ||
1267 | h.Transparency = 0.5 | |
1268 | ||
1269 | h.CFrame = handle2.CFrame | |
1270 | ||
1271 | local function magn(hif) | |
1272 | ||
1273 | if hif.Parent.Name == player.Name then return end | |
1274 | ||
1275 | local dist = (char.Torso.Position - hif.Position).magnitude | |
1276 | ||
1277 | if dist >= 10 then | |
1278 | ||
1279 | print(dist) | |
1280 | ||
1281 | local hum = hif.Parent:findFirstChild("Humanoid") | |
1282 | ||
1283 | if hum ~= nil then | |
1284 | ||
1285 | hum.Health = 0 | |
1286 | ||
1287 | end | |
1288 | ||
1289 | end | |
1290 | ||
1291 | end | |
1292 | ||
1293 | coroutine.resume(coroutine.create(function() | |
1294 | ||
1295 | for i=1, 30 do | |
1296 | ||
1297 | wait() | |
1298 | ||
1299 | magn(char.Torso) | |
1300 | ||
1301 | end | |
1302 | ||
1303 | end)) | |
1304 | ||
1305 | coroutine.resume(coroutine.create(function() | |
1306 | ||
1307 | for i=1, 30 do | |
1308 | ||
1309 | wait(0.04) | |
1310 | ||
1311 | h.Size = h.Size + Vector3.new(2,2,2) | |
1312 | ||
1313 | h.Transparency = h.Transparency + 0.023 | |
1314 | ||
1315 | h.CFrame = handle2.CFrame | |
1316 | ||
1317 | end | |
1318 | ||
1319 | h:remove() | |
1320 | ||
1321 | end)) | |
1322 | ||
1323 | end | |
1324 | ||
1325 | end)) | |
1326 | ||
1327 | for i=1, 19 do | |
1328 | ||
1329 | for i=1, 30 do | |
1330 | ||
1331 | local f = Instance.new("Part") | |
1332 | ||
1333 | f.Parent = workspace | |
1334 | ||
1335 | f.formFactor = "Symmetric" | |
1336 | ||
1337 | f.Size = Vector3.new(25,1,1) | |
1338 | ||
1339 | f.TopSurface = 0 | |
1340 | ||
1341 | f.BottomSurface = 0 | |
1342 | ||
1343 | local numb = math.random(1,4) | |
1344 | ||
1345 | f.BrickColor = BrickColor.new(cols[numb]) | |
1346 | ||
1347 | f.Anchored = true | |
1348 | ||
1349 | f.CanCollide = false | |
1350 | ||
1351 | f.Transparency = 0.3 | |
1352 | ||
1353 | local mo = Instance.new("SpecialMesh") | |
1354 | ||
1355 | mo.Parent = f | |
1356 | ||
1357 | mo.MeshType = "Brick" | |
1358 | ||
1359 | mo.Scale = Vector3.new(1,math.random(0.8,1.7),math.random(0.8,1.7)) | |
1360 | ||
1361 | f.CFrame = handle2.CFrame | |
1362 | ||
1363 | f.CFrame = f.CFrame * CFrame.Angles(math.random(-3.2,3.2),math.random(-3.2,3.2),math.random(-3.2,3.2)) * CFrame.new(12.5,0,0) | |
1364 | ||
1365 | table.insert(tab, f) | |
1366 | ||
1367 | end | |
1368 | ||
1369 | wait(0.1) | |
1370 | ||
1371 | for _, v in pairs(tab) do | |
1372 | ||
1373 | v:remove() | |
1374 | ||
1375 | end | |
1376 | ||
1377 | end | |
1378 | ||
1379 | myhum.WalkSpeed = norm | |
1380 | ||
1381 | enabled = false | |
1382 | ||
1383 | end | |
1384 | ||
1385 | end) | |
1386 | ||
1387 | mouse.KeyUp:connect(function(key) | |
1388 | ||
1389 | key = key:lower() | |
1390 | ||
1391 | if (key == "k") then | |
1392 | ||
1393 | hol = false | |
1394 | ||
1395 | for i=1, 6 do | |
1396 | ||
1397 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,-0.1,0) | |
1398 | ||
1399 | wait() | |
1400 | ||
1401 | end | |
1402 | ||
1403 | wa.C1 = original | |
1404 | ||
1405 | enabled = false | |
1406 | ||
1407 | wait(0.3) | |
1408 | ||
1409 | wa.C1 = original | |
1410 | ||
1411 | elseif (key == "e") then | |
1412 | ||
1413 | hol = false | |
1414 | ||
1415 | for i=1, 6 do | |
1416 | ||
1417 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,-0.02,0) | |
1418 | ||
1419 | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.24) | |
1420 | ||
1421 | wait() | |
1422 | ||
1423 | end | |
1424 | ||
1425 | myhum.WalkSpeed = norm | |
1426 | ||
1427 | for i=1, 5 do | |
1428 | ||
1429 | wait(0.15) | |
1430 | ||
1431 | wa.C1 = original | |
1432 | ||
1433 | weld.C1 = weporigin | |
1434 | ||
1435 | end | |
1436 | ||
1437 | enabled = false | |
1438 | ||
1439 | end | |
1440 | ||
1441 | end) | |
1442 | ||
1443 | mouse.Button1Down:connect(function() | |
1444 | ||
1445 | e = char.Torso | |
1446 | ||
1447 | wait(0.2) | |
1448 | ||
1449 | e.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,2.5,0) | |
1450 | ||
1451 | end) | |
1452 | ||
1453 | end | |
1454 | ||
1455 | ||
1456 | ||
1457 | function deselect() | |
1458 | ||
1459 | spin = false | |
1460 | ||
1461 | for i = 1, 8 do | |
1462 | ||
1463 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.35,0,0) | |
1464 | ||
1465 | wait() | |
1466 | ||
1467 | end | |
1468 | ||
1469 | for i = 1, 4 do | |
1470 | ||
1471 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.2,0) | |
1472 | ||
1473 | wait() | |
1474 | ||
1475 | end | |
1476 | ||
1477 | toha.Part0 = toha.Parent | |
1478 | ||
1479 | toha.Part1 = handle | |
1480 | ||
1481 | weld.Part0 = nil | |
1482 | ||
1483 | weld.Part1 = nil | |
1484 | ||
1485 | wait() | |
1486 | ||
1487 | wa.Part0 = nil | |
1488 | ||
1489 | wa.Part1 = nil | |
1490 | ||
1491 | end | |
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | script.Parent.Selected:connect(select) | |
1498 | ||
1499 | script.Parent.Deselected:connect(deselect) |