Advertisement
memberhero

Hammer

Apr 22nd, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.19 KB | None | 0 0
  1. --[[
  2. Enigma Class Made by Fenrier.
  3. ]]
  4. Player = game:GetService("Players").LocalPlayer
  5. Character = Player.Character
  6. PlayerGui = Player.PlayerGui
  7. Backpack = Player.Backpack
  8. Torso = Character.Torso
  9. Head = Character.Head
  10. Humanoid = Character.Humanoid
  11. LeftArm = Character["Left Arm"]
  12. LeftLeg = Character["Left Leg"]
  13. RightArm = Character["Right Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LS = Torso["Left Shoulder"]
  16. LH = Torso["Left Hip"]
  17. RS = Torso["Right Shoulder"]
  18. RH = Torso["Right Hip"]
  19. Neck = Torso.Neck
  20. it=Instance.new
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack = false
  35. attackdebounce = false
  36. MMouse=nil
  37. combo=0
  38. mana=0
  39. heat=0
  40. heatcooldown=false
  41. --player
  42. player = nil
  43. --save shoulders
  44. RSH, LSH = nil, nil
  45. --welds
  46. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  47. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  48. LH=Torso["Left Hip"]
  49. RH=Torso["Right Hip"]
  50. cam=workspace.CurrentCamera
  51. Targetting=false
  52. RocketTarget=nil
  53.  
  54. ArtificialHB = Instance.new("BindableEvent", script)
  55. ArtificialHB.Name = "Heartbeat"
  56. script:WaitForChild("Heartbeat")
  57. frame = 1 / 30
  58. tf = 0
  59. allowframeloss = true
  60. tossremainder = false
  61. lastframe = tick()
  62. script.Heartbeat:Fire()
  63. game:GetService("RunService").Heartbeat:connect(function(s, p)
  64.  
  65. tf = tf + s
  66. if frame <= tf then
  67. if allowframeloss then
  68. script.Heartbeat:Fire()
  69. lastframe = tick()
  70. else
  71. for i = 1, math.floor(tf / frame) do
  72. script.Heartbeat:Fire()
  73. end
  74. lastframe = tick()
  75. end
  76. if tossremainder then
  77. tf = 0
  78. else
  79. tf = tf - frame * math.floor(tf / frame)
  80. end
  81. end
  82. end
  83. )
  84. swait = function(num)
  85.  
  86. if num == 0 or num == nil then
  87. ArtificialHB.Event:wait()
  88. else
  89. for i = 0, num do
  90. ArtificialHB.Event:wait()
  91. end
  92. end
  93. end
  94.  
  95.  
  96. if Character:findFirstChild("Lock-on Hammer",true) ~= nil then
  97. Character:findFirstChild("Lock-on Hammer",true).Parent = nil
  98. end
  99. if Character:findFirstChild("Locking Gauntlet",true) ~= nil then
  100. Character:findFirstChild("Locking Gauntlet",true).Parent = nil
  101. end
  102. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  103. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  104. end
  105.  
  106.  
  107. function NoOutline(Part)
  108. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  109. end
  110.  
  111. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  112. local fp = it("Part")
  113. fp.formFactor = formfactor
  114. fp.Parent = parent
  115. fp.Reflectance = reflectance
  116. fp.Transparency = transparency
  117. fp.CanCollide = false
  118. fp.Locked=true
  119. fp.BrickColor = brickcolor
  120. fp.Name = name
  121. fp.Size = size
  122. fp.Position = Torso.Position
  123. NoOutline(fp)
  124. fp.Material="SmoothPlastic"
  125. fp:BreakJoints()
  126. return fp
  127. end
  128.  
  129. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  130. local mesh = it(Mesh)
  131. mesh.Parent = part
  132. if Mesh=="SpecialMesh" then
  133. mesh.MeshType = meshtype
  134. mesh.MeshId = meshid
  135. end
  136. mesh.Offset=offset
  137. mesh.Scale=scale
  138. return mesh
  139. end
  140.  
  141. function weld(parent,part0,part1,c0)
  142. local weld = it("Weld")
  143. weld.Parent = parent
  144. weld.Part0 = part0
  145. weld.Part1 = part1
  146. weld.C0 = c0
  147. return weld
  148. end
  149.  
  150. local fengui = it("GuiMain")
  151. fengui.Parent = Player.PlayerGui
  152. fengui.Name = "WeaponGUI"
  153. local fenframemana = it("Frame")
  154. fenframemana.Parent = fengui
  155. fenframemana.BackgroundColor3 = Color3.new(255,255,255)
  156. fenframemana.BackgroundTransparency = 1
  157. fenframemana.BorderColor3 = Color3.new(17,17,17)
  158. fenframemana.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  159. fenframemana.Position=UDim2.new(0.4,0,0.1,0)
  160. local fenbarmana1 = it("TextLabel")
  161. fenbarmana1.Parent = fenframemana
  162. fenbarmana1.Text = " "
  163. fenbarmana1.BackgroundTransparency = 0
  164. fenbarmana1.BackgroundColor3 = Color3.new(0,0,0)
  165. fenbarmana1.SizeConstraint = "RelativeXY"
  166. fenbarmana1.TextXAlignment = "Center"
  167. fenbarmana1.TextYAlignment = "Center"
  168. fenbarmana1.Position = UDim2.new(0,0,0,0)
  169. fenbarmana1.Size = UDim2.new(4,0,0.2,0)
  170. local fenbarmana2 = it("TextLabel")
  171. fenbarmana2.Parent = fenframemana
  172. fenbarmana2.Text = " "
  173. fenbarmana2.BackgroundTransparency = 0
  174. fenbarmana2.BackgroundColor3 = Color3.new(1,0.5,0.5)
  175. fenbarmana2.SizeConstraint = "RelativeXY"
  176. fenbarmana2.TextXAlignment = "Center"
  177. fenbarmana2.TextYAlignment = "Center"
  178. fenbarmana2.Position = UDim2.new(0,0,0,0)
  179. fenbarmana2.Size = UDim2.new(mana/100,0,0.2,0)
  180. local fenbarmana4 = it("TextLabel")
  181. fenbarmana4.Parent = fenframemana
  182. fenbarmana4.Text = "Mana("..mana..")"
  183. fenbarmana4.BackgroundTransparency = 1
  184. fenbarmana4.BackgroundColor3 = Color3.new(0,0,0)
  185. fenbarmana4.SizeConstraint = "RelativeXY"
  186. fenbarmana4.TextXAlignment = "Center"
  187. fenbarmana4.TextYAlignment = "Center"
  188. fenbarmana4.Position = UDim2.new(0,0,-0.3,0)
  189. fenbarmana4.Size = UDim2.new(4,0,0.2,0)
  190. fenbarmana4.FontSize = "Size9"
  191. fenbarmana4.TextStrokeTransparency = 0
  192. fenbarmana4.TextColor = BrickColor.new("White")
  193. local fenframeheat = it("Frame")
  194. fenframeheat.Parent = fengui
  195. fenframeheat.BackgroundColor3 = Color3.new(255,255,255)
  196. fenframeheat.BackgroundTransparency = 1
  197. fenframeheat.BorderColor3 = Color3.new(17,17,17)
  198. fenframeheat.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  199. fenframeheat.Position=UDim2.new(0.4,0,0.2,0)
  200. local fenbarheat1 = it("TextLabel")
  201. fenbarheat1.Parent = fenframeheat
  202. fenbarheat1.Text = " "
  203. fenbarheat1.BackgroundTransparency = 0
  204. fenbarheat1.BackgroundColor3 = Color3.new(0,0,0)
  205. fenbarheat1.SizeConstraint = "RelativeXY"
  206. fenbarheat1.TextXAlignment = "Center"
  207. fenbarheat1.TextYAlignment = "Center"
  208. fenbarheat1.Position = UDim2.new(0,0,0,0)
  209. fenbarheat1.Size = UDim2.new(4,0,0.2,0)
  210. local fenbarheat2 = it("TextLabel")
  211. fenbarheat2.Parent = fenframeheat
  212. fenbarheat2.Text = " "
  213. fenbarheat2.BackgroundTransparency = 0
  214. fenbarheat2.BackgroundColor3 = Color3.new(1,0,0)
  215. fenbarheat2.SizeConstraint = "RelativeXY"
  216. fenbarheat2.TextXAlignment = "Center"
  217. fenbarheat2.TextYAlignment = "Center"
  218. fenbarheat2.Position = UDim2.new(0,0,0,0)
  219. fenbarheat2.Size = UDim2.new(heat/100,0,0.2,0)
  220. local fenbarheat4 = it("TextLabel")
  221. fenbarheat4.Parent = fenframeheat
  222. fenbarheat4.Text = "Heat("..heat..")"
  223. fenbarheat4.BackgroundTransparency = 1
  224. fenbarheat4.BackgroundColor3 = Color3.new(0,0,0)
  225. fenbarheat4.SizeConstraint = "RelativeXY"
  226. fenbarheat4.TextXAlignment = "Center"
  227. fenbarheat4.TextYAlignment = "Center"
  228. fenbarheat4.Position = UDim2.new(0,0,-0.3,0)
  229. fenbarheat4.Size = UDim2.new(4,0,0.2,0)
  230. fenbarheat4.FontSize = "Size9"
  231. fenbarheat4.TextStrokeTransparency = 0
  232. fenbarheat4.TextColor = BrickColor.new("White")
  233. heatnum=0
  234. mananum=0
  235. coroutine.resume(coroutine.create(function()
  236. overheatnum=0
  237. heatcol=false
  238. while true do
  239. swait()
  240. fenbarheat2:TweenSize(UDim2.new(heat/100,0,0.2,0),nil,1,0.4,true)
  241. if heat>=300 and heatcooldown==false then
  242. overheatnum=overheatnum+1
  243. if overheatnum==8 then
  244. overheatnum=0
  245. if heatcol==false then
  246. heatcol=true
  247. fenbarheat4.TextColor = Color1
  248. else
  249. heatcol=false
  250. fenbarheat4.TextColor = BrickColor.new("White")
  251. end
  252. end
  253. fenbarheat4.Text = "WARNING! ("..heat..")"
  254. elseif heatcooldown==false then
  255. fenbarheat4.TextColor = BrickColor.new("White")
  256. fenbarheat4.Text = "Heat ("..heat..")"
  257. end
  258. fenbarmana2:TweenSize(UDim2.new(mana/100,0,0.2,0),nil,1,0.4,true)
  259. fenbarmana4.Text = "Mana ("..mana..")"
  260. if heat>=400 then
  261. fenbarheat4.TextColor = BrickColor.new("Bright blue")
  262. fenbarheat4.Text = "Cooling down"
  263. heatcooldown=true
  264. coroutine.resume(coroutine.create(function()
  265. while heat>0 do
  266. wait()
  267. end
  268. heatcooldown=false
  269. end))
  270. heat=400
  271. end
  272. if heat<=0 then
  273. heat=0
  274. end
  275. if mana>=400 then
  276. mana=400
  277. end
  278. if mana<=0 then
  279. mana=0
  280. end
  281. if heatnum>=10 then
  282. if heat>0 then
  283. heat=heat-1
  284. --heat=0
  285. end
  286. heatnum=0
  287. end
  288. if mananum>=40 then
  289. if mana<400 then
  290. mana=mana+1
  291. --mana=400
  292. end
  293. mananum=0
  294. end
  295. heatnum=heatnum+1
  296. mananum=mananum+1
  297. --heatnum=heatnum+20
  298. --mananum=mananum+20
  299. end
  300. end))
  301.  
  302. local modelzorz=Instance.new("Model")
  303. modelzorz.Parent=Character
  304. modelzorz.Name="Lock-on Hammer"
  305.  
  306. local handle=part(3,modelzorz,0,1,BrickColor.new("Black"),"Handle",vt(0.5,0.5,0.5))
  307. local prt1=part(1,modelzorz,0,0,Torso.BrickColor,"Part1",vt(1,1,1))
  308. local prt2=part(1,modelzorz,0,0,BrickColor.new("Dark orange"),"Part2",vt(1,1,1))
  309. local prt9=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part9",vt(1,1,1))
  310. local prt10=part(1,modelzorz,0,0,BrickColor.new("Bright orange"),"Part10",vt(1,1,1))
  311. local prt12=part(1,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part12",vt(1,1,1))
  312.  
  313.  
  314. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,3,0.4))
  315. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.3,4,0.3))
  316. local msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(0.8,0.5,0.5))
  317. local msh10=mesh("CylinderMesh",prt10,"","",vt(0,0,0),vt(1,2.3,1))
  318. local msh12=mesh("CylinderMesh",prt12,"","",vt(0,0,0),vt(1.8,2.2,1.8))
  319.  
  320.  
  321. local handlewld=weld(handle,handle,Torso,euler(0,1.57,-1.7)*cf(0,0,-0.6))
  322. local wld1=weld(prt1,prt1,handle,euler(0,0,0)*cf(0,0,0))
  323. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  324. local wld9=weld(prt9,prt9,prt2,euler(0,0,0)*cf(0,-2.5,0))
  325. local wld10=weld(prt10,prt10,prt9,euler(1.57,0,0)*cf(0,-0.6,0))
  326. local wld12=weld(prt12,prt12,prt10,euler(0,0,0)*cf(0,0,0))
  327.  
  328. if Character.Name ~= "ipupeh213" then
  329.  
  330. Color1 = BrickColor.new("Bright red")
  331. Color2 = BrickColor.new("Bright yellow")
  332. Color3E = BrickColor.new("Bright orange")
  333. Color4 = BrickColor.new("Really red")
  334.  
  335. local prt3=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part3",vt(1,1,1))
  336. local prt4=part(1,modelzorz,0,0,BrickColor.new("Dark orange"),"Part4",vt(1,1,1))
  337. local prt5=part(1,modelzorz,0,0,BrickColor.new("Dark orange"),"Part5",vt(1,1,1))
  338. local prt6=part(1,modelzorz,0,0,BrickColor.new("Dark orange"),"Part6",vt(1,1,1))
  339. local prt7=part(1,modelzorz,0,0,BrickColor.new("Dark orange"),"Part7",vt(1,1,1))
  340. local prt8=part(1,modelzorz,0,0,BrickColor.new("Dark orange"),"Part8",vt(1,1,1))
  341. local prt11=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part11",vt(1,1,1))
  342. local prt13=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part13",vt(1,1,1))
  343. local prt14=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part14",vt(1,1,1))
  344. local prt15=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part15",vt(1,1,1))
  345. local prt16=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part16",vt(1,1,1))
  346. local prt17=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part17",vt(1,1,1))
  347. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(0.31,0.7,0.6))
  348. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.3,0.6,0.4))
  349. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.31,0.6,0.4))
  350. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.3,0.6,0.4))
  351. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(0.31,0.6,0.4))
  352. local msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(0.3,0.5,0.4))
  353. local msh11=mesh("CylinderMesh",prt11,"","",vt(0,0,0),vt(1.2,2.25,1.2))
  354. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(0.1,2.225,1.7))
  355. local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(1.7,2.225,0.1))
  356. local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(1.9,2.19,0.3))
  357. local msh16=mesh("CylinderMesh",prt16,"","",vt(0,0,0),vt(1.81,0.5,1.81))
  358. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(1.9,2.19,0.3))
  359. local wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,2.5,0))
  360. local wld4=weld(prt4,prt4,prt3,euler(-0.5,0,0)*cf(0,0.5,0.3))
  361. local wld5=weld(prt5,prt5,prt4,euler(0.5,0,0)*cf(0,0.5,-0.125))
  362. local wld6=weld(prt6,prt6,prt3,euler(0.5,0,0)*cf(0,0.5,-0.3))
  363. local wld7=weld(prt7,prt7,prt6,euler(-0.5,0,0)*cf(0,0.5,0.125))
  364. local wld8=weld(prt8,prt8,prt7,euler(3.14,0,0)*cf(0,0.65,0))
  365. local wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,0,0))
  366. local wld13=weld(prt13,prt13,prt10,euler(0,0,0)*cf(0,0,0))
  367. local wld14=weld(prt14,prt14,prt10,euler(0,0,0)*cf(0,0,0))
  368. local wld15=weld(prt15,prt15,prt10,euler(0,0.785,0)*cf(0,0,0))
  369. local wld16=weld(prt16,prt16,prt10,euler(0,0,0)*cf(0,0,0))
  370. local wld17=weld(prt17,prt17,prt10,euler(0,-0.785,0)*cf(0,0,0))
  371.  
  372. else
  373.  
  374. Color1 = BrickColor.new("Dark stone grey")
  375. Color2 = BrickColor.new("Dark stone grey")
  376. Color3E = BrickColor.new("Dark stone grey")
  377. Color4 = BrickColor.new("Dark stone grey")
  378.  
  379. potin = game.Lighting["Qeler' Hammer"].Hammer:Clone()
  380. potin.Parent = modelzorz
  381. local handlewld2=weld(prt1,potin.Handle,prt1,euler(0,0,0)*cf(0,-1.41,0))
  382. prt1.Transparency = 1
  383. prt2.Transparency = 1
  384. prt9.Transparency = 1
  385. prt10.Transparency = 1
  386. prt12.Transparency = 1
  387. end
  388.  
  389. local modelzorz2=Instance.new("Model")
  390. modelzorz2.Parent=Character
  391. modelzorz2.Name="Locking Gauntlet"
  392.  
  393. local lprt1=part(1,modelzorz2,0,0,Torso.BrickColor,"Part1",vt(1,1,1))
  394. local lprt2=part(1,modelzorz2,0,0,BrickColor.new("Medium stone grey"),"Part2",vt(1,1,1))
  395.  
  396. local lmsh1=mesh("BlockMesh",lprt1,"","",vt(0,0,0),vt(1.01,0.4,1.01))
  397. local lmsh2=mesh("BlockMesh",lprt2,"","",vt(0,0,0),vt(0.2,0.8,0.75))
  398.  
  399.  
  400. local lwld1=weld(lprt1,lprt1,LeftArm,euler(0,0,0)*cf(0,0.5,0))
  401. local lwld2=weld(lprt2,lprt2,lprt1,euler(0,0,0)*cf(0.5,0,0))
  402.  
  403. if Character.Name ~= "ipupeh213" then
  404.  
  405. local lprt3=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Part3",vt(1,1,1))
  406. local lprt4=part(1,modelzorz2,0,0,BrickColor.new("Bright orange"),"Part4",vt(1,1,1))
  407. local lprt5=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Part5",vt(1,1,1))
  408. local lprt6=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Part6",vt(1,1,1))
  409. local lprt7=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Part7",vt(1,1,1))
  410. local lprt8=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Part8",vt(1,1,1))
  411.  
  412. local lmsh3=mesh("CylinderMesh",lprt3,"","",vt(0,0,0),vt(0.4,0.2,0.4))
  413. local lmsh4=mesh("CylinderMesh",lprt4,"","",vt(0,0,0),vt(0.3,0.21,0.3))
  414. local lmsh5=mesh("BlockMesh",lprt5,"","",vt(0,0,0),vt(0.05,0.19,0.7))
  415. local lmsh6=mesh("BlockMesh",lprt6,"","",vt(0,0,0),vt(0.7,0.19,0.05))
  416. local lmsh7=mesh("SpecialMesh",lprt7,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.375))
  417. local lmsh8=mesh("SpecialMesh",lprt8,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.375))
  418.  
  419. local lwld3=weld(lprt3,lprt3,lprt2,euler(0,0,1.57)*cf(0,0,0))
  420. local lwld4=weld(lprt4,lprt4,lprt3,euler(0,0,0)*cf(0,0,0))
  421. local lwld5=weld(lprt5,lprt5,lprt3,euler(0,0,0)*cf(0,0,0))
  422. local lwld6=weld(lprt6,lprt6,lprt3,euler(0,0,0)*cf(0,0,0))
  423. local lwld7=weld(lprt7,lprt7,lprt2,euler(3.14,0,0)*cf(0.05,0.6,-0.185))
  424. local lwld8=weld(lprt8,lprt8,lprt2,euler(3.14,3.14,0)*cf(0.05,0.6,0.185))
  425.  
  426. else
  427. potin2 = game.Lighting["Qeler' Hammer"].Bracelet:Clone()
  428. potin2.Parent = modelzorz2
  429. local handlewld2=weld(lprt1,potin2.Handle,lprt1,euler(0,-math.pi/2,0)*cf(0,0,0))
  430. lprt1.Transparency = 1
  431. lprt2.Transparency = 1
  432.  
  433. end
  434.  
  435. local hitbox=part(1,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  436. hitbox.Anchored=false
  437.  
  438. if (script.Parent.className ~= "HopperBin") then
  439. Tool = Instance.new("HopperBin")
  440. Tool.Parent = Backpack
  441. Tool.Name = "Lock-on Hammer"
  442. script.Parent = Tool
  443. end
  444. Bin = script.Parent
  445.  
  446. local bodvel=Instance.new("BodyVelocity")
  447. local bg=Instance.new("BodyGyro")
  448.  
  449. so = function(id,par,vol,pit)
  450. coroutine.resume(coroutine.create(function()
  451. local sou = Instance.new("Sound",par or workspace)
  452. sou.Volume=vol
  453. sou.Pitch=pit or 1
  454. sou.SoundId=id
  455. swait()
  456. sou:play()
  457. game:GetService("Debris"):AddItem(sou,6)
  458. end))
  459. end
  460.  
  461. function hideanim()
  462. equipped=false
  463. Torso.Neck.C0=necko
  464. RootJoint.C0=RootCF
  465. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  466. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  467. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  468. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  469. RH.C0=RHC0
  470. RH.C1=RHC1
  471. LH.C0=LHC0
  472. LH.C1=LHC1
  473. handlewld.Part1=Torso
  474. handlewld.C0=euler(0,1.57,-1.7)*cf(0,0,-0.6)
  475. handlewld.C1=euler(0,0,0)*cf(0,0,0)
  476. wld1.C0=cf(0,0,0)
  477. end
  478.  
  479. function equipanim()
  480. equipped=true
  481. Torso.Neck.C1=necko2
  482. Torso.Neck.C0=necko*euler(0,0,0.785)
  483. RootJoint.C0=RootCF*euler(0,0,-0.785)
  484. RW.C0=cf(1.5,0.5,0)*euler(1,-1.4,0)
  485. RW.C1=cf(0,0.5,0)*euler(-0.5,0,0)
  486. LW.C0=cf(-1.2,0.5-0.2,-0.5)*euler(0.6,-1.57,0)
  487. LW.C1=cf(0,0.5,0)*euler(-0.6,0,0)
  488. RH.C0=RHC0
  489. RH.C1=RHC1
  490. LH.C0=LHC0
  491. LH.C1=LHC1
  492. handlewld.Part1=RightArm
  493. handlewld.C0=euler(1.9,0,0.2)*cf(0,1,0)
  494. handlewld.C1=euler(0,0,0)
  495. wld1.C0=euler(0,0,0)*cf(0,1.5,0)
  496. --[[Torso.Neck.C1=necko2
  497. Torso.Neck.C0=necko*euler(0.2,0,-0.2)
  498. RootJoint.C0=RootCF*euler(0,0,0)
  499. RW.C0=cf(1.5,0.5,0)*euler(1.3,-3.14,-1)
  500. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  501. LW.C0=cf(-1.5,0.7,0)*euler(3,0,0.5)
  502. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  503. handlewld.Part1=RightArm
  504. handlewld.C0=euler(1.5,0.1,1.57)*cf(0,1,0)
  505. handlewld.C1=euler(0,0,0)
  506. wld1.C0=euler(0,0,0)*cf(0,0.5,0)]]
  507. end
  508.  
  509. function attackone()
  510. attack=true
  511. for i=0,1,0.1 do
  512. swait()
  513. Torso.Neck.C0=necko*euler(0,0,0.785+0.415*i)
  514. RootJoint.C0=RootCF*euler(0,0,-0.785-0.415*i)
  515. RW.C0=cf(1.5,0.5,0)*euler(1+0.2*i,-1.4-0.1*i,0)
  516. RW.C1=cf(0,0.5,0)*euler(-0.5-0.2*i,0,0)
  517. LW.C0=cf(-1.2,0.3,-0.5)*euler(0.6,-1.57+0.27*i,0)
  518. LW.C1=cf(0,0.5,0)*euler(-0.6-0.1*i,0,0)
  519. handlewld.C0=euler(1.9+0.2*i,0,0.2+0.2*i)*cf(0,1,0)
  520. end
  521. n=2
  522. for i=0,1,0.1 do
  523. swait()
  524. Torso.Neck.C0=necko*euler(0,0,1.2+0.1*i*n)
  525. RootJoint.C0=RootCF*euler(0,0,-1.2-0.1*i*n)
  526. RW.C0=cf(1.5,0.5,0)*euler(1.2,-1.5,0)
  527. RW.C1=cf(0,0.5,0)*euler(-0.7-0.2*i*n,0,0)
  528. LW.C0=cf(-1.2,0.3,-0.5)*euler(0.6,-1.3-0.2*i*n,0)
  529. LW.C1=cf(0,0.5,0)*euler(-0.7-0.2*i*n,0,0)
  530. handlewld.C0=euler(2.1+0.2*i*n,0,0.4-0.2*i*n)*cf(0,1,0)
  531. n=n-0.1
  532. end
  533. so("http://roblox.com/asset/?id=10209640",prt10,1,0.4)
  534. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  535. hitbox.Parent=modelzorz
  536. hitbox.Size=vt(2,4,2)
  537. hitbox.Transparency=1
  538. hitbox.CFrame=prt10.CFrame
  539. for i=0,1,0.2 do
  540. swait()
  541. if i==0.4 then
  542. ShootRocket(10,20,100)
  543. end
  544. Torso.Neck.C0=necko*euler(0,0,1.3-2.5*i)
  545. RootJoint.C0=RootCF*euler(0,0,-1.3+2.5*i)
  546. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1.2,-1.5,0)
  547. RW.C1=cf(0,0.5,0)*euler(-0.9+1*i,0,0)
  548. LW.C0=cf(-1.2,0.3,-0.5)*euler(0.6+0.5*i,-1.5,0)
  549. LW.C1=cf(0,0.5,0)*euler(-0.9,0,0)
  550. handlewld.C0=euler(2.3,0,0.2+0.1*i)*cf(0,1,0)
  551. wld1.C0=euler(0,0,0)*cf(0,1.5-1.5*i,0)
  552. hitbox.CFrame=prt10.CFrame
  553. end
  554. n=2
  555. for i=0,1,0.1 do
  556. swait()
  557. Torso.Neck.C0=necko*euler(0,0,-1.2-0.2*i*n)
  558. RootJoint.C0=RootCF*euler(0,0,1.2+0.2*i*n)
  559. RW.C0=cf(1,0.5,-0.5)*euler(1.2,-1.5,0)
  560. RW.C1=cf(0,0.5,0)*euler(0.1+0.2*i*n,0,0)
  561. LW.C0=cf(-1.2,0.3,-0.5)*euler(1.1+0.2*i*n,-1.5,0)
  562. LW.C1=cf(0,0.5,0)*euler(-0.9,0,0)
  563. handlewld.C0=euler(2.3-0.2*i*n,0,0.3)*cf(0,1,0)
  564. wld1.C0=euler(0,0,0)*cf(0,0,0)
  565. hitbox.CFrame=prt10.CFrame
  566. n=n-0.1
  567. end
  568. con1:disconnect()
  569. hitbox.Parent=nil
  570. attack=false
  571. end
  572.  
  573. function attacktwo()
  574. attack=true
  575. for i=0,1,0.1 do
  576. swait()
  577. Torso.Neck.C0=necko*euler(0,0,-1.4-0.1*i)
  578. RootJoint.C0=RootCF*euler(0,0,1.4+0.1*i)
  579. RW.C0=cf(1,0.5,-0.5)*euler(1.2+0.2*i,-1.5+3*i,0)
  580. RW.C1=cf(0,0.5,0)*euler(0.3-0.6*i,0,0)
  581. LW.C0=cf(-1.2,0.3,-0.5)*euler(1.3+0.2*i,-1.5,0)
  582. LW.C1=cf(0,0.5,0)*euler(-0.9+0.3*i,0,0)
  583. handlewld.C0=euler(2.1-0.5*i,0,0.3-0.5*i)*cf(0,1,0)
  584. wld1.C0=euler(0,0,0)*cf(0,0,0)
  585. end
  586. n=2
  587. for i=0,1,0.1 do
  588. swait()
  589. Torso.Neck.C0=necko*euler(0,0,-1.5)
  590. RootJoint.C0=RootCF*euler(0,0,1.5)
  591. RW.C0=cf(1,0.5,-0.5)*euler(1.4-0.2*i*n,1.5+0.1*i*n,0)
  592. RW.C1=cf(0,0.5,0)*euler(-0.3,0,0)
  593. LW.C0=cf(-1.2,0.3,-0.5)*euler(1.5-0.1*i*n,-1.5,0)
  594. LW.C1=cf(0,0.5,0)*euler(-0.6-0.1*i*n,0,0)
  595. handlewld.C0=euler(1.6,0,-0.2-0.1*i*n)*cf(0,1,0)
  596. wld1.C0=euler(0,0,0)*cf(0,0,0)
  597. n=n-0.1
  598. end
  599. so("http://roblox.com/asset/?id=10209640",prt10,1,0.5)
  600. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  601. hitbox.Parent=modelzorz
  602. hitbox.Size=vt(2,4,2)
  603. hitbox.Transparency=1
  604. hitbox.CFrame=prt10.CFrame
  605. for i=0,1,0.2 do
  606. swait()
  607. if i==0.4 then
  608. ShootRocket(10,20,100)
  609. end
  610. Torso.Neck.C0=necko*euler(0,0,-1.5+2.5*i)
  611. RootJoint.C0=RootCF*euler(0,0,1.5-2.5*i)
  612. RW.C0=cf(1+0.3*i,0.5,-0.5+0.3*i)*euler(1.2+0.3*i,1.6,0)
  613. RW.C1=cf(0,0.5,0)*euler(-0.3+0.2*i,0,0)
  614. LW.C0=cf(-1.2+0.8*i,0.3,-0.5-0.1*i)*euler(1.4+0.2*i,-1.5,0)
  615. LW.C1=cf(0,0.5,0)*euler(-0.7-0.2*i,0,0)
  616. handlewld.C0=euler(1.6+0.5*i,0,-0.3+0.3*i)*cf(0,1,0)
  617. wld1.C0=euler(0,0,0)*cf(0,0,0)
  618. hitbox.CFrame=prt10.CFrame
  619. end
  620. n=2
  621. for i=0,1,0.1 do
  622. swait()
  623. Torso.Neck.C0=necko*euler(0,0,1+0.2*i*n)
  624. RootJoint.C0=RootCF*euler(0,0,-1-0.2*i*n)
  625. RW.C0=cf(1.3+0.2*i*n,0.5,-0.2+0.2*i*n)*euler(1.5,1.6,0)
  626. RW.C1=cf(0,0.5,0)*euler(-0.1+0.2*i*n,0,0)
  627. LW.C0=cf(-0.4+0.2*i*n,0.3,-0.6)*euler(1.6,-1.5,0)
  628. LW.C1=cf(0,0.5,0)*euler(-0.9-0.1*i*n,0,0)
  629. handlewld.C0=euler(2.1+0.2*i*n,0,0)*cf(0,1,0)
  630. wld1.C0=euler(0,0,0)*cf(0,0,0)
  631. hitbox.CFrame=prt10.CFrame
  632. n=n-0.1
  633. end
  634. con1:disconnect()
  635. hitbox.Parent=nil
  636. attack=false
  637. end
  638.  
  639. function attackthree()
  640. attack=true
  641. for i=0,1,0.1 do
  642. swait()
  643. Torso.Neck.C0=necko*euler(-0.4*i,0,1.2-1.2*i)
  644. RootJoint.C0=RootCF*euler(0,0,-1.2+1.2*i)
  645. RW.C0=cf(1.5-0.5*i,0.5+0.8*i,0)*euler(1.5+1.2*i,1.6-1.6*i,-0.785*i)
  646. RW.C1=cf(0,0.5,0)*euler(0.1-0.1*i,0,0)
  647. LW.C0=cf(-0.2-0.8*i,0.3+1*i,-0.6+0.6*i)*euler(1.6+1.1*i,-1.5+1.5*i,0.785*i)
  648. LW.C1=cf(0,0.5,0)*euler(-1+1*i,0,0)
  649. handlewld.C0=euler(2.3-0.8*i,0,-0.785*i)*cf(0,1,0)
  650. wld1.C0=euler(0,0,0)*cf(0,0,0)
  651. end
  652. n=2
  653. for i=0,1,0.1 do
  654. swait()
  655. Torso.Neck.C0=necko*euler(-0.4-0.2*i*n,0,0)
  656. RootJoint.C0=RootCF*euler(0,0,0)
  657. RW.C0=cf(1,1.3+0.2*i*n,0)*euler(2.7+0.2*i*n,0,-0.785)
  658. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  659. LW.C0=cf(-1,1.3+0.2*i*n,0)*euler(2.7+0.2*i*n,0,0.785)
  660. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  661. handlewld.C0=euler(1.5,0,-0.785)*cf(0,1,0)
  662. wld1.C0=euler(0,0,0)*cf(0,0,0)
  663. n=n-0.1
  664. end
  665. so("http://roblox.com/asset/?id=10209640",prt10,1,0.35)
  666. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,15,25,math.random(30,60),"Normal",RootPart,.2,1) end)
  667. hitbox.Parent=modelzorz
  668. hitbox.Size=vt(2,4,2)
  669. hitbox.Transparency=1
  670. hitbox.CFrame=prt10.CFrame
  671. for i=0,1,0.2 do
  672. swait()
  673. if i==0.4 then
  674. ShootRocket(10,20,400)
  675. end
  676. Torso.Neck.C0=necko*euler(-0.6+0.7*i,0,0)
  677. RootJoint.C0=RootCF*euler(0,0,0)
  678. RW.C0=cf(1,1.5-1*i,0)*euler(2.9-2.2*i,0,-0.785+0.085*i)
  679. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  680. LW.C0=cf(-1,1.5-1*i,0)*euler(2.9-2.2*i,0,0.785+0.085*i)
  681. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  682. handlewld.C0=euler(1.5+0.5*i,0,-0.785+0.085*i)*cf(0,1,0)
  683. handlewld.C1=cf(0,0,0)
  684. wld1.C0=euler(0,0,0)*cf(0,-0.5*i,0)
  685. hitbox.CFrame=prt10.CFrame
  686. end
  687. n=2
  688. for i=0,1,0.1 do
  689. swait()
  690. Torso.Neck.C0=necko*euler(0.1+0.1*i*n,0,0)
  691. RootJoint.C0=RootCF*euler(0,0,0)
  692. RW.C0=cf(1,0.5-0.1*i*n,0)*euler(0.7-0.2*i*n,0,-0.7)
  693. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  694. LW.C0=cf(-1,0.5-0.1*i*n,0)*euler(0.7-0.2*i*n,0,0.7)
  695. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  696. handlewld.C0=euler(2,0,-0.7)*cf(0,1,0)
  697. handlewld.C1=cf(0,0,0)
  698. wld1.C0=euler(0,0,0)*cf(0,-0.5,0)
  699. hitbox.CFrame=prt10.CFrame
  700. n=n-0.1
  701. end
  702. swait(10)
  703. for i=0,1,0.1 do
  704. swait()
  705. Torso.Neck.C0=necko*euler(0.2-0.2*i,0,0.785*i)
  706. RootJoint.C0=RootCF*euler(0,0,-0.785*i)
  707. RW.C0=cf(1+0.5*i,0.4+0.1*i,0)*euler(0.5+0.5*i,-1.4*i,-0.7+0.7*i)
  708. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  709. LW.C0=cf(-1-0.2*i,0.4-0.1*i,-0.5*i)*euler(0.5+0.1*i,-1.57*i,0.7-0.7*i)
  710. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  711. handlewld.C0=euler(2-0.1*i,0,-0.7+0.9*i)*cf(0,1,0)
  712. wld1.C0=euler(0,0,0)*cf(0,-0.5+2*i,0)
  713. n=n-0.1
  714. end
  715. con1:disconnect()
  716. hitbox.Parent=nil
  717. attack=false
  718. end
  719.  
  720. function Cooldown()
  721. attack=true
  722. Humanoid.WalkSpeed=5
  723. for i=0,1,0.1 do
  724. swait()
  725. Torso.Neck.C0=necko*euler(0,0,0.785-0.785*i)
  726. RootJoint.C0=RootCF*euler(0,0,-0.785+0.785*i)
  727. RW.C0=cf(1.5,0.5,0)*euler(1,-1.4+2.97*i,0)
  728. RW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  729. LW.C0=cf(-1.2-0.3*i,0.3+0.2*i,-0.5+0.5*i)*euler(0.6+0.4*i,-1.57,0)
  730. LW.C1=cf(0,0.5,0)*euler(-0.6+0.6*i,0,0)
  731. handlewld.C0=euler(1.9-0.33*i,0,0.2-0.2*i)*cf(0,1,0)
  732. handlewld.C1=euler(0,0,0)
  733. wld1.C0=euler(0,0,0)*cf(0,1.5-3*i,0)
  734. end
  735. so("http://www.roblox.com/asset/?id=2101137",prt10,1,0.8)
  736. local cdprt=part(3,modelzorz,0,0.5,BrickColor.new("Bright stone grey"),"Effect",vt(0.5,0.5,0.5))
  737. cdmsh=mesh("SpecialMesh",cdprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  738. cdwld=weld(cdprt,cdprt,prt10,euler(0,0,0)*cf(0,0,0))
  739. coroutine.resume(coroutine.create(function(Part,Mesh)
  740. for i=0,1,0.1 do
  741. swait()
  742. Mesh.Scale=vt(1+9*i,1+9*i,1+9*i)
  743. end
  744. while holdg==true do
  745. swait()
  746. heatnum=heatnum+30
  747. MagicBlock(BrickColor.new("Bright stone grey"),euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,0,math.random(1,9),0,0.1,4,Part)
  748. end
  749. for i=0,1,0.1 do
  750. swait()
  751. Mesh.Scale=vt(10-10*i,10-10*i,10-10*i)
  752. end
  753. Part.Parent=nil
  754. end),cdprt,cdmsh)
  755. while holdg==true do
  756. swait()
  757. end
  758. for i=0,1,0.1 do
  759. swait()
  760. Torso.Neck.C0=necko*euler(0,0,0.785*i)
  761. RootJoint.C0=RootCF*euler(0,0,-0.785*i)
  762. RW.C0=cf(1.5,0.5,0)*euler(1,1.57-2.97*i,0)
  763. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  764. LW.C0=cf(-1.5+0.3*i,0.5-0.2*i,-0.5*i)*euler(1-0.4*i,-1.57,0)
  765. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  766. handlewld.C0=euler(1.57+0.33*i,0,0.2*i)*cf(0,1,0)
  767. handlewld.C1=euler(0,0,0)
  768. wld1.C0=euler(0,0,0)*cf(0,-1.5+3*i,0)
  769. end
  770. Humanoid.WalkSpeed=16
  771. attack=false
  772. end
  773.  
  774. function Regain()
  775. attack=true
  776. Humanoid.WalkSpeed=5
  777. for i=0,1,0.1 do
  778. swait()
  779. Torso.Neck.C0=necko*euler(0,0,0.785-0.785*i)
  780. RootJoint.C0=RootCF*euler(0,0,-0.785+0.785*i)
  781. RW.C0=cf(1.5,0.5,0)*euler(1,-1.4+2.97*i,0)
  782. RW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  783. LW.C0=cf(-1.2-0.3*i,0.3+0.2*i,-0.5+0.5*i)*euler(0.6+0.4*i,-1.57,0)
  784. LW.C1=cf(0,0.5,0)*euler(-0.6+0.6*i,0,0)
  785. handlewld.C0=euler(1.9-0.33*i,0,0.2-0.2*i)*cf(0,1,0)
  786. handlewld.C1=euler(0,0,0)
  787. wld1.C0=euler(0,0,0)*cf(0,1.5-3*i,0)
  788. end
  789. so("http://www.roblox.com/asset/?id=2101144",Torso,1,1)
  790. local cdprt=part(3,modelzorz,0,0.5,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  791. cdmsh=mesh("SpecialMesh",cdprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  792. cdwld=weld(cdprt,cdprt,Torso,euler(0,0,0)*cf(0,0,0))
  793. coroutine.resume(coroutine.create(function(Part,Mesh)
  794. for i=0,1,0.1 do
  795. swait()
  796. Mesh.Scale=vt(1+14*i,1+14*i,1+14*i)
  797. end
  798. while holdg==true do
  799. swait()
  800. mananum=mananum+20
  801. MagicBlock(BrickColor.new("White"),euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,0,math.random(1,9),0,0.1,4,Torso)
  802. end
  803. for i=0,1,0.1 do
  804. swait()
  805. Mesh.Scale=vt(10-10*i,10-10*i,10-10*i)
  806. end
  807. Part.Parent=nil
  808. end),cdprt,cdmsh)
  809. while holdg==true do
  810. swait()
  811. end
  812. for i=0,1,0.1 do
  813. swait()
  814. Torso.Neck.C0=necko*euler(0,0,0.785*i)
  815. RootJoint.C0=RootCF*euler(0,0,-0.785*i)
  816. RW.C0=cf(1.5,0.5,0)*euler(1,1.57-2.97*i,0)
  817. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  818. LW.C0=cf(-1.5+0.3*i,0.5-0.2*i,-0.5*i)*euler(1-0.4*i,-1.57,0)
  819. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  820. handlewld.C0=euler(1.57+0.33*i,0,0.2*i)*cf(0,1,0)
  821. handlewld.C1=euler(0,0,0)
  822. wld1.C0=euler(0,0,0)*cf(0,-1.5+3*i,0)
  823. end
  824. Humanoid.WalkSpeed=16
  825. attack=false
  826. end
  827.  
  828. function ChargeHammer()
  829. attack=true
  830. for i=0,1,0.1 do
  831. swait()
  832. Torso.Neck.C1=necko2
  833. Torso.Neck.C0=necko*euler(0,-0.2*i,0.785+0.215*i)
  834. RootJoint.C0=RootCF*cf(0,0,-0.5*i)*euler(0.4*i,0,-0.785-0.215*i)
  835. RW.C0=cf(1.5,0.5,0)*euler(1+0.2*i,-1.4-0.1*i,0)
  836. RW.C1=cf(0,0.5,0)*euler(-0.5-0.8*i,0,0)
  837. LW.C0=cf(-1.2+0.5*i,0.5-0.2,-0.5-0.2*i)*euler(0.6+0.1*i,-1.57,0)
  838. LW.C1=cf(0,0.5,0)*euler(-0.6-0.2*i,0,0)
  839. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0.1*i)
  840. LH.C0=LHC0*cf(0,0.5*i,0)*euler(-0.5*i,0,-0.2*i)
  841. handlewld.Part1=RightArm
  842. handlewld.C0=euler(1.9+0.5*i,0,0.2)*cf(0,1,0)
  843. handlewld.C1=euler(0,0,0)
  844. wld1.C0=euler(0,0,0)*cf(0,1.5,0)
  845. end
  846. counter=0
  847. size=1
  848. while holdz==true and heat<=400 do
  849. swait()
  850. counter=counter+1
  851. if counter==20 then
  852. size=2
  853. so("http://www.roblox.com/asset/?id=157487812",prt10,0.6,0.4)
  854. elseif counter==60 then
  855. size=3
  856. so("http://www.roblox.com/asset/?id=157487812",prt10,0.6,0.5)
  857. end
  858. if counter%10==0 then
  859. heat=heat+2
  860. --[[if size==1 then
  861. MagicRing(BrickColor.new("Bright yellow"),prt10.CFrame,1,1,1,0.5,0.5,0.5,0.1,2,prt10)
  862. elseif size==3 then
  863. MagicRing(BrickColor.new("Bright red"),prt10.CFrame,1,1,1,1,1,1,0.1,2,prt10)
  864. end]]
  865. if size==3 then
  866. MagicRing(Color1,euler(0,1.57,0),1,1,1,1,1,1,0.1,2,prt10)
  867. elseif size==2 then
  868. MagicRing(Color2,euler(0,1.57,0),1,1,1,0.5,0.5,0.5,0.1,2,prt10)
  869. end
  870. end
  871. if counter%5==0 then
  872. if size==1 then
  873. MagicBlock(Color1,prt10.CFrame,5,5,5,1,1,1,0.1,3,prt10)
  874. elseif size==2 then
  875. MagicBlock(Color1,prt10.CFrame,7,7,7,1,1,1,0.1,3,prt10)
  876. elseif size==3 then
  877. MagicBlock(Color1,prt10.CFrame,9,9,9,1,1,1,0.1,3,prt10)
  878. end
  879. end
  880. end
  881. for i=0,1,0.1 do
  882. swait()
  883. if i==0.7 then
  884. --[[so("http://roblox.com/asset/?id=169445121",prt10,1,0.7)
  885. local disk=part(3,workspace,0,0.7,BrickColor.new("Bright yellow"),"Disk",vt(0.5,0.5,0.5))
  886. local diskmsh=mesh("CylinderMesh",disk,"","",vt(0,0,0),vt(7,0.2,7))
  887. disk.CFrame=cf(prt10.Position)
  888. local dbg=it("BodyGyro")
  889. dbg.maxTorque=vt(4e+005,4e+005,4e+005)*math.huge
  890. dbg.P=20e+003
  891. dbg.Parent=disk
  892. dbg.cframe=euler(0,0,0)
  893. game:GetService("Debris"):AddItem(disk,5)
  894. local MouseLook=cf((prt10.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  895. hit,pos = rayCast(prt10.Position,MouseLook.lookVector,999,modelzorz)
  896. local ef=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  897. ef.Anchored=true
  898. ef.CFrame=cf(pos)
  899. game:GetService("Debris"):AddItem(ef,5)
  900. dprop=Instance.new("RocketPropulsion")
  901. dprop.ThrustP=10
  902. dprop.MaxSpeed=50
  903. --prop.TurnP=1500
  904. dprop.MaxThrust=7000
  905. dprop.CartoonFactor=0
  906. dprop.TurnP=0
  907. dprop.Parent=disk
  908. dprop.Target=ef
  909. dprop:Fire()
  910. local wave=part(3,disk,0,0.3,BrickColor.new("Bright red"),"Effect",vt())
  911. wave.CFrame=disk.CFrame
  912. wmsh=mesh("SpecialMesh",wave,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(3,0.5,3))
  913. wwld=weld(wave,wave,disk,euler(0,0,0)*cf(0,0,0))
  914. game:GetService("Debris"):AddItem(prt,5)
  915. coroutine.resume(coroutine.create(function(Part,Weld)
  916. while Part.Parent~=nil do
  917. swait()
  918. hit,pos=rayCast(Part.Position,Part.CFrame.lookVector,2,modelzorz)
  919. if hit~=nil and hit.Name~="Effect" then
  920. print(hit)
  921. Part.Parent=nil
  922. local dur=part(3,workspace,0,1,BrickColor.new("Bright red"),"Effect",vt())
  923. dur.Anchored=true
  924. dur.CFrame=Part.CFrame
  925. game:GetService("Debris"):AddItem(dur,5)
  926. so("http://roblox.com/asset/?id=142070127",dur,1,1)
  927. MagicWaveThing(BrickColor.new("Bright red"),Part.CFrame,1,1,1,0.6,1.5,0.6,0.02)
  928. if size==1 then
  929. Damagefunc(hit,5,10,0,"Target",200,1,2)
  930. elseif size==2 then
  931. Damagefunc(hit,10,15,0,"Target",400,1,2)
  932. elseif size==3 then
  933. Damagefunc(hit,20,30,0,"Target",600,1,2)
  934. end
  935. end
  936. MagicBlock(BrickColor.new("Bright red"),Part.CFrame,5,5,5,1,1,1,0.2,1)
  937. Weld.C0=Weld.C0*euler(0,0.5,0)
  938. end
  939. end),disk,wwld)]]
  940. CeEf=RootPart.CFrame
  941. coroutine.resume(coroutine.create(function()
  942. num=1
  943. for i=1,size do
  944. local ef=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  945. ef.Anchored=true
  946. ef.CFrame=CeEf*cf(0,0,-6*(num*1.5))
  947. game:GetService("Debris"):AddItem(ef,.1)
  948. so("http://roblox.com/asset/?id=142070127",ef,1,0.8)
  949. for _,c in pairs(workspace:children()) do
  950. local hum=c:findFirstChild("Humanoid")
  951. if hum~=nil then
  952. local head=c:findFirstChild("Torso")
  953. if head~=nil then
  954. local targ=head.Position-ef.Position
  955. local mag=targ.magnitude
  956. if mag<=20 and c.Name~=Player.Name then
  957. coroutine.resume(coroutine.create(function(hit)
  958. Damagefunc(hit,10,15,math.random(10,20),"Target",400,1,2)
  959. end),head)
  960. end
  961. end
  962. end
  963. end
  964. coroutine.resume(coroutine.create(function(Part)
  965. MagicRing(Color2,Part.CFrame,1,1,1,0.5,0.5,0.5,0.02,1)
  966. MagicCircle(Color1,Part.CFrame,1,1,1,2,2,2,0.01,1)
  967. for i=0,0.5,0.1 do
  968. swait()
  969. MagicBlock(Color1,Part.CFrame,5,5,5,1.4,1.4,1.4,0.05,1)
  970. end
  971. end),ef)
  972. num=num+1
  973. swait(5)
  974. end
  975. end))
  976. end
  977. Torso.Neck.C1=necko2
  978. Torso.Neck.C0=necko*euler(0,-0.2+0.2*i,1-2.3*i)
  979. RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)*euler(0.4-0.4*i,0,-1+2.3*i)
  980. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1.2+0.2*i,-1.5,0)
  981. RW.C1=cf(0,0.5,0)*euler(-1.3+2*i,0,0)
  982. LW.C0=cf(-0.7-0.5*i,0.3+0.2*i,-0.7+0.2*i)*euler(0.7+0.5*i,-1.57,0)
  983. LW.C1=cf(0,0.5,0)*euler(-0.8,0,0)
  984. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0.1-0.1*i)
  985. LH.C0=LHC0*cf(0,0.5-0.5*i,0)*euler(-0.5+0.5*i,0,-0.2+0.2*i)
  986. handlewld.Part1=RightArm
  987. handlewld.C0=euler(2.4-0.2*i,0,0.2)*cf(0,1,0)
  988. handlewld.C1=euler(0,0,0)
  989. wld1.C0=euler(0,0,0)*cf(0,1.5-3*i,0)
  990. end
  991. n=2
  992. for i=0,1,0.1 do
  993. swait()
  994. Torso.Neck.C1=necko2
  995. Torso.Neck.C0=necko*euler(0,0,-1.3-0.2*i*n)
  996. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,1.3+0.2*i*n)
  997. RW.C0=cf(1,0.5,-0.5)*euler(1.4,-1.5,0)
  998. RW.C1=cf(0,0.5,0)*euler(0.7+0.1*i*n,0,0)
  999. LW.C0=cf(-1.2,0.5,-0.5)*euler(1.2+0.1*i*n,-1.57,0)
  1000. LW.C1=cf(0,0.5,0)*euler(-0.8+0.2*i*n,0,0)
  1001. handlewld.Part1=RightArm
  1002. handlewld.C0=euler(2.2,0,0.2)*cf(0,1,0)
  1003. handlewld.C1=euler(0,0,0)
  1004. wld1.C0=euler(0,0,0)*cf(0,-1.5,0)
  1005. n=n-0.1
  1006. end
  1007. for i=0,1,0.1 do
  1008. swait()
  1009. Torso.Neck.C1=necko2
  1010. Torso.Neck.C0=necko*euler(0,0,-1.5+2.285*i)
  1011. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,1.5-2.285*i)
  1012. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1.4-0.4*i,-1.5+0.1*i,0)
  1013. RW.C1=cf(0,0.5,0)*euler(0.8-1.3*i,0,0)
  1014. LW.C0=cf(-1.2,0.5-0.2*i,-0.5)*euler(1.3-0.7*i,-1.57,0)
  1015. LW.C1=cf(0,0.5,0)*euler(-0.6,0,0)
  1016. handlewld.Part1=RightArm
  1017. handlewld.C0=euler(2.2-0.3*i,0,0.2)*cf(0,1,0)
  1018. handlewld.C1=euler(0,0,0)
  1019. wld1.C0=euler(0,0,0)*cf(0,-1.5+3*i,0)
  1020. end
  1021. attack=false
  1022. end
  1023.  
  1024. function RocketBarrage()
  1025. attack=true
  1026. for i=0,1,0.1 do
  1027. swait()
  1028. Torso.Neck.C1=necko2
  1029. Torso.Neck.C0=necko*euler(0,0,0.785-0.785*i)
  1030. RootJoint.C0=RootCF*euler(0,0,-0.785+0.785*i)
  1031. RW.C0=cf(1.5-0.5*i,0.5+1*i,0)*euler(1+2.1*i,-1.4+1.4*i,-0.785*i)
  1032. RW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  1033. LW.C0=cf(-1.2+0.2*i,0.3+1.2*i,-0.5+0.5*i)*euler(0.6+2.5*i,-1.57+1.57*i,0.785*i)
  1034. LW.C1=cf(0,0.5,0)*euler(-0.6+0.6*i,0,0)
  1035. handlewld.Part1=RightArm
  1036. handlewld.C0=euler(1.9-0.4*i,0,0.2-0.985*i)*cf(0,1,0)
  1037. handlewld.C1=euler(0,0,0)
  1038. wld1.C0=euler(0,1.57*i,0)*cf(0,1.5-1.5*i,0)
  1039. end
  1040. num=5
  1041. while holdx==true do
  1042. swait()
  1043. so("http://roblox.com/asset/?id=10209640",prt10,1,0.4)
  1044. for i=0,1,0.08 do
  1045. swait()
  1046. if num==16 then
  1047. ShootRocket(7,15,math.random(50,300))
  1048. num=0
  1049. end
  1050. handlewld.C0=euler(1.5,6.28*i,-0.785)*cf(0,1,0)
  1051. num=num+1
  1052. end
  1053. end
  1054. for i=0,1,0.1 do
  1055. swait()
  1056. Torso.Neck.C1=necko2
  1057. Torso.Neck.C0=necko*euler(0,0,0.785*i)
  1058. RootJoint.C0=RootCF*euler(0,0,-0.785*i)
  1059. RW.C0=cf(1+0.5*i,1.5-1*i,0)*euler(3.1-2.1*i,-1.4*i,-0.785+0.785*i)
  1060. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  1061. LW.C0=cf(-1-0.2*i,1.5-1.2*i,-0.5*i)*euler(3.1-2.5*i,-1.57*i,0.785-0.785*i)
  1062. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  1063. handlewld.Part1=RightArm
  1064. handlewld.C0=euler(1.5+0.4*i,0,-0.785+0.985*i)*cf(0,1,0)
  1065. handlewld.C1=euler(0,0,0)
  1066. wld1.C0=euler(0,1.57-1.57*i,0)*cf(0,1.5*i,0)
  1067. end
  1068. attack=false
  1069. end
  1070.  
  1071. function PushExplosion()
  1072. attack=true
  1073.  
  1074. bg.maxTorque=vt(math.huge,math.huge,math.huge)
  1075. bg.P=9000
  1076. bg.Parent=Torso
  1077. local pos4=vt(workspace.CurrentCamera.CoordinateFrame.X,RootPart.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1078. bg.cframe=cf(RootPart.Position,pos4)*euler(0,3.14,0)*cf(0,0,0)
  1079. coroutine.resume(coroutine.create(function(Gyro)
  1080. while attack==true do
  1081. swait()
  1082. local pos4=vt(workspace.CurrentCamera.CoordinateFrame.X,RootPart.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1083. Gyro.cframe=cf(RootPart.Position,pos4)*euler(0,3.14,0)*cf(0,0,0)
  1084. end
  1085. Gyro.Parent=nil
  1086. end),bg)
  1087. fireballd=false
  1088. coroutine.resume(coroutine.create(function()
  1089. local fireball=part(3,workspace,0,0.5,Color1,"Fireball",vt(0.5,0.5,0.5))
  1090. local firemsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(1,1,1))
  1091. local firewld=weld(fireball,fireball,Torso,euler(0,0,0)*cf(0,0,0))
  1092. so("http://roblox.com/asset/?id=32791565",fireball,1,1)
  1093. fire=Instance.new("Fire")
  1094. fire.Parent=fireball
  1095. fire.Color=Color3.new(255/255,127/255,0)
  1096. fire.SecondaryColor=Color3.new(0,0,0)
  1097. fire.Size=5
  1098. fire.Heat=20
  1099. n=2
  1100. for i=0,1,0.01 do
  1101. swait()
  1102. firemsh.Scale=vt(1+14*i*n,1+14*i*n,1+14*i*n)
  1103. n=n-0.01
  1104. end
  1105. while holdc==true do
  1106. swait()
  1107. end
  1108. fireballd=true
  1109. for _,c in pairs(workspace:children()) do
  1110. local hum=c:findFirstChild("Humanoid")
  1111. if hum~=nil then
  1112. local head=c:findFirstChild("Torso")
  1113. if head~=nil then
  1114. local targ=head.Position-fireball.Position
  1115. local mag=targ.magnitude
  1116. if mag<=25 and c.Name~=Player.Name then
  1117. Damagefunc(head,20,40,math.random(20,40),"Knockdown",fireball,.2,1)
  1118. end
  1119. end
  1120. end
  1121. end
  1122. coroutine.resume(coroutine.create(function(Part)
  1123. n=0
  1124. for i=0,1,0.05 do
  1125. swait(1)
  1126. MagicBlock(Color1,Part.CFrame,1,1,1,5,5,5,0.05,1)
  1127. if n==5 then
  1128. MagicRing(Color4,Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),10,10,10,0.5,0.5,0.5,0.03,1)
  1129. n=0
  1130. end
  1131. n=n+1
  1132. end
  1133. end),fireball)
  1134. so("http://www.roblox.com/asset/?id=2101148",fireball,1,0.6)
  1135. firewld.Parent=nil
  1136. fireball.Anchored=true
  1137. fireball.Transparency=1
  1138. fire.Parent=nil
  1139. swait(100)
  1140. fireball.Parent=nil
  1141. end))
  1142. for i=0,1,0.1 do
  1143. swait()
  1144. Torso.Neck.C0=necko*euler(-0.2*i,0,0.785-0.785*i)
  1145. RootJoint.C0=RootCF*euler(0,0,-0.785+0.785*i)
  1146. RW.C0=cf(1.5,0.5,0)*euler(1+1.5*i,-1.4+1.4*i,0.4*i)
  1147. RW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  1148. LW.C0=cf(-1.2-0.3*i,0.3+0.2*i,-0.5+0.5*i)*euler(0.6+1.9*i,-1.57+1.57*i,-0.4*i)
  1149. LW.C1=cf(0,0.5,0)*euler(-0.6+0.6*i,0,0)
  1150. RH.C0=RHC0*cf(0,0.2*i,0)*euler(-0.2*i,0,-0.2*i)
  1151. LH.C0=LHC0*cf(0,0.2*i,0)*euler(-0.2*i,0,0.2*i)
  1152. handlewld.C0=euler(1.9-0.4*i,0,0.2)*cf(0,1,0)
  1153. wld1.C0=euler(0,0,0)*cf(0,1.5-1.5*i,0)
  1154. end
  1155. while holdc==true do
  1156. swait()
  1157. end
  1158. while fireballd==false do
  1159. swait()
  1160. end
  1161.  
  1162. bg.Parent=nil
  1163. for i=0,1,0.1 do
  1164. swait()
  1165. Torso.Neck.C0=necko*euler(-0.2+0.2*i,0,0)
  1166. RootJoint.C0=RootCF*euler(0,0,0)
  1167. RW.C0=cf(1.5,0.5,0)*euler(2.5-1*i,0,0.4-0.4*i)
  1168. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1169. LW.C0=cf(-1.5,0.5,0)*euler(2.5-1*i,0,-0.4+0.4*i)
  1170. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1171. RH.C0=RHC0*cf(0,0.2,0)*euler(-0.2,0,-0.2+0.4*i)
  1172. LH.C0=LHC0*cf(0,0.2,0)*euler(-0.2,0,0.2-0.4*i)
  1173. handlewld.C0=euler(1.5,0,0.2)*cf(0,1,0)
  1174. wld1.C0=euler(0,0,0)*cf(0,0,0)
  1175. end
  1176. bodvel.Parent=nil
  1177. n2=2
  1178. for i=0,1,0.1 do
  1179. swait()
  1180. Torso.Neck.C0=necko*euler(0.1*i*n2,0,0)
  1181. RootJoint.C0=RootCF*euler(0,0,0)
  1182. RW.C0=cf(1.5,0.5,0)*euler(1.5-0.1*i*n2,0,0)
  1183. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1184. LW.C0=cf(-1.5,0.5,0)*euler(1.5-0.1*i*n2,0,0)
  1185. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1186. n2=n2-0.1
  1187. end
  1188. swait(10)
  1189. for i=0,1,0.1 do
  1190. swait()
  1191. Torso.Neck.C0=necko*euler(0.1-0.1*i,0,0.785*i)
  1192. RootJoint.C0=RootCF*euler(0,0,-0.785*i)
  1193. RW.C0=cf(1.5,0.5,0)*euler(1.4-0.4*i,-1.4*i,0)
  1194. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  1195. LW.C0=cf(-1.5+0.3*i,0.5-0.2*i,-0.5*i)*euler(1.4-0.8*i,-1.57*i,0)
  1196. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  1197. RH.C0=RHC0*cf(0,0.2-0.2*i,0)*euler(-0.2+0.2*i,0,0.2-0.2*i)
  1198. LH.C0=LHC0*cf(0,0.2-0.2*i,0)*euler(-0.2+0.2*i,0,-0.2+0.2*i)
  1199. handlewld.C0=euler(1.5+0.4*i,0,0.2)*cf(0,1,0)
  1200. wld1.C0=euler(0,0,0)*cf(0,1.5*i,0)
  1201. end
  1202. equipanim()
  1203. attack=false
  1204. end
  1205.  
  1206. function TornadoSpire()
  1207. attack=true
  1208. for i=0,1,0.1 do
  1209. swait()
  1210. Torso.Neck.C0=necko*euler(0,0,0.785-0.785*i)
  1211. RootJoint.C0=RootCF*euler(0,0,-0.785+0.785*i)
  1212. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1-0.4*i,-1.4+1.4*i,-0.785*i)
  1213. RW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  1214. LW.C0=cf(-1.2+0.2*i,0.3+0.2*i,-0.5)*euler(0.6,-1.57+1.57*i,0.785*i)
  1215. LW.C1=cf(0,0.5,0)*euler(-0.6+0.6*i,0,0)
  1216. handlewld.C0=euler(1.9-1.9*i,0.5*i,0.2+1.37*i)*cf(0,1,0)
  1217. wld1.C0=cf(0,1.5-2*i,0)*euler(1.57*i,0,-0.5*i)
  1218. end
  1219. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,1,5,0,"Normal",RootPart,.05,1) end)
  1220. hitbox.Parent=modelzorz
  1221. hitbox.Size=vt(2,4,2)
  1222. hitbox.Transparency=1
  1223. hitbox.CFrame=prt10.CFrame
  1224. ro=0
  1225. while holdv==true do
  1226. so("http://roblox.com/asset/?id=10209640",prt10,1,0.8)
  1227. for i=0,1,0.05 do
  1228. swait()
  1229. if ro==13 then
  1230. ShootRocket(5,10,100)
  1231. ro=0
  1232. end
  1233. RootJoint.C0=RootCF*euler(0,0,6.28*i)
  1234. hitbox.CFrame=prt10.CFrame
  1235. ro=ro+1
  1236. end
  1237. end
  1238. heat=heat+50
  1239. con1:disconnect()
  1240. hitbox.Parent=nil
  1241. CF=cf(hitbox.Position)
  1242. WaveEffect(Color1,CF,1,1,1,0.2,0.8,0.2,0.02,2)
  1243. MagicWaveThing(Color1,CF,1,1,1,0.4,1,0.4,0.01)
  1244. coroutine.resume(coroutine.create(function(ceef)
  1245. con2=hitbox.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(10,20),"Up",0,1,2) end)
  1246. hitbox.Parent=Character
  1247. hitbox.Size=vt(5,10,5)
  1248. hitbox.Transparency=1
  1249. hitbox.CFrame=ceef
  1250. refprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1251. refprt.Anchored=true
  1252. refprt.CFrame=ceef
  1253. game:GetService("Debris"):AddItem(refprt,5)
  1254. so("http://www.roblox.com/asset/?id=81116747",refprt,1,.5)
  1255. so("http://www.roblox.com/asset/?id=144844438",refprt,1,1.5)
  1256. for i=0,1,0.1 do
  1257. swait()
  1258. hitbox.Size=vt(5+5*i,10+40*i,5+5*i)
  1259. hitbox.CFrame=ceef
  1260. end
  1261. for i=0,9,0.1 do
  1262. swait()
  1263. hitbox.CFrame=ceef*cf(math.random(-100,100)/500,math.random(-100,100)/500,math.random(-100,100)/500)
  1264. end
  1265. con2:disconnect()
  1266. hitbox.Parent=nil
  1267. end),CF)
  1268. coroutine.resume(coroutine.create(function(ceef)
  1269. num=1
  1270. for i=0,6 do
  1271. MagicRing(Color1,ceef*euler(1.57,0,0),1,1,1,num,num,0.5,0.05,1)
  1272. num=num+0.5
  1273. swait(5)
  1274. end
  1275. end),CF)
  1276. Humanoid.WalkSpeed=0
  1277.  
  1278. for i=0,1,0.1 do
  1279. swait()
  1280. Torso.Neck.C0=necko*euler(0,0,-1.57*i)
  1281. RootJoint.C0=RootCF*euler(0,0,1.57*i)
  1282. RW.C0=cf(1,0.5,-0.5)*euler(0.6+2.4*i,-1.57*i,-0.785+0.785*i)
  1283. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1284. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(0.6+2*i,1.57*i,0.785-0.785*i)
  1285. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1286. handlewld.C0=euler(1.57*i,0.5-0.5*i,1.57)*cf(0,1,0)
  1287. wld1.C0=cf(0,-0.5,0)*euler(1.57-1.57*i,1.57*i,-0.5+0.5*i)
  1288. end
  1289. bodvel.Parent=nil
  1290. hitfloor=false
  1291. while hitfloor==false do
  1292. swait()
  1293. hit,pos=rayCast(RootPart.Position, (CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,6,Character)
  1294. if hit~=nil then
  1295. hitfloor=true
  1296. end
  1297. end
  1298. Humanoid.WalkSpeed=16
  1299. bg.Parent=nil
  1300. for i=0,1,0.1 do
  1301. swait()
  1302. Torso.Neck.C0=necko*euler(0,0,-1.57+2.355*i)
  1303. RootJoint.C0=RootCF*euler(0,0,1.57-2.355*i)
  1304. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(3-2*i,-1.57+0.17*i,0)
  1305. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  1306. LW.C0=cf(-1.5+0.3*i,0.5-0.2*i,-0.5*i)*euler(2.6-2*i,1.57+3.14*i,0)
  1307. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  1308. handlewld.C0=euler(1.57+0.33*i,0,1.57-1.37*i)*cf(0,1,0)
  1309. wld1.C0=cf(0,-0.5+2*i,0)*euler(0,1.57-1.57*i,0)
  1310. end
  1311. attack=false
  1312. end
  1313.  
  1314. function Target()
  1315. attack=true
  1316. for i=0,1,0.1 do
  1317. swait()
  1318. Torso.Neck.C1=necko2
  1319. Torso.Neck.C0=necko*euler(0,0,0.785-0.985*i)
  1320. RootJoint.C0=RootCF*euler(0,0,-0.785+0.985*i)
  1321. RW.C0=cf(1.5,0.5,0)*euler(1-0.5*i,-1.4-1.57*i,-0.2*i)
  1322. RW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  1323. LW.C0=cf(-1.2-0.3*i,0.3+0.2*i,-0.5+0.5*i)*euler(0.6-0.8*i,-1.57+1.57*i,-0.3*i)
  1324. LW.C1=cf(0,0.5,0)*euler(-0.6+0.6*i,0,0)
  1325. handlewld.Part1=RightArm
  1326. handlewld.C0=euler(1.9,0,0.2)*cf(0,1,0)
  1327. handlewld.C1=euler(0,0,0)
  1328. wld1.C0=euler(0,0,0)*cf(0,1.5-0.5*i,0)
  1329. end
  1330. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  1331. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,1,5,0,"Target",500,1,2) end)
  1332. hitbox.Parent=modelzorz
  1333. hitbox.Size=vt(1,2,1)
  1334. hitbox.CFrame=lprt2.CFrame
  1335. for i=0,1,0.1 do
  1336. swait()
  1337. Torso.Neck.C1=necko2
  1338. Torso.Neck.C0=necko*euler(0,0,-0.2+0.6*i)
  1339. RootJoint.C0=RootCF*euler(0,0,0.2-0.6*i)
  1340. RW.C0=cf(1.5,0.5,0)*euler(0.5-0.6*i,-2.97,-0.2-0.2*i)
  1341. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1342. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(-0.2+1.9*i,0,-0.3+0.7*i)
  1343. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1344. handlewld.C0=euler(1.9+0.4*i,0,0.2)*cf(0,1,0)
  1345. handlewld.C1=euler(0,0,0)
  1346. wld1.C0=euler(0,0,0)*cf(0,1-1*i,0)
  1347. hitbox.CFrame=lprt2.CFrame
  1348. end
  1349. n=2
  1350. for i=0,1,0.1 do
  1351. swait()
  1352. Torso.Neck.C1=necko2
  1353. Torso.Neck.C0=necko*euler(0,0,0.4)
  1354. RootJoint.C0=RootCF*euler(0,0,-0.4)
  1355. RW.C0=cf(1.5,0.5,0)*euler(-0.1-0.1*i*n,-2.97,-0.4)
  1356. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1357. LW.C0=cf(-1,0.5,-0.5)*euler(1.7+0.2*i*n,0,0.4+0.2*i*n)
  1358. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1359. handlewld.C0=euler(2.3+0.2*i*n,0,0.2)*cf(0,1,0)
  1360. hitbox.CFrame=lprt2.CFrame
  1361. n=n-0.1
  1362. end
  1363. con1:disconnect()
  1364. hitbox.Parent=nil
  1365. for i=0,1,0.1 do
  1366. swait()
  1367. Torso.Neck.C1=necko2
  1368. Torso.Neck.C0=necko*euler(0,0,0.4+0.385*i)
  1369. RootJoint.C0=RootCF*euler(0,0,-0.4-0.385*i)
  1370. RW.C0=cf(1.5,0.5,0)*euler(-0.2+1.2*i,-2.97+1.57*i,-0.4+0.4*i)
  1371. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  1372. LW.C0=cf(-1-0.2*i,0.5-0.2*i,-0.5)*euler(1.9-1.3*i,-1.57*i,0.6-0.6*i)
  1373. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  1374. handlewld.C0=euler(2.5-0.6*i,0,0.2)*cf(0,1,0)
  1375. handlewld.C1=euler(0,0,0)
  1376. wld1.C0=euler(0,0,0)*cf(0,1.5*i,0)
  1377. end
  1378. attack=false
  1379. end
  1380.  
  1381. function Lock()
  1382. attack=true
  1383. for i=0,1,0.1 do
  1384. swait()
  1385. Torso.Neck.C1=necko2
  1386. Torso.Neck.C0=necko*euler(0,0,0.785-0.585*i)
  1387. RootJoint.C0=RootCF*euler(0,0,-0.785+0.585*i)
  1388. RW.C0=cf(1.5,0.5,0)*euler(1-1.5*i,-1.4-1.57*i,-0.2*i)
  1389. RW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  1390. LW.C0=cf(-1.2+0.2*i,0.3+0.2*i,-0.5)*euler(0.6+0.97*i,-1.57+1.57*i,1.4*i)
  1391. LW.C1=cf(0,0.5,0)*euler(-0.6+0.6*i,0,0)
  1392. handlewld.Part1=RightArm
  1393. handlewld.C0=euler(1.9-0.4*i,0,0.2)*cf(0,1,0)
  1394. handlewld.C1=euler(0,0,0)
  1395. wld1.C0=euler(0,0,0)*cf(0,1.5-1.5*i,0)
  1396. end
  1397. local laser=part(3,modelzorz,0,0.5,Color3E,"Effect",vt(0.6,0.2,0.6))
  1398. laser.Anchored=true
  1399. local lasmsh=mesh("CylinderMesh",laser,"","",vt(0,0,0),vt(1,1,1))
  1400. local hit=nil
  1401. while holdf==true do
  1402. swait()
  1403. local MouseLook=cf((lprt2.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1404. hit,pos = rayCast(lprt2.Position,MouseLook.lookVector,999,modelzorz)
  1405. laser.CFrame=CFrame.new((lprt2.Position+pos)/2,pos)*angles(1.57,0,0)
  1406. local mag=(lprt2.Position-pos).magnitude
  1407. lasmsh.Scale=vt(0.5,mag*5,0.5)
  1408. end
  1409. laser.Parent=nil
  1410. coroutine.resume(coroutine.create(function(Hitted)
  1411. Damagefunc(Hitted,1,1,0,"Target",300,1,2)
  1412. end),hit)
  1413. for i=0,1,0.1 do
  1414. swait()
  1415. Torso.Neck.C1=necko2
  1416. Torso.Neck.C0=necko*euler(0,0,0.2+0.585*i)
  1417. RootJoint.C0=RootCF*euler(0,0,-0.2-0.585*i)
  1418. RW.C0=cf(1.5,0.5,0)*euler(-0.5+1.5*i,-2.97+1.57*i,-0.2+0.2*i)
  1419. RW.C1=cf(0,0.5,0)*euler(-0.5*i,0,0)
  1420. LW.C0=cf(-1-0.2*i,0.5-0.2*i,-0.5)*euler(1.57-0.97*i,-1.57*i,1.4-1.4*i)
  1421. LW.C1=cf(0,0.5,0)*euler(-0.6*i,0,0)
  1422. handlewld.Part1=RightArm
  1423. handlewld.C0=euler(1.5+0.4*i,0,0.2)*cf(0,1,0)
  1424. handlewld.C1=euler(0,0,0)
  1425. wld1.C0=euler(0,0,0)*cf(0,1.5*i,0)
  1426. end
  1427. attack=false
  1428. end
  1429.  
  1430. function ShootRocket(mindam,maxdam,vel)
  1431. if heat<=400 and heatcooldown==false then
  1432. heat=heat+math.random(mindam,maxdam)
  1433. so("http://www.roblox.com/asset/?id=2697431",prt9,0.3,0.5)
  1434. MagicCircle(Color1,prt9.CFrame,1,1,1,1.5,1.5,1.5,0.05,2)
  1435. local rockt=part(1,workspace,0,1,BrickColor.new("Black"),"Rocket",vt(1,1,1))
  1436. local rocktmesh=part(1,rockt,0,0,Color1,"Rocket",vt(1,1,1))
  1437. if Character.Name ~= "ipupeh213" then
  1438. local rocktmsh=mesh("SpecialMesh",rocktmesh,"FileMesh","http://www.roblox.com/asset/?id=2251534",vt(0,0,0),vt(0.2,0.2,0.2))
  1439. else
  1440. local rocktmsh=mesh("SpecialMesh",rocktmesh,"FileMesh","http://www.roblox.com/asset/?id=36869983",vt(0,0,0),vt(1,1,1))
  1441. rocktmsh.TextureId = "http://www.roblox.com/asset/?id=36893145"
  1442. rocktmsh.VertexColor = Vector3.new(0.25, 0.25, 0.25)
  1443. end
  1444. local rocktwld=weld(rockt,rockt,rocktmesh,euler(0,0,1.57)*cf(0,0,0))
  1445. game:GetService("Debris"):AddItem(rockt,5)
  1446. game:GetService("Debris"):AddItem(rocktmesh,5)
  1447. game:GetService("Debris"):AddItem(rocktmsh,5)
  1448. game:GetService("Debris"):AddItem(rocktwld,5)
  1449. rockt.CFrame=prt10.CFrame
  1450. prop=Instance.new("RocketPropulsion")
  1451. --[[prop.MaxSpeed=5000
  1452. prop.CartoonFactor=10
  1453. prop.MaxThrust=10000
  1454. prop.ThrustD=1.5
  1455. prop.TurnD=0
  1456. prop.TurnP=0]]
  1457. if Targetting==false then
  1458. prop.ThrustP=10
  1459. prop.MaxSpeed=50
  1460. else
  1461. prop.ThrustP=50
  1462. prop.MaxSpeed=100
  1463. end
  1464. --prop.TurnP=1500
  1465. prop.MaxThrust=7000
  1466. prop.CartoonFactor=1
  1467. prop.Parent=rockt
  1468. rockt.Velocity=prt1.CFrame.lookVector*vel
  1469. coroutine.resume(coroutine.create(function(Part,Part2)
  1470. while Part.Parent~=nil do
  1471. swait()
  1472. hit,pos=rayCast(Part.Position,Part.CFrame.lookVector,2,modelzorz)
  1473. if hit~=nil then
  1474. Part:Remove()
  1475. Part2:Remove()
  1476. if hit.Parent:findFirstChild("Humanoid")~=nil then
  1477. Damagefunc(hit,mindam,maxdam,math.random(5,10),"Normal",rockt,0,2,false)
  1478. elseif hit.Parent.Parent:findFirstChild("Humanoid")~=nil then
  1479. Damagefunc(hit.Parent,mindam,maxdam,math.random(5,10),"Normal",rockt,0,2,false)
  1480. end
  1481. --so("http://www.roblox.com/asset/?id=2101148",hit,1,0.6)
  1482. so("http://www.roblox.com/asset/?id=81116747",hit,1,1)
  1483. MagicBlock(Color1,cf(pos),1,1,1,2,2,2,0.05,1)
  1484. end
  1485. end
  1486. Part.Parent=nil
  1487. Part2.Parent=nil
  1488. print("ended")
  1489. end),rockt,rocktmesh)
  1490. hit,pos=rayCast(Head.Position,Head.CFrame.lookVector,999,modelzorz)
  1491. if Targetting==false then
  1492. if hit==nil or hit.Anchored==true then
  1493. local ref=part(1,workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1494. ref.Anchored=true
  1495. ref.CFrame=cf(pos)
  1496. local msh=mesh("BlockMesh",ref,"","",vt(0,0,0),vt(1,1,1))
  1497. game:GetService("Debris"):AddItem(ref,.5)
  1498. prop.Target=ref
  1499. prop:Fire()
  1500. else
  1501. prop.Target=hit
  1502. prop:Fire()
  1503. end
  1504. else
  1505. prop.Target=RocketTarget
  1506. prop:Fire()
  1507. end
  1508. end
  1509. end
  1510.  
  1511. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1512. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1513. end
  1514.  
  1515. local Point=Torso.CFrame*CFrame.new(0,Torso.Size.Y,0)
  1516. LastPoint=Point
  1517. function effect(Color,Ref,LP,P1,returnn)
  1518. local effectsmsh = Instance.new("BlockMesh")
  1519. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  1520. effectsmsh.Name = "Mesh"
  1521. local effectsg = Instance.new("Part")
  1522. effectsg.formFactor = 3
  1523. effectsg.CanCollide = false
  1524. effectsg.Name = "Eff"
  1525. effectsg.Locked = true
  1526. effectsg.Anchored = true
  1527. effectsg.Size = Vector3.new(0.5,1,0.5)
  1528. effectsg.Parent = workspace
  1529. effectsmsh.Parent = effectsg
  1530. effectsg.BrickColor = BrickColor.new(Color)
  1531. effectsg.Reflectance = Ref
  1532. local point1 = P1
  1533. local mg = (LP.p - point1.p).magnitude
  1534. effectsg.Size = Vector3.new(0.5,mg,0.5)
  1535. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1536. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  1537. game:GetService("Debris"):AddItem(effectsg,2)
  1538. if returnn then return effectsg end
  1539. coroutine.resume(coroutine.create(function(Part,Mesh)
  1540. if not returnn then
  1541. for i = 0 , 1 , 0.1 do
  1542. swait()
  1543. Part.Transparency = 1*i
  1544. Mesh.Scale = Vector3.new(0.1-0.1*i,1,0.1-0.1*i)
  1545. end
  1546. swait()
  1547. Part.Parent = nil
  1548. end
  1549. end),effectsg,effectsmsh)
  1550. end
  1551.  
  1552. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1553. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1554. if Type~=3 and Type~=4 then
  1555. prt.Anchored=true
  1556. end
  1557. prt.CFrame=cframe
  1558. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1559. game:GetService("Debris"):AddItem(prt,5)
  1560. coroutine.resume(coroutine.create(function(Part,Mesh,dur,ceef)
  1561. local wld=nil
  1562. if dur==3 or dur==4 then
  1563. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  1564. end
  1565. for i=0,1,delay do
  1566. wait()
  1567. if dur==1 then
  1568. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1569. elseif dur==2 then
  1570. Part.CFrame=Part.CFrame
  1571. elseif dur==3 then
  1572. wld.C0=wld.C0*euler(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  1573. elseif dur==4 then
  1574. wld.C0=ceef
  1575. end
  1576. Part.Transparency=i
  1577. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1578. end
  1579. Part.Parent=nil
  1580. end),prt,msh,Type,cframe)
  1581. end
  1582.  
  1583. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1584. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1585. prt.Anchored=true
  1586. prt.CFrame=cframe
  1587. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1588. game:GetService("Debris"):AddItem(prt,2)
  1589. coroutine.resume(coroutine.create(function(Part,Mesh)
  1590. for i=0,1,delay do
  1591. wait()
  1592. Part.CFrame=Part.CFrame
  1593. Part.Transparency=i
  1594. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1595. end
  1596. Part.Parent=nil
  1597. end),prt,msh)
  1598. end
  1599.  
  1600. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1601. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1602. if Type~=2 then
  1603. prt.Anchored=true
  1604. end
  1605. prt.CFrame=cframe
  1606. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1607. game:GetService("Debris"):AddItem(prt,5)
  1608. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1609. local wld=nil
  1610. if dur==2 then
  1611. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  1612. end
  1613. for i=0,1,delay do
  1614. wait()
  1615. if dur==1 then
  1616. Part.CFrame=Part.CFrame
  1617. elseif dur==2 then
  1618. wld.C0=cframe
  1619. end
  1620. Part.Transparency=i
  1621. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1622. end
  1623. Part.Parent=nil
  1624. end),prt,msh,Type)
  1625. end
  1626.  
  1627. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1628. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1629. prt.Anchored=true
  1630. prt.CFrame=cframe
  1631. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1632. game:GetService("Debris"):AddItem(prt,5)
  1633. coroutine.resume(coroutine.create(function(Part,Mesh)
  1634. for i=0,1,delay do
  1635. wait()
  1636. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1637. Part.Transparency=i
  1638. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1639. end
  1640. Part.Parent=nil
  1641. end),prt,msh)
  1642. end
  1643.  
  1644. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,mshtype)
  1645. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1646. prt.Anchored=true
  1647. prt.CFrame=cframe
  1648. local thetype=""
  1649. if mshtype==1 then
  1650. thetype="http://www.roblox.com/asset/?id=20329976"
  1651. elseif mshtype==2 then
  1652. thetype="http://www.roblox.com/asset/?id=1323306"
  1653. end
  1654. msh=mesh("SpecialMesh",prt,"FileMesh",thetype,vt(0,0,0),vt(x1,y1,z1))
  1655. game:GetService("Debris"):AddItem(prt,2)
  1656. coroutine.resume(coroutine.create(function(Part,Mesh)
  1657. for i=0,1,delay do
  1658. wait()
  1659. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1660. Part.Transparency=i
  1661. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1662. end
  1663. Part.Parent=nil
  1664. end),prt,msh)
  1665. end
  1666.  
  1667. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1668. if hit.Parent==nil then
  1669. return
  1670. end
  1671. h=hit.Parent:FindFirstChild("Humanoid")
  1672. for _,v in pairs(hit.Parent:children()) do
  1673. if v:IsA("Humanoid") then
  1674. h=v
  1675. end
  1676. end
  1677. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1678. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1679. end
  1680. if hit.Parent.className=="Accessory" then
  1681. hit=hit.Parent.Parent:findFirstChild("Head")
  1682. end
  1683. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1684. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1685. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1686. return
  1687. end]]
  1688. -- hs(hit,1.2)
  1689. c=Instance.new("ObjectValue")
  1690. c.Name="creator"
  1691. c.Value=game:service("Players").LocalPlayer
  1692. c.Parent=h
  1693. game:GetService("Debris"):AddItem(c,.5)
  1694. Damage=minim
  1695. -- h:TakeDamage(Damage)
  1696. blocked=false
  1697. block=hit.Parent:findFirstChild("Block")
  1698. if block~=nil then
  1699. if block.className=="NumberValue" then
  1700. if block.Value>0 then
  1701. blocked=true
  1702. if decreaseblock==nil then
  1703. block.Value=block.Value-1
  1704. end
  1705. end
  1706. end
  1707. if block.className=="IntValue" then
  1708. if block.Value>0 then
  1709. blocked=true
  1710. if decreaseblock~=nil then
  1711. block.Value=block.Value-1
  1712. end
  1713. end
  1714. end
  1715. end
  1716. if blocked==false then
  1717. -- h:TakeDamage(Damage)
  1718. HitHealth=h.Health
  1719. h.Health=h.Health-Damage
  1720.  
  1721. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  1722. print("gained spree")
  1723. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  1724. end
  1725. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1726. else
  1727. h.Health=h.Health-Damage/2
  1728. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1729. end
  1730. if Type=="Knockdown" then
  1731. hum=hit.Parent.Humanoid
  1732. hum.PlatformStand=true
  1733. coroutine.resume(coroutine.create(function(HHumanoid)
  1734. swait(1)
  1735. HHumanoid.PlatformStand=false
  1736. end),hum)
  1737. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1738. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1739.  
  1740. game:GetService("Debris"):AddItem(bodvol,.5)
  1741. game:GetService("Debris"):AddItem(rl,.5)
  1742. elseif Type=="Normal" then
  1743.  
  1744. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1745. if KnockbackType==1 then
  1746. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1747. elseif KnockbackType==2 then
  1748. vp.velocity=Property.CFrame.lookVector*knockback
  1749. end
  1750. if knockback>0 then
  1751. ---vp.Parent=hit.Parent.Torso
  1752. end
  1753. game:GetService("Debris"):AddItem(vp,.5)
  1754. elseif Type=="Up" then
  1755.  
  1756. game:GetService("Debris"):AddItem(rl,.5)
  1757. elseif Type=="Snare" then
  1758.  
  1759. game:GetService("Debris"):AddItem(bp,1)
  1760. elseif Type=="Target" then
  1761. if Targetting==false then
  1762. ZTarget=hit.Parent.Torso
  1763. coroutine.resume(coroutine.create(function(Part)
  1764. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1765. swait(5)
  1766. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1767. end),ZTarget)
  1768. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1769. targetgui=Instance.new("BillboardGui")
  1770. targetgui.Parent=ZTarget
  1771. targetgui.Size=UDim2.new(10,100,10,100)
  1772. targ=Instance.new("ImageLabel")
  1773. targ.Parent=targetgui
  1774. targ.BackgroundTransparency=1
  1775. targ.Image="rbxassetid://4834067"
  1776. targ.Size=UDim2.new(1,0,1,0)
  1777. cam.CameraType="Scriptable"
  1778. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1779. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1780. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1781. Targetting=true
  1782. RocketTarget=ZTarget
  1783. for i=1,Property do
  1784. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1785. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1786. swait()
  1787. end
  1788. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1789. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1790. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1791. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1792. end
  1793. Targetting=false
  1794. RocketTarget=nil
  1795. targetgui.Parent=nil
  1796. cam.CameraType="Custom"
  1797. end
  1798. end
  1799. debounce=Instance.new("BoolValue")
  1800. debounce.Name="DebounceHit"
  1801. debounce.Parent=hit.Parent
  1802. debounce.Value=true
  1803. game:GetService("Debris"):AddItem(debounce,Delay)
  1804. c=Instance.new("ObjectValue")
  1805. c.Name="creator"
  1806. c.Value=Player
  1807. c.Parent=h
  1808. game:GetService("Debris"):AddItem(c,.5)
  1809. CRIT=false
  1810. hitDeb=true
  1811. AttackPos=6
  1812. end
  1813. end
  1814.  
  1815. showDamage=function(Char,Dealt,du,Color)
  1816. m=Instance.new("Model")
  1817. m.Name=tostring(Dealt)
  1818. h=Instance.new("Humanoid")
  1819. h.Health=0
  1820. h.MaxHealth=0
  1821. h.Parent=m
  1822. c=Instance.new("Part")
  1823. c.Transparency=0
  1824. c.BrickColor=Color
  1825. c.Name="Head"
  1826. c.TopSurface=0
  1827. c.BottomSurface=0
  1828. c.formFactor="Plate"
  1829. c.Size=Vector3.new(1,.4,1)
  1830. ms=Instance.new("CylinderMesh")
  1831. ms.Scale=Vector3.new(.8,.8,.8)
  1832. if CRIT==true then
  1833. ms.Scale=Vector3.new(1,1.25,1)
  1834. end
  1835. ms.Parent=c
  1836. c.Reflectance=0
  1837. Instance.new("BodyGyro").Parent=c
  1838. c.Parent=m
  1839. if Char:findFirstChild("Head")~=nil then
  1840. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1841. elseif Char.Parent:findFirstChild("Head")~=nil then
  1842. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1843. end
  1844. f=Instance.new("BodyPosition")
  1845. f.P=2000
  1846. f.D=100
  1847. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1848. f.position=c.Position+Vector3.new(0,3,0)
  1849. f.Parent=c
  1850. game:GetService("Debris"):AddItem(m,.5+du)
  1851. c.CanCollide=false
  1852. m.Parent=workspace
  1853. c.CanCollide=false
  1854. end
  1855.  
  1856. combo=0
  1857. function ob1d(mouse)
  1858. if attack==true then return end
  1859. hold=true
  1860. if combo==0 then
  1861. combo=1
  1862. attackone()
  1863. elseif combo==1 then
  1864. combo=2
  1865. attacktwo()
  1866. elseif combo==2 then
  1867. combo=3
  1868. attackthree()
  1869. elseif combo==3 then
  1870. combo=0
  1871. end
  1872. coroutine.resume(coroutine.create(function()
  1873. for i=1,40 do
  1874. if attack==false then
  1875. swait()
  1876. end
  1877. end
  1878. if attack==false then
  1879. combo=0
  1880. equipanim()
  1881. end
  1882. end))
  1883. end
  1884.  
  1885. function ob1u(mouse)
  1886. hold = false
  1887. end
  1888.  
  1889. buttonhold = false
  1890.  
  1891. eul=0
  1892. holdq=false
  1893. holdf=false
  1894. holdg=false
  1895. holdz=false
  1896. holdx=false
  1897. holdc=false
  1898. holdv=false
  1899. clickedf=true
  1900. function key(key)
  1901. if key=="q" then
  1902. holdq=true
  1903. end
  1904. if key=="f" then
  1905. holdf=true
  1906. end
  1907. if key=="g" then
  1908. holdg=true
  1909. end
  1910. if key=="z" then
  1911. holdz=true
  1912. end
  1913. if key=="x" then
  1914. holdx=true
  1915. end
  1916. if key=="c" then
  1917. holdc=true
  1918. end
  1919. if key=="v" then
  1920. holdv=true
  1921. end
  1922. if attack==true then return end
  1923. if key=="g" then
  1924. if holdq==false then
  1925. Cooldown()
  1926. else
  1927. Regain()
  1928. end
  1929. end
  1930. if key=="z" and mana>=30 and heat<=400 and heatcooldown==false then
  1931. mana=mana-30
  1932. ChargeHammer()
  1933. end
  1934. if key=="x"then
  1935. RocketBarrage()
  1936. end
  1937. if key=="c" and mana>=50 then
  1938. mana=mana-50
  1939. PushExplosion()
  1940. end
  1941. if key=="v" and mana>=200 and heat<=400 and heatcooldown==false then
  1942. mana=mana-200
  1943. TornadoSpire()
  1944. end
  1945. if key=="f" then
  1946. if holdq==true then
  1947. Lock()
  1948. else
  1949. Target()
  1950. end
  1951. end
  1952. if key=="g" then
  1953. Targetting=false
  1954. end
  1955. end
  1956.  
  1957. function key2(key)
  1958. if key=="q" then
  1959. holdq=false
  1960. end
  1961. if key=="f" then
  1962. holdf=false
  1963. end
  1964. if key=="g" then
  1965. holdg=false
  1966. end
  1967. if key=="z" then
  1968. holdz=false
  1969. end
  1970. if key=="x" then
  1971. holdx=false
  1972. end
  1973. if key=="c" then
  1974. holdc=false
  1975. end
  1976. if key=="v" then
  1977. holdv=false
  1978. end
  1979. end
  1980.  
  1981. function s(mouse)
  1982. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1983. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1984. mouse.KeyDown:connect(key)
  1985. mouse.KeyUp:connect(key2)
  1986. unsheathed=true
  1987. player=Player
  1988. ch=Character
  1989. MMouse=mouse
  1990. RSH=ch.Torso["Right Shoulder"]
  1991. LSH=ch.Torso["Left Shoulder"]
  1992. --
  1993. RSH.Parent=nil
  1994. LSH.Parent=nil
  1995. --
  1996. RW.Name="Right Shoulder"
  1997. RW.Part0=ch.Torso
  1998. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1999. RW.C1=cf(0, 0.5, 0)
  2000. RW.Part1=ch["Right Arm"]
  2001. RW.Parent=ch.Torso
  2002. --
  2003. LW.Name="Left Shoulder"
  2004. LW.Part0=ch.Torso
  2005. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2006. LW.C1=cf(0, 0.5, 0)
  2007. LW.Part1=ch["Left Arm"]
  2008. LW.Parent=ch.Torso
  2009. --
  2010. equipanim()
  2011. end
  2012.  
  2013. function ds(mouse)
  2014. hideanim()
  2015. swait(0)
  2016. RW.Parent=nil
  2017. LW.Parent=nil
  2018. RSH.Parent=player.Character.Torso
  2019. LSH.Parent=player.Character.Torso
  2020. end
  2021.  
  2022. Bin.Selected:connect(s)
  2023. Bin.Deselected:connect(ds)
  2024. print("Lock-on Hammer loaded.")
  2025.  
  2026. --[[
  2027. Copyrighted (C) Fenrier 2014
  2028. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement