UltimateGate

BLACK MAGIC - Enigma

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