Advertisement
mooodi1234

Insane Dark Magical Powers

Apr 15th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.54 KB | None | 0 0
  1. p = game.Players.LocalPlayer
  2. char = p.Character
  3. pchar = p.Character
  4. pchar.Head.Jumping.SoundId = "http://www.roblox.com/asset/?id=2767090"
  5. as=0.3
  6. explode = true
  7. tra = 0.1
  8. blast = true
  9. player = p
  10. humanoid = char.Humanoid
  11. torso = char.Torso
  12. torsoj = char.HumanoidRootPart.RootJoint
  13. original = torsoj.C0
  14. laser = true
  15. active= false
  16. function hum()
  17. humState = humanoid:GetState()
  18. if humState == Enum.HumanoidStateType.Jumping then
  19.  
  20. local rng = Instance.new("Part", char)
  21.  
  22. rng.Anchored = true
  23.  
  24. rng.BrickColor = BrickColor.new("Really black")
  25.  
  26. rng.CanCollide = false
  27.  
  28. rng.FormFactor = 3
  29.  
  30. rng.Name = "Ring"
  31.  
  32. rng.Size = Vector3.new(1, 1, 1)
  33.  
  34. rng.Transparency = 0
  35.  
  36. rng.TopSurface = 0
  37.  
  38. rng.BottomSurface = 0
  39.  
  40. rng.Material = "Neon"
  41.  
  42. rng.Position = torso.Position - Vector3.new(0,3,0)
  43.  
  44. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  45.  
  46. local rngm = Instance.new("SpecialMesh", rng)
  47.  
  48. rngm.MeshId= "http://www.roblox.com/asset/?id=3270017"
  49.  
  50. rngm.Scale = Vector3.new(1, 1.3, 2)
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. wait(0.1)
  63.  
  64.  
  65.  
  66. coroutine.wrap(function()
  67.  
  68. for i = 1, 5, 0.5 do
  69.  
  70. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  71.  
  72. rng.Transparency = i/4
  73.  
  74.  
  75.  
  76. wait()
  77.  
  78.  
  79.  
  80.  
  81.  
  82. end
  83.  
  84.  
  85.  
  86. wait()
  87.  
  88.  
  89.  
  90. rng:Destroy()
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. wait()
  103.  
  104. end)()
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. end
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. end
  126.  
  127. Lightning = function(Start,End,Times,Offset,Color,Thickness)
  128.  
  129.  
  130.  
  131.  
  132. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  133.  
  134.  
  135.  
  136.  
  137. for i=1,Times do
  138.  
  139.  
  140.  
  141.  
  142. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true
  143.  
  144.  
  145.  
  146.  
  147. li.Material = "Neon"
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161. li.Transparency = 0 li.BrickColor = Color
  162.  
  163.  
  164.  
  165.  
  166. li.formFactor = "Custom" li.CanCollide = false
  167.  
  168.  
  169.  
  170.  
  171. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  172.  
  173.  
  174.  
  175.  
  176. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  177.  
  178.  
  179.  
  180.  
  181. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  182.  
  183.  
  184.  
  185.  
  186. if Times == i then
  187.  
  188.  
  189.  
  190.  
  191. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  192.  
  193.  
  194.  
  195.  
  196. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  197.  
  198.  
  199.  
  200.  
  201. else
  202.  
  203.  
  204.  
  205.  
  206. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  207.  
  208.  
  209.  
  210.  
  211. end
  212.  
  213.  
  214.  
  215.  
  216. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait()
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230. li.Transparency = li.Transparency+tra end li:Destroy() end)
  231.  
  232.  
  233.  
  234.  
  235. end
  236.  
  237.  
  238.  
  239.  
  240. end
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254. ---------
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. Lightning2 = function(Start,End,Times,Offset,Color,Thickness)
  269.  
  270.  
  271.  
  272.  
  273. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  274.  
  275.  
  276.  
  277.  
  278. for i=1,Times do
  279.  
  280.  
  281.  
  282.  
  283. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true
  284.  
  285.  
  286.  
  287.  
  288. li.Material = "Neon"
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302. li.Transparency = 0 li.BrickColor = Color
  303.  
  304.  
  305.  
  306.  
  307. li.formFactor = "Custom" li.CanCollide = false
  308.  
  309.  
  310.  
  311.  
  312. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  313.  
  314.  
  315.  
  316.  
  317. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  318.  
  319.  
  320.  
  321.  
  322. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  323.  
  324.  
  325.  
  326.  
  327. if Times == i then
  328.  
  329.  
  330.  
  331.  
  332. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  333.  
  334.  
  335.  
  336.  
  337. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  338.  
  339.  
  340.  
  341.  
  342. else
  343.  
  344.  
  345.  
  346.  
  347. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  348.  
  349.  
  350.  
  351.  
  352. end
  353.  
  354.  
  355.  
  356.  
  357. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait()
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371. li.Transparency = li.Transparency+.5 end li:Destroy() end)
  372.  
  373.  
  374.  
  375.  
  376. end
  377.  
  378.  
  379.  
  380.  
  381. end
  382.  
  383.  
  384.  
  385.  
  386. m = p:GetMouse()
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. RightShoulder = Instance.new("Weld",pchar.Torso)
  401.  
  402.  
  403.  
  404.  
  405. RightShoulder.Part0 = pchar.Torso
  406.  
  407.  
  408.  
  409.  
  410. RightShoulder.Part1 = pchar['Right Arm']
  411.  
  412.  
  413.  
  414.  
  415. RightShoulder.C0 = CFrame.new(1,0.5,0)
  416.  
  417.  
  418.  
  419.  
  420. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434. Torso2 = pchar.HumanoidRootPart.RootJoint
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457. LeftShoulder = Instance.new("Weld",pchar.Torso)
  458.  
  459.  
  460.  
  461.  
  462. LeftShoulder.Part0 = pchar.Torso
  463.  
  464.  
  465.  
  466.  
  467. LeftShoulder.Part1 = pchar['Left Arm']
  468.  
  469.  
  470.  
  471.  
  472. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  473.  
  474.  
  475.  
  476.  
  477. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509. RightHip = Instance.new("Weld",pchar.Torso)
  510.  
  511.  
  512.  
  513.  
  514. RightHip.Part0 = pchar.Torso
  515.  
  516.  
  517.  
  518.  
  519. RightHip.Part1 = pchar['Right Leg']
  520.  
  521.  
  522.  
  523.  
  524. RightHip.C0 = CFrame.new(0.5,-2,0)
  525.  
  526.  
  527.  
  528.  
  529. RightHip.C1 = CFrame.new(0,1.5,0)
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570. LeftHip = Instance.new("Weld",pchar.Torso)
  571.  
  572.  
  573.  
  574.  
  575. LeftHip.Part0 = pchar.Torso
  576.  
  577.  
  578.  
  579.  
  580. LeftHip.Part1 = pchar['Left Leg']
  581.  
  582.  
  583.  
  584.  
  585. LeftHip.C0 = CFrame.new(-0.5,-2,0)
  586.  
  587.  
  588.  
  589.  
  590. LeftHip.C1 = CFrame.new(0,1.5,0)
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622. Neck = Instance.new("Weld",pchar.Torso)
  623.  
  624.  
  625.  
  626.  
  627. Neck.Part0 = pchar.Torso
  628.  
  629.  
  630.  
  631.  
  632. Neck.Part1 = pchar['Head']
  633.  
  634.  
  635.  
  636.  
  637. Neck.C0 = CFrame.new(0,1.5,0)
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660. -------------------------
  661.  
  662.  
  663.  
  664.  
  665. -- From 0,0,0 to 10,22,3 with lerps
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679. deg = math.deg
  680.  
  681.  
  682.  
  683.  
  684. rad = math.rad
  685.  
  686.  
  687.  
  688.  
  689. asin = math.asin
  690.  
  691.  
  692.  
  693.  
  694. atan2 = math.atan2
  695.  
  696.  
  697.  
  698.  
  699. cos = math.cos
  700.  
  701.  
  702.  
  703.  
  704. sin = math.sin
  705.  
  706.  
  707.  
  708.  
  709. rad = math.sin
  710.  
  711.  
  712.  
  713.  
  714. function getAngles(cf) -- this is for later
  715.  
  716.  
  717.  
  718.  
  719. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  720.  
  721.  
  722.  
  723.  
  724. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  725.  
  726.  
  727.  
  728.  
  729. end
  730.  
  731.  
  732.  
  733.  
  734. Lerp = {
  735.  
  736.  
  737.  
  738.  
  739. Number = function(C1,C2,inc)
  740.  
  741.  
  742.  
  743.  
  744. return C1 + (C2 - C1) * inc
  745.  
  746.  
  747.  
  748.  
  749. end;
  750.  
  751.  
  752.  
  753.  
  754. CFrame = function(a,b,m)
  755.  
  756.  
  757.  
  758.  
  759. local c,d={a:components()},{b:components()}
  760.  
  761.  
  762.  
  763.  
  764. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  765.  
  766.  
  767.  
  768.  
  769. return CFrame.new(unpack(c))
  770.  
  771.  
  772.  
  773.  
  774. end;
  775.  
  776.  
  777.  
  778.  
  779. }
  780.  
  781.  
  782.  
  783.  
  784. local Jumping = false
  785.  
  786.  
  787.  
  788.  
  789. humanoid.Jumping:connect(function()
  790.  
  791.  
  792.  
  793.  
  794. if Jumping then return end
  795.  
  796.  
  797.  
  798.  
  799. print'asd im jumping'
  800.  
  801.  
  802.  
  803.  
  804. Jumping = true
  805.  
  806.  
  807.  
  808.  
  809. repeat wait() until Vector3.new(0, torso.Velocity.y, 0).magnitude < 3
  810.  
  811.  
  812.  
  813.  
  814. print'asd jump over'
  815.  
  816.  
  817.  
  818.  
  819. Jumping = false
  820.  
  821.  
  822.  
  823.  
  824. end)
  825.  
  826.  
  827.  
  828.  
  829. local Falling= false
  830.  
  831.  
  832.  
  833.  
  834. humanoid.FreeFalling:connect(function()
  835.  
  836.  
  837.  
  838.  
  839. if Jumping then return end
  840.  
  841.  
  842.  
  843.  
  844. print'asd im fallin'
  845.  
  846.  
  847.  
  848.  
  849. Falling = true
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. repeat wait() until Vector3.new(0, torso.Velocity.y, 0).magnitude < 100
  864.  
  865.  
  866.  
  867.  
  868. print'hit ground!'
  869.  
  870.  
  871.  
  872.  
  873. Falling = false
  874.  
  875.  
  876.  
  877.  
  878. end)
  879.  
  880.  
  881.  
  882.  
  883. -----------
  884.  
  885.  
  886.  
  887.  
  888. angle = 0
  889.  
  890.  
  891.  
  892.  
  893. sin = math.sin
  894.  
  895.  
  896.  
  897.  
  898. rad = math.rad
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906. --------------------------------------------------BEAM START
  907.  
  908.  
  909.  
  910.  
  911. mouse = p:GetMouse()
  912.  
  913.  
  914.  
  915.  
  916. mouse.KeyDown:connect(function(k)
  917.  
  918.  
  919.  
  920.  
  921. if k == "x" then
  922.  
  923.  
  924.  
  925.  
  926. if laser == true then
  927.  
  928.  
  929.  
  930.  
  931. laser = false
  932.  
  933. explode = false
  934.  
  935. active = true
  936.  
  937. humanoid.WalkSpeed = 0
  938.  
  939. humanoid.JumpPower = 0
  940.  
  941. ends = Instance.new("Part",char)
  942.  
  943. ends.Anchored = true
  944.  
  945. ends.Transparency = 1
  946.  
  947. ends:BreakJoints()
  948.  
  949. ends.CFrame = char.Torso.CFrame * CFrame.new(-20,-3,0)
  950.  
  951.  
  952.  
  953.  
  954. tra = 1
  955.  
  956. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(0,math.rad(90),0)
  957.  
  958. LerpTo.Body = CFrame.new(0,0,0) *
  959.  
  960. CFrame.Angles(math.rad(-90),0,math.rad(-280))
  961.  
  962. LerpTo.LeftArm = CFrame.new(-1.3,0.2,0) * CFrame.Angles(math.rad(00),0,math.rad(-80))
  963.  
  964. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,math.rad(40))
  965.  
  966.  
  967.  
  968.  
  969. orb = Instance.new("Part",char)
  970.  
  971.  
  972.  
  973.  
  974. s122 = Instance.new("Sound",orb)
  975.  
  976. s122.SoundId = "rbxassetid://181004943"
  977.  
  978. s122.Volume = .7
  979.  
  980. s122.Pitch = .9
  981.  
  982. s122:Play()
  983.  
  984.  
  985.  
  986.  
  987. orb.Size = Vector3.new(1,1,1)
  988.  
  989.  
  990.  
  991.  
  992. orb.Material = "Neon"
  993.  
  994.  
  995.  
  996.  
  997. orb.BrickColor = BrickColor.new("Really black")
  998.  
  999.  
  1000.  
  1001.  
  1002. orbm = Instance.new("SpecialMesh",orb)
  1003.  
  1004.  
  1005.  
  1006.  
  1007. orbm.MeshType = "Sphere"
  1008.  
  1009.  
  1010.  
  1011.  
  1012. orb:BreakJoints()
  1013.  
  1014.  
  1015.  
  1016.  
  1017. orbw = Instance.new("Weld",orb)
  1018.  
  1019.  
  1020.  
  1021.  
  1022. orbw.Part0 = orb
  1023.  
  1024.  
  1025.  
  1026.  
  1027. orbw.Part1 = char["Left Arm"]
  1028.  
  1029.  
  1030.  
  1031.  
  1032. orbw.C0 = CFrame.new(0,2,0)
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043. for i = 1,4,0.1 do wait()
  1044.  
  1045.  
  1046.  
  1047.  
  1048. orbm.Scale = Vector3.new(i,i,i)
  1049.  
  1050.  
  1051.  
  1052.  
  1053. end
  1054.  
  1055. s1222 = Instance.new("Sound",orb)
  1056.  
  1057. s1222.SoundId = "rbxassetid://245029978"
  1058.  
  1059. s1222.Volume = 1
  1060.  
  1061. s1222.Pitch = 1
  1062.  
  1063. s1222:Play()
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075. s1222 = Instance.new("Sound",orb)
  1076.  
  1077. s1222.SoundId = "rbxassetid://245029978"
  1078.  
  1079. s1222.Volume = 1
  1080.  
  1081. s1222.Pitch = 1
  1082.  
  1083. s1222:Play()
  1084.  
  1085.  
  1086.  
  1087. s1222 = Instance.new("Sound",orb)
  1088.  
  1089. s1222.SoundId = "rbxassetid://245029978"
  1090.  
  1091. s1222.Volume = 1
  1092.  
  1093. s1222.Pitch = 1
  1094.  
  1095. s1222:Play()
  1096.  
  1097. wait(0.2)
  1098.  
  1099. for i = 1,30 do wait()
  1100.  
  1101.  
  1102.  
  1103.  
  1104. ends.CFrame = char.Torso.CFrame * CFrame.new(-20,-3,0)
  1105.  
  1106. Lightning(
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120. orb.CFrame.p,ends.Position,math.random(5,10),math.random(0,0),BrickColor.new("Really black"),1
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134. )
  1135.  
  1136.  
  1137.  
  1138.  
  1139. Lightning2(
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153. orb.CFrame.p,ends.Position,math.random(5,10),math.random(2,2),BrickColor.new("Really red"),0.2
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167. )
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175. end
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189. for i = 3,0,-0.3 do wait()
  1190.  
  1191.  
  1192.  
  1193.  
  1194. orbm.Scale = Vector3.new(i,i,i)
  1195.  
  1196.  
  1197.  
  1198.  
  1199. end
  1200.  
  1201.  
  1202.  
  1203.  
  1204. active = false
  1205.  
  1206. ends:Remove()
  1207.  
  1208. orb:Remove()
  1209.  
  1210. LerpTo.Body = original
  1211.  
  1212. wait(1)
  1213.  
  1214.  
  1215.  
  1216.  
  1217. explode = true
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225. laser = true
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239. tra = 0.1
  1240.  
  1241.  
  1242.  
  1243.  
  1244. humanoid.WalkSpeed = 16
  1245.  
  1246. humanoid.JumpPower = 50
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254. end
  1255.  
  1256.  
  1257.  
  1258.  
  1259. end
  1260.  
  1261.  
  1262.  
  1263.  
  1264. end)
  1265.  
  1266. mouse.KeyDown:connect(function(k)
  1267.  
  1268. if k == "x" then
  1269.  
  1270. wait(2)
  1271.  
  1272.  
  1273.  
  1274.  
  1275. for i = 1,5 do wait()
  1276.  
  1277.  
  1278.  
  1279.  
  1280. for i,v in pairs(workspace:children()) do
  1281.  
  1282.  
  1283.  
  1284.  
  1285. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1286.  
  1287.  
  1288.  
  1289.  
  1290. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1291.  
  1292.  
  1293.  
  1294.  
  1295. if (v:findFirstChild("Torso").Position - ends.Position).magnitude < 10 then
  1296.  
  1297.  
  1298.  
  1299.  
  1300. if v.Name ~= p.Name then
  1301.  
  1302.  
  1303.  
  1304.  
  1305. v.Humanoid:TakeDamage(20)
  1306.  
  1307.  
  1308.  
  1309.  
  1310. v.Humanoid.PlatformStand = true
  1311.  
  1312.  
  1313.  
  1314.  
  1315. wait(0.1)
  1316.  
  1317.  
  1318.  
  1319.  
  1320. v.Humanoid.PlatformStand = false
  1321.  
  1322.  
  1323.  
  1324.  
  1325. end
  1326.  
  1327.  
  1328.  
  1329.  
  1330. end
  1331.  
  1332.  
  1333.  
  1334.  
  1335. end
  1336.  
  1337.  
  1338.  
  1339.  
  1340. end
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390. end
  1391.  
  1392.  
  1393.  
  1394.  
  1395. end
  1396.  
  1397.  
  1398.  
  1399.  
  1400. end
  1401.  
  1402. end)
  1403.  
  1404.  
  1405.  
  1406.  
  1407. mouse.KeyDown:connect(function(k)
  1408.  
  1409.  
  1410.  
  1411.  
  1412. if k == "x" then
  1413.  
  1414.  
  1415.  
  1416.  
  1417. if laser == true then
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431. wait(1.3)
  1432.  
  1433.  
  1434.  
  1435.  
  1436. for i = 1,30 do wait()
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459. local rng = Instance.new("Part", char)
  1460.  
  1461.  
  1462.  
  1463.  
  1464. --[[sound = Instance.new("Sound",rng)
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474. sound.SoundId="http://www.roblox.com/asset/?id= 165970126"
  1475.  
  1476.  
  1477.  
  1478.  
  1479. wait()
  1480.  
  1481.  
  1482.  
  1483.  
  1484. sound:Play()]]--
  1485.  
  1486.  
  1487.  
  1488.  
  1489. rng.Anchored = true
  1490.  
  1491.  
  1492.  
  1493.  
  1494. rng.BrickColor = BrickColor.new("Really black")
  1495.  
  1496.  
  1497.  
  1498.  
  1499. rng.CanCollide = false
  1500.  
  1501.  
  1502.  
  1503.  
  1504. rng.FormFactor = 3
  1505.  
  1506.  
  1507.  
  1508.  
  1509. rng:BreakJoints()
  1510.  
  1511.  
  1512.  
  1513.  
  1514. rng.Name = "Ring"
  1515.  
  1516.  
  1517.  
  1518.  
  1519. rng.Size = Vector3.new(1, 1, 1)
  1520.  
  1521.  
  1522.  
  1523.  
  1524. rng.Transparency = 0
  1525.  
  1526.  
  1527.  
  1528.  
  1529. rng.TopSurface = 0
  1530.  
  1531.  
  1532.  
  1533.  
  1534. rng.BottomSurface = 0
  1535.  
  1536.  
  1537.  
  1538.  
  1539. rng.Material = "Neon"
  1540.  
  1541.  
  1542.  
  1543.  
  1544. rng.Position = torso.Position - Vector3.new(0,2,0)
  1545.  
  1546.  
  1547.  
  1548.  
  1549. rng.CFrame = ends.CFrame*
  1550.  
  1551.  
  1552.  
  1553.  
  1554. CFrame.Angles(math.random(),math.random(),math.random())
  1555.  
  1556.  
  1557.  
  1558.  
  1559. local rngm = Instance.new("BlockMesh", rng)
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573. rngm.Scale = Vector3.new(1, 1.3, 2)
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593. local rng1 = Instance.new("Part", char)
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600. rng1.Anchored = true
  1601.  
  1602.  
  1603.  
  1604.  
  1605. rng1.BrickColor = BrickColor.new("Really black")
  1606.  
  1607.  
  1608.  
  1609.  
  1610. rng1.CanCollide = false
  1611.  
  1612.  
  1613.  
  1614.  
  1615. rng1.FormFactor = 3
  1616.  
  1617.  
  1618.  
  1619.  
  1620. rng1:BreakJoints()
  1621.  
  1622.  
  1623.  
  1624.  
  1625. rng1.Name = "Ring"
  1626.  
  1627.  
  1628.  
  1629.  
  1630. rng1.Size = Vector3.new(1, 1, 1)
  1631.  
  1632.  
  1633.  
  1634.  
  1635. rng1.Transparency = 0
  1636.  
  1637.  
  1638.  
  1639.  
  1640. rng1.TopSurface = 0
  1641.  
  1642.  
  1643.  
  1644.  
  1645. rng1.BottomSurface = 0
  1646.  
  1647.  
  1648.  
  1649.  
  1650. rng1.Material = "Neon"
  1651.  
  1652.  
  1653.  
  1654.  
  1655. rng1.Position = torso.Position - Vector3.new(0,2,0)
  1656.  
  1657.  
  1658.  
  1659.  
  1660. rng1.CFrame = ends.CFrame*
  1661.  
  1662.  
  1663.  
  1664.  
  1665. CFrame.Angles(math.random(),math.random(),math.random())
  1666.  
  1667.  
  1668.  
  1669.  
  1670. local rngm1 = Instance.new("SpecialMesh", rng1)
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678. rngm1.MeshType = "Sphere"
  1679.  
  1680.  
  1681.  
  1682.  
  1683. rngm1.Scale = Vector3.new(1, 1.3, 2)
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700. local rng11 = Instance.new("Part", char)
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707. rng11.Anchored = true
  1708.  
  1709.  
  1710.  
  1711.  
  1712. rng11.BrickColor = BrickColor.new("Really black")
  1713.  
  1714.  
  1715.  
  1716.  
  1717. rng11.CanCollide = false
  1718.  
  1719.  
  1720.  
  1721.  
  1722. rng11.FormFactor = 3
  1723.  
  1724.  
  1725.  
  1726.  
  1727. rng11:BreakJoints()
  1728.  
  1729.  
  1730.  
  1731.  
  1732. rng11.Name = "Ring"
  1733.  
  1734.  
  1735.  
  1736.  
  1737. rng11.Size = Vector3.new(1, 1, 1)
  1738.  
  1739.  
  1740.  
  1741.  
  1742. rng11.Transparency = 0
  1743.  
  1744.  
  1745.  
  1746.  
  1747. rng11.TopSurface = 0
  1748.  
  1749.  
  1750.  
  1751.  
  1752. rng11.BottomSurface = 0
  1753.  
  1754.  
  1755.  
  1756.  
  1757. rng11.Material = "Neon"
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767. rng11.CFrame = ends.CFrame* CFrame.Angles(math.rad(90),0,math.rad(0))
  1768.  
  1769.  
  1770.  
  1771.  
  1772. local rngm11 = Instance.new("SpecialMesh", rng11)
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780. rngm11.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1781.  
  1782.  
  1783.  
  1784.  
  1785. rngm11.Scale = Vector3.new(1, 1.3, 2)
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798. coroutine.wrap(function()
  1799.  
  1800.  
  1801.  
  1802.  
  1803. for i = 1, 5, 0.4 do
  1804.  
  1805.  
  1806.  
  1807.  
  1808. rngm.Scale = Vector3.new(i,i,i)
  1809.  
  1810.  
  1811.  
  1812.  
  1813. rng.Transparency = 0
  1814.  
  1815. rngm1.Scale = Vector3.new(i*4,i*4,i*4)
  1816.  
  1817.  
  1818.  
  1819.  
  1820. rng1.Transparency = i/5
  1821.  
  1822.  
  1823.  
  1824. rngm11.Scale = Vector3.new(1+i*5,1+i*5,1)
  1825.  
  1826.  
  1827.  
  1828.  
  1829. rng11.Transparency = i/5
  1830.  
  1831.  
  1832.  
  1833.  
  1834. wait()
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849. end
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859. wait()
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869. rng:Destroy()
  1870.  
  1871.  
  1872.  
  1873.  
  1874. rng1:Destroy()
  1875.  
  1876. rng11:Destroy()
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898. wait()
  1899.  
  1900.  
  1901.  
  1902.  
  1903. end)()
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923. end
  1924.  
  1925. end
  1926.  
  1927. end
  1928.  
  1929. end)
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937. ---------------------------------------------EXPLODE---------------------------------------
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948. mouse.KeyDown:connect(function(k)
  1949.  
  1950. if k == "f" then
  1951.  
  1952. if explode == true then
  1953.  
  1954. explode = false
  1955.  
  1956. laser = false
  1957.  
  1958. active = true
  1959.  
  1960. humanoid.WalkSpeed = 0
  1961.  
  1962. humanoid.JumpPower = 0
  1963.  
  1964. LerpTo.Body = original * CFrame.new(0,0,5)
  1965.  
  1966. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(60))
  1967.  
  1968. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(-60))
  1969.  
  1970. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(-10),0,0)
  1971.  
  1972. LerpTo.LeftLeg = CFrame.new(-0.5,0.7,-1) * CFrame.Angles(rad(-20),0,0)
  1973.  
  1974. LerpTo.RightLeg = CFrame.new(0.5,0.7,-1) * CFrame.Angles(rad(-20),0,0)
  1975.  
  1976. for i = 1,10 do
  1977.  
  1978. local rng = Instance.new("Part", char)
  1979.  
  1980. rng.Anchored = true
  1981.  
  1982. rng.BrickColor = BrickColor.new("Really black")
  1983.  
  1984. rng.CanCollide = false
  1985.  
  1986. rng.FormFactor = 3
  1987.  
  1988. rng.Name = "Ring"
  1989.  
  1990. rng.Size = Vector3.new(1, 1, 1)
  1991.  
  1992. rng.Transparency = 1
  1993.  
  1994. rng.TopSurface = 0
  1995.  
  1996. rng.BottomSurface = 0
  1997.  
  1998. rng.Material = "Neon"
  1999.  
  2000. rng.Position = torso.Position - Vector3.new(0,8,0)
  2001.  
  2002. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  2003.  
  2004. local rngm = Instance.new("SpecialMesh", rng)
  2005.  
  2006. rngm.MeshId= "http://www.roblox.com/asset/?id=3270017"
  2007.  
  2008. rngm.Scale = Vector3.new(1, 1.3, 2)
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020. wait(0.1)
  2021.  
  2022.  
  2023.  
  2024. coroutine.wrap(function()
  2025.  
  2026. for i = 1, 10, 0.2 do
  2027.  
  2028. rngm.Scale = Vector3.new(2 + i*4, 2 + i*4, 1)
  2029.  
  2030. rng.Transparency = i/4
  2031.  
  2032.  
  2033.  
  2034. wait()
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040. end
  2041.  
  2042.  
  2043.  
  2044. wait()
  2045.  
  2046.  
  2047.  
  2048. rng:Destroy()
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060. wait()
  2061.  
  2062. end)()
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072. end
  2073.  
  2074.  
  2075.  
  2076.  
  2077. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(-10),0,math.rad(-20))
  2078.  
  2079. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.rad(-10),0,math.rad(20))
  2080.  
  2081. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(20),0,0)
  2082.  
  2083. LerpTo.LeftLeg = CFrame.new(-0.5,-0.5,0) * CFrame.Angles(rad(-10),0,rad(-20))
  2084.  
  2085. LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(rad(-10),0,rad(20))
  2086.  
  2087. for i = 1,1 do
  2088.  
  2089. local rng = Instance.new("Part", char)
  2090.  
  2091. rng.Anchored = true
  2092.  
  2093. rng.BrickColor = BrickColor.new("Really black")
  2094.  
  2095. rng.CanCollide = false
  2096.  
  2097. rng.FormFactor = 3
  2098.  
  2099. rng.Name = "Ring"
  2100.  
  2101. rng.Size = Vector3.new(1, 1, 1)
  2102.  
  2103. rng.Transparency = 0
  2104.  
  2105. rng.TopSurface = 0
  2106.  
  2107. rng.BottomSurface = 0
  2108.  
  2109. rng.Material = "Neon"
  2110.  
  2111. rng.Position = torso.Position
  2112.  
  2113. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  2114.  
  2115. local rngm = Instance.new("SpecialMesh", rng)
  2116.  
  2117. rngm.MeshType = "Sphere"
  2118.  
  2119. rngm.Scale = Vector3.new(1, 1.3, 2)
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125. for i,v in pairs(workspace:children()) do
  2126.  
  2127.  
  2128.  
  2129.  
  2130. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  2131.  
  2132.  
  2133.  
  2134.  
  2135. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  2136.  
  2137.  
  2138.  
  2139.  
  2140. if (v:findFirstChild("Torso").Position - char.Torso.Position).magnitude < 30 then
  2141.  
  2142.  
  2143.  
  2144.  
  2145. if v.Name ~= p.Name then
  2146.  
  2147.  
  2148.  
  2149.  
  2150. v.Humanoid:TakeDamage(40)
  2151.  
  2152.  
  2153.  
  2154.  
  2155. v.Humanoid.PlatformStand = true
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172. end
  2173.  
  2174.  
  2175.  
  2176.  
  2177. end
  2178.  
  2179.  
  2180.  
  2181.  
  2182. end
  2183.  
  2184.  
  2185.  
  2186.  
  2187. end
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237. end
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243. local rng1 = Instance.new("Part", char)
  2244.  
  2245. rng1.Anchored = true
  2246.  
  2247. rng1.BrickColor = BrickColor.new("Really black")
  2248.  
  2249. rng1.CanCollide = false
  2250.  
  2251. rng1.FormFactor = 3
  2252.  
  2253. rng1.Name = "Ring"
  2254.  
  2255. rng1.Size = Vector3.new(1, 1, 1)
  2256.  
  2257. rng1.Transparency = 0
  2258.  
  2259. rng1.TopSurface = 0
  2260.  
  2261. rng1.BottomSurface = 0
  2262.  
  2263. rng1.Material = "Neon"
  2264.  
  2265. rng1.Position = torso.Position - Vector3.new(0,7,0)
  2266.  
  2267. rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2268.  
  2269. local rngm1 = Instance.new("SpecialMesh", rng1)
  2270.  
  2271. rngm1.MeshId= "http://www.roblox.com/asset/?id=20329976"
  2272.  
  2273. rngm1.Scale = Vector3.new(1, 1.3, 2)
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285. local rng11 = Instance.new("Part", char)
  2286.  
  2287. rng11.Anchored = true
  2288.  
  2289. rng11.BrickColor = BrickColor.new("Really black")
  2290.  
  2291. rng11.CanCollide = false
  2292.  
  2293. rng11.FormFactor = 3
  2294.  
  2295. rng11.Name = "Ring"
  2296.  
  2297. rng11.Size = Vector3.new(1, 1, 1)
  2298.  
  2299. rng11.Transparency = 0
  2300.  
  2301. rng11.TopSurface = 0
  2302.  
  2303. rng11.BottomSurface = 0
  2304.  
  2305. rng11.Material = "Neon"
  2306.  
  2307. rng11.Position = torso.Position
  2308.  
  2309. rng11.CFrame = rng11.CFrame *
  2310.  
  2311. CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  2312.  
  2313. local rngm11 = Instance.new("SpecialMesh", rng11)
  2314.  
  2315. rngm11.MeshId="http://www.roblox.com/asset/?id=3270017"
  2316.  
  2317. rngm11.Scale = Vector3.new(1, 1.3, 2)
  2318.  
  2319. sound = Instance.new("Sound",char.Torso)
  2320.  
  2321. sound.Pitch = 1
  2322.  
  2323. sound.SoundId="http://www.roblox.com/asset/?id=165970126"
  2324.  
  2325. wait()
  2326.  
  2327. sound:Play()
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336. wait(0.1)
  2337.  
  2338.  
  2339.  
  2340. coroutine.wrap(function()
  2341.  
  2342. for i = 1, 5, 0.2 do
  2343.  
  2344. rngm.Scale = Vector3.new(2 + i*6, 2 + i*6, 2+i*6)
  2345.  
  2346. rng.Transparency = i/5
  2347.  
  2348. rngm1.Scale = Vector3.new(2 + i*6, 2 + i*6, 2 + i*6)
  2349.  
  2350. rng1.Transparency = i/5
  2351.  
  2352. rngm11.Scale = Vector3.new(2 + i*6, 2 + i*6, 0.5)
  2353.  
  2354. rng11.Transparency = i/5
  2355.  
  2356. wait()
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362. end
  2363.  
  2364.  
  2365.  
  2366. wait()
  2367.  
  2368.  
  2369.  
  2370. rng:Destroy()
  2371.  
  2372.  
  2373.  
  2374. rng1:Destroy()
  2375.  
  2376. rng11:Destroy()
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384. wait()
  2385.  
  2386. end)()
  2387.  
  2388.  
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396. end
  2397.  
  2398. wait(1)
  2399.  
  2400. humanoid.WalkSpeed = 16
  2401.  
  2402. humanoid.JumpPower = 50
  2403.  
  2404. LerpTo.Body = original
  2405.  
  2406. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(0),0,math.rad(0))
  2407.  
  2408. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.rad(0),0,math.rad(0))
  2409.  
  2410. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(0),0,0)
  2411.  
  2412. LerpTo.LeftLeg = CFrame.new(-0.5,-0.5,0) * CFrame.Angles(rad(0),0,rad(0))
  2413.  
  2414. LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(rad(0),0,rad(0))
  2415.  
  2416. wait(1)
  2417.  
  2418. laser = true
  2419.  
  2420. explode = true
  2421.  
  2422. active = false
  2423.  
  2424.  
  2425.  
  2426.  
  2427. end
  2428.  
  2429. end
  2430.  
  2431. end)
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451. -----------------------------------------------------
  2452.  
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459. m.KeyDown:connect(function(k)
  2460.  
  2461. if k == "h" then
  2462.  
  2463. if blast == true then
  2464.  
  2465. blast = false
  2466.  
  2467. active = true
  2468.  
  2469. laser = false
  2470.  
  2471. explode = false
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,math.rad(40))
  2480.  
  2481. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(-10),0,0)
  2482.  
  2483. wait(0.2)
  2484.  
  2485.  
  2486.  
  2487.  
  2488. ball1 = Instance.new("Part",char)
  2489.  
  2490.  
  2491.  
  2492.  
  2493. ball1.Size = Vector3.new(0.1,0.1,0.1)
  2494.  
  2495. ball1.BrickColor = BrickColor.new("Really black")
  2496.  
  2497. ball1:BreakJoints()
  2498.  
  2499. ball1.Transparency = 1
  2500.  
  2501. ball1w = Instance.new("Weld",ball1)
  2502.  
  2503. ball1w.Part0 = ball1
  2504.  
  2505. ball1.Material = "Neon"
  2506.  
  2507. ball1w.Part1 = char["Right Arm"]
  2508.  
  2509. ball1w.C0 = CFrame.new(0,1.5,0)
  2510.  
  2511. ball1m = Instance.new("SpecialMesh",ball1)
  2512.  
  2513. ball1m.MeshType = "Sphere"
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527. ball = Instance.new("Part",char)
  2528.  
  2529.  
  2530.  
  2531.  
  2532. ball.Size = Vector3.new(0.1,0.1,0.1)
  2533.  
  2534. ball.BrickColor = BrickColor.new("Really black")
  2535.  
  2536. ball:BreakJoints()
  2537.  
  2538. ballw = Instance.new("Weld",ball)
  2539.  
  2540. ballw.Part0 = ball
  2541.  
  2542. ball.Material = "Neon"
  2543.  
  2544. ballw.Part1 = char["Right Arm"]
  2545.  
  2546. ballw.C0 = CFrame.new(0,1.5,0)
  2547.  
  2548. ballm = Instance.new("SpecialMesh",ball)
  2549.  
  2550. ballm.MeshType = "Sphere"
  2551.  
  2552. for i = 1,5.5,.2 do wait()
  2553.  
  2554. ballm.Scale = Vector3.new(i,i,i)
  2555.  
  2556. end
  2557.  
  2558. wait(0.5)
  2559.  
  2560. LerpTo.Body = original * CFrame.Angles(0,0,rad(-60))
  2561.  
  2562. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(rad(70),0,math.rad(10))
  2563.  
  2564. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(85),0,math.rad(0))
  2565.  
  2566. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(0,rad(70),0)
  2567.  
  2568. wait(0.1)
  2569.  
  2570. LerpTo.Body = original * CFrame.Angles(0,0,rad(-270))
  2571.  
  2572. LerpTo.RightArm = CFrame.new(1,0.5,-0.5) * CFrame.Angles(rad(90),0,math.rad(90))
  2573.  
  2574. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(0),0,math.rad(-20))
  2575.  
  2576. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(0,rad(-90),0)
  2577.  
  2578. wait()
  2579.  
  2580. ballw:Remove()
  2581.  
  2582. local ry = Ray.new(
  2583.  
  2584. ball.CFrame.p,
  2585.  
  2586. (mouse.Hit.p - ball1.CFrame.p).unit * 500
  2587.  
  2588. )
  2589.  
  2590. local ig = game.Players.LocalPlayer.Character
  2591.  
  2592.  
  2593.  
  2594. local hit,position = Workspace:FindPartOnRay(ry, ig)
  2595.  
  2596.  
  2597.  
  2598.  
  2599. if hit then
  2600.  
  2601.  
  2602.  
  2603.  
  2604. bp = Instance.new("BodyPosition",ball)
  2605.  
  2606. bp.MaxForce = Vector3.new(100,100,100)
  2607.  
  2608. bp.Position = position
  2609.  
  2610. bp.P = 400
  2611.  
  2612. bp.D = 100
  2613.  
  2614.  
  2615.  
  2616. else
  2617.  
  2618. ball:Remove()
  2619.  
  2620. LerpTo.RightArm = CFrame.new(1,0.5,0)
  2621.  
  2622. active = false
  2623.  
  2624. laser = true
  2625.  
  2626. blast = true
  2627.  
  2628. explode = true
  2629.  
  2630. LerpTo.LeftArm = CFrame.new(-1,0.5,0)
  2631.  
  2632. LerpTo.Body = original
  2633.  
  2634. LerpTo.Head = CFrame.new(0,1.5,0)
  2635.  
  2636. end
  2637.  
  2638.  
  2639.  
  2640.  
  2641. wait()
  2642.  
  2643.  
  2644.  
  2645.  
  2646. LerpTo.RightArm = CFrame.new(1,0.5,-0.5) * CFrame.Angles(rad(90),0,math.rad(0))
  2647.  
  2648. repeat
  2649.  
  2650.  
  2651.  
  2652.  
  2653. --bp.Position = position
  2654.  
  2655. wait() until (ball.Position-position).magnitude < 6
  2656.  
  2657. sound = Instance.new("Sound",char.Torso)
  2658.  
  2659. sound.Pitch = 1
  2660.  
  2661. sound.SoundId="http://www.roblox.com/asset/?id=165970126"
  2662.  
  2663. wait()
  2664.  
  2665. sound:Play()
  2666.  
  2667. for i,v in pairs(workspace:children()) do
  2668.  
  2669.  
  2670.  
  2671.  
  2672. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  2673.  
  2674.  
  2675.  
  2676.  
  2677. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  2678.  
  2679.  
  2680.  
  2681.  
  2682. if (v:findFirstChild("Torso").Position - ball.Position).magnitude < 15 then
  2683.  
  2684.  
  2685.  
  2686.  
  2687. if v.Name ~= p.Name then
  2688.  
  2689.  
  2690.  
  2691.  
  2692. v.Humanoid:TakeDamage(40)
  2693.  
  2694.  
  2695.  
  2696.  
  2697. v.Humanoid.PlatformStand = true
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714. end
  2715.  
  2716.  
  2717.  
  2718.  
  2719. end
  2720.  
  2721.  
  2722.  
  2723.  
  2724. end
  2725.  
  2726.  
  2727.  
  2728.  
  2729. end
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779. end
  2780.  
  2781. for i = 5,100,10 do wait()
  2782.  
  2783. ballm.Scale = Vector3.new(i,i,i)
  2784.  
  2785. ball.Transparency= i/100
  2786.  
  2787. end
  2788.  
  2789. ball:Remove()
  2790.  
  2791.  
  2792.  
  2793.  
  2794. wait(0.5)
  2795.  
  2796. LerpTo.RightArm = CFrame.new(1,0.5,0)
  2797.  
  2798.  
  2799.  
  2800.  
  2801. LerpTo.LeftArm = CFrame.new(-1,0.5,0)
  2802.  
  2803. LerpTo.Body = original
  2804.  
  2805. LerpTo.Head = CFrame.new(0,1.5,0)
  2806.  
  2807. active = false
  2808.  
  2809. laser = true
  2810.  
  2811. blast = true
  2812.  
  2813. explode = true
  2814.  
  2815. end
  2816.  
  2817. end
  2818.  
  2819. end)
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852.  
  2853.  
  2854.  
  2855.  
  2856.  
  2857.  
  2858.  
  2859.  
  2860.  
  2861.  
  2862.  
  2863.  
  2864.  
  2865.  
  2866.  
  2867.  
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890. function updateanims()
  2891.  
  2892.  
  2893.  
  2894.  
  2895. if active == false then
  2896.  
  2897.  
  2898.  
  2899.  
  2900. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 and not Jumping then
  2901.  
  2902.  
  2903.  
  2904.  
  2905. anglespeed = 1/2
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919.  
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.  
  2928. LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(-sin(angle)*.1,0,0)
  2929.  
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938. LerpTo.LeftLeg = CFrame.new(-0.5,-0.5,0) * CFrame.Angles(sin(angle)*.1,0,0)
  2939.  
  2940.  
  2941.  
  2942.  
  2943. LerpTo.Head = CFrame.new(0,1.5,0)
  2944.  
  2945.  
  2946.  
  2947.  
  2948. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(sin(angle)*0.3,0,rad(0.1))
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(sin(angle)*0.3,0,rad(-0.1))
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and not Jumping then
  2983.  
  2984.  
  2985.  
  2986.  
  2987. anglespeed = 3
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997. LerpTo.RightLeg = CFrame.new(0.5,-0.65,0) * CFrame.Angles(-sin(angle*1)*0.8,0,0)
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007. LerpTo.LeftLeg = CFrame.new(-0.5,-0.65,0) * CFrame.Angles(sin(angle*1)*0.8,0,0)
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021. LerpTo.Head = CFrame.new(0,1.5,0)
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(-sin(angle)*.8,0,rad(3))
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(sin(angle)*.8,0,rad(-3))
  3046.  
  3047.  
  3048.  
  3049.  
  3050.  
  3051.  
  3052.  
  3053.  
  3054.  
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060.  
  3061.  
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068. elseif Falling then
  3069.  
  3070.  
  3071.  
  3072.  
  3073. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,-rad(20))
  3074.  
  3075.  
  3076.  
  3077.  
  3078. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,rad(20))
  3079.  
  3080.  
  3081.  
  3082.  
  3083. LerpTo.LeftLeg = CFrame.new(-0.5,-0.2,-0.3) * CFrame.Angles(0,rad(5),0)
  3084.  
  3085.  
  3086.  
  3087.  
  3088. LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(0,rad(-0.1),0)
  3089.  
  3090.  
  3091.  
  3092.  
  3093. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(-10),0,0)
  3094.  
  3095.  
  3096.  
  3097.  
  3098. elseif Jumping and not Falling then
  3099.  
  3100.  
  3101.  
  3102.  
  3103. print'asd this is seeing the jump!'
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.  
  3113.  
  3114.  
  3115.  
  3116.  
  3117.  
  3118. LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,-rad(20))
  3119.  
  3120.  
  3121.  
  3122.  
  3123. LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,rad(20))
  3124.  
  3125.  
  3126.  
  3127.  
  3128. LerpTo.LeftLeg = CFrame.new(-0.5,-0.2,-0.3) * CFrame.Angles(0,rad(5),0)
  3129.  
  3130.  
  3131.  
  3132.  
  3133. LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(0,rad(-0.1),0)
  3134.  
  3135.  
  3136.  
  3137.  
  3138. LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(10),0,0)
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161. end
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175. end
  3176.  
  3177.  
  3178.  
  3179.  
  3180. end
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200.  
  3201.  
  3202.  
  3203.  
  3204.  
  3205.  
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221. Spawn(function()
  3222.  
  3223.  
  3224.  
  3225.  
  3226. while wait()do
  3227.  
  3228.  
  3229.  
  3230.  
  3231. angle = (angle % 100) + anglespeed/10
  3232.  
  3233.  
  3234.  
  3235.  
  3236. end
  3237.  
  3238.  
  3239.  
  3240.  
  3241. end)
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255.  
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327. ---------
  3328.  
  3329.  
  3330.  
  3331.  
  3332. LerpTo = { -- this is where your lerp stuff would go if you had more than one arm to lerp
  3333.  
  3334.  
  3335.  
  3336.  
  3337. RightArm = CFrame.new(1,0.5,0);
  3338.  
  3339.  
  3340.  
  3341.  
  3342. LeftArm = CFrame.new(-1,0.5,0);
  3343.  
  3344.  
  3345.  
  3346.  
  3347. LeftLeg = CFrame.new(-0.5,-0.5,0);
  3348.  
  3349.  
  3350.  
  3351.  
  3352. RightLeg = CFrame.new(0.5,-0.5,0);
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360. Body = CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),0,math.rad(0));
  3361.  
  3362.  
  3363.  
  3364.  
  3365. Head = CFrame.new(0,1.5,0);
  3366.  
  3367.  
  3368.  
  3369.  
  3370. }
  3371.  
  3372.  
  3373.  
  3374.  
  3375. ---
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389. RunService = game:service'RunService'
  3390.  
  3391.  
  3392.  
  3393.  
  3394. RunService.RenderStepped:connect(function()
  3395.  
  3396.  
  3397.  
  3398.  
  3399. updateanims()
  3400.  
  3401.  
  3402.  
  3403.  
  3404. hum()
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421. RightShoulder.C0 = Lerp.CFrame(RightShoulder.C0,LerpTo.RightArm,as)
  3422.  
  3423.  
  3424.  
  3425.  
  3426. LeftShoulder.C0 = Lerp.CFrame(LeftShoulder.C0,LerpTo.LeftArm,as)
  3427.  
  3428.  
  3429.  
  3430.  
  3431. RightHip.C0 = Lerp.CFrame(RightHip.C0,LerpTo.RightLeg,as)
  3432.  
  3433.  
  3434.  
  3435.  
  3436. LeftHip.C0 = Lerp.CFrame(LeftHip.C0,LerpTo.LeftLeg,as)
  3437.  
  3438.  
  3439.  
  3440.  
  3441. Neck.C0 = Lerp.CFrame(Neck.C0,LerpTo.Head,as)
  3442.  
  3443.  
  3444.  
  3445.  
  3446. torsoj.C0 = Lerp.CFrame(torsoj.C0,LerpTo.Body,as)
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement