Advertisement
tusKOr661

a

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