D0MiN0_FX

Uloe Script

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