Advertisement
UltimateGate

Hero from Black Magic

Aug 8th, 2017
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.25 KB | None | 0 0
  1. --[[
  2. Uloe model and design by DahNoob. Scripted 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. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  29. RootPart=Character.HumanoidRootPart
  30. RootJoint=RootPart.RootJoint
  31. RootCF=euler(-1.57,0,3.14)
  32. attack = false
  33. attackdebounce = false
  34. MMouse=nil
  35. combo=0
  36. Mode="Unactive"
  37. blcf=nil
  38. scfr=nil
  39. sit=false
  40. HeroCharge=0
  41. InfCharge=0
  42. --player
  43. player = nil
  44. --save shoulders
  45. RSH, LSH = nil, nil
  46. --welds
  47. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  48. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  49. LH=Torso["Left Hip"]
  50. RH=Torso["Right Hip"]
  51.  
  52. if Character:findFirstChild("Uloe",true) ~= nil then
  53. Character:findFirstChild("Uloe",true).Parent = nil
  54. end
  55. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  56. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  57. end
  58.  
  59.  
  60. function NoOutline(Part)
  61. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  62. end
  63.  
  64. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  65. local fp = it("Part")
  66. fp.formFactor = formfactor
  67. fp.Parent = parent
  68. fp.Reflectance = reflectance
  69. fp.Transparency = transparency
  70. fp.CanCollide = false
  71. fp.Locked=true
  72. fp.BrickColor = brickcolor
  73. fp.Name = name
  74. fp.Size = size
  75. fp.Position = Torso.Position
  76. NoOutline(fp)
  77. fp.Material="SmoothPlastic"
  78. fp:BreakJoints()
  79. return fp
  80. end
  81.  
  82. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  83. local mesh = it(Mesh)
  84. mesh.Parent = part
  85. if Mesh=="SpecialMesh" then
  86. mesh.MeshType = meshtype
  87. mesh.MeshId = meshid
  88. end
  89. mesh.Offset=offset
  90. mesh.Scale=scale
  91. return mesh
  92. end
  93.  
  94. function weld(parent,part0,part1,c0)
  95. local weld = it("Weld")
  96. weld.Parent = parent
  97. weld.Part0 = part0
  98. weld.Part1 = part1
  99. weld.C0 = c0
  100. return weld
  101. end
  102.  
  103. local fengui = it("GuiMain")
  104. fengui.Parent = Player.PlayerGui
  105. fengui.Name = "WeaponGUI"
  106. local fenframeice = it("Frame")
  107. fenframeice.Parent = fengui
  108. fenframeice.BackgroundColor3 = Color3.new(255,255,255)
  109. fenframeice.BackgroundTransparency = 1
  110. fenframeice.BorderColor3 = Color3.new(17,17,17)
  111. fenframeice.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  112. fenframeice.Position=UDim2.new(0.4,0,0.73,0)
  113. local fenbarice1 = it("TextLabel")
  114. fenbarice1.Parent = fenframeice
  115. fenbarice1.Text = " "
  116. fenbarice1.BackgroundTransparency = 0
  117. fenbarice1.BackgroundColor3 = Color3.new(0,0,0)
  118. fenbarice1.SizeConstraint = "RelativeXY"
  119. fenbarice1.TextXAlignment = "Center"
  120. fenbarice1.TextYAlignment = "Center"
  121. fenbarice1.Position = UDim2.new(0,0,0,0)
  122. fenbarice1.Size = UDim2.new(4,0,0.2,0)
  123. local fenbarice2 = it("TextLabel")
  124. fenbarice2.Parent = fenframeice
  125. fenbarice2.Text = " "
  126. fenbarice2.BackgroundTransparency = 0
  127. fenbarice2.BackgroundColor3 = Color3.new(0.5,0.5,1)
  128. fenbarice2.SizeConstraint = "RelativeXY"
  129. fenbarice2.TextXAlignment = "Center"
  130. fenbarice2.TextYAlignment = "Center"
  131. fenbarice2.Position = UDim2.new(0,0,0,0)
  132. fenbarice2.Size = UDim2.new(HeroCharge/100,0,0.2,0)
  133. local fenbarice3 = it("TextLabel")
  134. fenbarice3.Parent = fenframeice
  135. fenbarice3.Text = " "
  136. fenbarice3.BackgroundTransparency = 0.5
  137. fenbarice3.BackgroundColor3 = Color3.new(1,1,1)
  138. fenbarice3.SizeConstraint = "RelativeXY"
  139. fenbarice3.TextXAlignment = "Center"
  140. fenbarice3.TextYAlignment = "Center"
  141. fenbarice3.Position = UDim2.new(2,0,0,0)
  142. fenbarice3.Size = UDim2.new(0.05,0,0.2,0)
  143. local fenbarice4 = it("TextLabel")
  144. fenbarice4.Parent = fenframeice
  145. fenbarice4.Text = "Hero("..HeroCharge..")"
  146. fenbarice4.BackgroundTransparency = 1
  147. fenbarice4.BackgroundColor3 = Color3.new(0,0,0)
  148. fenbarice4.SizeConstraint = "RelativeXY"
  149. fenbarice4.TextXAlignment = "Center"
  150. fenbarice4.TextYAlignment = "Center"
  151. fenbarice4.Position = UDim2.new(0,0,-0.3,0)
  152. fenbarice4.Size = UDim2.new(4,0,0.2,0)
  153. fenbarice4.FontSize = "Size9"
  154. fenbarice4.TextStrokeTransparency = 0
  155. fenbarice4.TextColor = BrickColor.new("White")
  156. local fenframeinf = it("Frame")
  157. fenframeinf.Parent = fengui
  158. fenframeinf.BackgroundColor3 = Color3.new(255,255,255)
  159. fenframeinf.BackgroundTransparency = 1
  160. fenframeinf.BorderColor3 = Color3.new(17,17,17)
  161. fenframeinf.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  162. fenframeinf.Position=UDim2.new(0.4,0,0.8,0)
  163. local fenbarinf1 = it("TextLabel")
  164. fenbarinf1.Parent = fenframeinf
  165. fenbarinf1.Text = " "
  166. fenbarinf1.BackgroundTransparency = 0
  167. fenbarinf1.BackgroundColor3 = Color3.new(0,0,0)
  168. fenbarinf1.SizeConstraint = "RelativeXY"
  169. fenbarinf1.TextXAlignment = "Center"
  170. fenbarinf1.TextYAlignment = "Center"
  171. fenbarinf1.Position = UDim2.new(0,0,0,0)
  172. fenbarinf1.Size = UDim2.new(4,0,0.2,0)
  173. local fenbarinf2 = it("TextLabel")
  174. fenbarinf2.Parent = fenframeinf
  175. fenbarinf2.Text = " "
  176. fenbarinf2.BackgroundTransparency = 0
  177. fenbarinf2.BackgroundColor3 = Color3.new(1,0,0)
  178. fenbarinf2.SizeConstraint = "RelativeXY"
  179. fenbarinf2.TextXAlignment = "Center"
  180. fenbarinf2.TextYAlignment = "Center"
  181. fenbarinf2.Position = UDim2.new(0,0,0,0)
  182. fenbarinf2.Size = UDim2.new(InfCharge/100,0,0.2,0)
  183. local fenbarinf3 = it("TextLabel")
  184. fenbarinf3.Parent = fenframeinf
  185. fenbarinf3.Text = " "
  186. fenbarinf3.BackgroundTransparency = 0.5
  187. fenbarinf3.BackgroundColor3 = Color3.new(1,1,1)
  188. fenbarinf3.SizeConstraint = "RelativeXY"
  189. fenbarinf3.TextXAlignment = "Center"
  190. fenbarinf3.TextYAlignment = "Center"
  191. fenbarinf3.Position = UDim2.new(2,0,0,0)
  192. fenbarinf3.Size = UDim2.new(0.05,0,0.2,0)
  193. local fenbarinf4 = it("TextLabel")
  194. fenbarinf4.Parent = fenframeinf
  195. fenbarinf4.Text = "Infamous("..InfCharge..")"
  196. fenbarinf4.BackgroundTransparency = 1
  197. fenbarinf4.BackgroundColor3 = Color3.new(0,0,0)
  198. fenbarinf4.SizeConstraint = "RelativeXY"
  199. fenbarinf4.TextXAlignment = "Center"
  200. fenbarinf4.TextYAlignment = "Center"
  201. fenbarinf4.Position = UDim2.new(0,0,-0.3,0)
  202. fenbarinf4.Size = UDim2.new(4,0,0.2,0)
  203. fenbarinf4.FontSize = "Size9"
  204. fenbarinf4.TextStrokeTransparency = 0
  205. fenbarinf4.TextColor = BrickColor.new("White")
  206.  
  207. local modelzorz = Instance.new("Model")
  208. modelzorz.Parent = Character
  209. modelzorz.Name = "Uloe"
  210.  
  211. local prt1=part(1,modelzorz,0,0,Torso.BrickColor,"Part1",vt(1,2.4,1))
  212. local prt2=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part2",vt(1,2.4,1))
  213. local prt3=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part3",vt(1,1.2,1))
  214. local prt4=part(1,modelzorz,0.3,0,BrickColor.new("Medium stone grey"),"Part4",vt(1,1,1))
  215. local prt5=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part5",vt(1,2.4,1))
  216. local prt6=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part6",vt(1,1.2,2))
  217. local prt7=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part7",vt(1,1.2,1))
  218. local prt8=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part8",vt(1,1.2,1))
  219. local prt9=part(1,modelzorz,0,0,BrickColor.new("White"),"Part9",vt(1,1.2,1))
  220. local prt10=part(1,modelzorz,0.3,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
  221. local prt11=part(1,modelzorz,0.3,0,BrickColor.new("Really black"),"Part11",vt(1,1,1))
  222. local prtref1=part(1,modelzorz,0,1,BrickColor.new("Black"),"ReferencePart",vt(1,1,1))
  223. local prt12=part("Symmetric",modelzorz,0.3,0,BrickColor.new("Medium stone grey"),"Part12",vt(1,1,1))
  224. local prt13=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part13",vt(1,1.2,1))
  225. local prt14=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part14",vt(1,1.2,1))
  226. local prtref2=part(1,modelzorz,0,1,BrickColor.new("Black"),"ReferencePart",vt(1,1,1))
  227. local prt15=part("Symmetric",modelzorz,0.3,0,BrickColor.new("Medium stone grey"),"Part15",vt(1,1,1))
  228. local prt16=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part16",vt(1,1.2,1))
  229. local prtref3=part(1,modelzorz,0,1,BrickColor.new("Black"),"ReferencePart",vt(1,1,1))
  230. local prt17=part("Symmetric",modelzorz,0.3,0,BrickColor.new("Medium stone grey"),"Part17",vt(1,1,1))
  231. local prt18=part(1,modelzorz,0,0,BrickColor.new("Mid gray"),"Part18",vt(1,1.2,1))
  232. local prtref4=part(1,modelzorz,0,1,BrickColor.new("Black"),"ReferencePart",vt(1,1,1))
  233. local prt19=part("Symmetric",modelzorz,0.3,0,BrickColor.new("Medium stone grey"),"Part19",vt(1,1,1))
  234. local hitbox=part(1,modelzorz,0,1,BrickColor.new("Black"),"Hitbox",vt(0.1,3.5,1.5))
  235.  
  236. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(0.35,0.5,0.55))
  237. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.3,0.75,0.5))
  238. local msh3=mesh("CylinderMesh",prt3,"","",vt(0,0,0),vt(0.75,0.3,0.6))
  239. local msh4=mesh("SpecialMesh",prt4,"FileMesh","http://www.roblox.com/Asset/?id=9756362",vt(0,0,0),vt(0.35,1,0.35))
  240. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.3,1,0.5))
  241. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.255,0.3,1))
  242. local msh7=mesh("SpecialMesh",prt7,"Wedge","",vt(0,0,0),vt(0.25,0.2,0.35))
  243. local msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(0.25,0.2,0.35))
  244. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.55,0.27,3))
  245. local msh10=mesh("SpecialMesh",prt10,"FileMesh","http://www.roblox.com/Asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,0.6))
  246. local msh11=mesh("SpecialMesh",prt11,"FileMesh","http://www.roblox.com/Asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,0.6))
  247. local msh12=mesh("SpecialMesh",prt12,"FileMesh","http://www.roblox.com/Asset/?id=9756362",vt(0,0,0),vt(0.35,1,0.35))
  248. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(0.3,1,0.3))
  249. local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(0.3,1,0.3))
  250. local msh15=mesh("SpecialMesh",prt15,"FileMesh","http://www.roblox.com/Asset/?id=9756362",vt(0,0,0),vt(0.35,1,0.35))
  251. local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(0.3,1,0.3))
  252. local msh17=mesh("SpecialMesh",prt17,"FileMesh","http://www.roblox.com/Asset/?id=9756362",vt(0,0,0),vt(0.35,1,0.35))
  253. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(0.3,1,0.3))
  254. local msh19=mesh("SpecialMesh",prt19,"FileMesh","http://www.roblox.com/Asset/?id=9756362",vt(0,0,0),vt(0.35,1,0.35))
  255.  
  256. local wld1=weld(prt1,prt1,Torso,euler(-2.5,1.57,0)*cf(-1,-1,-0.6))
  257. local wld2=weld(prt1,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  258. local wld3=weld(prt1,prt3,prt2,euler(0,0,0)*cf(0,0.8,0))
  259. local wld4=weld(prt1,prt4,prt3,euler(0,0,0)*cf(0,0.1,0))
  260. local wld5=weld(prt1,prt5,prt2,euler(0,0,0)*cf(0,-1.5,0))
  261. local wld6=weld(prt1,prt6,prt2,euler(0,0,0)*cf(0,-1,0))
  262. local wld7=weld(prt1,prt7,prt6,euler(-1.57,0,3.14)*cf(0,0,-1.12))
  263. local wld8=weld(prt1,prt8,prt6,euler(1.57,0,0)*cf(0,0,1.12))
  264. local wld9=weld(prt1,prt9,prt6,euler(0,0,1.57)*cf(0,0,0))
  265. local wld10=weld(prt1,prt10,prt9,euler(0,0.3,0)*cf(0,0,0))
  266. local wld11=weld(prt1,prt11,prt9,euler(0,0.3+0.785,0)*cf(0,0,0))
  267. local wldref1=weld(prt1,prtref1,prt6,euler(0,0,0)*cf(0,-1.4,0))
  268. local wld12=weld(prt1,prt12,prtref1,euler(0,0.785,0)*cf(0,0,0))
  269. local wld13=weld(prt1,prt13,prtref1,cf(0,-0.7,0)*euler(-0.785,0,0))
  270. local wld14=weld(prt1,prt14,prtref1,cf(0,-0.7,0)*euler(0.785,0,0))
  271. local wldref2=weld(prt1,prtref2,prt13,euler(-0.785,0,0)*cf(0,-0.5,0))
  272. local wld15=weld(prt1,prt15,prtref2,euler(0,0.785,0)*cf(0,0,0))
  273. local wld16=weld(prt1,prt16,prtref2,cf(0,0.7,0)*euler(-0.785,0,0))
  274. local wldref3=weld(prt1,prtref3,prt14,euler(0.785,0,0)*cf(0,-0.5,0))
  275. local wld17=weld(prt1,prt17,prtref3,euler(0,0.785,0)*cf(0,0,0))
  276. local wld18=weld(prt1,prt18,prtref3,cf(0,0.7,0)*euler(0.785,0,0))
  277. local wldref4=weld(prt1,prtref4,prt18,euler(0.785,0,0)*cf(0,0.5,0))
  278. local wld19=weld(prt1,prt19,prtref4,euler(0,0.785,0)*cf(0,0,0))
  279. local hitboxwld=weld(hitbox,hitbox,prt6,euler(0,0,0)*cf(0,-1.5,0))
  280.  
  281. local IceModel = Instance.new("Model")
  282. IceModel.Parent = nil
  283. IceModel.Name = "HeroUloe"
  284. local iceprt=part(3,modelzorz,0,0,BrickColor.new("White"),"Ice Part",vt(0.5,0.5,0.5))
  285. iceprt.Parent=nil
  286. local icemsh=mesh("SpecialMesh",iceprt,"FileMesh","http://www.roblox.com/Asset/?id=19251107",vt(0,0,0),vt(0.5,0.5,0.5))
  287. local FireModel = Instance.new("Model")
  288. FireModel.Parent = nil
  289. FireModel.Name = "InfamousUloe"
  290.  
  291. if (script.Parent.className ~= "HopperBin") then
  292. Tool = Instance.new("HopperBin")
  293. Tool.Parent = Backpack
  294. Tool.Name = "Uloe"
  295. script.Parent = Tool
  296. end
  297. Bin = script.Parent
  298.  
  299. local Bg = it("BodyGyro")
  300. Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  301. Bg.P = 20e+003
  302. Bg.Parent = nil
  303.  
  304. so = function(id,par,vol,pit)
  305. coroutine.resume(coroutine.create(function()
  306. local sou = Instance.new("Sound",par or workspace)
  307. sou.Volume=vol
  308. sou.Pitch=pit or 1
  309. sou.SoundId=id
  310. wait()
  311. sou:play()
  312. wait(6)
  313. sou:Remove()
  314. end))
  315. end
  316.  
  317. function hideanim()
  318. equipped=false
  319. Torso.Neck.C0=necko
  320. RootJoint.C0=RootCF
  321. wld1.Part1=Torso
  322. wld1.C0=euler(-2.5,1.57,0)*cf(-1,-1,-0.6)
  323. end
  324.  
  325. function equipanim()
  326. equipped=true
  327. wld1.Part1=RightArm
  328. if Mode=="Unactive" then
  329. Torso.Neck.C0=necko*euler(0,0.2,1)
  330. RootJoint.C0=RootCF*euler(0,0,-1)
  331. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  332. LW.C0=cf(-1,0.5,-0.5)*euler(0.6,0,0.7)
  333. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  334. RW.C0=cf(1,0.5,-0.5)*euler(1,0,-0.5)
  335. RW.C1=cf(0,0.5,0)*euler(0,0.7,0)
  336. elseif Mode=="Hero" then
  337. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  338. Torso.Neck.C0=necko*euler(0,0,-0.4)
  339. RootJoint.C0=RootCF*euler(0,0,0.4)
  340. LW.C0=cf(-1,0.5,-0.5)*euler(1,0,0.2)
  341. LW.C1=cf(0,0.5,0)*euler(0,-1,0)
  342. RW.C0=cf(1,0.5,-0.5)*euler(0.5,0,-0.2)
  343. RW.C1=cf(0,0.5,0)*euler(0,-1,0)
  344. elseif Mode=="Infamous" then
  345. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  346. Torso.Neck.C0=necko*euler(0.2,0,-0.5)
  347. RootJoint.C0=RootCF*euler(0,0,0.5)
  348. LW.C0=cf(-1.5,0.5,0)*euler(0.2,0,-0.5)
  349. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  350. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5)
  351. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  352. end
  353. end
  354.  
  355. function attackone()
  356. attack=true
  357. for i=0,1,0.1 do
  358. wait()
  359. wld1.C0=euler(1.57,0,0.5*i)*cf(0,1,-0.3)
  360. Torso.Neck.C0=necko*euler(0,0.2-0.2*i,1+0.2*i)
  361. RootJoint.C0=RootCF*euler(0,0,-1-0.2*i)
  362. LW.C0=cf(-1+0.2*i,0.5,-0.5-0.2*i)*euler(0.6+0.5*i,0,0.7+0.2*i)
  363. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  364. RW.C0=cf(1,0.5,-0.5)*euler(1+0.4*i,0,-0.5+0.4*i)
  365. RW.C1=cf(0,0.5,0)*euler(0,0.7+0.4*i,0)
  366. end
  367. so("http://roblox.com/asset/?id=10209640",hitbox,1,0.6)
  368. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(30,80),"Knockdown",hitbox) end)
  369. blcf=nil
  370. scfr=nil
  371. for i=0,1,0.2 do
  372. wait()
  373. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  374. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  375. local h = 4.7
  376. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  377. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  378. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  379. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  380. scfr = blcf
  381. elseif not scfr then
  382. scfr = blcf
  383. end
  384. Torso.Neck.C0=necko*euler(0,-0.2*i,1.2-1.8*i)
  385. RootJoint.C0=RootCF*euler(0,0,-1.2+2*i)
  386. LW.C0=cf(-0.8,0.5,-0.7+0.5*i)*euler(1.1-0.8*i,0,0.9-0.3*i)
  387. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  388. RW.C0=cf(1,0.5,-0.5)*euler(1.4-0.8*i,0,-0.1-0.4*i)
  389. RW.C1=cf(0,0.5,0)*euler(0,1.1-0.6*i,0)
  390. end
  391. con1:disconnect()
  392. for i=0,1,0.1 do
  393. wait()
  394. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  395. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  396. local h = 4.7
  397. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  398. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  399. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  400. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  401. scfr = blcf
  402. elseif not scfr then
  403. scfr = blcf
  404. end
  405. Torso.Neck.C0=necko*euler(0,-0.2,-0.6-0.1*i)
  406. RootJoint.C0=RootCF*euler(0,0,0.8+0.2*i)
  407. end
  408. attack=false
  409. end
  410.  
  411. function attacktwo()
  412. attack=true
  413. for i=0,1,0.1 do
  414. wait()
  415. wld1.C0=euler(1.57,0,0.5-0.5*i)*cf(0,1,-0.3)
  416. Torso.Neck.C0=necko*euler(-0.2*i,-0.2,-0.7+0.2*i)
  417. RootJoint.C0=RootCF*euler(0,0,1-0.2*i)
  418. LW.C0=cf(-0.8,0.5,-0.2)*euler(0.3+3*i,0,0.6-0.5*i)
  419. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  420. RW.C0=cf(1-1*i,0.5+0.5*i,-0.5)*euler(0.6+3*i,0,-0.5-0.2*i)
  421. RW.C1=cf(0,0.5,0)*euler(0,0.5-0.5*i,0)
  422. end
  423. so("http://roblox.com/asset/?id=10209640",hitbox,1,0.7)
  424. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(50,150),"Knockdown",hitbox) end)
  425. blcf=nil
  426. scfr=nil
  427. for i=0,1,0.2 do
  428. wait()
  429. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,-0.3+0.3*i)
  430. Torso.Neck.C0=necko*euler(-0.2+0.4*i,-0.2+0.2*i,-0.5+0.8*i)
  431. RootJoint.C0=RootCF*euler(0,0,0.8-1.5*i)
  432. LW.C0=cf(-0.8,0.5,-0.2)*euler(3.3-3*i,0,0.1+0.4*i)
  433. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  434. RW.C0=cf(0.5*i,1-0.5*i,-0.5)*euler(3.6-3*i,0,-0.7+0.4*i)
  435. RW.C1=cf(0,0.5,0)*euler(0,-0.5*i,0)
  436. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  437. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  438. local h = 4.7
  439. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  440. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  441. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  442. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  443. scfr = blcf
  444. elseif not scfr then
  445. scfr = blcf
  446. end
  447. end
  448. for i=0,1,0.2 do
  449. wait()
  450. wld1.C0=euler(2.07+0.2*i,0,0)*cf(0,1,0)
  451. Torso.Neck.C0=necko*euler(0.2,0,0.3+0.2*i)
  452. RootJoint.C0=RootCF*euler(0,0,-0.7-0.2*i)
  453. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  454. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  455. local h = 4.7
  456. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  457. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  458. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  459. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  460. scfr = blcf
  461. elseif not scfr then
  462. scfr = blcf
  463. end
  464. end
  465. con1:disconnect()
  466. attack=false
  467. end
  468.  
  469. function Sit1()
  470. attack=true
  471. Humanoid.WalkSpeed=0
  472. for i=0,1,0.1 do
  473. wait()
  474. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  475. Torso.Neck.C0=necko*euler(-0.4*i,0.2-0.2*i,1-1*i)
  476. RootJoint.C0=RootCF*cf(0,0,-2*i)*euler(0.4*i,0,-1+1*i)
  477. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  478. LW.C0=cf(-1,0.5,-0.5)*euler(0.6+0.4*i,0,0.7)
  479. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  480. RW.C0=cf(1,0.5,-0.5)*euler(1,0,-0.5)
  481. RW.C1=cf(0,0.5,0)*euler(0,0.7-2*i,0)
  482. LH.C0=LHC0*cf(0,0,0)*euler(0,0.5*i,-2*i)
  483. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5*i,2*i)
  484. end
  485. end
  486.  
  487. function UnSit()
  488. Humanoid.WalkSpeed=16
  489. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  490. Torso.Neck.C0=necko*euler(0,0.2,1)
  491. RootJoint.C0=RootCF*euler(0,0,-1)
  492. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  493. LW.C0=cf(-1,0.5,-0.5)*euler(0.6,0,0.7)
  494. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  495. RW.C0=cf(1,0.5,-0.5)*euler(1,0,-0.5)
  496. RW.C1=cf(0,0.5,0)*euler(0,0.7,0)
  497. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  498. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  499. attack=false
  500. end
  501.  
  502. function Sledge()
  503. attack=true
  504. for i=0,1,0.1 do
  505. wait()
  506. wld1.C0=euler(1.57,0,-0.785*i)*cf(0,1,-0.3+0.3*i)
  507. Torso.Neck.C0=necko*euler(-0.3*i,0.2-0.2*i,1-1*i)
  508. RootJoint.C0=RootCF*euler(0,0,-1+1*i)
  509. LW.C0=cf(-1,0.5+1*i,-0.5+0.5*i)*euler(0.6+2.5*i,0,0.7)
  510. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  511. RW.C0=cf(1,0.5+1*i,-0.5+0.5*i)*euler(1+2.1*i,0,-0.5-0.2*i)
  512. RW.C1=cf(0,0.5,0)*euler(0,0.7-0.7*i,0)
  513. end
  514. so("http://www.roblox.com/asset/?id=2101137",hitbox,1,1)
  515. for i=0,1,0.05 do
  516. wait()
  517. MagicBlock(BrickColor.new("White"),prt12.CFrame*cf(0,1,0),0.5,0.5,0.5,0.5,0.5,0.5)
  518. LW.C0=cf(-1,1.5,0)*euler(3.1+0.2*i,0,0.7)
  519. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  520. RW.C0=cf(1,1.5,0)*euler(3.1+0.2*i,0,-0.7)
  521. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  522. end
  523. blcf=nil
  524. scfr=nil
  525. for i=0,1,0.2 do
  526. wait()
  527. MagicBlock(BrickColor.new("White"),prt12.CFrame*cf(0,1,0),0.5,0.5,0.5,0.5,0.5,0.5)
  528. Torso.Neck.C0=necko*euler(-0.3+0.5*i,0,0)
  529. LW.C0=cf(-1,1.5-1*i,-0.5*i)*euler(3.3-3*i,0,0.7)
  530. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  531. RW.C0=cf(1,1.5-1*i,-0.5*i)*euler(3.3-3*i,0,-0.7)
  532. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  533. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  534. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  535. local h = 4.7
  536. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  537. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  538. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  539. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  540. scfr = blcf
  541. elseif not scfr then
  542. scfr = blcf
  543. end
  544. end
  545. local c = game.Workspace:GetChildren()
  546. for i = 1, #c do
  547. local hum = c[i]:findFirstChild("Humanoid")
  548. if hum ~= nil and hum.Health ~= 0 then
  549. local head = c[i]:findFirstChild("Head")
  550. if head ~= nil then
  551. local targ = head.Position - prt12.Position+vt(0,-1,0)
  552. local mag = targ.magnitude
  553. if mag <= 10 and c[i].Name ~= Player.Name then
  554. attackdebounce=false
  555. Damagefunc(head,10,20,math.random(30,60),"Knockdown",prt12)
  556. end
  557. end
  558. end
  559. end
  560. so("http://www.roblox.com/asset/?id=2697431",hitbox,1,0.3)
  561. for i=1,2 do
  562. MagicBlock(BrickColor.new("White"),prt12.CFrame*cf(0,1,0),0.5,0.5,0.5,2,2,2)
  563. end
  564. MagicCircle(BrickColor.new("White"),prt12.CFrame*cf(0,1,0),0.5,0.5,0.5,1.5,1.5,1.5,0.05)
  565. for i=0,1,0.2 do
  566. wait()
  567. LW.C0=cf(-1,0.5,-0.5)*euler(0.3-0.2*i,0,0.7)
  568. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  569. RW.C0=cf(1,0.5,-0.5)*euler(0.3-0.2*i,0,-0.7)
  570. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  571. end
  572. for i=0,1,0.1 do
  573. wait()
  574. wld1.C0=euler(1.57,0,-0.785+0.785*i)*cf(0,1,-0.3*i)
  575. Torso.Neck.C0=necko*euler(0.2-0.2*i,0.2*i,1*i)
  576. RootJoint.C0=RootCF*euler(0,0,-1*i)
  577. LW.C0=cf(-1,0.5,-0.5)*euler(0.1+0.5*i,0,0.7)
  578. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  579. RW.C0=cf(1,0.5,-0.5)*euler(0.1+0.9*i,0,-0.7+0.2*i)
  580. RW.C1=cf(0,0.5,0)*euler(0,0.7*i,0)
  581. end
  582. attack=false
  583. end
  584.  
  585. function UnactivetoHero()
  586. attack=true
  587. for i=0,1,0.1 do
  588. wait()
  589. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,-0.3+0.3*i)
  590. Torso.Neck.C0=necko*euler(-0.2*i,0.2-0.2*i,1-1.2*i)
  591. RootJoint.C0=RootCF*euler(0,0,-1+1.2*i)
  592. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(0.6-0.8*i,0,0.7-0.9*i)
  593. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  594. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1+1*i,0,-0.5+0.5*i)
  595. RW.C1=cf(0,0.5,0)*euler(0,0.7-0.7*i,0)
  596. end
  597. IceModel.Parent=modelzorz
  598. for _,v in pairs(modelzorz:children()) do
  599. coroutine.resume(coroutine.create(function(Part)
  600. if Part.Name=="Part19" then
  601. for i=0,1,0.1 do
  602. wait()
  603. Part.Transparency=i
  604. end
  605. Part.Transparency=1
  606. end
  607. end),v)
  608. if v.className~="Model" and v.Name~="Hitbox" and v.Name~="Part1" and v.Name~="ReferencePart" and v.Name~="Part19" then
  609. cl=v:Clone()
  610. cl.Parent=IceModel
  611. if v.Name=="Part7" and v.Name=="Part8" then
  612. end
  613. if v.Name=="Part9" then
  614. cl.BrickColor=BrickColor.new("White")
  615. elseif v.Name=="Part10" or v.Name=="Part11" then
  616. cl.BrickColor=BrickColor.new("Deep blue")
  617. elseif v.Name=="Part6" or v.Name=="Part7" or v.Name=="Part8" then
  618. cl.BrickColor=BrickColor.new("Pastel light blue")
  619. elseif v.Name=="Part3" then
  620. cl.BrickColor=BrickColor.new("Medium blue")
  621. elseif v.Name=="Part4" then
  622. cl.BrickColor=BrickColor.new("Light blue")
  623. elseif v.Name=="Part12" or v.Name=="Part15" or v.Name=="Part17" or v.Name=="Part19" then
  624. cl.BrickColor=BrickColor.new("Light blue")
  625. else
  626. cl.BrickColor=BrickColor.new("Cyan")
  627. end
  628. cl.Transparency=1
  629. coroutine.resume(coroutine.create(function(Part)
  630. for i=1,0,-0.1 do
  631. wait()
  632. Part.Transparency=i
  633. end
  634. Part.Transparency=0
  635. end),cl)
  636. clmsh=cl.Mesh
  637. clmsh.Scale=clmsh.Scale+vt(0.01,0.01,0.01)
  638. clwld=Instance.new("Weld")
  639. clwld.Parent=cl
  640. clwld.Part0=cl
  641. clwld.Part1=v
  642. if v.Name=="Part7" then
  643. clwld.C0=cf(0,-0.01,0)
  644. elseif v.Name=="Part8" then
  645. clwld.C0=cf(0,-0.01,0)
  646. end
  647. if v.Name=="Part7" then
  648. clwld.C0=cf(0,-0.01,0)
  649. elseif v.Name=="Part8" then
  650. clwld.C0=cf(0,-0.01,0)
  651. end
  652. end
  653. end
  654. so("http://roblox.com/asset/?id=25605551",hitbox,1,1)
  655. for i=0,1,0.1 do
  656. wait()
  657. MagicBlock(BrickColor.new("Bright blue"),hitbox.CFrame*cf(math.random(-1,1),math.random(-3,3),math.random(-1,1)),0.2,0.2,0.2,0.2,0.2,0.2)
  658. wld13.C0=cf(0,-0.7,0)*euler(-0.785+0.385*i,0,0)
  659. wld14.C0=cf(0,-0.7,0)*euler(0.785-0.385*i,0,0)
  660. end
  661. for i=0,1,0.1 do
  662. wait()
  663. MagicBlock(BrickColor.new("Bright blue"),hitbox.CFrame*cf(math.random(-1,1),math.random(-3,3),math.random(-1,1)),0.2,0.2,0.2,0.2,0.2,0.2)
  664. wld16.C0=cf(0,0.7,0)*euler(-0.785-2.455*i,0,0)
  665. wld18.C0=cf(0,0.7,0)*euler(0.785+2.455*i,0,0)
  666. wld15.C0=cf(0,-1.3*i,0)*euler(-0.1*i,0.785-0.785*i,0)
  667. wld17.C0=cf(0,-1.3*i,0)*euler(0.1*i,0.785-0.785*i,0)
  668. wldref2.C0=euler(-0.785+0.785*i,0,0)*cf(0,-0.5,0)
  669. wldref3.C0=euler(0.785-0.785*i,0,0)*cf(0,-0.5,0)
  670. end
  671. iceprt.Transparency=0
  672. iceprt.Parent=IceModel
  673. local icewld=weld(iceprt,iceprt,hitbox,euler(0,0,1.57)*cf(0,-2,0))
  674. so("http://www.roblox.com/asset/?id=32656754",iceprt,1,1)
  675. MagicBlock(BrickColor.new("Bright blue"),iceprt.CFrame,0.2,0.2,0.2,0.5,0.5,0.5)
  676. MagicCircle(BrickColor.new("Cyan"),iceprt.CFrame,0.5,0.5,0.5,1,1,1,0.05)
  677. for i=1,5 do
  678. BreakEffect(BrickColor.new("White"),iceprt.CFrame,0.2,math.random(1,5),0.2)
  679. end
  680. coroutine.resume(coroutine.create(function(Part,Weld)
  681. while Part.Parent~=nil do
  682. wait()
  683. --Weld.C1=Weld.C1*euler(0.2,0,0)
  684. end
  685. end),iceprt,icewld)
  686. coroutine.resume(coroutine.create(function(Part)
  687. for i=1,20 do
  688. wait()
  689. BreakEffect(BrickColor.new("White"),Part.CFrame,0.2,math.random(1,5),0.2)
  690. end
  691. end),iceprt)
  692. for i=0,1,0.1 do
  693. wait()
  694. wld1.C0=euler(1.57+0.5-0.5*i,0,0)*cf(0,1,0)
  695. Torso.Neck.C0=necko*euler(-0.2+0.2*i,0,-0.2)
  696. RW.C0=cf(1.5,0.5,0)*euler(2-1*i,0,0)
  697. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  698. end
  699. for i=0,1,0.1 do
  700. wait()
  701. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  702. Torso.Neck.C0=necko*euler(0,0,-0.2-0.2*i)
  703. RootJoint.C0=RootCF*euler(0,0,0.2+0.2*i)
  704. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(-0.2+1.2*i,0,-0.2+0.4*i)
  705. LW.C1=cf(0,0.5,0)*euler(0,-1*i,0)
  706. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1-0.5*i,0,-0.2*i)
  707. RW.C1=cf(0,0.5,0)*euler(0,-1*i,0)
  708. end
  709. attack=false
  710. end
  711.  
  712. function UnactivetoInfamous()
  713. attack=true
  714. for i=0,1,0.1 do
  715. wait()
  716. Torso.Neck.C0=necko*euler(0.2*i,0.2-0.2*i,1-1*i)
  717. RootJoint.C0=RootCF*euler(0,0,-1+1*i)
  718. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(0.6+0.4*i,0,0.7-0.7*i)
  719. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  720. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1+0.57*i,0,-0.5+0.5*i)
  721. RW.C1=cf(0,0.5,0)*euler(0,0.7-2.27*i,0)
  722. end
  723. infprt16=nil
  724. infprt18=nil
  725. FireModel.Parent=modelzorz
  726. for _,v in pairs(modelzorz:children()) do
  727. if v.className~="Model" and v.Name~="Hitbox" and v.Name~="Part1" and v.Name~="ReferencePart" then
  728. cl=v:Clone()
  729. cl.Parent=FireModel
  730. if v.Name=="Part16" then
  731. infprt16=cl
  732. elseif v.Name=="Part18" then
  733. infprt18=cl
  734. end
  735. if v.Name=="Part7" and v.Name=="Part8" then
  736. end
  737. if v.Name=="Part9" then
  738. cl.BrickColor=BrickColor.new("White")
  739. elseif v.Name=="Part3" then
  740. cl.BrickColor=BrickColor.new("Dusty Rose")
  741. elseif v.Name=="Part4" then
  742. cl.BrickColor=BrickColor.new("Really red")
  743. elseif v.Name=="Part6" or v.Name=="Part7" or v.Name=="Part8" then
  744. cl.BrickColor=BrickColor.new("Bright orange")
  745. elseif v.Name=="Part12" or v.Name=="Part15" or v.Name=="Part17" or v.Name=="Part19" then
  746. cl.BrickColor=BrickColor.new("Really red")
  747. else
  748. cl.BrickColor=BrickColor.new("Bright red")
  749. end
  750. cl.Transparency=1
  751. coroutine.resume(coroutine.create(function(Part)
  752. for i=1,0,-0.1 do
  753. wait()
  754. Part.Transparency=i
  755. end
  756. Part.Transparency=0
  757. end),cl)
  758. clmsh=cl.Mesh
  759. clmsh.Scale=clmsh.Scale+vt(0.01,0.01,0.01)
  760. clwld=Instance.new("Weld")
  761. clwld.Parent=cl
  762. clwld.Part0=cl
  763. clwld.Part1=v
  764. if v.Name=="Part7" then
  765. clwld.C0=cf(0,-0.01,0)
  766. elseif v.Name=="Part8" then
  767. clwld.C0=cf(0,-0.01,0)
  768. end
  769. end
  770. end
  771. infmsh16=infprt16.Mesh
  772. infmsh18=infprt18.Mesh
  773. infwld16=infprt16.Weld
  774. infwld18=infprt18.Weld
  775. so("http://www.roblox.com/asset/?id=2101137",hitbox,1,1)
  776. for i=0,1.05,0.05 do
  777. wait()
  778. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-1,1),math.random(-3,3),math.random(-1,1)),0.2,0.2,0.2,0.2,0.2,0.2)
  779. infmsh16.Scale=vt(0.31,1+0.5*i,0.31)
  780. infmsh18.Scale=vt(0.31,1+0.5*i,0.31)
  781. infwld16.C0=cf(0,0.2*i,0)
  782. infwld18.C0=cf(0,0.2*i,0)
  783. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3+0.3*i)
  784. wld13.C0=cf(0,-0.7,0)*euler(-0.785-1.5*i,0,0)
  785. wld14.C0=cf(0,-0.7,0)*euler(0.785+1.5*i,0,0)
  786. wld15.C0=euler(0,0.785,0)*cf(0,0,0.3*i)
  787. wld17.C0=euler(0,0.785,0)*cf(0,0,-0.3*i)
  788. wld16.C0=cf(0,0.7,0)*euler(-0.785+1.785*i,0,0)
  789. wld18.C0=cf(0,0.7,0)*euler(0.785-1.785*i,0,0)
  790. wldref2.C0=euler(-0.785-0.785*i,0,0)*cf(0,-0.5+0.3*i,0)
  791. wldref3.C0=euler(0.785+0.785*i,0,0)*cf(0,-0.5+0.3*i,0)
  792. wldref4.C0=euler(0.785-0.5*i,0,0)*cf(0,0.5+0.6*i,0.1785*i)
  793. end
  794. so("http://www.roblox.com/asset/?id=2101148",hitbox,1,1)
  795. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,0.2,0.2,0.2,1,1,1)
  796. MagicCircle(BrickColor.new("Bright orange"),hitbox.CFrame,0.3,1,0.3,0.7,1.2,0.7,0.05)
  797. for i=0,1,0.2 do
  798. wait()
  799. Torso.Neck.C0=necko*euler(0.2+0.2*i,0,0)
  800. RootJoint.C0=RootCF*euler(0,0,0)
  801. LW.C0=cf(-1.5,0.5,0)*euler(1-1.2*i,0,-0.5*i)
  802. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  803. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.77*i,0,0.5*i)
  804. RW.C1=cf(0,0.5,0)*euler(0,-1.57+1.57*i,0)
  805. end
  806. for i=0,1,0.1 do
  807. wait()
  808. LW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.2*i,0,-0.5-0.2*i)
  809. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  810. RW.C0=cf(1.5,0.5,0)*euler(-0.2-0.2*i,0,0.5+0.2*i)
  811. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  812. end
  813. for i=0,1,0.1 do
  814. wait()
  815. Torso.Neck.C0=necko*euler(0.4-0.2*i,0,-0.5*i)
  816. RootJoint.C0=RootCF*euler(0,0,0.5*i)
  817. LW.C0=cf(-1.5,0.5,0)*euler(-0.4+0.6*i,0,-0.7+0.2*i)
  818. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  819. RW.C0=cf(1.5,0.5,0)*euler(-0.4+0.4*i,0,0.7-0.2*i)
  820. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  821. end
  822. coroutine.resume(coroutine.create(function(Arm)
  823. while Mode=="Infamous" do
  824. wait(math.random(0,1)+math.random())
  825. if math.random(1,2)==1 then
  826. MagicFire(BrickColor.new("Bright red"),Arm.CFrame*cf(0,-1,0),1.5,1.5,1.5)
  827. else
  828. MagicFire(BrickColor.new("Bright yellow"),Arm.CFrame*cf(0,-1,0),1.5,1.5,1.5)
  829. end
  830. end
  831. end),LeftArm)
  832. attack=false
  833. end
  834.  
  835. function heroattackone()
  836. attack=true
  837. for i=0,1,0.1 do
  838. wait()
  839. wld1.C0=euler(1.57,0,-0.5*i)*cf(0,1,0)
  840. Torso.Neck.C0=necko*euler(-0.2*i,0,-0.4-0.4*i)
  841. RootJoint.C0=RootCF*euler(0,0,0.4+0.4*i)
  842. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(1+0.8*i,0,0.2-0.2*i)
  843. LW.C1=cf(0,0.5,0)*euler(0,-1+0.5*i,0)
  844. RW.C0=cf(1-1*i,0.5,-0.5)*euler(0.5+1.5*i,0,-0.2-0.8*i)
  845. RW.C1=cf(0,0.5,0)*euler(0,-1+0.5*i,0)
  846. end
  847. so("http://roblox.com/asset/?id=10209640",hitbox,1,0.9)
  848. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(10,30),"Normal") end)
  849. --con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,10,30,math.random(50,150),hitbox) end)
  850. blcf=nil
  851. scfr=nil
  852. for i=0,1,0.2 do
  853. wait()
  854. wld1.C0=euler(1.57+0.2*i,0,-0.5-0.3*i)*cf(0,1,0)
  855. Torso.Neck.C0=necko*euler(-0.2+0.6*i,0,-0.8+1*i)
  856. RootJoint.C0=RootCF*euler(0,0,0.8-1*i)
  857. LW.C0=cf(-1.5+1*i,0.5,-0.5*i)*euler(1.8-1.6*i,0,0.6*i)
  858. LW.C1=cf(0,0.5,0)*euler(0,-0.5,0)
  859. RW.C0=cf(1*i,0.5,-0.5)*euler(2-1.5*i,0,-1+0.5*i)
  860. RW.C1=cf(0,0.5,0)*euler(0,-0.5,0)
  861. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  862. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  863. local h = 4.7
  864. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  865. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  866. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  867. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  868. scfr = blcf
  869. elseif not scfr then
  870. scfr = blcf
  871. end
  872. end
  873. for i=0,1,0.2 do
  874. wld1.C0=euler(1.57+0.2-0.2*i,0,-0.8+0.4*i)*cf(0,1,0)
  875. Torso.Neck.C0=necko*euler(0.4,0,0.2+0.2*i)
  876. RootJoint.C0=RootCF*euler(0,0,-0.2-0.2*i)
  877. LW.C0=cf(-0.5+0.5*i,0.5,-0.5)*euler(0.2-0.4*i,0,0.6+0.2*i)
  878. LW.C1=cf(0,0.5,0)*euler(0,-0.5,0)
  879. RW.C0=cf(1,0.5,-0.5)*euler(0.5-0.6*i,0,-0.5+0.7*i)
  880. RW.C1=cf(0,0.5,0)*euler(0,-0.5,0)
  881. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  882. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  883. local h = 4.7
  884. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  885. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  886. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  887. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  888. scfr = blcf
  889. elseif not scfr then
  890. scfr = blcf
  891. end
  892. wait()
  893. end
  894. con1:disconnect()
  895. wait()
  896. attack=false
  897. end
  898.  
  899. function heroattacktwo()
  900. attack=true
  901. for i=0,1,0.1 do
  902. wait()
  903. wld1.C0=euler(1.57,0,-0.4)*cf(0,1,0)
  904. Torso.Neck.C0=necko*euler(0.4,0,0.4-0.4*i)
  905. RootJoint.C0=RootCF*euler(0,0,-0.4+0.4*i)
  906. LW.C0=cf(-0.5*i,0.5,-0.5)*euler(-0.2+0.4*i,0,0.8-0.4*i)
  907. LW.C1=cf(0,0.5,0)*euler(0,-0.5+0.5*i,0)
  908. RW.C0=cf(1,0.5,-0.5)*euler(-0.1+0.3*i,0,0.2-0.6*i)
  909. RW.C1=cf(0,0.5,0)*euler(0,-0.5+0.5*i,0)
  910. end
  911. local icprt=part(3,workspace,0,1,BrickColor.new("Bright blue"),"Icicle Part",vt(1,1,1))
  912. icprt.Anchored=true
  913. icprt.CFrame=Torso.CFrame*cf(0,0,-10)
  914. game:GetService("Debris"):AddItem(icprt,5)
  915. CreateIcicle(icprt.CFrame,true)
  916. for i=1,math.random(5,8) do
  917. local freezepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
  918. freezepart.Anchored=true
  919. freezepart.CFrame=icprt.CFrame*cf(math.random(-1,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  920. game:GetService("Debris"):AddItem(freezepart,7)
  921. coroutine.resume(coroutine.create(function(Part)
  922. wait(2)
  923. Part.Anchored=false
  924. Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
  925. wait(5)
  926. Part.Parent=nil
  927. end),freezepart)
  928. end
  929. so("http://roblox.com/asset/?id=10209640",hitbox,1,0.7)
  930. blcf=nil
  931. scfr=nil
  932. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(20,60),"Normal") end)
  933. local c = game.Workspace:GetChildren()
  934. for i = 1, #c do
  935. local hum = c[i]:findFirstChild("Humanoid")
  936. if hum ~= nil and hum.Health ~= 0 then
  937. local head = c[i]:findFirstChild("Head")
  938. if head ~= nil then
  939. local targ = head.Position - icprt.Position
  940. local mag = targ.magnitude
  941. if mag <= 5 and c[i].Name ~= Player.Name then
  942. attackdebounce=false
  943. Damagefunc(head,20,30,math.random(10,30),"Up")
  944. end
  945. end
  946. end
  947. end
  948. for i=0,1,0.1 do
  949. wait()
  950. Torso.Neck.C0=necko*euler(0.4-0.8*i,0,0)
  951. RootJoint.C0=RootCF*euler(0,0,0)
  952. LW.C0=cf(-0.5,0.5+0.5*i,-0.5)*euler(0.2+2.8*i,0,0.4)
  953. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  954. RW.C0=cf(1,0.5+0.5*i,-0.5)*euler(0.2+2.8*i,0,-0.4)
  955. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  956. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  957. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  958. local h = 4.7
  959. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  960. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  961. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  962. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  963. scfr = blcf
  964. elseif not scfr then
  965. scfr = blcf
  966. end
  967. end
  968. con1:disconnect()
  969. wait()
  970. attack=false
  971. end
  972.  
  973. function heroattackthree()
  974. attack=true
  975. for i=0,1,0.1 do
  976. wait()
  977. wld1.C0=euler(1.57,0,-0.4+0.4*i)*cf(0,1,0)
  978. Torso.Neck.C0=necko*euler(-0.4+0.4*i,0,-1*i)
  979. RootJoint.C0=RootCF*euler(0,0,1*i)
  980. LW.C0=cf(-0.5-1*i,1-0.5*i,-0.5+0.5*i)*euler(3-2*i,0,0.4-1*i)
  981. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  982. RW.C0=cf(1,1-0.5*i,-0.5)*euler(3-1.43*i,0,-0.4)
  983. RW.C1=cf(0,0.5,0)*euler(0,-1.57*i,0)
  984. end
  985. so("http://roblox.com/asset/?id=10209640",hitbox,1,0.9)
  986. blcf=nil
  987. scfr=nil
  988. for i=0,1,0.2 do
  989. wait()
  990. wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
  991. Torso.Neck.C0=necko*euler(0,0,-1-0.57*i)
  992. RootJoint.C0=RootCF*euler(0,0,1+0.57*i)
  993. LW.C0=cf(-1.5,0.5,0)*euler(1,0,-0.6-0.9*i)
  994. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  995. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1.5,0,-0.4+2.3*i)
  996. RW.C1=cf(0,0.5,0)*euler(0,-1.57,0)
  997. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  998. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  999. local h = 4.7
  1000. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1001. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1002. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1003. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1004. scfr = blcf
  1005. elseif not scfr then
  1006. scfr = blcf
  1007. end
  1008. end
  1009. local icprt=part(3,workspace,0,1,BrickColor.new("Bright blue"),"Icicle Part",vt(1,1,1))
  1010. icprt.Anchored=true
  1011. icprt.CFrame=RootPart.CFrame*cf(0,0,-10)
  1012. so("http://www.roblox.com/asset/?id=41763367",iceprt,1,1)
  1013. so("http://www.roblox.com/asset/?id=32656754",iceprt,1,0.7)
  1014. game:GetService("Debris"):AddItem(icprt,5)
  1015. for i=1,math.random(8,15) do
  1016. local freezepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
  1017. freezepart.Anchored=true
  1018. freezepart.CFrame=icprt.CFrame*cf(math.random(-5,4)+math.random(),-2.5,math.random(-5,4)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1019. game:GetService("Debris"):AddItem(freezepart,7)
  1020. coroutine.resume(coroutine.create(function(Part)
  1021. wait(2.5)
  1022. Part.Anchored=false
  1023. Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
  1024. wait(5)
  1025. Part.Parent=nil
  1026. end),freezepart)
  1027. end
  1028. local freezepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(10,10,10))
  1029. freezepart.Anchored=true
  1030. freezepart.CanCollide=true
  1031. freezepart.CFrame=icprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1032. game:GetService("Debris"):AddItem(freezepart,7)
  1033. coroutine.resume(coroutine.create(function(Part)
  1034. wait(1.5)
  1035. for i=1,6 do
  1036. p=Part:Clone()
  1037. p.Parent=workspace
  1038. p.Size=vt(math.random(1,5),math.random(1,5),math.random(1,5))
  1039. p.CFrame=Part.CFrame*cf(math.random(-5,5),math.random(-2,5),math.random(-5,5))
  1040. p.Anchored=false
  1041. p.Velocity=vt(math.random(-40,40),math.random(-10,40),math.random(-40,40))
  1042. game:GetService("Debris"):AddItem(p,5)
  1043. end
  1044. so("http://www.roblox.com/asset/?id=87015121",Part,1,2)
  1045. Part.Transparency=1
  1046. Part.CanCollide=false
  1047. wait(2)
  1048. Part.Parent=nil
  1049. end),freezepart)
  1050. local c = game.Workspace:GetChildren()
  1051. for i = 1, #c do
  1052. local hum = c[i]:findFirstChild("Humanoid")
  1053. if hum ~= nil and hum.Health ~= 0 then
  1054. local head = c[i]:findFirstChild("Head")
  1055. if head ~= nil then
  1056. local targ = head.Position - icprt.Position
  1057. local mag = targ.magnitude
  1058. if mag <= 8 and c[i].Name ~= Player.Name then
  1059. attackdebounce=false
  1060. Damagefunc(head,10,20,math.random(10,30),"Freeze")
  1061. end
  1062. end
  1063. end
  1064. end
  1065. --wait(2)
  1066. attack=false
  1067. end
  1068.  
  1069. function HerotoUnactive()
  1070. attack=true
  1071. prt19.Transparency=0
  1072. so("http://www.roblox.com/asset/?id=32656754",hitbox,1,1)
  1073. MagicBlock(BrickColor.new("Bright blue"),iceprt.CFrame,0.2,0.2,0.2,0.5,0.5,0.5)
  1074. MagicCircle(BrickColor.new("Cyan"),iceprt.CFrame,0.5,0.5,0.5,1,1,1,0.05)
  1075. for i=1,5 do
  1076. BreakEffect(BrickColor.new("White"),iceprt.CFrame,0.2,math.random(1,5),0.2)
  1077. end
  1078. coroutine.resume(coroutine.create(function(Part)
  1079. for i=1,10 do
  1080. wait()
  1081. BreakEffect(BrickColor.new("White"),Part.CFrame,0.2,math.random(1,5),0.2)
  1082. end
  1083. end),iceprt)
  1084. iceprt.Parent=nil
  1085. for _,v in pairs(IceModel:children()) do
  1086. if v.className=="Part" then
  1087. coroutine.resume(coroutine.create(function(Part)
  1088. for i=0,1,0.1 do
  1089. wait()
  1090. Part.Transparency=i
  1091. end
  1092. Part.Parent=nil
  1093. end),v)
  1094. end
  1095. end
  1096. for i=0,1,0.1 do
  1097. wait()
  1098. wld13.C0=cf(0,-0.7,0)*euler(-0.4-0.385*i,0,0)
  1099. wld14.C0=cf(0,-0.7,0)*euler(0.4+0.385*i,0,0)
  1100. wld16.C0=cf(0,0.7,0)*euler(-3.24+2.455*i,0,0)
  1101. wld18.C0=cf(0,0.7,0)*euler(3.24-2.455*i,0,0)
  1102. wld15.C0=cf(0,-1.3+1.3*i,0)*euler(-0.1+0.1*i,0.785*i,0)
  1103. wld17.C0=cf(0,-1.3+1.3*i,0)*euler(0.1-0.1*i,0.785*i,0)
  1104. wldref2.C0=euler(-0.785*i,0,0)*cf(0,-0.5,0)
  1105. wldref3.C0=euler(0.785*i,0,0)*cf(0,-0.5,0)
  1106. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3*i)
  1107. Torso.Neck.C0=necko*euler(0,0.2*i,-0.4+1.4*i)
  1108. RootJoint.C0=RootCF*euler(0,0,0.4-1.4*i)
  1109. LW.C0=cf(-1,0.5,-0.5)*euler(1-0.4*i,0,0.2+0.5*i)
  1110. LW.C1=cf(0,0.5,0)*euler(0,-1+1*i,0)
  1111. RW.C0=cf(1,0.5,-0.5)*euler(0.5+0.5*i,0,-0.2-0.3*i)
  1112. RW.C1=cf(0,0.5,0)*euler(0,-1+1.7*i,0)
  1113. end
  1114. IceModel.Parent=nil
  1115. attack=false
  1116. end
  1117.  
  1118. function HerotoInfamous()
  1119. attack=true
  1120. prt19.Transparency=0
  1121. so("http://www.roblox.com/asset/?id=32656754",hitbox,1,1)
  1122. MagicBlock(BrickColor.new("Bright blue"),iceprt.CFrame,0.2,0.2,0.2,0.5,0.5,0.5)
  1123. MagicCircle(BrickColor.new("Cyan"),iceprt.CFrame,0.5,0.5,0.5,1,1,1,0.05)
  1124. for i=1,5 do
  1125. BreakEffect(BrickColor.new("White"),iceprt.CFrame,0.2,math.random(1,5),0.2)
  1126. end
  1127. coroutine.resume(coroutine.create(function(Part)
  1128. for i=1,10 do
  1129. wait()
  1130. BreakEffect(BrickColor.new("White"),Part.CFrame,0.2,math.random(1,5),0.2)
  1131. end
  1132. end),iceprt)
  1133. iceprt.Parent=nil
  1134. for _,v in pairs(IceModel:children()) do
  1135. if v.className=="Part" then
  1136. coroutine.resume(coroutine.create(function(Part)
  1137. for i=0,1,0.1 do
  1138. wait()
  1139. Part.Transparency=i
  1140. end
  1141. Part.Parent=nil
  1142. end),v)
  1143. end
  1144. end
  1145. infprt16=nil
  1146. infprt18=nil
  1147. FireModel.Parent=modelzorz
  1148. for _,v in pairs(modelzorz:children()) do
  1149. if v.className~="Model" and v.Name~="Hitbox" and v.Name~="Part1" and v.Name~="ReferencePart" then
  1150. cl=v:Clone()
  1151. cl.Parent=FireModel
  1152. if v.Name=="Part16" then
  1153. infprt16=cl
  1154. elseif v.Name=="Part18" then
  1155. infprt18=cl
  1156. end
  1157. if v.Name=="Part7" and v.Name=="Part8" then
  1158. end
  1159. if v.Name=="Part9" then
  1160. cl.BrickColor=BrickColor.new("White")
  1161. elseif v.Name=="Part3" then
  1162. cl.BrickColor=BrickColor.new("Dusty Rose")
  1163. elseif v.Name=="Part4" then
  1164. cl.BrickColor=BrickColor.new("Really red")
  1165. elseif v.Name=="Part6" or v.Name=="Part7" or v.Name=="Part8" then
  1166. cl.BrickColor=BrickColor.new("Bright orange")
  1167. elseif v.Name=="Part12" or v.Name=="Part15" or v.Name=="Part17" or v.Name=="Part19" then
  1168. cl.BrickColor=BrickColor.new("Really red")
  1169. else
  1170. cl.BrickColor=BrickColor.new("Bright red")
  1171. end
  1172. cl.Transparency=1
  1173. coroutine.resume(coroutine.create(function(Part)
  1174. for i=1,0,-0.1 do
  1175. wait()
  1176. Part.Transparency=i
  1177. end
  1178. Part.Transparency=0
  1179. end),cl)
  1180. clmsh=cl.Mesh
  1181. clmsh.Scale=clmsh.Scale+vt(0.01,0.01,0.01)
  1182. clwld=Instance.new("Weld")
  1183. clwld.Parent=cl
  1184. clwld.Part0=cl
  1185. clwld.Part1=v
  1186. if v.Name=="Part7" then
  1187. clwld.C0=cf(0,-0.01,0)
  1188. elseif v.Name=="Part8" then
  1189. clwld.C0=cf(0,-0.01,0)
  1190. end
  1191. end
  1192. end
  1193. infmsh16=infprt16.Mesh
  1194. infmsh18=infprt18.Mesh
  1195. infwld16=infprt16.Weld
  1196. infwld18=infprt18.Weld
  1197. infmsh16.Scale=vt(0.31,1.5,0.31)
  1198. infmsh18.Scale=vt(0.31,1.5,0.31)
  1199. infwld16.C0=cf(0,0.2,0)
  1200. infwld18.C0=cf(0,0.2,0)
  1201. so("http://www.roblox.com/asset/?id=2101148",hitbox,1,1)
  1202. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,0.2,0.2,0.2,1,1,1)
  1203. MagicCircle(BrickColor.new("Bright orange"),hitbox.CFrame,0.3,1,0.3,0.7,1.2,0.7,0.05)
  1204. coroutine.resume(coroutine.create(function(Arm)
  1205. while Mode=="Infamous" do
  1206. wait(math.random(0,1)+math.random())
  1207. if math.random(1,2)==1 then
  1208. MagicFire(BrickColor.new("Bright red"),Arm.CFrame*cf(0,-1,0),1.5,1.5,1.5)
  1209. else
  1210. MagicFire(BrickColor.new("Bright yellow"),Arm.CFrame*cf(0,-1,0),1.5,1.5,1.5)
  1211. end
  1212. end
  1213. end),LeftArm)
  1214. for i=0,1,0.1 do
  1215. wait()
  1216. wld13.C0=cf(0,-0.7,0)*euler(-0.4-1.885*i,0,0)
  1217. wld14.C0=cf(0,-0.7,0)*euler(0.4+1.885*i,0,0)
  1218. wld15.C0=cf(0,-1.3+1.3*i,0)*euler(-0.1+0.1*i,0,0)*euler(0,0.785*i,0)*cf(0,0,0.3*i)
  1219. wld16.C0=cf(0,0.7,0)*euler(-3.24+4.24*i,0,0)
  1220. wld17.C0=cf(0,-1.3+1.3*i,0)*euler(0.1-0.1*i,0,0)*euler(0,0.785*i,0)*cf(0,0,-0.3*i)
  1221. wld18.C0=cf(0,0.7,0)*euler(3.24-4.24*i,0,0)
  1222. wldref2.C0=euler(-1.57*i,0,0)*cf(0,-0.5+0.3*i,0)
  1223. wldref3.C0=euler(1.57*i,0,0)*cf(0,-0.5+0.3*i,0)
  1224. wldref4.C0=euler(0.785-0.5*i,0,0)*cf(0,0.5+0.6*i,0.1785*i)
  1225. Torso.Neck.C0=necko*euler(0.2*i,0,-0.4-0.1*i)
  1226. RootJoint.C0=RootCF*euler(0,0,0.4+0.1*i)
  1227. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(1-0.8*i,0,0.2-0.7*i)
  1228. LW.C1=cf(0,0.5,0)*euler(0,-1+1*i,0)
  1229. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(0.5-0.5*i,0,-0.2+0.7*i)
  1230. RW.C1=cf(0,0.5,0)*euler(0,-1+1*i,0)
  1231. end
  1232. IceModel.Parent=nil
  1233. attack=false
  1234. end
  1235.  
  1236. function infattackone()
  1237. attack=true
  1238. for i=0,1,0.2 do
  1239. wait()
  1240. Torso.Neck.C0=necko*euler(0.2,0,-0.5-0.2*i)
  1241. RootJoint.C0=RootCF*euler(0,0,0.5+0.2*i)
  1242. LW.C0=cf(-1.5,0.5,0)*euler(0.2-0.4*i,0,-0.5)
  1243. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1244. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(2*i,0,0.5-1*i)
  1245. RW.C1=cf(0,0.5,0)*euler(0,-1*i,0)
  1246. end
  1247. so("http://roblox.com/asset/?id=10209640",hitbox,1,1)
  1248. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal") end)
  1249. blcf=nil
  1250. scfr=nil
  1251. for i=0,1,0.2 do
  1252. wait()
  1253. Torso.Neck.C0=necko*euler(0.2,0,-0.7+1*i)
  1254. RootJoint.C0=RootCF*euler(0,0,0.7-1*i)
  1255. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5)
  1256. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1257. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(2-2*i,0,-0.5+1*i)
  1258. RW.C1=cf(0,0.5,0)*euler(0,-1+1*i,0)
  1259. local blcf = hitbox.CFrame*CFrame.new(-.125,-1,0)
  1260. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1261. local h = 4.7
  1262. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1263. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1264. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1265. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1266. scfr = blcf
  1267. elseif not scfr then
  1268. scfr = blcf
  1269. end
  1270. end
  1271. con1:disconnect()
  1272. for i=0,1,0.2 do
  1273. Torso.Neck.C0=necko*euler(0.2,0,0.3+0.2*i)
  1274. RootJoint.C0=RootCF*euler(0,0,-0.3-0.2*i)
  1275. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5)
  1276. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1277. RW.C0=cf(1.5,0.5,0)*euler(-0.2*i,0,0.5+0.1*i)
  1278. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1279. local blcf = hitbox.CFrame*CFrame.new(-.125,-1,0)
  1280. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1281. local h = 4.7
  1282. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1283. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1284. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1285. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1286. scfr = blcf
  1287. elseif not scfr then
  1288. scfr = blcf
  1289. end
  1290. wait()
  1291. end
  1292. attack=false
  1293. end
  1294.  
  1295. function infattacktwo()
  1296. attack=true
  1297. for i=0,1,0.2 do
  1298. wait()
  1299. Torso.Neck.C0=necko*euler(0.2-0.2*i,0,0.5+1.07*i)
  1300. RootJoint.C0=RootCF*euler(0,0,-0.5-1.07*i)
  1301. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+1.77*i,0,-0.5-1.07*i)
  1302. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1303. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.6)
  1304. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1305. end
  1306. local frprt=part(3,workspace,0,1,BrickColor.new("Bright red"),"Fire Part",vt(1,1,1))
  1307. frprt.Anchored=true
  1308. frprt.CFrame=RootPart.CFrame*cf(0,0,-5)
  1309. game:GetService("Debris"):AddItem(frprt,5)
  1310. so("http://www.roblox.com/asset/?id=2691586",frprt,1,0.5)
  1311. MagicBlock(BrickColor.new("Bright red"),frprt.CFrame,1,1,1,1,1,1)
  1312. MagicCircle(BrickColor.new("Bright yellow"),frprt.CFrame,1,1,1,1,1,1,0.05)
  1313. for i=1,math.random(8,15) do
  1314. if math.random(1,2)==1 then
  1315. MagicBlock2(BrickColor.new("Bright red"),frprt.CFrame,1,1,1,0.1,0.1,0.1)
  1316. else
  1317. MagicBlock2(BrickColor.new("Bright yellow"),frprt.CFrame,1,1,1,0.1,0.1,0.1)
  1318. end
  1319. end
  1320. local c = game.Workspace:GetChildren()
  1321. for i = 1, #c do
  1322. local hum = c[i]:findFirstChild("Humanoid")
  1323. if hum ~= nil and hum.Health ~= 0 then
  1324. local head = c[i]:findFirstChild("Head")
  1325. if head ~= nil then
  1326. local targ = head.Position - frprt.Position
  1327. local mag = targ.magnitude
  1328. if mag <= 5 and c[i].Name ~= Player.Name then
  1329. attackdebounce=false
  1330. Damagefunc(head,20,30,math.random(30,50),"Knockdown",Torso)
  1331. end
  1332. end
  1333. end
  1334. end
  1335. attack=false
  1336. end
  1337.  
  1338. function infattackthree()
  1339. attack=true
  1340. for i=0,1,0.1 do
  1341. wait()
  1342. Torso.Neck.C0=necko*euler(0,-0.2*i,1.57-0.47*i)
  1343. RootJoint.C0=RootCF*euler(0,0,-1.57+0.47*i)
  1344. RootJoint.C1=RootCF*euler(0,-0.2*i,0)
  1345. LW.C0=cf(-1.5,0.5,0)*euler(1.57-0.5*i,0,-1.57+0.5*i)
  1346. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1347. RW.C0=cf(1.5,0.5,0)*euler(-0.2+0.8*i,0,0.6-0.3*i)
  1348. RW.C1=cf(0,0.5,0)*euler(0,3.14*i,0)
  1349. end
  1350. Humanoid.WalkSpeed=30
  1351. so("http://roblox.com/asset/?id=10209640",hitbox,1,1.1)
  1352. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(5,10),"Normal") end)
  1353. blcf=nil
  1354. scfr=nil
  1355. for i=0,1,0.15 do
  1356. wait()
  1357. wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
  1358. Torso.Neck.C0=necko*euler(0,-0.2,1.1-2.1*i)
  1359. RootJoint.C0=RootCF*euler(0,0,-1.1+2.1*i)
  1360. RootJoint.C1=RootCF*euler(0,-0.2+0.4*i,0)
  1361. LW.C0=cf(-1.5,0.5,0)*euler(1.07,0,-1.07)
  1362. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1363. RW.C0=cf(1.5-1*i,0.5,-0.5*i)*euler(0.6+1.2*i,0,0.3-0.9*i)
  1364. RW.C1=cf(0,0.5,0)*euler(0,3.14-1.4*i,0)
  1365. local blcf = hitbox.CFrame*CFrame.new(-.125,-1,0)
  1366. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1367. local h = 4.7
  1368. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1369. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1370. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1371. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1372. scfr = blcf
  1373. elseif not scfr then
  1374. scfr = blcf
  1375. end
  1376. end
  1377. for i=0,1,0.1 do
  1378. wait()
  1379. wld1.C0=euler(2.57-1*i,0,0)*cf(0,1,0)
  1380. Torso.Neck.C0=necko*euler(0,-0.2,-1)
  1381. RootJoint.C0=RootCF*euler(0,0,1)
  1382. RootJoint.C1=RootCF*euler(0,0.2,0)
  1383. LW.C0=cf(-1.5,0.5,0)*euler(1.07,0,-1.07-0.5*i)
  1384. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1385. RW.C0=cf(0.5,0.5,-0.5)*euler(1.8,0,-0.6)
  1386. RW.C1=cf(0,0.5,0)*euler(0,1.74-3.31*i,0)
  1387. local blcf = hitbox.CFrame*CFrame.new(-.125,-1,0)
  1388. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1389. local h = 4.7
  1390. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1391. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1392. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1393. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1394. scfr = blcf
  1395. elseif not scfr then
  1396. scfr = blcf
  1397. end
  1398. end
  1399. so("http://roblox.com/asset/?id=10209640",hitbox,1,0.9)
  1400. for i=0,1,0.15 do
  1401. wait()
  1402. wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
  1403. Torso.Neck.C0=necko*euler(0,-0.2,-1+2*i)
  1404. RootJoint.C0=RootCF*euler(0,0,1-2*i)
  1405. RootJoint.C1=RootCF*euler(0,0.2-0.6*i,0)
  1406. LW.C0=cf(-1.5,0.5,0)*euler(1.07,0,-1.57+1*i)
  1407. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1408. RW.C0=cf(0.5+1*i,0.5,-0.5+0.5*i)*euler(1.8,0,-0.6+2.07*i)
  1409. RW.C1=cf(0,0.5,0)*euler(0,-1.57,0)
  1410. local blcf = hitbox.CFrame*CFrame.new(-.125,-1,0)
  1411. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  1412. local h = 4.7
  1413. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1414. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1415. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1416. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1417. scfr = blcf
  1418. elseif not scfr then
  1419. scfr = blcf
  1420. end
  1421. end
  1422. con1:disconnect()
  1423. Humanoid.WalkSpeed=16
  1424. for i=0,1,0.2 do
  1425. wait()
  1426. RootJoint.C1=RootCF*euler(0,-0.4+0.4*i,0)
  1427. end
  1428. RootJoint.C1=RootCF
  1429. attack=false
  1430. end
  1431.  
  1432. function InfamoustoUnactive()
  1433. attack=true
  1434. so("http://www.roblox.com/asset/?id=2101148",hitbox,1,1)
  1435. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,0.2,0.2,0.2,1,1,1)
  1436. MagicCircle(BrickColor.new("Bright orange"),hitbox.CFrame,0.3,1,0.3,0.7,1.2,0.7,0.05)
  1437. for _,v in pairs(FireModel:children()) do
  1438. if v.className=="Part" then
  1439. coroutine.resume(coroutine.create(function(Part)
  1440. for i=0,1,0.1 do
  1441. wait()
  1442. Part.Transparency=i
  1443. end
  1444. Part.Parent=nil
  1445. end),v)
  1446. end
  1447. end
  1448. for i=0,1,0.1 do
  1449. wait()
  1450. Torso.Neck.C0=necko*euler(0.2-0.2*i,0.2*i,-0.5+1.5*i)
  1451. RootJoint.C0=RootCF*euler(0,0,0.5-1.5*i)
  1452. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0.2+0.4*i,0,-0.5+1.2*i)
  1453. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1454. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1*i,0,0.5-1*i)
  1455. RW.C1=cf(0,0.5,0)*euler(0,0.7*i,0)
  1456. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  1457. wld13.C0=cf(0,-0.7,0)*euler(-2.285+1.5*i,0,0)
  1458. wld14.C0=cf(0,-0.7,0)*euler(2.285-1.5*i,0,0)
  1459. wld15.C0=euler(0,0.785,0)*cf(0,0,0.3-0.3*i)
  1460. wld17.C0=euler(0,0.785,0)*cf(0,0,-0.3+0.3*i)
  1461. wld16.C0=cf(0,0.7,0)*euler(1-1.785*i,0,0)
  1462. wld18.C0=cf(0,0.7,0)*euler(-1+1.785*i,0,0)
  1463. wldref2.C0=euler(-1.57+0.785*i,0,0)*cf(0,-0.2-0.3*i,0)
  1464. wldref3.C0=euler(1.57-0.785*i,0,0)*cf(0,-0.2-0.3*i,0)
  1465. wldref4.C0=euler(0.285+0.5*i,0,0)*cf(0,1.1-0.6*i,0.1785-0.1785*i)
  1466. end
  1467. FireModel.Parent=nil
  1468. attack=false
  1469. end
  1470.  
  1471. function InfamoustoHero()
  1472. attack=true
  1473. so("http://www.roblox.com/asset/?id=2101148",hitbox,1,1)
  1474. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,0.2,0.2,0.2,1,1,1)
  1475. MagicCircle(BrickColor.new("Bright orange"),hitbox.CFrame,0.3,1,0.3,0.7,1.2,0.7,0.05)
  1476. for _,v in pairs(FireModel:children()) do
  1477. if v.className=="Part" then
  1478. coroutine.resume(coroutine.create(function(Part)
  1479. for i=0,1,0.1 do
  1480. wait()
  1481. Part.Transparency=i
  1482. end
  1483. Part.Parent=nil
  1484. end),v)
  1485. end
  1486. end
  1487. IceModel.Parent=modelzorz
  1488. for _,v in pairs(modelzorz:children()) do
  1489. coroutine.resume(coroutine.create(function(Part)
  1490. if Part.Name=="Part19" then
  1491. for i=0,1,0.1 do
  1492. wait()
  1493. Part.Transparency=i
  1494. end
  1495. Part.Transparency=1
  1496. end
  1497. end),v)
  1498. if v.className~="Model" and v.Name~="Hitbox" and v.Name~="Part1" and v.Name~="ReferencePart" and v.Name~="Part19" then
  1499. cl=v:Clone()
  1500. cl.Parent=IceModel
  1501. if v.Name=="Part7" and v.Name=="Part8" then
  1502. end
  1503. if v.Name=="Part9" then
  1504. cl.BrickColor=BrickColor.new("White")
  1505. elseif v.Name=="Part10" or v.Name=="Part11" then
  1506. cl.BrickColor=BrickColor.new("Deep blue")
  1507. elseif v.Name=="Part6" or v.Name=="Part7" or v.Name=="Part8" then
  1508. cl.BrickColor=BrickColor.new("Pastel light blue")
  1509. elseif v.Name=="Part3" then
  1510. cl.BrickColor=BrickColor.new("Medium blue")
  1511. elseif v.Name=="Part4" then
  1512. cl.BrickColor=BrickColor.new("Light blue")
  1513. elseif v.Name=="Part12" or v.Name=="Part15" or v.Name=="Part17" or v.Name=="Part19" then
  1514. cl.BrickColor=BrickColor.new("Light blue")
  1515. else
  1516. cl.BrickColor=BrickColor.new("Cyan")
  1517. end
  1518. cl.Transparency=1
  1519. coroutine.resume(coroutine.create(function(Part)
  1520. for i=1,0,-0.1 do
  1521. wait()
  1522. Part.Transparency=i
  1523. end
  1524. Part.Transparency=0
  1525. end),cl)
  1526. clmsh=cl.Mesh
  1527. clmsh.Scale=clmsh.Scale+vt(0.01,0.01,0.01)
  1528. clwld=Instance.new("Weld")
  1529. clwld.Parent=cl
  1530. clwld.Part0=cl
  1531. clwld.Part1=v
  1532. if v.Name=="Part7" then
  1533. clwld.C0=cf(0,-0.01,0)
  1534. elseif v.Name=="Part8" then
  1535. clwld.C0=cf(0,-0.01,0)
  1536. end
  1537. if v.Name=="Part7" then
  1538. clwld.C0=cf(0,-0.01,0)
  1539. elseif v.Name=="Part8" then
  1540. clwld.C0=cf(0,-0.01,0)
  1541. end
  1542. end
  1543. end
  1544. so("http://roblox.com/asset/?id=25605551",hitbox,1,1)
  1545. iceprt.Transparency=0
  1546. iceprt.Parent=IceModel
  1547. local icewld=weld(iceprt,iceprt,hitbox,euler(0,0,1.57)*cf(0,-2,0))
  1548. so("http://www.roblox.com/asset/?id=32656754",iceprt,1,1)
  1549. MagicBlock(BrickColor.new("Bright blue"),iceprt.CFrame,0.2,0.2,0.2,0.5,0.5,0.5)
  1550. MagicCircle(BrickColor.new("Cyan"),iceprt.CFrame,0.5,0.5,0.5,1,1,1,0.05)
  1551. for i=1,5 do
  1552. BreakEffect(BrickColor.new("White"),iceprt.CFrame,0.2,math.random(1,5),0.2)
  1553. end
  1554. coroutine.resume(coroutine.create(function(Part,Weld)
  1555. while Part.Parent~=nil do
  1556. wait()
  1557. --Weld.C1=Weld.C1*euler(0.2,0,0)
  1558. end
  1559. end),iceprt,icewld)
  1560. coroutine.resume(coroutine.create(function(Part)
  1561. for i=1,20 do
  1562. wait()
  1563. BreakEffect(BrickColor.new("White"),Part.CFrame,0.2,math.random(1,5),0.2)
  1564. end
  1565. end),iceprt)
  1566. for i=0,1,0.1 do
  1567. wait()
  1568. wld13.C0=cf(0,-0.7,0)*euler(-2.285+1.885*i,0,0)
  1569. wld14.C0=cf(0,-0.7,0)*euler(2.285-1.885*i,0,0)
  1570. wld15.C0=euler(0,0.785-0.785*i,0)*cf(0,0,0.3-0.3*i)*cf(0,-1.3*i,0)*euler(-0.1*i,0,0)
  1571. wld17.C0=euler(0,0.785-0.785*i,0)*cf(0,0,-0.3+0.3*i)*cf(0,-1.3*i,0)*euler(0.1-0.1*i,0,0)
  1572. wld16.C0=cf(0,0.7,0)*euler(1-4.24*i,0,0)
  1573. wld18.C0=cf(0,0.7,0)*euler(-1+4.24*i,0,0)
  1574. wldref2.C0=euler(-1.57+1.57*i,0,0)*cf(0,-0.2-0.3*i,0)
  1575. wldref3.C0=euler(1.57-1.57*i,0,0)*cf(0,-0.2-0.3*i,0)
  1576. wldref4.C0=euler(0.285,0,0)*cf(0,1.1,0.1785)
  1577. Torso.Neck.C0=necko*euler(0.2-0.2*i,0,-0.5+0.1*i)
  1578. RootJoint.C0=RootCF*euler(0,0,0.5-0.1*i)
  1579. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0.2+0.8*i,0,-0.5+0.7*i)
  1580. LW.C1=cf(0,0.5,0)*euler(0,-1*i,0)
  1581. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(0.5*i,0,0.5-0.7*i)
  1582. RW.C1=cf(0,0.5,0)*euler(0,-1*i,0)
  1583. end
  1584. wld13.C0=cf(0,-0.7,0)*euler(-0.4,0,0)
  1585. wld14.C0=cf(0,-0.7,0)*euler(0.4,0,0)
  1586. wld16.C0=cf(0,0.7,0)*euler(-3.24,0,0)
  1587. wld18.C0=cf(0,0.7,0)*euler(3.24,0,0)
  1588. wld15.C0=cf(0,-1.3,0)*euler(-0.1,0,0)
  1589. wld17.C0=cf(0,-1.3,0)*euler(0.1,0,0)
  1590. wldref2.C0=euler(0,0,0)*cf(0,-0.5,0)
  1591. wldref3.C0=euler(0,0,0)*cf(0,-0.5,0)
  1592. wldref4.C0=euler(0.785,0,0)*cf(0,0.5,0)
  1593. FireModel.Parent=nil
  1594. attack=false
  1595. end
  1596.  
  1597. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1598. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1599. end
  1600.  
  1601. local ppart = Instance.new("Part")
  1602. ppart.Material = "SmoothPlastic"
  1603. ppart.TopSurface,ppart.BottomSurface = 0,0
  1604. ppart.FormFactor = "Custom"
  1605. ppart.Size = Vector3.new(.2,.2,.2)
  1606. ppart:BreakJoints()
  1607. ppart.TopSurface = "SmoothNoOutlines"
  1608. ppart.BottomSurface = "SmoothNoOutlines"
  1609. ppart.RightSurface = "SmoothNoOutlines"
  1610. ppart.LeftSurface = "SmoothNoOutlines"
  1611. ppart.CanCollide = false
  1612.  
  1613.  
  1614. local function CFrameFromTopBack(at, top, back)
  1615. local right = top:Cross(back)
  1616. return CFrame.new(at.x, at.y, at.z,
  1617. right.x, top.x, back.x,
  1618. right.y, top.y, back.y,
  1619. right.z, top.z, back.z)
  1620. end
  1621.  
  1622. function Triangle(a, b, c)
  1623. local edg1 = (c-a):Dot((b-a).unit)
  1624. local edg2 = (a-b):Dot((c-b).unit)
  1625. local edg3 = (b-c):Dot((a-c).unit)
  1626. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1627. a, b, c = a, b, c
  1628. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1629. a, b, c = b, c, a
  1630. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1631. a, b, c = c, a, b
  1632. else
  1633. assert(false, "unreachable")
  1634. end
  1635.  
  1636. local len1 = (c-a):Dot((b-a).unit)
  1637. local len2 = (b-a).magnitude - len1
  1638. local width = (a + (b-a).unit*len1 - c).magnitude
  1639.  
  1640. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1641.  
  1642. local list = {}
  1643.  
  1644. if len1 > 0.01 then
  1645. local w1 = Instance.new('WedgePart', m)
  1646. w1.Material = "SmoothPlastic"
  1647. w1.FormFactor = 'Custom'
  1648. if Mode=="Unactive" then
  1649. w1.BrickColor = ppart.BrickColor
  1650. elseif Mode=="Hero" then
  1651. w1.BrickColor = BrickColor.new("Bright blue")
  1652. elseif Mode=="Infamous" then
  1653. w1.BrickColor = BrickColor.new("Bright red")
  1654. end
  1655. w1.Transparency = ppart.Transparency
  1656. w1.Reflectance = ppart.Reflectance
  1657. w1.Material = ppart.Material
  1658. w1.CanCollide = ppart.CanCollide
  1659. NoOutline(w1)
  1660. local sz = Vector3.new(0.2, width, len1)
  1661. w1.Size = sz
  1662. local sp = Instance.new("SpecialMesh",w1)
  1663. sp.MeshType = "Wedge"
  1664. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1665. w1:BreakJoints()
  1666. w1.Anchored = true
  1667. w1.Parent = workspace
  1668. w1.Transparency = 0.7
  1669. coroutine.resume(coroutine.create(function(Part)
  1670. for i=0,1,0.1 do
  1671. wait()
  1672. Part.Transparency=Part.Transparency+0.03
  1673. end
  1674. end),w1)
  1675. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1676. table.insert(list,w1)
  1677. end
  1678.  
  1679. if len2 > 0.01 then
  1680. local w2 = Instance.new('WedgePart', m)
  1681. w2.Material = "SmoothPlastic"
  1682. w2.FormFactor = 'Custom'
  1683. if Mode=="Unactive" then
  1684. w2.BrickColor = ppart.BrickColor
  1685. elseif Mode=="Hero" then
  1686. w2.BrickColor = BrickColor.new("Bright blue")
  1687. elseif Mode=="Infamous" then
  1688. w2.BrickColor = BrickColor.new("Bright red")
  1689. end
  1690. w2.Transparency = ppart.Transparency
  1691. w2.Reflectance = ppart.Reflectance
  1692. w2.Material = ppart.Material
  1693. w2.CanCollide = ppart.CanCollide
  1694. NoOutline(w2)
  1695. local sz = Vector3.new(0.2, width, len2)
  1696. w2.Size = sz
  1697. local sp = Instance.new("SpecialMesh",w2)
  1698. sp.MeshType = "Wedge"
  1699. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1700. w2:BreakJoints()
  1701. w2.Anchored = true
  1702. w2.Parent = workspace
  1703. w2.Transparency = 0.7
  1704. coroutine.resume(coroutine.create(function(Part)
  1705. for i=0,1,0.1 do
  1706. wait()
  1707. Part.Transparency=Part.Transparency+0.03
  1708. end
  1709. end),w2)
  1710. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1711. table.insert(list,w2)
  1712. end
  1713. return unpack(list)
  1714. end
  1715.  
  1716. function ElecEffect(cff,x,y,z)
  1717. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1718. prt.Anchored=true
  1719. xval=math.random()
  1720. yval=math.random()
  1721. zval=math.random()
  1722. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1723. coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1724. Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1725. for i=1,8 do
  1726. wait()
  1727. xvaal=xvaal-0.1
  1728. yvaal=yvaal-0.1
  1729. zvaal=zvaal-0.1
  1730. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1731. Part.Transparency=Part.Transparency+0.09
  1732. end
  1733. Part.Parent=nil
  1734. end),prt,msh,cff,xval,yval,zval)
  1735. end
  1736.  
  1737. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1738. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1739. prt.Anchored=true
  1740. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1741. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1742. game:GetService("Debris"):AddItem(prt,2)
  1743. coroutine.resume(coroutine.create(function(Part,Mesh)
  1744. for i=0,1,0.1 do
  1745. wait()
  1746. Part.CFrame=Part.CFrame
  1747. Part.Transparency=i
  1748. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1749. end
  1750. Part.Parent=nil
  1751. end),prt,msh)
  1752. end
  1753.  
  1754. function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1755. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1756. prt.Anchored=true
  1757. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1758. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1759. game:GetService("Debris"):AddItem(prt,2)
  1760. CF=prt.CFrame
  1761. num=math.random(5,20)
  1762. coroutine.resume(coroutine.create(function(Part,Mesh,CF2,Num)
  1763. for i=0,1.05,0.05 do
  1764. wait()
  1765. Part.CFrame=CF2*cf(0,i*Num,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1766. Part.Transparency=i
  1767. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1768. end
  1769. Part.Parent=nil
  1770. end),prt,msh,CF,num)
  1771. end
  1772.  
  1773. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1774. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1775. prt.Anchored=true
  1776. prt.CFrame=cframe
  1777. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1778. game:GetService("Debris"):AddItem(prt,2)
  1779. coroutine.resume(coroutine.create(function(Part,Mesh)
  1780. for i=0,1,delay do
  1781. wait()
  1782. Part.CFrame=Part.CFrame
  1783. Part.Transparency=i
  1784. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1785. end
  1786. Part.Parent=nil
  1787. end),prt,msh)
  1788. end
  1789.  
  1790. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  1791. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1792. prt.Anchored=true
  1793. prt.CFrame=cframe*euler(x2,y2,z2)
  1794. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1795. game:GetService("Debris"):AddItem(prt,2)
  1796. coroutine.resume(coroutine.create(function(Part,Mesh)
  1797. for i=0,1,0.03 do
  1798. wait()
  1799. Part.CFrame=Part.CFrame
  1800. Part.Transparency=i
  1801. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1802. end
  1803. Part.Parent=nil
  1804. end),prt,msh)
  1805. end
  1806.  
  1807. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1808. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1809. prt.Anchored=true
  1810. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1811. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1812. game:GetService("Debris"):AddItem(prt,2)
  1813. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1814. CF=Part.CFrame
  1815. Numbb=0
  1816. randnumb=math.random()-math.random()
  1817. rand1=math.random()/5
  1818. for i=0,1,rand1 do
  1819. wait()
  1820. CF=CF*cf(0,1,0)
  1821. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1822. Part.CFrame=CF*euler(Numbb,0,0)
  1823. Part.Transparency=i
  1824. Numbb=Numbb+randnumb
  1825. end
  1826. Part.Parent=nil
  1827. end),prt,CF,Numbb,randnumb)
  1828. end
  1829.  
  1830. function MagicFreeze(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1831. local prt=part(3,workspace,0.4,0.3,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1832. prt.Anchored=true
  1833. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1834. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(x1,y1,z1))
  1835. game:GetService("Debris"):AddItem(prt,2)
  1836. coroutine.resume(coroutine.create(function(Part,Mesh)
  1837. for i=0,1,0.1 do
  1838. Part.CFrame=Part.CFrame*cf(0,0.3,0)
  1839. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1840. end
  1841. wait(5)
  1842. Part.Parent=nil
  1843. end),prt,msh)
  1844. end
  1845.  
  1846. function CreateIcicle(BaseCFrame)
  1847. local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  1848. so("http://www.roblox.com/asset/?id=32656754",basepart,1,1)
  1849. basepart.Anchored=true
  1850. game:GetService("Debris"):AddItem(basepart,0.2)
  1851. local icepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"IceSword",vt(2,6,2))
  1852. icepart.CanCollide=true
  1853. icepart.Anchored=true
  1854. local icemesh=mesh("SpecialMesh",icepart,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(4,10,4))
  1855. basepart.CFrame=BaseCFrame
  1856. icepart.CFrame=basepart.CFrame*cf(0,-10,0)
  1857. coroutine.resume(coroutine.create(function(Part)
  1858. for i=0,1,0.1 do
  1859. wait()
  1860. for i=1,math.random(1,2) do
  1861. BreakEffect(BrickColor.new("Bright blue"),Part.CFrame*cf(0,2,0),0.2,math.random(1,5),0.2)
  1862. end
  1863. Part.CFrame=Part.CFrame*cf(0,0.8,0)
  1864. end
  1865. wait(1)
  1866. for i=1,math.random(5,10) do
  1867. BreakEffect(BrickColor.new("Bright blue"),Part.CFrame*cf(0,3,0),0.5,math.random(5,10),0.5)
  1868. end
  1869. Part.Parent=nil
  1870. end),icepart)
  1871. end
  1872.  
  1873. function MagicFire(brickcolor,cframe,x1,y1,z1)
  1874. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1875. prt.Anchored=true
  1876. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1877. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1878. game:GetService("Debris"):AddItem(prt,2)
  1879. coroutine.resume(coroutine.create(function(Part,Mesh)
  1880. for i=0,1,0.1 do
  1881. wait()
  1882. Part.CFrame=cf(Part.Position+vt(0,0.5,0))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1883. Part.Transparency=i
  1884. Mesh.Scale=Mesh.Scale+vt(0.1,0.1,0.1)
  1885. end
  1886. Part.Parent=nil
  1887. end),prt,msh)
  1888. end
  1889.  
  1890. so = function(id,par,vol,pit)
  1891. coroutine.resume(coroutine.create(function()
  1892. local sou = Instance.new("Sound",par or workspace)
  1893. sou.Volume=vol
  1894. sou.Pitch=pit or 1
  1895. sou.SoundId=id
  1896. wait()
  1897. sou:play()
  1898. game:GetService("Debris"):AddItem(sou,6)
  1899. end))
  1900. end
  1901.  
  1902. function findNearestTorso(pos)
  1903. local list = game:service("Workspace"):children()
  1904. local torso = nil
  1905. local dist = 50
  1906. local temp = nil
  1907. local human = nil
  1908. local temp2 = nil
  1909. for x = 1, #list do
  1910. temp2 = list[x]
  1911. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "Fenrier") then
  1912. temp = temp2:findFirstChild("Torso")
  1913. human = temp2:findFirstChild("Humanoid")
  1914. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1915. if (temp.Position - pos).magnitude < dist then
  1916. torso = temp
  1917. dist = (temp.Position - pos).magnitude
  1918. end
  1919. end
  1920. end
  1921. end
  1922. return torso
  1923. end
  1924.  
  1925. Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
  1926. if hit.Parent==nil then
  1927. return
  1928. end
  1929. CPlayer=Bin
  1930. h=hit.Parent:FindFirstChild("Humanoid")
  1931. for _,v in pairs(hit.Parent:children()) do
  1932. if v:IsA("Humanoid") then
  1933. h=v
  1934. end
  1935. end
  1936. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1937. if attackdebounce == false then
  1938. attackdebounce = true
  1939. coroutine.resume(coroutine.create(function()
  1940. wait(0.2)
  1941. attackdebounce = false
  1942. end))
  1943. maxim = minim + 2
  1944. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1945. return
  1946. end]]
  1947. -- hs(hit,1.2)
  1948. c=Instance.new("ObjectValue")
  1949. c.Name="creator"
  1950. c.Value=game:service("Players").LocalPlayer
  1951. c.Parent=h
  1952. game:GetService("Debris"):AddItem(c,.5)
  1953. Damage=math.random(minim,maxim)
  1954. if Mode=="Hero" then
  1955. if HeroCharge>=400 then
  1956. HeroCharge=400
  1957. else
  1958. HeroCharge=HeroCharge+Damage
  1959. end
  1960. elseif Mode=="Infamous" then
  1961. if InfCharge>=400 then
  1962. InfCharge=400
  1963. else
  1964. InfCharge=InfCharge+Damage
  1965. end
  1966. end
  1967. -- h:TakeDamage(Damage)
  1968. blocked=false
  1969. block=hit.Parent:findFirstChild("Block")
  1970. if block~=nil then
  1971. print("herp")
  1972. if block.Value>0 then
  1973. blocked=true
  1974. block.Value=block.Value-1
  1975. print(block.Value)
  1976. end
  1977. end
  1978. if blocked==false then
  1979. -- h:TakeDamage(Damage)
  1980. h.Health=h.Health-Damage
  1981. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1982. else
  1983. h.Health=h.Health-Damage/2
  1984. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1985. end
  1986. if Type=="Knockdown" then
  1987. hum=hit.Parent.Humanoid
  1988. hum.PlatformStand=true
  1989. coroutine.resume(coroutine.create(function(HHumanoid)
  1990. wait(1)
  1991. HHumanoid.PlatformStand=false
  1992. end),hum)
  1993. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1994. print(angle)
  1995. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1996. local bodvol=Instance.new("BodyVelocity")
  1997. bodvol.velocity=angle*knockback
  1998. bodvol.P=5000
  1999. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2000. bodvol.Parent=hit
  2001. rl=Instance.new("BodyAngularVelocity")
  2002. rl.P=3000
  2003. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2004. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2005. rl.Parent=hit
  2006. game:GetService("Debris"):AddItem(bodvol,.5)
  2007. game:GetService("Debris"):AddItem(rl,.5)
  2008. elseif Type=="Normal" then
  2009. vp=Instance.new("BodyVelocity")
  2010. vp.P=500
  2011. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2012. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2013. vp.velocity=RootPart.CFrame.lookVector*knockback+RootPart.Velocity/1.05
  2014. if knockback>0 then
  2015. vp.Parent=hit.Parent.Torso
  2016. end
  2017. game:GetService("Debris"):AddItem(vp,.5)
  2018. elseif Type=="Up" then
  2019. local bodyVelocity=Instance.new("BodyVelocity")
  2020. bodyVelocity.velocity=vt(0,20,0)
  2021. bodyVelocity.P=5000
  2022. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2023. bodyVelocity.Parent=hit
  2024. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  2025. elseif Type=="Freeze" then
  2026. BodPos=Instance.new("BodyPosition")
  2027. BodPos.P=50000
  2028. BodPos.D=1000
  2029. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2030. BodPos.position=hit.Parent.Torso.Position
  2031. BodPos.Parent=hit.Parent.Torso
  2032. BodGy = it("BodyGyro")
  2033. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  2034. BodGy.P = 20e+003
  2035. BodGy.Parent=hit.Parent.Torso
  2036. BodGy.cframe = hit.Parent.Torso.CFrame
  2037. hit.Parent.Torso.Anchored=true
  2038. coroutine.resume(coroutine.create(function(Part)
  2039. wait(.75)
  2040. Part.Anchored=false
  2041. end),hit.Parent.Torso)
  2042. game:GetService("Debris"):AddItem(BodPos,.75)
  2043. game:GetService("Debris"):AddItem(BodGy,.75)
  2044. end
  2045. c=Instance.new("ObjectValue")
  2046. c.Name="creator"
  2047. c.Value=Player
  2048. c.Parent=h
  2049. game:GetService("Debris"):AddItem(c,.5)
  2050. CRIT=false
  2051. hitDeb=true
  2052. AttackPos=6
  2053. end
  2054. end
  2055. end
  2056.  
  2057. showDamage=function(Char,Dealt,du,Color)
  2058. m=Instance.new("Model")
  2059. m.Name=tostring(Dealt)
  2060. h=Instance.new("Humanoid")
  2061. h.Health=0
  2062. h.MaxHealth=0
  2063. h.Parent=m
  2064. c=Instance.new("Part")
  2065. c.Transparency=0
  2066. c.BrickColor=Color
  2067. c.Name="Head"
  2068. c.TopSurface=0
  2069. c.BottomSurface=0
  2070. c.formFactor="Plate"
  2071. c.Size=Vector3.new(1,.4,1)
  2072. ms=Instance.new("CylinderMesh")
  2073. ms.Scale=Vector3.new(.8,.8,.8)
  2074. if CRIT==true then
  2075. ms.Scale=Vector3.new(1,1.25,1)
  2076. end
  2077. ms.Parent=c
  2078. c.Reflectance=0
  2079. Instance.new("BodyGyro").Parent=c
  2080. c.Parent=m
  2081. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2082. f=Instance.new("BodyPosition")
  2083. f.P=2000
  2084. f.D=100
  2085. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2086. f.position=c.Position+Vector3.new(0,3,0)
  2087. f.Parent=c
  2088. game:GetService("Debris"):AddItem(m,.5+du)
  2089. c.CanCollide=false
  2090. m.Parent=workspace
  2091. c.CanCollide=false
  2092. end
  2093.  
  2094. combo=0
  2095. eul=0
  2096. game:GetService("RunService").Stepped:connect(function()
  2097.  
  2098. function ob1d(mouse)
  2099. if attack==true then return end
  2100. hold=true
  2101. if Mode=="Unactive" then
  2102. if combo==0 then
  2103. combo=1
  2104. attackone()
  2105. elseif combo==1 then
  2106. combo=2
  2107. attacktwo()
  2108. elseif combo==2 then
  2109. combo=0
  2110. end
  2111. coroutine.resume(coroutine.create(function()
  2112. wait(0.5)
  2113. if attack==false then
  2114. combo=0
  2115. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  2116. Torso.Neck.C0=necko*euler(0,0.2,1)
  2117. RootJoint.C0=RootCF*euler(0,0,-1)
  2118. LW.C0=cf(-1,0.5,-0.5)*euler(0.6,0,0.7)
  2119. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2120. RW.C0=cf(1,0.5,-0.5)*euler(1,0,-0.5)
  2121. RW.C1=cf(0,0.5,0)*euler(0,0.7,0)
  2122. end
  2123. end))
  2124. elseif Mode=="Hero" then
  2125. if combo==0 then
  2126. combo=1
  2127. heroattackone()
  2128. elseif combo==1 then
  2129. combo=2
  2130. heroattacktwo()
  2131. elseif combo==2 then
  2132. combo=3
  2133. heroattackthree()
  2134. elseif combo==3 then
  2135. combo=0
  2136. end
  2137. coroutine.resume(coroutine.create(function()
  2138. wait(0.5)
  2139. if attack==false then
  2140. combo=0
  2141. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  2142. Torso.Neck.C0=necko*euler(0,0,-0.4)
  2143. RootJoint.C0=RootCF*euler(0,0,0.4)
  2144. LW.C0=cf(-1,0.5,-0.5)*euler(1,0,0.2)
  2145. LW.C1=cf(0,0.5,0)*euler(0,-1,0)
  2146. RW.C0=cf(1,0.5,-0.5)*euler(0.5,0,-0.2)
  2147. RW.C1=cf(0,0.5,0)*euler(0,-1,0)
  2148. end
  2149. end))
  2150. elseif Mode=="Infamous" then
  2151. if combo==0 then
  2152. combo=1
  2153. infattackone()
  2154. elseif combo==1 then
  2155. combo=2
  2156. infattacktwo()
  2157. elseif combo==2 then
  2158. combo=3
  2159. infattackthree()
  2160. end
  2161. coroutine.resume(coroutine.create(function()
  2162. wait(0.5)
  2163. if attack==false then
  2164. combo=0
  2165. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  2166. Torso.Neck.C0=necko*euler(0.2,0,-0.5)
  2167. RootJoint.C0=RootCF*euler(0,0,0.5)
  2168. LW.C0=cf(-1.5,0.5,0)*euler(0.2,0,-0.5)
  2169. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2170. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5)
  2171. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  2172. end
  2173. end))
  2174. end
  2175. end
  2176.  
  2177. function ob1u(mouse)
  2178. hold = false
  2179. end
  2180.  
  2181. buttonhold = false
  2182.  
  2183. function key(key)
  2184. if key=="e" and sit==true then
  2185. sit=false
  2186. UnSit()
  2187. return end
  2188. if attack == true then return end
  2189. if Mode=="Unactive" then
  2190. if key=="e" then
  2191. if sit==false then
  2192. sit=true
  2193. Sit1()
  2194. end
  2195. end
  2196. if key=="f" then
  2197. Sledge()
  2198. end
  2199. if key=="z" then
  2200. Mode="Hero"
  2201. UnactivetoHero()
  2202. end
  2203. if key=="x" then
  2204. Mode="Infamous"
  2205. UnactivetoInfamous()
  2206. end
  2207. elseif Mode=="Hero" then
  2208. if key=="z" then
  2209. Mode="Unactive"
  2210. HerotoUnactive()
  2211. end
  2212. if key=="x" then
  2213. Mode="Infamous"
  2214. HerotoInfamous()
  2215. end
  2216. elseif Mode=="Infamous" then
  2217. if key=="z" then
  2218. Mode="Hero"
  2219. InfamoustoHero()
  2220. end
  2221. if key=="x" then
  2222. Mode="Unactive"
  2223. InfamoustoUnactive()
  2224. end
  2225. end
  2226. end
  2227. end)
  2228.  
  2229. function key2(key)
  2230.  
  2231. end
  2232.  
  2233. function s(mouse)
  2234. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2235. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2236. mouse.KeyDown:connect(key)
  2237. mouse.KeyUp:connect(key2)
  2238. unsheathed = true
  2239. player = Player
  2240. ch = Character
  2241. MMouse = mouse
  2242. RSH = ch.Torso["Right Shoulder"]
  2243. LSH = ch.Torso["Left Shoulder"]
  2244. --
  2245. RSH.Parent = nil
  2246. LSH.Parent = nil
  2247. --
  2248. RW.Part0 = ch.Torso
  2249. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2250. RW.C1 = CFrame.new(0, 0.5, 0)
  2251. RW.Part1 = ch["Right Arm"]
  2252. RW.Parent = ch.Torso
  2253. --_G.R = RW
  2254. --
  2255. LW.Part0 = ch.Torso
  2256. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2257. LW.C1 = CFrame.new(0, 0.5, 0)
  2258. LW.Part1 = ch["Left Arm"]
  2259. LW.Parent = ch.Torso
  2260. --_G.L = LW
  2261. --
  2262. equipanim()
  2263. end
  2264.  
  2265. function ds(mouse)
  2266. hideanim()
  2267. wait(0)
  2268. RW.Parent = nil
  2269. LW.Parent = nil
  2270. RSH.Parent = player.Character.Torso
  2271. LSH.Parent = player.Character.Torso
  2272. end
  2273.  
  2274. Bin.Selected:connect(s)
  2275. Bin.Deselected:connect(ds)
  2276. print("Uloe loaded.")
  2277.  
  2278. DecCharge=0
  2279. while true do
  2280. wait(0.1)
  2281. DecCharge=DecCharge+1
  2282. fenbarice2.Size = UDim2.new(HeroCharge/100,0,0.2,0)
  2283. fenbarice4.Text = "Hero("..math.ceil(HeroCharge)..")"
  2284. fenbarinf2.Size = UDim2.new(InfCharge/100,0,0.2,0)
  2285. fenbarinf4.Text = "Infamous("..math.ceil(InfCharge)..")"
  2286. if DecCharge==8 then
  2287. DecCharge=0
  2288. if Mode=="Hero" then
  2289. if HeroCharge>0 then
  2290. HeroCharge=HeroCharge-1
  2291. end
  2292. elseif Mode=="Infamous" then
  2293. if InfCharge>0 then
  2294. InfCharge=InfCharge-1
  2295. end
  2296. end
  2297. end
  2298. end
  2299. --[[
  2300. Copyrighted (C) Fenrier 2014
  2301. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement