4vJorckV5

Untitled

May 27th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.21 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it=Instance.new
  18. vt=Vector3.new
  19. cf=CFrame.new
  20. euler=CFrame.fromEulerAnglesXYZ
  21. angles=CFrame.Angles
  22. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  23. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  25. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  26. attack = false
  27. attacktype = 1
  28. damage = 5
  29. oridamage = 50
  30. attackdebounce = false
  31. MMouse=nil
  32. combo=0
  33. Charge=0
  34. con1=nil
  35. --player
  36. player = nil
  37. --save shoulders
  38. RSH, LSH = nil, nil
  39. --welds
  40. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  41. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  42. if Character:findFirstChild("Rocket Hammer",true) ~= nil then
  43. Character:findFirstChild("Rocket Hammer",true).Parent = nil
  44. end
  45. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  46. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  47. end
  48. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  49. local fp = it("Part")
  50. fp.formFactor = formfactor
  51. fp.Parent = parent
  52. fp.Reflectance = reflectance
  53. fp.Transparency = transparency
  54. fp.CanCollide = false
  55. fp.Locked=true
  56. fp.BrickColor = brickcolor
  57. fp.Name = name
  58. fp.Size = size
  59. fp.Position = Torso.Position
  60. fp.BottomSurface="Smooth"
  61. fp.TopSurface="Smooth"
  62. fp:BreakJoints()
  63. return fp
  64. end
  65. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  66. local mesh = it(Mesh)
  67. mesh.Parent = part
  68. if Mesh=="SpecialMesh" then
  69. mesh.MeshType = meshtype
  70. mesh.MeshId = meshid
  71. end
  72. mesh.Offset=offset
  73. mesh.Scale=scale
  74. return mesh
  75. end
  76. function weld(parent,part0,part1,c0)
  77. local weld = it("Weld")
  78. weld.Parent = parent
  79. weld.Part0 = part0
  80. weld.Part1 = part1
  81. weld.C0 = c0
  82. return weld
  83. end
  84. local fengui = it("GuiMain")
  85. fengui.Parent = Player.PlayerGui
  86. fengui.Name = "WeaponGUI"
  87. local fenframe = it("Frame")
  88. fenframe.Parent = fengui
  89. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  90. fenframe.BackgroundTransparency = 1
  91. fenframe.BorderColor3 = Color3.new(17,17,17)
  92. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  93. fenframe.Position=UDim2.new(0,1300,0,300)
  94. local fentext = it("TextLabel")
  95. fentext.Parent = fenframe
  96. fentext.Text = " "
  97. fentext.BackgroundTransparency = 0
  98. fentext.BackgroundColor3 = Color3.new(0,0,0)
  99. fentext.SizeConstraint = "RelativeXY"
  100. fentext.TextXAlignment = "Center"
  101. fentext.TextYAlignment = "Center"
  102. fentext.Position = UDim2.new(0,0,0,0)
  103. fentext.Size = UDim2.new(0.710000306,0,2.79999995,0)
  104. local fentext2 = it("TextLabel")
  105. fentext2.Parent = fenframe
  106. fentext2.Text = " "
  107. fentext2.BackgroundTransparency = 0
  108. fentext2.BackgroundColor3 = Color3.new(1,0,0)
  109. fentext2.SizeConstraint = "RelativeXY"
  110. fentext2.TextXAlignment = "Center"
  111. fentext2.TextYAlignment = "Center"
  112. fentext2.Position = UDim2.new(0,0,2.8,0)
  113. fentext2.Size = UDim2.new(0.710000306,0,-2.8*Charge,0)
  114. local modelzorz = Instance.new("Model")
  115. modelzorz.Parent = Character
  116. modelzorz.Name = "Rocket Hammer"
  117. local prt1=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part1",vt(0.5,0.5,0.5))
  118. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part2",vt(0.5,0.5,0.5))
  119. local prt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(0.5,0.5,0.5))
  120. local prt4=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part4",vt(0.5,0.5,0.5))
  121. local prt5=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part5",vt(0.5,0.5,0.5))
  122. local prt6=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part6",vt(0.5,0.5,0.5))
  123. local prt7=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part7",vt(0.5,0.5,0.5))
  124. local prt8=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part8",vt(0.5,0.5,0.5))
  125. local prt9=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9",vt(0.5,0.5,0.5))
  126. local prt10=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part10",vt(0.5,0.5,0.5))
  127. local prt11=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part11",vt(0.5,0.5,0.5))
  128. local prt12=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt(0.5,0.5,0.5))
  129. local prt13=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part13",vt(0.5,0.5,0.5))
  130. local prt14=part(3,modelzorz,0,0,BrickColor.new("Dark red"),"Part14",vt(0.5,0.5,0.5))
  131. local prt15=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part15",vt(0.5,0.5,0.5))
  132. local prt16=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part16",vt(0.5,0.5,0.5))
  133. local prt17=part(3,modelzorz,0,0,BrickColor.new("Dark red"),"Part17",vt(0.5,0.5,0.5))
  134. local prt17b=part(3,modelzorz,0,1,BrickColor.new("Bright yellow"),"Part17b",vt(0.5,0.5,0.5))
  135. local prt18=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part18",vt(0.5,0.5,0.5))
  136. local prt19=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part19",vt(0.5,0.5,0.5))
  137. local prt20=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part20",vt(0.5,0.5,0.5))
  138. local prt21=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part21",vt(0.5,0.5,0.5))
  139. local prt22=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part22",vt(0.5,0.5,0.5))
  140. local prt23=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part23",vt(0.5,0.5,0.5))
  141. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(1,2,1))
  142. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.7,3,0.7))
  143. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1,1.5,1.3))
  144. local msh4=mesh("CylinderMesh",prt4,"","",vt(0,0,0),vt(1.5,1.5,1.5))
  145. local msh5=mesh("CylinderMesh",prt5,"","",vt(0,0,0),vt(1,1.6,1))
  146. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.3,3,0.3))
  147. local msh7=mesh("CylinderMesh",prt7,"","",vt(0,0,0),vt(1.5,2.5,1.5))
  148. local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(1.6,1.5,1.6))
  149. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(1.2,2.51,1.2))
  150. local msh10=mesh("CylinderMesh",prt10,"","",vt(0,0,0),vt(0.5,2,0.5))
  151. local msh11=mesh("CylinderMesh",prt11,"","",vt(0,0,0),vt(0.5,2,0.5))
  152. local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(1,5,1))
  153. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,4,2))
  154. local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(2,2,2.1))
  155. local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(2.5,1,2.5))
  156. local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(2.5,1,3))
  157. local msh17=mesh("CylinderMesh",prt17,"","",vt(0,0,0),vt(3,3,3))
  158. local msh17b=mesh("CylinderMesh",prt17b,"","",vt(0,0,0),vt(3.001,3,3.01))
  159. local msh18=mesh("CylinderMesh",prt18,"","",vt(0,0,0),vt(3.2,1.5,3.2))
  160. local msh19=mesh("CylinderMesh",prt19,"","",vt(0,0,0),vt(3.2,1,3.2))
  161. local msh20=mesh("CylinderMesh",prt20,"","",vt(0,0,0),vt(3.2,1,3.2))
  162. local msh21=mesh("CylinderMesh",prt21,"","",vt(0,0,0),vt(2.5,1,2.5))
  163. local msh22=mesh("CylinderMesh",prt22,"","",vt(0,0,0),vt(0.5,2,0.5))
  164. local msh23=mesh("CylinderMesh",prt23,"","",vt(0,0,0),vt(0.5,2.1,0.5))
  165. local wld1=weld(prt1,prt1,Torso,euler(3.14,-1.57,0)*cf(0,-4,-0.5))
  166. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  167. local wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  168. local wld4=weld(prt4,prt4,prt3,euler(0,0,1.57)*cf(0,0.5,-0.1))
  169. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,0,0))
  170. local wld6=weld(prt6,prt6,prt3,euler(1.57,0,0)*cf(0,0,0))
  171. local wld7=weld(prt7,prt7,prt6,euler(1.57,0,0)*cf(0,-0.8,0))
  172. local wld8=weld(prt8,prt8,prt7,euler(0,0,0)*cf(0,0,0))
  173. local wld9=weld(prt9,prt9,prt7,euler(0,0,0)*cf(0,0,0))
  174. local wld10=weld(prt10,prt10,prt7,euler(-0.2,0,0)*cf(0,1,0))
  175. local wld11=weld(prt11,prt11,prt1,euler(1.57+0.3,0,0)*cf(0,-0.5,0.3))
  176. local wld12=weld(prt12,prt12,prt1,euler(0,0,0)*cf(0,-2,0))
  177. local wld13=weld(prt13,prt13,prt12,euler(0,0,0)*cf(0,-1.75,0))
  178. local wld14=weld(prt14,prt14,prt13,euler(0,0,0)*cf(0,-1,0))
  179. local wld15=weld(prt15,prt15,prt14,euler(0,0,0)*cf(0,-0.6,0.4))
  180. local wld16=weld(prt16,prt16,prt14,euler(1.57,0,0)*cf(0,0.4,0.77))
  181. local wld17=weld(prt17,prt17,prt14,euler(1.57,0,0)*cf(0,0,-1.4))
  182. local wld17b=weld(prt17b,prt17b,prt17,euler(0,0,0)*cf(0,0,0))
  183. local wld18=weld(prt18,prt18,prt17,euler(0,0,0)*cf(0,0,0))
  184. local wld19=weld(prt19,prt19,prt17,euler(0,0,0)*cf(0,0.8,0))
  185. local wld20=weld(prt20,prt20,prt17,euler(0,0,0)*cf(0,-0.8,0))
  186. local wld21=weld(prt21,prt21,prt19,euler(0,0,0)*cf(0,0.01,0))
  187. local wld22=weld(prt22,prt22,prt13,euler(0.5,0,0)*cf(0,1.2,-0.6))
  188. local wld23=weld(prt23,prt23,prt22,euler(-1.2,0,0)*cf(0,0.6,0.5))
  189. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox",vt(3,3,3))
  190. local hitboxwld=weld(hitbox,hitbox,prt14,euler(0,0,0)*cf(0,0,0))
  191. local BoosterFire = Instance.new("Fire")
  192. BoosterFire.Parent = prt19
  193. BoosterFire.Heat = -25
  194. BoosterFire.Size = 1
  195. function MakeRocketPart(x,y,z)
  196. local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"RocketPart",vt(0.5,0.5,0.5))
  197. local prta=part(3,modelzorz,0,0,BrickColor.new("Dark red"),"RocketPart",vt(0.5,0.5,0.5))
  198. local prtb=part(3,modelzorz,0,0,BrickColor.new("Bright yellow"),"RocketPart",vt(0.5,0.5,0.5))
  199. local prtc=part(3,modelzorz,0,0,BrickColor.new("Really black"),"RocketPart",vt(0.5,0.5,0.5))
  200. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(1.5,2.5,1.5))
  201. local msha=mesh("CylinderMesh",prta,"","",vt(0,0,0),vt(1.6,1.5,1.6))
  202. local mshb=mesh("SpecialMesh",prtb,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.55,0.3,0.55))
  203. local mshc=mesh("CylinderMesh",prtc,"","",vt(0,0,0),vt(1.3,2.5,1.3))
  204. local wld=weld(prt,prt,prt14,euler(1.57,0,0)*cf(x,y,z))
  205. local wlda=weld(prta,prta,prt,euler(0,0,0)*cf(0,0,0))
  206. local wldb=weld(prtb,prtb,prt,euler(0,0,0)*cf(0,-0.8,0))
  207. local wldc=weld(prtc,prtc,prt,euler(0,0,0)*cf(0,0.01,0))
  208. local BoosterFire = Instance.new("Fire")
  209. BoosterFire.Parent = prt
  210. BoosterFire.Heat = -25
  211. BoosterFire.Size = 0.2
  212. end
  213. MakeRocketPart(0.8,0,0.5)
  214. MakeRocketPart(-0.8,0,0.5)
  215. MakeRocketPart(0,-0.8,0.5)
  216. if (script.Parent.className ~= "HopperBin") then
  217. Tool = Instance.new("HopperBin")
  218. Tool.Parent = Backpack
  219. Tool.Name = "Rocket Hammer"
  220. script.Parent = Tool
  221. end
  222. Bin = script.Parent
  223. local bg = it("BodyGyro")
  224. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  225. bg.P = 20e+003
  226. bg.Parent = nil
  227. so = function(id,par,vol,pit)
  228. coroutine.resume(coroutine.create(function()
  229. local sou = Instance.new("Sound",par or workspace)
  230. sou.Volume=vol
  231. sou.Pitch=pit or 1
  232. sou.SoundId=id
  233. wait()
  234. sou:play()
  235. wait(6)
  236. sou:Remove()
  237. end))
  238. end
  239. function unequipweld()
  240. wld1.Part1=Torso
  241. wld1.C0=euler(3.14,-1.57,0)*cf(0,-4,-0.5)
  242. end
  243. function equipweld()
  244. wld1.Part1=RightArm
  245. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  246. end
  247. function hideanim()
  248. equipped=false
  249. wait(0.1)
  250. bg.Parent=nil
  251. unequipweld()
  252. end
  253. function equipanim()
  254. equipped=true
  255. wait(0.1)
  256. equipweld()
  257. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  258. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,-0.2)
  259. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  260. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  261. end
  262. Damagefunc1=function(hit,Damage,Knockback)
  263. if hit.Parent==nil then
  264. return
  265. end
  266. CPlayer=Bin
  267. h=hit.Parent:FindFirstChild("Humanoid")
  268. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  269. if attackdebounce == false then
  270. attackdebounce = true
  271. coroutine.resume(coroutine.create(function()
  272. wait(0.2)
  273. attackdebounce = false
  274. end))
  275. Damage=Damage
  276. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  277. return
  278. end]]
  279. -- hs(hit,1.2)
  280. c=Instance.new("ObjectValue")
  281. c.Name="creator"
  282. c.Value=game.Players.LocalPlayer
  283. c.Parent=h
  284. game:GetService("Debris"):AddItem(c,.5)
  285. Damage=Damage+math.random(0,10)
  286. so("http://www.roblox.com/asset/?id=2697431",hit,5,0.4)
  287. MagicCircle(BrickColor.new("Bright red"),hit.CFrame,1,1,1,0,0,0,2,2,2)
  288. -- h:TakeDamage(Damage)
  289. -- showDamage(hit.Parent,Damage,.5)
  290. blocked=false
  291. block=hit.Parent:findFirstChild("Block")
  292. if block~=nil then
  293. print("herp")
  294. if block.Value>0 then
  295. blocked=true
  296. block.Value=block.Value-3
  297. print(block.Value)
  298. end
  299. end
  300. if blocked==false then
  301. -- h:TakeDamage(Damage)
  302. h.Health=h.Health-Damage
  303. showDamage(hit.Parent,Damage,.5)
  304. else
  305. h:TakeDamage(1)
  306. showDamage(hit.Parent,1,.5)
  307. end
  308. vp=Instance.new("BodyVelocity")
  309. vp.P=500
  310. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  311. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  312. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  313. if Knockback>0 then
  314. vp.Parent=hit.Parent.Torso
  315. end
  316. game:GetService("Debris"):AddItem(vp,.25)
  317. c=Instance.new("ObjectValue")
  318. c.Name="creator"
  319. c.Value=Player
  320. c.Parent=h
  321. game:GetService("Debris"):AddItem(c,.5)
  322. CRIT=false
  323. hitDeb=true
  324. AttackPos=6
  325. end
  326. end
  327. end
  328. Damagefunc2=function(hit,Damage,Knockback)
  329. if attackdebounce == false then
  330. attackdebounce = true
  331. coroutine.resume(coroutine.create(function()
  332. wait(0.1)
  333. attackdebounce = false
  334. end))
  335. if hit.Parent==nil then
  336. return
  337. end
  338. CPlayer=Bin
  339. blocked=false
  340. h=hit.Parent:FindFirstChild("Humanoid")
  341. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  342. Damage=Damage
  343. c=it("ObjectValue")
  344. c.Name="creator"
  345. c.Value=game.Players.LocalPlayer
  346. c.Parent=h
  347. game:GetService("Debris"):AddItem(c,.5)
  348. -- print(c.Value)
  349. --[[ if math.random(0,99)+math.random()<=7.8 then
  350. CRIT=true
  351. Damage=Damage*2
  352. s=it("Sound")
  353. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  354. s.Volume=1
  355. s.Pitch=2
  356. s.Parent=hit
  357. s.PlayOnRemove=true
  358. s.Parent=nil
  359.  
  360. end]]
  361. Damage=Damage+math.random(0,10)
  362. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  363. blocked=false
  364. block=hit.Parent:findFirstChild("Block")
  365. if block~=nil then
  366. print("herp")
  367. if block.Value>0 then
  368. blocked=true
  369. block.Value=block.Value-10
  370. print(block.Value)
  371. end
  372. end
  373. if blocked==false then
  374. -- h:TakeDamage(Damage)
  375. h.Health=h.Health-Damage
  376. showDamage(hit.Parent,Damage,.5)
  377. else
  378. h:TakeDamage(1)
  379. showDamage(hit.Parent,1,.5)
  380. end
  381. --if blocked==false then
  382. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  383. print(angle)
  384. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  385. rl=Instance.new("BodyAngularVelocity")
  386. rl.P=3000
  387. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  388. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  389. rl.Parent=hit
  390. coroutine.resume(coroutine.create(function(vel)
  391. wait(1)
  392. vel:Remove()
  393. end),rl)
  394. --end
  395. local bodyVelocity=Instance.new("BodyVelocity")
  396. bodyVelocity.velocity=angle*40
  397. bodyVelocity.P=5000
  398. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  399. bodyVelocity.Parent=hit
  400. coroutine.resume(coroutine.create(function(Vel)
  401. wait(0.3)
  402. Vel:Remove()
  403. end),bodyVelocity)
  404. game:GetService("Debris"):AddItem(vp,1)
  405. c=it("ObjectValue")
  406. c.Name="creator"
  407. c.Value=Player
  408. c.Parent=h
  409. game:GetService("Debris"):AddItem(c,.5)
  410. CRIT=false
  411. hitDeb=true
  412. AttackPos=6
  413. end
  414. end
  415. end
  416. showDamage=function(Char,Dealt,du)
  417. m=Instance.new("Model")
  418. m.Name=tostring(Dealt)
  419. h=Instance.new("Humanoid")
  420. h.Health=0
  421. h.MaxHealth=0
  422. h.Parent=m
  423. c=Instance.new("Part")
  424. c.Transparency=0
  425. c.BrickColor=BrickColor:Red()
  426. if CRIT==true then
  427. c.BrickColor=BrickColor.new("Really red")
  428. end
  429. c.Name="Head"
  430. c.TopSurface=0
  431. c.BottomSurface=0
  432. c.formFactor="Plate"
  433. c.Size=Vector3.new(1,.4,1)
  434. ms=Instance.new("CylinderMesh")
  435. ms.Scale=Vector3.new(.8,.8,.8)
  436. if CRIT==true then
  437. ms.Scale=Vector3.new(1,1.25,1)
  438. end
  439. ms.Parent=c
  440. c.Reflectance=0
  441. Instance.new("BodyGyro").Parent=c
  442. c.Parent=m
  443. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  444. f=Instance.new("BodyPosition")
  445. f.P=2000
  446. f.D=100
  447. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  448. f.position=c.Position+Vector3.new(0,3,0)
  449. f.Parent=c
  450. game:GetService("Debris"):AddItem(m,.5+du)
  451. c.CanCollide=false
  452. m.Parent=workspace
  453. c.CanCollide=false
  454. end
  455. function MagicBlock(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  456. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  457. prt.Anchored=true
  458. prt.CFrame=cframe*cf(x2,y2,z2)
  459. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  460. coroutine.resume(coroutine.create(function()
  461. for i=0,1,0.1 do
  462. wait()
  463. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  464. prt.Transparency=i
  465. msh.Scale=msh.Scale+vt(0.2,0.2,0.2)
  466. end
  467. prt.Parent=nil
  468. end))
  469. end
  470. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  471. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  472. prt.Anchored=true
  473. prt.CFrame=cframe*cf(x2,y2,z2)
  474. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  475. coroutine.resume(coroutine.create(function()
  476. for i=0,1,0.1 do
  477. wait()
  478. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  479. prt.Transparency=i
  480. msh.Scale=msh.Scale+vt(x3,y3,z3)
  481. end
  482. prt.Parent=nil
  483. end))
  484. end
  485. function SwirlEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  486. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  487. prt.Anchored=true
  488. prt.CFrame=cframe*cf(x2,y2,z2)*euler(1.57,0,0)
  489. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  490. coroutine.resume(coroutine.create(function()
  491. for i=0,1,0.07 do
  492. wait()
  493. prt.CFrame=prt.CFrame*cf(0,0.5,0)*euler(0,0.5,0)
  494. prt.Transparency=i
  495. msh.Scale=msh.Scale+vt(0.4,1,0.4)
  496. end
  497. prt.Parent=nil
  498. end))
  499. end
  500. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  501. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  502. prt.Anchored=true
  503. prt.CFrame=cframe*cf(x2,y2,z2)
  504. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  505. coroutine.resume(coroutine.create(function()
  506. for i=0,1,0.1 do
  507. wait()
  508. prt.Transparency=i
  509. msh.Scale=msh.Scale+vt(0.05,0.05,0.05)
  510. end
  511. prt.Parent=nil
  512. end))
  513. end
  514. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  515. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  516. end
  517. function oneslash()
  518. attack=true
  519. combo=1
  520. for i=0,1,0.1 do
  521. wait()
  522. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1+0.57*i,0,0)
  523. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6-0.97*i,-0.2+1.2*i)
  524. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2-1.37*i)
  525. LW.C1=cf(0, 0.5, 0) * euler(0.5*i,0,0)
  526. end
  527. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,30,40) end)
  528. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.6)
  529. for i=0,1,0.2 do
  530. wait()
  531. for i=1,3 do
  532. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  533. end
  534. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,0)
  535. RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(1.57,0,0)
  536. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,1-2.5*i)
  537. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0,0,-1.57)
  538. LW.C1=cf(0, 0.5, 0) * euler(0.5-2.5*i,0,0)
  539. end
  540. con1:disconnect()
  541. for i=0,1,0.1 do
  542. wait()
  543. wld1.C0=euler(2.07,0,0)*cf(0,1,0)
  544. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  545. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,-1.5-0.2*i)
  546. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  547. LW.C1=cf(0, 0.5, 0) * euler(0.5-2.5-0.2*i,0,0)
  548. end
  549. attack=false
  550. end
  551. function twoslash()
  552. attack=true
  553. combo=2
  554. for i=0,1,0.1 do
  555. wait()
  556. eul=1*i
  557. Torso.Neck.C0=necko*euler(0,0,-1*i)
  558. wld1.C0=euler(2.07-0.5*i,0,0)*cf(0,1,0)
  559. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  560. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,-1.7+2*i)
  561. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  562. LW.C1=cf(0, 0.5, 0) * euler(0.5-2.7,0,0)
  563. end
  564. con1=Torso.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  565. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.4)
  566. local vel2 = Instance.new("BodyVelocity")
  567. vel2.Parent = Torso
  568. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  569. vel2.velocity = Head.CFrame.lookVector*70
  570. for i=0,1,0.1 do
  571. wait(0)
  572. MagicBlock(BrickColor.new("Bright stone grey"),Torso.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  573. end
  574. con1:disconnect()
  575. vel2.Parent=nil
  576. attack=false
  577. end
  578. function threeslash()
  579. attack=true
  580. combo=3
  581. local vel2 = Instance.new("BodyVelocity")
  582. vel2.Parent = Torso
  583. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  584. vel2.velocity = Head.CFrame.lookVector*20
  585. for i=0,1,0.1 do
  586. wait()
  587. eul=1-6.32*i
  588. end
  589. vel2.Parent=nil
  590. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,30,60) end)
  591. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.7)
  592. for i=0,1,0.15 do
  593. wait()
  594. for i=1,3 do
  595. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  596. end
  597. eul=1-2*i
  598. Torso.Neck.C0=necko*euler(0,0,-1+2*i)
  599. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,0)
  600. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  601. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,0.3-2*i)
  602. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  603. LW.C1=cf(0, 0.5, 0) * euler(-2.2,0,0)
  604. end
  605. for i=0,1,0.1 do
  606. wait()
  607. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  608. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,0.3-2-0.1*i)
  609. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  610. LW.C1=cf(0, 0.5, 0) * euler(-2.2,0,0)
  611. end
  612. con1:disconnect()
  613. attack=false
  614. end
  615. function GrandSlam()
  616. attack=true
  617. Humanoid.WalkSpeed=0
  618. for i=0,1,0.1 do
  619. wait(0)
  620. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,0)
  621. RW.C0=cf(1.5, 0.5, 0) * euler(1+2*i,0,0)
  622. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+0.2*i)
  623. LW.C0=cf(-1.5, 0.5, 0) * euler(0.3*i,0,-0.2)
  624. end
  625. coroutine.resume(coroutine.create(function(v)
  626. wait()
  627. while attack==true do
  628. wait(0)
  629. bg.Parent = Torso
  630. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  631. bg.cframe = cf(Torso.Position,pos4) * euler(0,eul,0) * cf(0,0,0)
  632. end
  633. eul=0
  634. bg.Parent=nil
  635. end))
  636. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.5)
  637. for i=0,1,0.1 do
  638. wait(0)
  639. for i=1,3 do
  640. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  641. end
  642. eul=1*i
  643. Torso.Neck.C0=necko*euler(0,0,-1*i)
  644. RW.C0=cf(1.5, 0.5, 0) * euler(3.2-1.63*i,0,1*i)
  645. RW.C1=cf(0, 0.5, 0) * euler(1.2*i,0,0)
  646. LW.C0=cf(-1.5, 0.5, 0) * euler(0.4-0.9*i,0,-0.2)
  647. end
  648. Charge=Charge+0.2
  649. local c = game.Workspace:GetChildren();
  650. for i = 1, #c do
  651. local hum = c[i]:findFirstChild("Humanoid")
  652. if hum ~= nil and hum.Health ~= 0 then
  653. local head = c[i]:findFirstChild("Head");
  654. if head ~= nil then
  655. local targ = head.Position - hitbox.Position;
  656. local mag = targ.magnitude;
  657. if mag <= 20 and c[i].Name ~= Player.Name then
  658. attackdebounce=false
  659. Damagefunc2(head,40,80)
  660. end
  661. end
  662. end
  663. end
  664. so("http://www.roblox.com/asset/?id=2697431",hitbox,5,0.2)
  665. MagicCircle(BrickColor.new("Bright red"),hitbox.CFrame,2,2,2,0,0,0,6,6,6)
  666. SwirlEffect(BrickColor.new("Bright red"),hitbox.CFrame,10,10,10,0,0,0)
  667. for i=1,8 do
  668. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,2,2,2,math.random(-9,9),math.random(-9,9),math.random(-9,9))
  669. end
  670. wait(0.2)
  671. for i=1,8 do
  672. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,2,2,2,math.random(-20,20),math.random(-20,20),math.random(-20,20))
  673. end
  674. attack=false
  675. wait(0)
  676. attack=true
  677. wait(0.3)
  678. for i=0,1,0.1 do
  679. wait(0)
  680. wld1.C0=euler(1.57+0.5-0.5*i,0,0)*cf(0,1,0)
  681. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,1)
  682. RW.C1=cf(0, 0.5, 0) * euler(1.2-0.1*i,0,0)
  683. end
  684. for i=0,1,0.1 do
  685. wait(0)
  686. Torso.Neck.C0=necko*euler(0,0,-1+1*i)
  687. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-0.57*i,0,1-1*i)
  688. RW.C1=cf(0, 0.5, 0) * euler(1.1-1.1*i,-0.6*i,-0.2*i)
  689. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-0.2)
  690. end
  691. Humanoid.WalkSpeed=16
  692. attack=false
  693. end
  694. function HammerCharge()
  695. attack=true
  696. for i=0,1,0.1 do
  697. wait()
  698. RW.C0=cf(1.5, 0.5, 0) * euler(1+0.57*i,0,0)
  699. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6-0.97*i,-0.2+0.2*i)
  700. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57*i,0,-0.2+0.2*i)
  701. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  702. end
  703. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,15,40) end)
  704. local vel2 = Instance.new("BodyVelocity")
  705. vel2.Parent = Torso
  706. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  707. vel2.velocity = Head.CFrame.lookVector*30
  708. repeat
  709. wait(0)
  710. vel2.velocity = Head.CFrame.lookVector*30
  711. Charge=Charge+0.005
  712. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  713. until dashing==false
  714. con1:disconnect()
  715. vel2.Parent=nil
  716. for i=0,1,0.1 do
  717. wait()
  718. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-0.57*i,0,0)
  719. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57+0.97*i,-0.2*i)
  720. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-1.57*i,0,-0.2*i)
  721. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  722. end
  723. attack=false
  724. end
  725. function SuperbSlam()
  726. attack=true
  727. for i=0,1,0.1 do
  728. wait()
  729. RW.C0=cf(1.5, 0.5, 0) * euler(1-1.1*i,0,0)
  730. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+0.2*i)
  731. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  732. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  733. end
  734. wait(0.2)
  735. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.7)
  736. for i=0,1,0.2 do
  737. wait()
  738. RW.C0=cf(1.5, 0.5, 0) * euler(-0.1+2*i,0,0)
  739. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  740. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  741. end
  742. wld1.Part1=nil
  743. local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(0.5,0.5,0.5))
  744. basepart.Anchored=true
  745. basepart.CFrame=Torso.CFrame*cf(0,35,-10)
  746. bodypos=Instance.new("BodyPosition")
  747. bodypos.Parent=prt12
  748. bodypos.position = basepart.Position
  749. bodypos.maxForce = Vector3.new(4e+080, 4e+080, 4e+080)
  750. local bg2 = it("BodyGyro")
  751. bg2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  752. bg2.P = 20e+003
  753. bg2.Parent=prt12
  754. bg2.cframe = Head.CFrame
  755. coroutine.resume(coroutine.create(function(gyro)
  756. while gyro.Parent~=nil do
  757. wait()
  758. for i=0,1,0.1 do
  759. wait()
  760. gyro.cframe=gyro.cframe*euler(0.5,0,0)
  761. end
  762. end
  763. end),bg2)
  764. wait(1)
  765. bodypos2=Instance.new("BodyPosition")
  766. bodypos2.Parent=RightArm
  767. bodypos2.position = basepart.Position
  768. bodypos2.maxForce = Vector3.new(4e+080, 4e+080, 4e+080)
  769. wait(0.5)
  770. bodypos2.Parent=nil
  771. basepart.Parent=nil
  772. bg2.Parent=nil
  773. wld1.Part1=RightArm
  774. bodypos.Parent=nil
  775. boom=false
  776. coroutine.resume(coroutine.create(function()
  777. while boom==false do
  778. wait()
  779. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  780. end
  781. end))
  782. for i=0,1,0.1 do
  783. wait()
  784. RW.C0=cf(1.5, 0.5, 0) * euler(-0.1+2-1.9*i,0,0)
  785. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.4*i,0,-0.2)
  786. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  787. end
  788. coroutine.resume(coroutine.create(function()
  789. floor=false
  790. repeat
  791. wait(0.05)
  792. hit,pos = rayCast(Torso.Position, (CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,6,0))).lookVector, 6, Character)
  793. if hit ~= nil then
  794. floor = true
  795. end
  796. until floor
  797. Charge=Charge+0.999
  798. so("http://www.roblox.com/asset/?id=2697431",hitbox,5,0.5)
  799. MagicCircle2(BrickColor.new("Bright red"),hitbox.CFrame*euler(1.57,0,0),300,4,300,0,-1.5,0)
  800. local c = game.Workspace:GetChildren();
  801. for i = 1, #c do
  802. local hum = c[i]:findFirstChild("Humanoid")
  803. if hum ~= nil and hum.Health ~= 0 then
  804. local head = c[i]:findFirstChild("Head");
  805. if head ~= nil then
  806. local targ = head.Position - hitbox.Position;
  807. local mag = targ.magnitude;
  808. if mag <= 70 and c[i].Name ~= Player.Name then
  809. attackdebounce=false
  810. Damagefunc2(head,1,80)
  811. end
  812. end
  813. end
  814. end
  815. wait(0.5)
  816. local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(0.5,0.5,0.5))
  817. basepart.Anchored=true
  818. basepart.CFrame=Torso.CFrame*cf(0,0,-50)*euler(-1.57,0,0)
  819. local c = game.Workspace:GetChildren();
  820. for i = 1, #c do
  821. local hum = c[i]:findFirstChild("Humanoid")
  822. if hum ~= nil and hum.Health ~= 0 then
  823. local head = c[i]:findFirstChild("Head");
  824. if head ~= nil then
  825. local targ = head.Position - basepart.Position;
  826. local mag = targ.magnitude;
  827. if mag <= 40 and c[i].Name ~= Player.Name then
  828. attackdebounce=false
  829. Damagefunc2(head,60,80)
  830. end
  831. end
  832. end
  833. end
  834. so("http://www.roblox.com/asset/?id=2697431",basepart,5,0.2)
  835. MagicCircle(BrickColor.new("Bright red"),basepart.CFrame,5,5,5,0,0,0,7,7,7)
  836. SwirlEffect(BrickColor.new("Bright red"),basepart.CFrame,15,15,15,0,0,0)
  837. for i=1,8 do
  838. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-9,9),math.random(-9,9),math.random(-9,9))
  839. end
  840. wait(0.2)
  841. for i=1,8 do
  842. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-25,25),math.random(-25,25),math.random(-25,25))
  843. end
  844. basepart.Parent=nil
  845. boom=true
  846. wait(1)
  847. for i=0,1,0.1 do
  848. wait()
  849. RW.C0=cf(1.5, 0.5, 0) * euler(1*i,0,0)
  850. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6*i,-0.2*i)
  851. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.4+0.4*i,0,-0.2)
  852. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  853. end
  854. attack=false
  855. end))
  856. end
  857. function HammerSmash()
  858. attack=true
  859. for i=0,1,0.1 do
  860. wait()
  861. wld1.C0=euler(1.57+0.2*i,0,-0.8*i)*cf(0,1,0)
  862. RW.C0=cf(1.5-0.5*i, 0.5+0.5*i, -0.5*i) * euler(1+1.5*i,0,-0.8*i)
  863. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+0.2*i)
  864. LW.C0=cf(-1.5+0.5*i, 0.5+0.5*i, -0.5*i) * euler(2.5*i,0,-0.2+1*i)
  865. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  866. end
  867. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.5)
  868. bg.Parent=Torso
  869. bg.cframe=Torso.CFrame
  870. local bp = Instance.new("BodyPosition")
  871. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  872. bp.P = 10000
  873. local CF = Torso.CFrame
  874. bp.position = CF.p
  875. bp.Parent=Torso
  876. for i=0,1,0.2 do
  877. wait()
  878. for i=1,3 do
  879. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  880. end
  881. bp.position = CF.p - Vector3.new(0,2,0)
  882. Torso["Left Hip"].C0=LHC0*cf(-1*i,1.5*i,0)
  883. Torso["Right Hip"].C0=RHC0*cf(0,1.5*i,0)*euler(0,0,-0.5*i)
  884. wld1.C0=euler(1.57+0.2+0.3*i,0,-0.8)*cf(0,1,0)
  885. RW.C0=cf(1, 1-0.5*i, -0.5) * euler(2.5-2*i,0,-0.8)
  886. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  887. LW.C0=cf(-1, 1-0.5*i, -0.5) * euler(2.5-2*i,0,0.8)
  888. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  889. end
  890. Charge=Charge+0.4
  891. local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(0.5,0.5,0.5))
  892. basepart.Anchored=true
  893. basepart.CFrame=hitbox.CFrame
  894. local c = game.Workspace:GetChildren();
  895. for i = 1, #c do
  896. local hum = c[i]:findFirstChild("Humanoid")
  897. if hum ~= nil and hum.Health ~= 0 then
  898. local head = c[i]:findFirstChild("Head");
  899. if head ~= nil then
  900. local targ = head.Position - basepart.Position;
  901. local mag = targ.magnitude;
  902. if mag <= 20 and c[i].Name ~= Player.Name then
  903. attackdebounce=false
  904. Damagefunc2(head,40,80)
  905. end
  906. end
  907. end
  908. end
  909. so("http://www.roblox.com/asset/?id=2697431",basepart,5,0.2)
  910. MagicCircle(BrickColor.new("Bright red"),basepart.CFrame,5,5,5,0,0,0,7,7,7)
  911. SwirlEffect(BrickColor.new("Bright red"),basepart.CFrame,15,15,15,0,0,0)
  912. for i=1,8 do
  913. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-9,9),math.random(-9,9),math.random(-9,9))
  914. end
  915. coroutine.resume(coroutine.create(function(MainPart)
  916. numb=0
  917. for i=1,10 do
  918. wait(0.1)
  919. numb=numb+9
  920. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  921. basepart2.Anchored=true
  922. basepart2.CFrame=MainPart.CFrame*cf(numb,0,0)
  923. local c = game.Workspace:GetChildren();
  924. for i = 1, #c do
  925. local hum = c[i]:findFirstChild("Humanoid")
  926. if hum ~= nil and hum.Health ~= 0 then
  927. local head = c[i]:findFirstChild("Head");
  928. if head ~= nil then
  929. local targ = head.Position - basepart2.Position;
  930. local mag = targ.magnitude;
  931. if mag <= 10 and c[i].Name ~= Player.Name then
  932. attackdebounce=false
  933. Damagefunc2(head,10,80)
  934. end
  935. end
  936. end
  937. end
  938. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  939. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  940. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  941. coroutine.resume(coroutine.create(function(Part)
  942. wait(2)
  943. Part.Parent=nil
  944. end),basepart2)
  945. end
  946. MainPart.Parent=nil
  947. end),basepart)
  948. coroutine.resume(coroutine.create(function(MainPart)
  949. numb2=0
  950. for i=1,10 do
  951. wait(0.1)
  952. numb2=numb2+9
  953. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  954. basepart2.Anchored=true
  955. basepart2.CFrame=MainPart.CFrame*cf(-numb2,0,0)
  956. local c = game.Workspace:GetChildren();
  957. for i = 1, #c do
  958. local hum = c[i]:findFirstChild("Humanoid")
  959. if hum ~= nil and hum.Health ~= 0 then
  960. local head = c[i]:findFirstChild("Head");
  961. if head ~= nil then
  962. local targ = head.Position - basepart2.Position;
  963. local mag = targ.magnitude;
  964. if mag <= 10 and c[i].Name ~= Player.Name then
  965. attackdebounce=false
  966. Damagefunc2(head,10,80)
  967. end
  968. end
  969. end
  970. end
  971. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  972. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  973. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  974. coroutine.resume(coroutine.create(function(Part)
  975. wait(2)
  976. Part.Parent=nil
  977. end),basepart2)
  978. end
  979. MainPart.Parent=nil
  980. end),basepart)
  981. coroutine.resume(coroutine.create(function(MainPart)
  982. numb3=0
  983. for i=1,10 do
  984. wait(0.1)
  985. numb3=numb3+9
  986. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  987. basepart2.Anchored=true
  988. basepart2.CFrame=MainPart.CFrame*cf(0,numb3,0)
  989. local c = game.Workspace:GetChildren();
  990. for i = 1, #c do
  991. local hum = c[i]:findFirstChild("Humanoid")
  992. if hum ~= nil and hum.Health ~= 0 then
  993. local head = c[i]:findFirstChild("Head");
  994. if head ~= nil then
  995. local targ = head.Position - basepart2.Position;
  996. local mag = targ.magnitude;
  997. if mag <= 10 and c[i].Name ~= Player.Name then
  998. attackdebounce=false
  999. Damagefunc2(head,10,80)
  1000. end
  1001. end
  1002. end
  1003. end
  1004. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  1005. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  1006. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  1007. coroutine.resume(coroutine.create(function(Part)
  1008. wait(2)
  1009. Part.Parent=nil
  1010. end),basepart2)
  1011. end
  1012. MainPart.Parent=nil
  1013. end),basepart)
  1014. coroutine.resume(coroutine.create(function(MainPart)
  1015. numb4=0
  1016. for i=1,10 do
  1017. wait(0.1)
  1018. numb4=numb4+9
  1019. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  1020. basepart2.Anchored=true
  1021. basepart2.CFrame=MainPart.CFrame*cf(0,-numb4,0)
  1022. local c = game.Workspace:GetChildren();
  1023. for i = 1, #c do
  1024. local hum = c[i]:findFirstChild("Humanoid")
  1025. if hum ~= nil and hum.Health ~= 0 then
  1026. local head = c[i]:findFirstChild("Head");
  1027. if head ~= nil then
  1028. local targ = head.Position - basepart2.Position;
  1029. local mag = targ.magnitude;
  1030. if mag <= 10 and c[i].Name ~= Player.Name then
  1031. attackdebounce=false
  1032. Damagefunc2(head,10,80)
  1033. end
  1034. end
  1035. end
  1036. end
  1037. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  1038. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  1039. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  1040. coroutine.resume(coroutine.create(function(Part)
  1041. wait(2)
  1042. Part.Parent=nil
  1043. end),basepart2)
  1044. end
  1045. MainPart.Parent=nil
  1046. end),basepart)
  1047. wait(0.2)
  1048. for i=1,8 do
  1049. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-25,25),math.random(-25,25),math.random(-25,25))
  1050. end
  1051. wait(1)
  1052. bp.Parent=nil
  1053. bg.Parent=nil
  1054. for i=0,1,0.1 do
  1055. wait()
  1056. Torso["Left Hip"].C0=LHC0*cf(-1+1*i,1.5-1.5*i,0)
  1057. Torso["Right Hip"].C0=RHC0*cf(0,1.5-1.5*i,0)*euler(0,0,-0.5+0.5*i)
  1058. wld1.C0=euler(1.57+0.5-0.5*i,0,-0.8+0.8*i)*cf(0,1,0)
  1059. RW.C0=cf(1+0.5*i, 0.5, -0.5+0.5*i) * euler(0.5+0.5*i,0,-0.8+0.8*i)
  1060. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6*i,-0.2*i)
  1061. LW.C0=cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(0.5-0.5*i,0,0.8-1*i)
  1062. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1063. end
  1064. Torso["Left Hip"].C0=LHC0
  1065. Torso["Right Hip"].C0=RHC0
  1066. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1067. attack=false
  1068. end
  1069. function HammerSpin()
  1070. attack=true
  1071. for i=0,1,0.1 do
  1072. wait()
  1073. RW.C0=cf(1.5, 0.5, 0) * euler(1,1*i,0)
  1074. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+1.2*i)
  1075. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1076. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1077. end
  1078. attack=false
  1079. end
  1080. combo=0
  1081. function ob1d(mouse)
  1082. if attack == true then return end
  1083. attackdebounce=false
  1084. hold=true
  1085. coroutine.resume(coroutine.create(function(v)
  1086. wait()
  1087. while attack==true do
  1088. wait(0)
  1089. bg.Parent = Torso
  1090. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1091. bg.cframe = cf(Torso.Position,pos4) * euler(0,eul,0) * cf(0,0,0)
  1092. end
  1093. bg.Parent=nil
  1094. end))
  1095. if combo==0 then
  1096. oneslash()
  1097. elseif combo==1 then
  1098. twoslash()
  1099. elseif combo==2 then
  1100. threeslash()
  1101. end
  1102. coroutine.resume(coroutine.create(function()
  1103. wait(0.5)
  1104. if attack==false then
  1105. combo=0
  1106. eul=0
  1107. Torso.Neck.C0=necko
  1108. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1109. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  1110. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,-0.2)
  1111. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1112. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1113. end
  1114. end))
  1115. --[[wait(1)
  1116. eul=0
  1117. Torso.Neck.C0=necko
  1118. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1119. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  1120. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,-0.2)
  1121. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1122. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)]]
  1123. end
  1124. function ob1u(mouse)
  1125. hold = false
  1126. end
  1127. buttonhold = false
  1128. eul=0
  1129. function key(key)
  1130. if attack == true then return end
  1131. if key=="z" then
  1132. GrandSlam()
  1133. end
  1134. if key=="x" then
  1135. dashing=true
  1136. HammerCharge()
  1137. end
  1138. if key=="c" then
  1139. HammerSmash()
  1140. end
  1141. if key=="v" then
  1142. HammerSpin()
  1143. end
  1144. if key=="f" then
  1145. SuperbSlam()
  1146. end
  1147. end
  1148. function key2(key)
  1149. if key=="x" then
  1150. dashing=false
  1151. end
  1152. end
  1153. function s(mouse)
  1154. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1155. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1156. mouse.KeyDown:connect(key)
  1157. mouse.KeyUp:connect(key2)
  1158. unsheathed = true
  1159. player = Player
  1160. ch = Character
  1161. MMouse = mouse
  1162. RSH = ch.Torso["Right Shoulder"]
  1163. LSH = ch.Torso["Left Shoulder"]
  1164. --
  1165. RSH.Parent = nil
  1166. LSH.Parent = nil
  1167. --
  1168. RW.Part0 = ch.Torso
  1169. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1170. RW.C1 = CFrame.new(0, 0.5, 0)
  1171. RW.Part1 = ch["Right Arm"]
  1172. RW.Parent = ch.Torso
  1173. --_G.R = RW
  1174. --
  1175. LW.Part0 = ch.Torso
  1176. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1177. LW.C1 = CFrame.new(0, 0.5, 0)
  1178. LW.Part1 = ch["Left Arm"]
  1179. LW.Parent = ch.Torso
  1180. --_G.L = LW
  1181. --
  1182. equipanim()
  1183. end
  1184. function ds(mouse)
  1185. hideanim()
  1186. wait(0)
  1187. RW.Parent = nil
  1188. LW.Parent = nil
  1189. RSH.Parent = player.Character.Torso
  1190. LSH.Parent = player.Character.Torso
  1191. end
  1192. Bin.Selected:connect(s)
  1193. Bin.Deselected:connect(ds)
  1194. print("Fenrier's Rocket Hammer loaded.")
  1195. blownup=false
  1196. while blownup==false do
  1197. wait(0)
  1198. prt17b.Transparency=1-Charge
  1199. hitbox.Transparency=1
  1200. if Charge>0 and attack==false then
  1201. Charge=Charge-0.001
  1202. end
  1203. if Charge>=1 and blownup==false then
  1204. blownup=true
  1205. Charge=1
  1206. BOOM=Instance.new("Explosion")
  1207. BOOM.Parent=workspace
  1208. BOOM.Position=hitbox.Position
  1209. BOOM.BlastRadius=20
  1210. so("http://www.roblox.com/asset/?id=2101148",hit,5,0.4)
  1211. print("Good job taking care of your hammer. It blew up.")
  1212. end
  1213. fentext2.Size = UDim2.new(0.710000306,0,-2.8*Charge,0)
  1214. end
  1215. -- mediafire
  1216. --[[
  1217. Copyrighted (C) Fenrier 2013
  1218. ]]--
Add Comment
Please, Sign In to add comment