memberhero

magic rod leaked

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