wanTH092

Dual Gauntlet

Jul 4th, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.47 KB | None | 0 0
  1. --[[ Armageddon Rod ]]--[[mediafire gtfo password]]-----------------------------------------------------------------------------------------------------------
  2. Players = game:GetService("Players")
  3.  
  4. Me = Players.LocalPlayer
  5. Char = Me.Character
  6. Neck0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  7.  
  8. Selected = false
  9. Attacking = false
  10. Debounce = true
  11. Hurt = false
  12. Charging = false
  13. Able = true
  14. Hold = false
  15. Aim = false
  16. Anim = "None"
  17. MP = 1750
  18. MaxMP = MP
  19.  
  20. it = Instance.new
  21. v3 = Vector3.new
  22. c3 = Color3.new
  23. bn = BrickColor.new
  24. cn = CFrame.new
  25. ca = CFrame.Angles
  26. rd = math.rad
  27. rn = math.random
  28. mp = math.pi
  29. mh = math.huge
  30. ud = UDim2.new
  31. cw = coroutine.wrap
  32. ti = table.insert
  33. tr = table.remove
  34.  
  35. function Part(Par, Anc, Colli, Tran, Ref, Col, Siz, Mat, Type)
  36.     local p = Instance.new("Part")
  37.     p.Material = "SmoothPlastic"
  38.     p.formFactor = "Custom"
  39.     p.TopSurface = 0
  40.     p.BottomSurface = 0
  41.     p.Transparency = Tran
  42.     p.Reflectance = Ref
  43.     p.Anchored = Anc
  44.     p.CanCollide = Colli
  45.     p.BrickColor = Col
  46.     p.Size = Siz
  47.     p.Locked = true
  48.     if Type == "Block" then
  49.         it("BlockMesh",p)
  50.     elseif Type == "Cylinder" then
  51.         it("CylinderMesh",p)
  52.     elseif Type == "Wedge" then
  53.         it("SpecialMesh",p).MeshType = "Wedge"
  54.     elseif Type == "Sphere" then
  55.         it("SpecialMesh",p).MeshType = "Sphere"
  56.     elseif Type == "Head" then
  57.         it("SpecialMesh",p).MeshType = "Head"
  58.     end
  59.     p.Parent = Par
  60.     p:BreakJoints()
  61.     return p
  62. end
  63.  
  64. function Weld(P0, P1, C0, C1)
  65.     local w = Instance.new("Weld")
  66.     w.Part0 = P0
  67.     w.Part1 = P1
  68.     if C0 then
  69.         w.C0 = C0
  70.     end
  71.     if C1 then
  72.         w.C1 = C1
  73.     end
  74.     w.Parent = P0
  75.     return w
  76. end
  77.  
  78. function AddMP(mpz)
  79.     MP = MP + mpz
  80.     if MP > MaxMP then
  81.         MP = MaxMP
  82.     end
  83. end
  84.  
  85. New = {
  86.     Meshes = {
  87.         Crown = "http://www.roblox.com/asset/?id=20329976";
  88.         Skull1 = "http://www.roblox.com/asset/?id=36869975";
  89.         Skull2 = "http://www.roblox.com/asset/?id=36869983";
  90.         SpikeBall = "http://www.roblox.com/asset/?id=9982590";
  91.         Spike = "http://www.roblox.com/asset/?id=1033714";
  92.         Totem = "http://www.roblox.com/asset/?id=35624068";
  93.         Ring = "http://www.roblox.com/asset/?id=3270017";
  94.     };
  95.     Sounds = {
  96.         Break="http://www.roblox.com/asset/?id=3264793";
  97.         Berserk ="http://www.roblox.com/asset/?id=2676305";
  98.         Fire1="http://www.roblox.com/asset/?id=2760979";
  99.         Imbue="http://www.roblox.com/asset/?id=2785493";
  100.         Ghost="http://www.roblox.com/asset/?id=3264923";
  101.         Block="rbxasset://sounds\\metal.ogg";
  102.         Boom="http://www.roblox.com/asset/?id=16976189";
  103.         Beep="http://www.roblox.com/asset/?id=15666462";
  104.         Smash="http://www.roblox.com/asset/?id=2801263";
  105.         Punch="http://www.roblox.com/asset/?id=31173820";
  106.         Slash="rbxasset://sounds/swordslash.wav";
  107.         Falcon="http://www.roblox.com/asset/?id=1387390";
  108.         Cast="http://www.roblox.com/asset/?id=2101137";
  109.         Spin="http://www.roblox.com/asset/?id=1369159";
  110.         Abscond="http://www.roblox.com/asset/?id=2767090";
  111.         ElectricalCharge="http://www.roblox.com/asset/?id=2800815";
  112.         Lunge="rbxasset://sounds/swordlunge.wav";
  113.         Unsheath="rbxasset://sounds/unsheath.wav";
  114.     };
  115.     Decals = {
  116.         Shine = "http://www.roblox.com/asset/?id=48965808";
  117.     };
  118.     Mesh = function(P, ID, x, y, z)
  119.         local m = Instance.new("SpecialMesh")
  120.         m.MeshId = ID
  121.         m.Scale = Vector3.new(x, y, z)
  122.         m.Parent = P
  123.         return m
  124.     end;
  125. }
  126.  
  127. function Stick(hit2,hit,tostick)
  128.     local weld=it("Weld")
  129.     weld.Part0=tostick
  130.     weld.Part1=hit2
  131.     local HitPos=hit.Position
  132.     local CJ=cn(HitPos)
  133.     local C0=hit2.CFrame:inverse()*CJ
  134.     local C1=hit.CFrame:inverse()*CJ
  135.     weld.C0=C1
  136.     weld.C1=C0
  137.     weld.Parent=hit2
  138. end
  139.  
  140. function ChildWait(n, p)
  141.     local c = p:findFirstChild(n)
  142.     if c then return c end
  143.     while true do
  144.         c = p.ChildAdded:wait()
  145.         if c.Name == n then return c end
  146.     end
  147. end
  148.  
  149. Torso = ChildWait("Torso", Char)
  150. Head = ChildWait("Head", Char)
  151. Rarm = ChildWait("Right Arm", Char)
  152. Larm = ChildWait("Left Arm", Char)
  153. Rleg = ChildWait("Right Leg", Char)
  154. Lleg = ChildWait("Left Leg", Char)
  155. Neck = ChildWait("Neck", Torso)
  156. Hum = ChildWait("Humanoid", Char)
  157.  
  158. RSH = ChildWait("Right Shoulder", Torso)
  159. LSH = ChildWait("Left Shoulder", Torso)
  160. RH = ChildWait("Right Hip", Torso)
  161. LH = ChildWait("Left Hip", Torso)
  162.  
  163. RSH.Part0 = Torso
  164. LSH.Part0 = Torso
  165. RH.Part0 = Torso
  166. LH.Part0 = Torso
  167.  
  168. pcall(function() Hum.MaxHealth = 1/0 end)
  169. pcall(function() Head.Transparency = 1 NH = Head:Clone() NH.Transparency = 0 NH.Parent = Head Weld(Head,NH) Head.face:Clone().Parent = NH Head.face:Remove() NH.Mesh.Scale = v3(1.15,1.15,1.15) NewHats() end)
  170.  
  171. function NewHats()
  172.     for i,v in pairs(Char:GetChildren()) do
  173.         if v:IsA("Hat") then
  174.             v.Handle.Transparency = 1
  175.             local new = v.Handle:Clone()
  176.             new.Mesh.Scale = new.Mesh.Scale * 1.1
  177.             new.Transparency = 0
  178.             new.Parent = NH
  179.             new.CFrame = v.Handle.CFrame
  180.             Stick(new,NH,Head)
  181.             v:Remove()
  182.         end
  183.     end
  184. end
  185. --RMDX FUNCTIONS--
  186. function ray(Pos, Dir,xxz) local xxz2=c if xxz ~= nil then xxz2=nil end return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),xxz2) end
  187. function GetRegion(p0,p1,f,f2) q(function()
  188. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),c,100) ) do if v.Parent:findFirstChild("Humanoid") and v.Parent.Humanoid.Health > 0 and v.Parent:findFirstChild("Torso") then q(function() f(v.Parent) end) elseif f2 and v.Parent.Parent:findFirstChild("Humanoid") == nil then f2(v) end end
  189. end) end
  190. function FindGround(pos) local ax,ay,az = pos:toEulerAnglesXYZ()
  191. local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,200,0)))
  192. if bhit and bpos then return cn(bpos)*ca(ax,ay,az)  end return nil end
  193. function ft(tablez,item) for i=1,#tablez do if tablez[i] == item then return i end end return nil end
  194. local DBDH={}
  195. SpawnProjectile = function(Pos,Mesh,Col,Dmg,sc)
  196. GlowMesh(false,"Sphere",t,v3(7*sc,1.5*sc,7*sc),Col,Pos,0.1,1,0.05)
  197. local pro = Part(Torso,true,true,0,0,bn("Dark green"),v3(2*sc,7,2*sc),"Plastic","None")
  198. New.Mesh(pro,Mesh,2*sc,15*sc,2*sc)
  199. pro.CFrame = Pos*ca(rd(-25),0,0)*cn(0,-3*sc,0) local cff = pro.CFrame for i=0.1,1,0.15 do pro.CFrame=cff*cn(0,6*sc*i,0)wait() end
  200. local rr = sc*1.5 GetRegion(pro.Position-v3(rr,rr,rr),pro.Position+v3(rr,rr,rr),function(v) v.Humanoid.PlatformStand = true dmg = v.Humanoid.MaxHealth*rn(150,250)/1000 if Debounce then Debounce = false v.Humanoid.Health=v.Humanoid.Health-dmg Show_Damage(v.Torso.Position+v3(rn(-5,5),rn(3,5),rn(-5,5)),"-"..dmg) wait(0.15) v.Humanoid.PlatformStand = false Debounce = true end end) wait(1) for i=1,0,-0.15 do pro.CFrame=cff*cn(0,6*sc*i,0) wait() end pro:Remove() end
  201. --RMDX FUNCTIONS--
  202.  
  203. function GlowMesh(Anchored,MeshId,Root,Size,Color,Offset,TransparencyStart,TransparencyEnd)
  204.     q(function()
  205.         local spi=Part(Char,false,false,TransparencyStart,0,bn(Color),v3(1,1,1),"Plastic","None")
  206.         local spim=it("SpecialMesh",spi)
  207.         if MeshId:lower()=="Sphere" then
  208.             spim.MeshType="Sphere"
  209.         elseif MeshId:lower()=="Block" then
  210.             spim.MeshType="Brick"
  211.         else
  212.             spim.MeshType="FileMesh"
  213.             spim.MeshId=MeshId
  214.         end
  215.         if Anchored then
  216.             local spiw=Weld(spi,Root,spi,cn(0,0,0),ca(0,0,0))
  217.             spiw.C0=spiw.C0*Offset
  218.         else
  219.             spi.Anchored=true
  220.             spi.CFrame=Offset
  221.         end
  222.         for i=TransparencyStart,TransparencyEnd,TransparencyStart do
  223.             spi.Transparency=i
  224.             spim.Scale=Size*(i+0.3)
  225.             wait()
  226.         end
  227.     end)
  228. end
  229.  
  230. function Effect(Part, Start, End, Increment,Bool)
  231.     for i = Start, End, Increment do
  232.         Part.Transparency = i
  233.         wait()
  234.     end
  235.     if Bool then
  236.         Part:Remove()
  237.     end
  238. end
  239.  
  240. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  241.     local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  242.     for i=1,Times do
  243.         local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true  li.Transparency = Transparency or 0.4 li.BrickColor = BrickColor.new(Color)
  244.         li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  245.         local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  246.         if Times == i then
  247.             local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  248.             li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  249.         else
  250.             li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  251.         end
  252.         curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  253.     end
  254. end
  255.  
  256. function GetHum(P)
  257.     for _,v in pairs(P:children()) do
  258.         if v:IsA("Humanoid") then
  259.             if v.Health > 0 then
  260.                 return v
  261.             end
  262.         end
  263.     end
  264. end
  265.  
  266. q = function(f) coroutine.resume(coroutine.create(function() f() end)) end
  267.  
  268. function Trail(Object, Number_Of_Trails, Wait_Time, Color, Thickness, Offset)
  269.         local oldpos=(Object.CFrame *Offset).p
  270.         for i=1,Number_Of_Trails do
  271.                 local obp=(Object.CFrame *Offset).p
  272.                 local mag=(oldpos - obp).magnitude
  273.                 local tr=pa(Object,"trail","Block",0,0,0,false,false,0.5,0.15,Color)
  274.                 tr.Anchored=true
  275.                 tr.CFrame=CFrame.new(oldpos,obp)
  276.                 tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2)
  277.                 local trm=Instance.new("CylinderMesh",tr)
  278.                 trm.Scale=Vector3.new(5*Thickness,mag*5,5*Thickness)
  279.                 cw(function()
  280.                         for i=5*Thickness,0,-5*Thickness/10 do
  281.                                 trm.Scale=Vector3.new(i,mag*5,i)
  282.                                 wait()
  283.                         end
  284.                         tr:Remove''
  285.                 end)
  286.                 tr.CFrame=tr.CFrame *CFrame.Angles(math.rad(90),0,0)
  287.                 oldpos=obp wait(Wait_Time)
  288.         end
  289. end
  290.  
  291. function GetGroup(Pos, Distance, Hit)
  292.     local tab = {}
  293.     for _,v in pairs(workspace:children()) do
  294.         local h = GetHum(v)
  295.         local t = v:findFirstChild("Torso")
  296.         if h and t and v ~= Hit.Parent then
  297.             if (t.Position - Pos).magnitude <= Distance then
  298.                 table.insert(tab, {h, v, (t.Position - Pos).magnitude})
  299.             end
  300.         end
  301.     end
  302.     if Hit then
  303.         local h = GetHum(Hit.Parent)
  304.         if h then
  305.             table.insert(tab, {h, Hit.Parent, 0})
  306.         end
  307.     end
  308.     return tab
  309. end
  310.  
  311. for _,v in pairs(Char:children()) do
  312.     if v.Name == "Suit" then
  313.         v:remove()
  314.     end
  315. end
  316.  
  317. Model = Instance.new("Model")
  318. Model.Name = "Suit"
  319.  
  320. FTorso = Part(Model, false, false, 1, 0, Torso.BrickColor, v3(2, 2, 1))
  321. FW = Weld(Torso, FTorso)
  322.  
  323. RAB = Part(Model, false, false, 1, 0, bn("White"), v3(0.2, 0.2, 0.2))
  324. LAB = Part(Model, false, false, 1, 0, bn("White"), v3(0.2, 0.2, 0.2))
  325. RLB = Part(Model, false, false, 1, 0, bn("White"), v3(0.2, 0.2, 0.2))
  326. LLB = Part(Model, false, false, 1, 0, bn("White"), v3(0.2, 0.2, 0.2))
  327.  
  328. RABW = Weld(Torso, RAB, cn(), cn(-1.5, -0.5, 0))
  329. LABW = Weld(Torso, LAB, cn(), cn(1.5, -0.5, 0))
  330. RLBW = Weld(Torso, RLB, cn(), cn(-0.5, 1, 0))
  331. LLBW = Weld(Torso, LLB, cn(), cn(0.5, 1, 0))
  332.  
  333. RAW = Weld(RAB, nil, cn(), cn(0, 0.5, 0))
  334. LAW = Weld(LAB, nil, cn(), cn(0, 0.5, 0))
  335. RLW = Weld(RLB, nil, cn(), cn(0, 1, 0))
  336. LLW = Weld(LLB, nil, cn(), cn(0, 1, 0))
  337.  
  338.  
  339. Gui=it("ScreenGui",Me.PlayerGui) Gui.Name="TigerGUI" raigcol="Alder" raigcol2="New Yeller" raigcol3="Navy blue" raigcol4="Bright red" --mp
  340. fr=it("Frame",Gui) fr.Size=ud(1,0,1,0) fr.Active=false fr.BackgroundTransparency=1
  341. sttray=it("ImageLabel",fr) sttray.BackgroundColor3=bn("Black").Color
  342. sttray.Size=ud(0.2,0,0.055,0) sttray.BorderSizePixel=0 sttray.Position=ud(0.043,0,0.94,0) sttray.Image=New.Decals.Shine
  343. sttext=it("TextLabel",fr) sttext.BackgroundTransparency=1
  344. sttext.Size=ud(0.2,0,0.055,0) sttext.BorderSizePixel=0 sttext.ZIndex=2 sttext.Position=ud(0.043,0,0.94,0)
  345. sttext.FontSize="Size18" sttext.Font="ArialBold" sttext.TextColor3=bn("White").Color
  346. mptray=it("TextLabel",fr) mptray.BackgroundColor3=bn("Black").Color
  347. mptray.Size=ud(0.18,0,0.08,0) mptray.BorderSizePixel=0 mptray.Position=ud(0.41,0,0.025,0) mptray.Text=""
  348. mptext=it("TextLabel",mptray) mptext.BackgroundTransparency=1 mptext.Size=ud(1,0,0.5,0) mptext.Position = ud(0,0,0.1,0) mptext.TextColor3=bn("White").Color
  349. mptext.FontSize="Size18" mptext.Font="ArialBold" mptext.ZIndex=2 mptext.Text="Mp Power"
  350. mptext2=it("TextLabel",mptray) mptext2.BackgroundTransparency=1 mptext2.Size=ud(1,0,0.5,0) mptext2.Position = ud(0,0,0.4,0) mptext2.TextColor3=bn("White").Color
  351. mptext2.FontSize="Size18" mptext2.Font="ArialBold" mptext2.ZIndex=2 mptext2.Text="/"
  352. mpfill=it("ImageLabel",mptray) mpfill.BackgroundColor3=bn(raigcol).Color mpfill.Image=New.Decals.Shine mpfill.Size=ud(0.97,0,0.90,0) mpfill.Position=ud(0.015,0,0.05,0)
  353.  
  354. q(function()
  355.     while wait() do
  356.         mptext2.Text = tostring(math.floor(MP)).. "/" ..tostring(math.floor(MaxMP))
  357.         sttext.Text=" ArmageddonRod [" ..Anim.. "] "
  358.         mpfill.Size=ud((0.97/MaxMP)*MP,0,0.9,0)
  359.     end
  360. end)
  361. q(function()
  362.     while wait() do
  363.         if MP >= MaxMP then
  364.             local raigcolz=bn(raigcol).Color
  365.             local rr,gg,bb=raigcolz.r,raigcolz.g,raigcolz.b
  366.             for xz=gg,gg-80,-5 do
  367.                 if MP < MaxMP then
  368.                     mpfill.BackgroundColor3=bn(raigcol).Color
  369.                     break
  370.                 end
  371.                 mpfill.BackgroundColor3=c3(rr,xz,bb) wait()
  372.             end
  373.             for xz=gg-80,gg,5 do
  374.                 if MP < MaxMP then
  375.                     mpfill.BackgroundColor3=bn(raigcol).Color
  376.                     break
  377.                 end
  378.                 mpfill.BackgroundColor3=c3(rr,xz,bb) wait()
  379.             end
  380.         end
  381.     end
  382. end)
  383.  
  384. DamageFunc = function(Part,Dmg)
  385.     Part.Touched:connect(function(Hit)
  386.         local h = GetHum(Hit.Parent)
  387.         if h and Debounce and h.Parent.Name ~= Me.Name then
  388.             Debounce = false
  389.             local Dmg = h.MaxHealth*Dmg
  390.             h.Health = h.Health - Dmg
  391.             Show_Damage(h.Parent:FindFirstChild("Torso",true).Position*v3(rn(-5,5),5,rn(-5,5),"-"..Dmg))
  392.             wait(1)
  393.             Debounce = true
  394.         end
  395.     end)
  396. end
  397.  
  398. Weapon = it("Model")
  399. Weapon.Name = "Staff"
  400.  
  401. HB = Part(Weapon, false, false, 1, 0, bn("White"), v3(0.2, 0.2, 0.2))
  402. HW = Weld(Rarm, HB, cn(0, -0.7, 0), ca(0, rd(90), rd(90)))
  403. Han = Part(Weapon,false,false,0,0,bn("Black"),v3(0.4,5,0.4),"Plastic","Cylinder")
  404. HaW = Weld(FTorso,Han,cn(0,0,0.5),ca(0,0,rd(45),0,0))
  405. for i=0,5,0.5 do
  406.     lul = Part(Weapon,false,false,0,0,bn("Bright red"),v3(0.41,0.05,0.41),"Plastic","Cylinder")
  407.     lul.Mesh.Scale = v3(1,0.25,1)
  408.     Weld(Han,lul,cn(0,-2.5+i,0))
  409. end
  410. H1 = Part(Weapon,false,false,0,0.2,bn("White"),v3(0.5,0.5,0.5))
  411. New.Mesh(H1,"http://www.roblox.com/asset/?id=9756362",0.75,0.55,0.75)
  412. Weld(Han,H1,cn(0,2.5,0))
  413. H2 = Part(Weapon,false,false,0,0.2,bn("Really black"),v3(0.5,0.5,0.5))
  414. New.Mesh(H2,"http://www.roblox.com/asset/?id=9756362",0.85,0.45,0.85)
  415. Weld(Han,H2,cn(0,2.5,0))
  416. Spike = Part(Weapon,false,false,0,0,bn("Really black"),v3(1,1,1))
  417. spm = New.Mesh(Spike,"http://www.roblox.com/asset/?id=36869983",1,1,1)
  418. spw = Weld(Han,Spike,cn(0,-2.5,0),ca(rd(180),rd(180),0))
  419. S1 = Part(Weapon,false,false,0,0,bn("Bright red"),v3(1,1,1))
  420. sm1 = New.Mesh(S1,"http://www.roblox.com/asset/?id=9982590",0.1,0.1,0.1)
  421. sw1 = Weld(Spike,S1)
  422. S2 = Part(Weapon,false,false,0,0,bn("Bright red"),v3(1,1,1))
  423. sm2 = New.Mesh(S2,"http://www.roblox.com/asset/?id=9982590",0.1,0.1,0.1)
  424. sw2 = Weld(Spike,S2)
  425. LASpike = Part(Weapon,false,false,0,0,bn("Dark green"),v3(1,5,1))
  426. New.Mesh(LASpike,New.Meshes.Spike,0.5,2,0.5)
  427. Weld(Larm,LASpike,cn(0,-1.5,0),ca(0,0,rd(180)))
  428. q(function()
  429.     for i=1,1/0,5 do
  430.         sw1.C0 = ca(rd(i),rd(i),0)*cn(0,0,1)
  431.         sw2.C0 = ca(rd(i),rd(i),0)*cn(0,0,-1)
  432.         wait()
  433.     end
  434. end)
  435.  
  436. function Show_Damage(P, D)
  437.     local mo = it("Model")
  438.     mo.Name = D
  439.     local p = Part(mo, true, false, 0, 0, bn("Bright red"), v3(1, 0.1, 1),"Plastic","Block")
  440.     p.Name = "Head"
  441.     local h = it("Humanoid")
  442.     h.Health = 0
  443.     h.MaxHealth = 0
  444.     h.Name = "asd"
  445.     h.Parent = mo
  446.     mo.Parent = workspace
  447.     p.CFrame = cn(P)
  448.     q(function()
  449.         wait(0.5)
  450.         mo:remove()
  451.     end)
  452. end
  453.  
  454. Weapon.Parent = Model
  455. Model.Parent = Char
  456.  
  457. pcall(function() Me.Backpack["Armageddon Rod"]:Remove() bgg:Remove() end)
  458.  
  459. if script.Parent.className ~= "HopperBin" then
  460.     h = it("HopperBin", Me.Backpack)
  461.     h.Name = "Armageddon Rod"
  462.     script.Parent = h
  463. end
  464.  
  465. bin = script.Parent
  466.  
  467. function FT(T)
  468.     RSH.Part0 = T
  469.     LSH.Part0 = T
  470.     RH.Part0 = T
  471.     LH.Part0 = T
  472.     RABW.Part0 = T
  473.     LABW.Part0 = T
  474.     LLBW.Part0 = T
  475.     RLBW.Part0 = T
  476.     if T == Torso then
  477.         FTorso.Transparency = 1
  478.     else
  479.         Torso.Transparency = 1
  480.     end
  481.     T.Transparency = 0
  482. end
  483.  
  484. function SelectAnim()
  485.     RAW.Part1 = Rarm
  486.     LAW.Part1 = Larm
  487.     if Able then
  488.         for i = 0,40,5 do
  489.             RAW.C0 = ca(rd(-i),0,rd(-i))
  490.             wait()
  491.         end
  492.         HaW.Part1 = nil
  493.         HW.C0 = ca(0,rd(-90),0)*cn(0,-1,0)
  494.         HW.Part1 = Han
  495.         for i = 40,0,-5 do
  496.             RAW.C0 = ca(rd(-i),0,rd(-i))
  497.             wait()
  498.         end    
  499.         for i = 0,110,8 do
  500.             RAW.C0 = ca(rd(i/5),rd(i/5),rd(i/5))
  501.             LAW.C0 = ca(rd(-i/5),rd(i/2.5),rd(-i/5))
  502.             wait()
  503.         end
  504.     end
  505. end
  506.  
  507. function DeselAnim()
  508.     RAW.Part1 = Rarm
  509.     LAW.Part1 = Larm
  510.     if Able then
  511.     for i = 110,0,-8 do
  512.             RAW.C0 = ca(rd(i/5),rd(i/5),rd(i/5))
  513.             LAW.C0 = ca(rd(-i/5),rd(i/2.5),rd(-i/5))
  514.             wait()
  515.         end
  516.         for i = 0,40,5 do
  517.             RAW.C0 = ca(rd(-i),0,rd(-i))
  518.             wait()
  519.         end    
  520.         HaW.Part1 = Han
  521.         HW.Part1 = nil
  522.         for i = 40,0,-5 do
  523.             RAW.C0 = ca(rd(-i),0,rd(-i))
  524.             wait()
  525.         end
  526.         RAW.Part1 = nil
  527.         LAW.Part1 = nil
  528.         RLW.Part1 = nil
  529.         LLW.Part1 = nil
  530.         FT(Torso)
  531.     end
  532. end
  533.  
  534.  
  535. bgg = it("BodyGyro",Torso)
  536. bgg.D = 50
  537.  
  538. function onSelected(mouse)
  539.     SelectAnim()
  540.     Selected = true
  541.     q(function()
  542.         while wait() do
  543.             if Aim then
  544.                 bgg.maxTorque = v3(1/0,1/0,1/0)
  545.                 bgg.cframe = cn(Torso.Position,v3(mouse.Hit.p.x,Torso.Position.y,mouse.Hit.p.z))
  546.             else
  547.                 bgg.maxTorque = v3(0,0,0)
  548.             end
  549.         end
  550.     end)
  551.     mouse.Button1Down:connect(function()
  552.         if not Attacking and Able and Anim == "None" then
  553.             Able = false Attacking = true FT(FTorso) RAW.Part1 = Rarm LAW.Part1 = Larm Anim = "Lightning" Aim = true
  554.             q(function()
  555.                 for i = 0, 35, 5 do
  556.                     FW.C0 = ca(0,rd(i),0)
  557.                     wait()
  558.                 end
  559.             end)
  560.             for i = 0, 90, 10 do
  561.                 RAW.C0 = ca(rd(110/5+i),rd(110/5),rd(110/5))
  562.                 wait()
  563.             end
  564.             q(function()
  565.                 for i=16,10,-0.5 do
  566.                     Hum.WalkSpeed = i
  567.                     wait(0.1)
  568.                 end
  569.             end)
  570.             Hold = true
  571.             while Hold == true do
  572.                 if (Torso.Position - mouse.Hit.p).magnitude < 500 and (Torso.Position - mouse.Hit.p).magnitude > 15 and MP>=1 then
  573.                     MP = MP - 1
  574.                     Lightning(Spike.Position,mouse.Hit.p,rn(5,10),rn(-2.5,2.5),"Bright yellow",0.05,0.35)
  575.                     q(function()
  576.                         for i,v in pairs(game.Players:GetChildren()) do
  577.                             dmg = v.Character:FindFirstChild("Humanoid").MaxHealth*rn(50,150)/1000
  578.                             if (v.Character:FindFirstChild("Torso").Position-mouse.Hit.p).magnitude < 5 and not Hurt and v.Character.Name ~= Me.Name then
  579.                                 Hurt = true
  580.                                 v.Character.Humanoid.Health = v.Character.Humanoid.Health - dmg
  581.                                 Show_Damage(mouse.Hit.p+v3(rn(-5,5),5,rn(-5,5)),"-"..dmg)
  582.                                 wait(0.5)
  583.                                 Hurt = false
  584.                             end
  585.                         end
  586.                     end)
  587.                 end
  588.                 wait()
  589.             end
  590.         end
  591.     end)
  592.     mouse.Button1Up:connect(function()
  593.         Anim = "None" Attacking = false Able = true Aim = false Hold = false
  594.         Hum.WalkSpeed = 16
  595.         RAW.Part1 = Rarm LAW.Part1 = Larm
  596.         q(function()
  597.             for i = 35, 0, -5 do
  598.                 FW.C0 = ca(0,rd(i),0)
  599.                 wait()
  600.             end
  601.         end)
  602.         q(function()
  603.             for i=10,16,0.5 do
  604.                 Hum.WalkSpeed = i
  605.                 wait(0.1)
  606.             end
  607.         end)
  608.         for i = 90, 0, -10 do
  609.             RAW.C0 = ca(rd(110/5+i),rd(110/5),rd(110/5))
  610.             wait()
  611.         end
  612.         FT(Torso)
  613.     end)
  614.     mouse.KeyDown:connect(function(key)
  615.         if key == "q" and not Attacking and Able and Anim == "None" and MP>=75 then
  616.             MP = MP - 75
  617.             Anim = "SpikeShield" Able = false Attacking = true FT(FTorso)
  618.             for    i=0,23,1 do
  619.                 Neck.C0 = Neck0*ca(0,0,rd(-i*2))
  620.                 FW.C0 = ca(0,rd(i*2),0)
  621.                 RAW.C0 = ca(rd(110/5+i*4),rd(-110/5+i),rd(110/5+i))
  622.                 wait()
  623.             end
  624.             for i=1,25 do
  625.                 local sp = Part(Model,true,true,0,0,bn("Dark green"),v3(2.5,15,2.5),"Plastic","None")
  626.                 New.Mesh(sp,New.Meshes.Spike,1.75,20,1.75)
  627.                 sp.CFrame = Torso.CFrame*ca(rd(10),rd(15*i),0)*cn(0,-10,10)
  628.                 q(function()
  629.                     for i=1,10,0.5 do
  630.                         sp.CFrame=cn(sp.CFrame.x,-5+i,sp.CFrame.z)
  631.                         wait()
  632.                     end
  633.                     wait(5)
  634.                     for i=10,0,-0.5 do
  635.                         sp.CFrame=cn(sp.CFrame.x,-5+i,sp.CFrame.z)
  636.                         wait()
  637.                     end
  638.                     sp:Remove()
  639.                 end)
  640.             end
  641.             wait(1)
  642.             for    i=23,0,-2 do
  643.                 Neck.C0 = Neck0*ca(0,0,rd(-i*2))
  644.                 FW.C0 = ca(0,rd(i*2),0)
  645.                 RAW.C0 = ca(rd(110/5+i*4),rd(-110/5+i),rd(110/5+i))
  646.                 wait()
  647.             end
  648.             Anim = "None" FT(Torso) Able = true Attacking = false
  649.         end
  650.         if key == "z" and Able and Anim == "None" and MP~=MaxMP then
  651.             Anim = "Charge" Charging = true Able = false FT(FTorso)
  652.             q(function()
  653.                 for i = 0, 35, 5 do
  654.                     FW.C0 = ca(0,rd(i),0)
  655.                     wait()
  656.                 end
  657.             end)
  658.             for i = 0, 90, 12 do
  659.                 RAW.C0 = ca(rd(110/5+i),rd(110/5),rd(110/5))
  660.                 wait()
  661.             end
  662.             cp1=Part(Model,false,false,0.45,0,bn("Bright red"),v3(1,1,1),"Plastic","Sphere")New.Mesh(cp1,New.Meshes.Crown,8,3,8) cp1w = Weld(Torso,cp1,cn(0,-2,0))
  663.             cp2=Part(Model,false,false,0.35,0,bn("Bright red"),v3(1,1,1),"Plastic","Sphere")New.Mesh(cp2,New.Meshes.Crown,9,4,9) cp2w = Weld(Torso,cp2,cn(0,-2,0))
  664.             cp3=Part(Model,false,false,0.25,0,bn("Bright red"),v3(1,1,1),"Plastic","Sphere")New.Mesh(cp3,New.Meshes.Crown,10,5,10) cp3w = Weld(Torso,cp3,cn(0,-2,0))
  665.             q(function()
  666.                 while Charging == true do
  667.                     cp1w.C0 = cp1w.C0 * ca(0,rd(20),0)
  668.                     cp2w.C0 = cp2w.C0 * ca(0,rd(20),0)
  669.                     cp3w.C0 = cp3w.C0 * ca(0,rd(20),0)
  670.                     if key ~= "z" or MP>=MaxMP then
  671.                         q(function()
  672.                             Effect(cp1,0.45,1.5,0.05,true)
  673.                         end)
  674.                         q(function()
  675.                             Effect(cp2,0.35,1.5,0.05,true)
  676.                         end)
  677.                         q(function()
  678.                             Effect(cp3,0.25,1.5,0.05,true)
  679.                         end)
  680.                         q(function()
  681.                             for i = 35, 0, -5 do
  682.                                 FW.C0 = ca(0,rd(i),0)
  683.                                 wait()
  684.                             end
  685.                         end)
  686.                         for i = 90, 0, -12 do
  687.                             RAW.C0 = ca(rd(110/5+i),rd(110/5),rd(110/5))
  688.                             wait()
  689.                         end
  690.                         return
  691.                     end
  692.                     AddMP(3)
  693.                     wait()
  694.                 end
  695.             end)
  696.             while Charging == true do
  697.                 if key ~= "z" or MP>=MaxMP then return end
  698.                 for i=0.1,0.5,0.01 do
  699.                     sm1.Scale = v3(i,i,i)
  700.                     sm2.Scale = v3(i,i,i)
  701.                     wait()
  702.                 end
  703.                 for i=0.5,0.1,-0.01 do
  704.                     sm1.Scale = v3(i,i,i)
  705.                     sm2.Scale = v3(i,i,i)
  706.                     wait()
  707.                 end
  708.                 wait()
  709.             end
  710.         end
  711.         if key == "e" and Anim == "None" and MP>=150 then
  712.             Anim = "Thorn Rise" Aim = true LAW.Part1 = Larm RAW.Part1 = Rarm FT(FTorso)
  713.             MP=MP-150
  714.             for i=0,90,10 do
  715.                 FW.C0 = ca(0,rd(-i),0)
  716.                 LAW.C0 = ca(0,0,rd(-i)*1.5)*cn(0,-0.5,0)
  717.                 Neck.C0 = Neck0*ca(rd(-i/2.5),0,rd(1/2))
  718.                 wait()
  719.             end
  720.             for i=1,8 do q(function() SpawnProjectile(FindGround(Torso.CFrame*cn(0,-2.75,-0.5+(-i*8)-i)),New.Meshes.Spike,"Bright red",rn(100,200)/1000,1+(i/10)) end) wait(0.06) end
  721.             for i=90,0,-10 do
  722.                 FW.C0 = ca(0,rd(-i),0)
  723.                 LAW.C0 = ca(0,0,rd(-i)*1.5)
  724.                 Neck.C0 = Neck0 * ca(rd(-i/2.5),0,rd(i/2))
  725.                 wait()
  726.             end
  727.             for i=0,110,5 do
  728.                 LAW.C0 = ca(rd(-i/5),rd(i/2.5),rd(-i/5))
  729.                 wait()
  730.             end
  731.             Anim = "None" Aim = false RAW.Part1 = Rarm LAW.Part1 = Larm FT(Torso)
  732.         end
  733.     end)
  734.     mouse.KeyUp:connect(function(key)
  735.         if key == "z" and Anim == "Charge" then
  736.             q(function()
  737.                 Anim = "None" Able = true Charging = false
  738.                 Effect(cp1,0.45,1.5,0.05,true)
  739.                 Effect(cp2,0.45,1.5,0.05,true)
  740.                 Effect(cp3,0.45,1.5,0.05,true)
  741.             end)
  742.             q(function()
  743.                 for i = 35, 0, -5 do
  744.                     FW.C0 = ca(0,rd(i),0)
  745.                     wait()
  746.                 end
  747.             end)
  748.             for i = 90, 0, -12 do
  749.                 RAW.C0 = ca(rd(110/5+i),rd(110/5),rd(110/5))
  750.                 wait()
  751.             end
  752.         end
  753.     end)
  754. end
  755.  
  756. function onDeselected(mouse)
  757.     pcall(function() Torso["bgg"]:Remove() end)
  758.     Aim = false
  759.     Selected = false
  760.     DeselAnim()
  761. end
  762.  
  763. bin.Selected:connect(onSelected)
  764. bin.Deselected:connect(onDeselected)
Add Comment
Please, Sign In to add comment