Advertisement
xZkills_Guerreroser

caribasa

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