Advertisement
DaLittleTem

Untitled

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