Advertisement
TempusMoon

Untitled

Nov 23rd, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.38 KB | None | 0 0
  1. --[[
  2. Scripted by Fenrier, omega edit by Sage_OfTheSixPaths
  3. Yaknow, I REALLY hope you arent copying this script, becasue seriously man?
  4. I put a lot of work into this and you are just going to steal it? Screw off.
  5. FM'rs really piss me off. If I see you use this without my permission, I will ban you.
  6. ]]
  7. ---------------------------------------------
  8. plr = game:GetService("Players").LocalPlayer
  9. Character = plr.Character
  10. z = Instance.new("Sound", Character)
  11. z.SoundId = "rbxassetid://333689867"
  12. z.Looped = false
  13. z.Pitch = 1
  14. z.Volume = 0.5
  15. wait(.01)
  16. z:Play()
  17. wait(1)
  18. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "I've gone through the pits of hell and back.", "Red")
  19. wait(5)
  20. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "I've defeated Fixer.", "Red")
  21. wait(3)
  22. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "I'm too powerful for you to come close to being able to challange me.", "Red")
  23. wait(2.4)
  24. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "To me, you're just nothing.", "Red")
  25. wait(1)
  26. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Summon!", "Red")
  27.  
  28.  
  29.  
  30. Player=game:GetService("Players").LocalPlayer
  31. Character=Player.Character
  32. PlayerGui=Player.PlayerGui
  33. Backpack=Player.Backpack
  34. Torso=Character.Torso
  35. Head=Character.Head
  36. Humanoid=Character.Humanoid
  37. LeftArm=Character["Left Arm"]
  38. LeftLeg=Character["Left Leg"]
  39. RightArm=Character["Right Arm"]
  40. RightLeg=Character["Right Leg"]
  41. LS=Torso["Left Shoulder"]
  42. LH=Torso["Left Hip"]
  43. RS=Torso["Right Shoulder"]
  44. RH=Torso["Right Hip"]
  45. Neck=Torso.Neck
  46. it=Instance.new
  47. vt=Vector3.new
  48. cf=CFrame.new
  49. euler=CFrame.fromEulerAnglesXYZ
  50. angles=CFrame.Angles
  51. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  52. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  53. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  54. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  55. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  56. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  57. RootPart=Character.HumanoidRootPart
  58. RootJoint=RootPart.RootJoint
  59. RootCF=euler(-1.57,0,3.14)
  60. attack=false
  61. attackdebounce=false
  62. MMouse=nil
  63. combo=0
  64. local Anim="Idle"
  65. local Effects={}
  66. equipped=false
  67. local idle=0
  68. local hold=false
  69. local con1=nil
  70. local con2=nil
  71. local Mode="Binary"
  72. local idleanim=0
  73. local idleanim2=false
  74. local impulse=1
  75. local hitfloor,posfloor=nil,nil
  76. local damcount=0
  77. local guard=false
  78. --player
  79. player=nil
  80. --save shoulders
  81. RSH, LSH=nil, nil
  82. --welds
  83. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  84. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  85. LH=Torso["Left Hip"]
  86. RH=Torso["Right Hip"]
  87. Asset="http://www.roblox.com/asset/?id="
  88. Health=9999999999999999999999999999999999999999999999999999999999999999
  89. Humanoid.MaxHealth=math.huge
  90. Humanoid.Health=math.huge
  91. coroutine.resume(coroutine.create(function()
  92. for i=1,20 do
  93. Humanoid.MaxHealth=math.huge
  94. Humanoid.Health=math.huge
  95. end
  96. Humanoid.MaxHealth=9999999999999999999999999999999999999999999999999999999999999999
  97. Humanoid.Health=9999999999999999999999999999999999999999999999999999999999999999
  98. Humanoid:TakeDamage(1)
  99. Humanoid.Health=Health
  100. end))
  101. Humanoid.Health=Health
  102.  
  103. function swait(num)
  104. if num==0 or num==nil then
  105. game:service'RunService'.RenderStepped:wait()
  106. else
  107. for i=0,num do
  108. game:service'RunService'.RenderStepped:wait()
  109. end
  110. end
  111. end
  112.  
  113. if Character:findFirstChild("Binary Sword",true) ~= nil then
  114. Character:findFirstChild("Binary Sword",true).Parent = nil
  115. end
  116. if Character:findFirstChild("Demon Blade",true) ~= nil then
  117. Character:findFirstChild("Demon Blade",true).Parent = nil
  118. end
  119. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  120. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  121. end
  122.  
  123.  
  124. function NoOutline(Part)
  125. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  126. end
  127.  
  128. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  129. local fp=it("Part")
  130. fp.formFactor=formfactor
  131. fp.Parent=parent
  132. fp.Reflectance=reflectance
  133. fp.Transparency=transparency
  134. fp.CanCollide=false
  135. fp.Locked=true
  136. fp.BrickColor=brickcolor
  137. fp.Name=name
  138. fp.Size=size
  139. fp.Position=Torso.Position
  140. NoOutline(fp)
  141. fp.Material="Marble"
  142. fp:BreakJoints()
  143. return fp
  144. end
  145.  
  146. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  147. local mesh=it(Mesh)
  148. mesh.Parent=part
  149. if Mesh=="SpecialMesh" then
  150. mesh.MeshType=meshtype
  151. mesh.MeshId=meshid
  152. end
  153. mesh.Offset=offset
  154. mesh.Scale=scale
  155. return mesh
  156. end
  157.  
  158. function weld(parent,part0,part1,c0)
  159. local weld=it("Weld")
  160. weld.Parent=parent
  161. weld.Part0=part0
  162. weld.Part1=part1
  163. weld.C0=c0
  164. return weld
  165. end
  166.  
  167. local fengui=it("GuiMain")
  168. fengui.Parent=Player.PlayerGui
  169. fengui.Name="WeaponGUI"
  170.  
  171. local Color1=BrickColor.new("Really black")
  172. local Color2=BrickColor.new("Crimson")
  173. local Colorr3=BrickColor.new("Red")
  174. local Color4=BrickColor.new("Crimson")
  175.  
  176. local model1=Instance.new("Model")
  177. model1.Parent=Character
  178. model1.Name="Binary Sword"
  179. BSword={}
  180. BSwordWelds={}
  181. local model2=Instance.new("Model")
  182. model2.Parent=nil
  183. model2.Name="Demon Blade"
  184. DBlade={}
  185. DBladeWelds={}
  186.  
  187. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  188. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  189. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  190. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  191. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  192. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  193. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  194. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  195. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  196. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  197. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  198. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  199.  
  200. prtd1=part(3,model2,0,0.4,BrickColor.new("Crimson"),"DPart1",vt())
  201. prtd2=part(3,model2,0,0,BrickColor.new("Really black"),"DPart2",vt())
  202. prtd3=part(3,model2,0,0,BrickColor.new("Really black"),"DPart3",vt())
  203. prtd4=part(3,model2,0,0,BrickColor.new("Really black"),"DPart4",vt())
  204. prtd5=part(3,model2,0,0,BrickColor.new("Really black"),"DPart5",vt())
  205. prtd6=part(3,model2,0,0,BrickColor.new("Really black"),"DPart6",vt())
  206. prtd7=part(3,model2,0.8,0,BrickColor.new("Crimson"),"DPart7",vt())
  207. prtd8=part(3,model2,0.8,0,BrickColor.new("Crimson"),"DPart8",vt())
  208. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Red"),"DPart9",vt())
  209. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Red"),"DPart10",vt())
  210. prtd11=part(3,model2,0.5,0,BrickColor.new("Red"),"DPart11",vt())
  211. prtd12=part(3,model2,0,0,BrickColor.new("Really black"),"DPart12",vt())
  212. for _,c in pairs(model2:children()) do
  213. if c.className=="Part" then
  214. table.insert(DBlade,c)
  215. end
  216. end
  217. light=it("PointLight")
  218. light.Brightness=.8
  219. light.Color=Color3.new(255/255,50/255,0)
  220. --light.Color=BrickColor.new("Red")
  221. light.Range=10
  222. light.Parent=prtd9
  223.  
  224. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  225. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  226. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  227. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  228. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  229. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  230. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  231. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  232. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  233. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  234. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  235. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  236.  
  237. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  238. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  239. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  240. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  241. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  242. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  243. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  244. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  245. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  246. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  247. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  248. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  249.  
  250. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  251. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  252. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  253. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  254. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  255. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  256. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  257. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  258. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  259. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  260. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  261. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  262.  
  263. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  264. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  265. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  266. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  267. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  268. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  269. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  270. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  271. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  272. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  273. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  274. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  275. for _,c in pairs(prtd1:children()) do
  276. if c.className=="Weld" then
  277. table.insert(DBladeWelds,c)
  278. print(c)
  279. end
  280. end
  281.  
  282. for i=-.9,.9,0.2 do
  283. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  284. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  285. wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
  286. end
  287.  
  288. function Make1(Ceef)
  289. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  290. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  291. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  292. prtn1=part(3,model1,0,0,Colorr3,"1a",vt())
  293. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  294. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,0,0))
  295. prtn2=part(3,model1,0,0,Colorr3,"1b",vt())
  296. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  297. wldn2=weld(prtn2,prtn2,prtn1,euler(0.5,0,0)*cf(0,0.03,-0.1))
  298. prtn3=part(3,model1,0,0,Colorr3,"1c",vt())
  299. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  300. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0,0.15))
  301. end
  302. function Make0(Ceef)
  303. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  304. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  305. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  306. prtn1=part(3,model1,0,0,Colorr3,"0a",vt())
  307. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  308. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,-0.05,0))
  309. prtn2=part(3,model1,0,0,Colorr3,"0b",vt())
  310. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  311. wldn2=weld(prtn2,prtn2,prtn1,euler(1.57,0,0)*cf(0,0.05,0.15))
  312. prtn3=part(3,model1,0,0,Colorr3,"0c",vt())
  313. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  314. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0.05,-0.15))
  315. prtn4=part(3,model1,0,0,Colorr3,"0d",vt())
  316. mshn4=mesh("BlockMesh",prtn4,"","",vt(0,0,0),vt(.7,.2,1.5))
  317. wldn4=weld(prtn4,prtn4,prtn1,euler(0,0,0)*cf(0,0.1,0))
  318. end
  319. Make1(1.6)
  320. Make0(1.4)
  321. Make0(1.2)
  322. Make1(1)
  323. Make1(.8)
  324. Make1(.6)
  325. Make1(.4)
  326. Make0(.2)
  327. Make0(0)
  328.  
  329. local hitbox1=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  330. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  331.  
  332. if (script.Parent.className~="HopperBin") then
  333. Tool=Instance.new("HopperBin")
  334. Tool.Parent=Backpack
  335. Tool.Name="Fixer"
  336. script.Parent=Tool
  337. end
  338. Bin=script.Parent
  339. --Bin=Tool
  340.  
  341. local bodvel=Instance.new("BodyVelocity")
  342. bodvel.Name="FixerVel"
  343. local bg=Instance.new("BodyGyro")
  344. bg.Name="FixerGyro"
  345.  
  346. so = function(id,par,vol,pit)
  347. coroutine.resume(coroutine.create(function()
  348. local sou = Instance.new("Sound",par or workspace)
  349. sou.Parent=par
  350. sou.Volume=vol
  351. sou.Pitch=pit or 1
  352. sou.SoundId=id
  353. swait()
  354. sou:Play()
  355. game:GetService("Debris"):AddItem(sou,6)
  356. end))
  357. end
  358.  
  359. function clerp(a,b,t)
  360. local qa = {QuaternionFromCFrame(a)}
  361. local qb = {QuaternionFromCFrame(b)}
  362. local ax, ay, az = a.x, a.y, a.z
  363. local bx, by, bz = b.x, b.y, b.z
  364. local _t = 1-t
  365. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  366. end
  367.  
  368. function QuaternionFromCFrame(cf)
  369. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  370. local trace = m00 + m11 + m22
  371. if trace > 0 then
  372. local s = math.sqrt(1 + trace)
  373. local recip = 0.5/s
  374. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  375. else
  376. local i = 0
  377. if m11 > m00 then
  378. i = 1
  379. end
  380. if m22 > (i == 0 and m00 or m11) then
  381. i = 2
  382. end
  383. if i == 0 then
  384. local s = math.sqrt(m00-m11-m22+1)
  385. local recip = 0.5/s
  386. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  387. elseif i == 1 then
  388. local s = math.sqrt(m11-m22-m00+1)
  389. local recip = 0.5/s
  390. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  391. elseif i == 2 then
  392. local s = math.sqrt(m22-m00-m11+1)
  393. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  394. end
  395. end
  396. end
  397.  
  398. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  399. local xs, ys, zs = x + x, y + y, z + z
  400. local wx, wy, wz = w*xs, w*ys, w*zs
  401. local xx = x*xs
  402. local xy = x*ys
  403. local xz = x*zs
  404. local yy = y*ys
  405. local yz = y*zs
  406. local zz = z*zs
  407. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  408. end
  409.  
  410. function QuaternionSlerp(a, b, t)
  411. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  412. local startInterp, finishInterp;
  413. if cosTheta >= 0.0001 then
  414. if (1 - cosTheta) > 0.0001 then
  415. local theta = math.acos(cosTheta)
  416. local invSinTheta = 1/math.sin(theta)
  417. startInterp = math.sin((1-t)*theta)*invSinTheta
  418. finishInterp = math.sin(t*theta)*invSinTheta
  419. else
  420. startInterp = 1-t
  421. finishInterp = t
  422. end
  423. else
  424. if (1+cosTheta) > 0.0001 then
  425. local theta = math.acos(-cosTheta)
  426. local invSinTheta = 1/math.sin(theta)
  427. startInterp = math.sin((t-1)*theta)*invSinTheta
  428. finishInterp = math.sin(t*theta)*invSinTheta
  429. else
  430. startInterp = t-1
  431. finishInterp = t
  432. end
  433. end
  434. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  435. end
  436.  
  437. function hideanim()
  438. equipped=false
  439. attack=true
  440. if Mode=="Binary" then
  441. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  442. for i=0,1,0.1 do
  443. swait()
  444. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  445. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  446. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  447. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  448. end
  449. wld1.Part1=Torso
  450. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  451. for i=0,1,0.2 do
  452. swait()
  453. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  454. end
  455. for i=0,1,0.1 do
  456. swait()
  457. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  458. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  459. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  460. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  461. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  462. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  463. end
  464. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  465. else
  466. for i=0,1,0.1 do
  467. swait()
  468. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  470. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  471. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  472. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  473. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  474. end
  475. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  476. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  477. for i=0,1,0.015 do
  478. swait()
  479. for i=1,3 do
  480. if math.random(1,5)==1 then
  481. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  482. else
  483. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  484. end
  485. end
  486. end
  487. model2.Parent=nil
  488. for i=0,1,0.1 do
  489. swait()
  490. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  491. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  492. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  493. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  494. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  495. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  496. end
  497. end
  498. Torso.Neck.C0=necko
  499. Torso.Neck.C1=necko2
  500. RootJoint.C0=RootCF
  501. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  502. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  503. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  504. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  505. RH.C0=RHC0
  506. RH.C1=RHC1
  507. LH.C0=LHC0
  508. LH.C1=LHC1
  509. Mode="Binary"
  510. attack=false
  511. end
  512.  
  513. function equipanim()
  514. equipped=true
  515. attack=true
  516. z:Remove()
  517. z = Instance.new("Sound", Character)
  518. z.SoundId = "rbxassetid://333689867"
  519. z.Looped = false
  520. z.Pitch = 1
  521. z.Volume = 10
  522. wait(.01)
  523. z:Play()
  524. for i=0,1,0.2 do
  525. swait()
  526. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  527. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  528. end
  529. for i=0,1,0.1 do
  530. swait()
  531. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  532. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  533. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  534. end
  535. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  536. wld1.Part1=RightArm
  537. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  538. for i=0,1,0.1 do
  539. swait()
  540. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  541. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  542. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  543. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  544. end
  545. for i=0,1,0.1 do
  546. swait()
  547. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  548. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  549. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  550. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  551. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  552. end
  553. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  554. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  555. Torso.Neck.C0=necko*euler(0,0,0.5)
  556. RootJoint.C0=RootCF*euler(0,0,-0.5)
  557. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  558. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  559. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  560. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  561. attack=false
  562. end
  563.  
  564. function Stomp()
  565. Humanoid.WalkSpeed=0
  566. Torso.Velocity=RootPart.CFrame.lookVector*0
  567. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  568. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  569. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  570. MagicWave(BrickColor.new("Red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  571. Dam=math.random(5,10)
  572. Humanoid.Health=Humanoid.Health-Dam
  573. showDamage(Torso,Dam,.5,BrickColor:Red())
  574. MagniDamage(Torso,15,10,20,math.random(10,20),"Knockdown")
  575. --[[for i=0,1,0.2 do
  576. swait()
  577. if Mode=="Binary" then
  578. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  579. end
  580. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  581. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  582. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  583. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  584. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  585. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  586. end
  587. for i=0,1,0.1 do
  588. swait()
  589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  590. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  591. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  592. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  593. end]]
  594. swait(10)
  595. Humanoid.WalkSpeed=16
  596. end
  597.  
  598. function attackone()
  599. attack=true
  600. for i=0,1,0.1 do
  601. swait()
  602. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  603. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  604. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  605. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  606. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  607. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  608. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  609. end
  610. hitbox1.Parent=model1
  611. hitbox1.Size=vt(1,5,1)
  612. hitbox1.Transparency=1
  613. hitbox1.CFrame=prt10.CFrame
  614. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,5),"Normal",RootPart,.5,1) end)
  615. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,5),"Normal",RootPart,.5,1) end)
  616. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  617. blcf=nil
  618. scfr=nil
  619. for i=0,1,0.25 do
  620. swait()
  621. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  622. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  623. local h = 5
  624. 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)
  625. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  626. 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)
  627. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  628. scfr = blcf
  629. elseif not scfr then
  630. scfr = blcf
  631. end
  632. hitbox1.CFrame=prt10.CFrame
  633. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  634. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  635. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  636. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  637. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  638. end
  639. for i=0,1,0.1 do
  640. swait()
  641. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  642. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  643. local h = 5
  644. 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)
  645. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  646. 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)
  647. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  648. scfr = blcf
  649. elseif not scfr then
  650. scfr = blcf
  651. end
  652. hitbox1.CFrame=prt10.CFrame
  653. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  654. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  655. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  656. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  657. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  658. end
  659. con1:disconnect()
  660. hitbox1.Parent=nil
  661. attack=false
  662. end
  663.  
  664. function attacktwo()
  665. attack=true
  666. for i=0,1,0.1 do
  667. swait()
  668. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  669. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  670. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  671. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  672. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  673. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  674. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  675. end
  676. hitbox1.Parent=model1
  677. hitbox1.Size=vt(1,5,1)
  678. hitbox1.Transparency=1
  679. hitbox1.CFrame=prt10.CFrame
  680. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,5),"Normal",RootPart,.5,1) end)
  681. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  682. blcf=nil
  683. scfr=nil
  684. for i=0,1,0.1 do
  685. swait()
  686. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  687. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  688. local h = 5
  689. 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)
  690. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  691. 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)
  692. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  693. scfr = blcf
  694. elseif not scfr then
  695. scfr = blcf
  696. end
  697. hitbox1.CFrame=prt10.CFrame
  698. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  700. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  701. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  702. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  703. end
  704. con1:disconnect()
  705. hitbox1.Parent=nil
  706. attack=false
  707. end
  708.  
  709. function attackthree()
  710. attack=true
  711. for i=0,1,0.1 do
  712. swait()
  713. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  715. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  716. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  717. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  718. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  719. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  720. end
  721. hitbox1.Parent=model1
  722. hitbox1.Size=vt(1,5,1)
  723. hitbox1.Transparency=1
  724. hitbox1.CFrame=prt10.CFrame
  725. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,5),"Normal",RootPart,.5,1) end)
  726. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  727. blcf=nil
  728. scfr=nil
  729. for i=0,1,0.25 do
  730. swait()
  731. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  732. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  733. local h = 5
  734. 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)
  735. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  736. 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)
  737. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  738. scfr = blcf
  739. elseif not scfr then
  740. scfr = blcf
  741. end
  742. hitbox1.CFrame=prt10.CFrame
  743. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  745. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  747. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  748. end
  749. for i=0,1,0.2 do
  750. swait()
  751. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  752. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  753. local h = 5
  754. 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)
  755. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  756. 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)
  757. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  758. scfr = blcf
  759. elseif not scfr then
  760. scfr = blcf
  761. end
  762. hitbox1.CFrame=prt10.CFrame
  763. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  764. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  765. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  766. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  767. end
  768. con1:disconnect()
  769. hitbox1.Parent=nil
  770. attack=false
  771. end
  772.  
  773. function SpinSlash()
  774. attack=true
  775. for i=0,1,0.1 do
  776. swait()
  777. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  778. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  779. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  780. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  781. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  782. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  783. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  784. end
  785. hitbox1.Parent=model1
  786. hitbox1.Size=vt(1,5,1)
  787. hitbox1.Transparency=1
  788. hitbox1.CFrame=prt10.CFrame
  789. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5),"Normal",RootPart,.2,1) end)
  790. blcf=nil
  791. scfr=nil
  792. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  793. repeat
  794. hitbox1.Parent=model1
  795. hitbox1.Size=vt(1,5,1)
  796. hitbox1.Transparency=1
  797. hitbox1.CFrame=prt10.CFrame
  798. for i=0,1,0.15 do
  799. swait()
  800. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  801. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  802. local h = 5
  803. 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)
  804. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  805. 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)
  806. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  807. scfr = blcf
  808. elseif not scfr then
  809. scfr = blcf
  810. end
  811. hitbox1.CFrame=prt10.CFrame
  812. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  814. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  815. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  816. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  817. RH.C0=clerp(RH.C0,RHC0,.3)
  818. LH.C0=clerp(LH.C0,LHC0,.3)
  819. end
  820. for i=0,1,0.05 do
  821. swait()
  822. if i>=0.45 and i<=0.5 then
  823. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  824. end
  825. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  826. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  827. local h = 5
  828. 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)
  829. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  830. 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)
  831. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  832. scfr = blcf
  833. elseif not scfr then
  834. scfr = blcf
  835. end
  836. hitbox1.CFrame=prt10.CFrame
  837. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  838. end
  839. until hold==false
  840. con1:disconnect()
  841. hitbox1.Parent=nil
  842. attack=false
  843. end
  844.  
  845. function BinarySwing()
  846. attack=true
  847. for i=0,1,0.1 do
  848. swait()
  849. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  850. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  851. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  852. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  853. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  854. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  855. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  856. end
  857. Humanoid.Jump=true
  858. bodvol=Instance.new("BodyVelocity")
  859. bodvol.Parent=RootPart
  860. bodvol.velocity=vt(0,1,0)*100
  861. bodvol.P=5000
  862. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  863. --Torso.Velocity=vt(0,1,0)*100
  864. hitbox1.Parent=model1
  865. hitbox1.Size=vt(1,5,1)
  866. hitbox1.Transparency=1
  867. hitbox1.CFrame=prt10.CFrame
  868. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  869. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  870. blcf=nil
  871. scfr=nil
  872. for i=0,1,0.1 do
  873. swait()
  874. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  875. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  876. local h = 5
  877. 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)
  878. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  879. 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)
  880. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  881. scfr = blcf
  882. elseif not scfr then
  883. scfr = blcf
  884. end
  885. hitbox1.CFrame=prt10.CFrame
  886. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  887. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  888. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  889. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  890. RH.C0=clerp(RH.C0,RHC0,.3)
  891. LH.C0=clerp(LH.C0,LHC0,.3)
  892. end
  893. con1:disconnect()
  894. hitbox1.Parent=nil
  895. bodvol.Parent=nil
  896. attack=false
  897. end
  898.  
  899. function BinaryImpulse()
  900. attack=true
  901. if impulse==1 then
  902. impulse=2
  903. Humanoid.Jump=true
  904. for i=0,1,0.2 do
  905. swait()
  906. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  907. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  908. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  909. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  910. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  911. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  912. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  913. end
  914. blcf=nil
  915. scfr=nil
  916. hitbox1.Parent=model1
  917. hitbox1.Size=vt(1,5,1)
  918. hitbox1.Transparency=1
  919. hitbox1.CFrame=prt10.CFrame
  920. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.5,1) end)
  921. for i=1,3 do
  922. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  923. for i=0,1,0.1 do
  924. swait()
  925. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  926. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  927. local h = 5
  928. 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)
  929. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  930. 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)
  931. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  932. scfr = blcf
  933. elseif not scfr then
  934. scfr = blcf
  935. end
  936. hitbox1.CFrame=prt10.CFrame
  937. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  938. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  939. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  940. end
  941. end
  942. con1:disconnect()
  943. hitbox1.Parent=nil
  944. elseif impulse==2 then
  945. impulse=3
  946. Humanoid.Jump=true
  947. for i=0,1,0.2 do
  948. swait()
  949. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  950. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  951. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  952. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  953. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  954. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  955. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  956. end
  957. blcf=nil
  958. scfr=nil
  959. hitbox1.Parent=model1
  960. hitbox1.Size=vt(1,5,1)
  961. hitbox1.Transparency=1
  962. hitbox1.CFrame=prt10.CFrame
  963. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.5,1) end)
  964. for i=1,3 do
  965. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  966. for i=0,1,0.1 do
  967. swait()
  968. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  969. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  970. local h = 5
  971. 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)
  972. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  973. 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)
  974. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  975. scfr = blcf
  976. elseif not scfr then
  977. scfr = blcf
  978. end
  979. hitbox1.CFrame=prt10.CFrame
  980. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  981. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  982. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  983. end
  984. end
  985. con1:disconnect()
  986. hitbox1.Parent=nil
  987. elseif impulse==3 then
  988. impulse=1
  989. for i=0,1,0.2 do
  990. swait()
  991. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  992. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  993. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  994. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  995. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  996. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  997. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  998. end
  999. Humanoid.Jump=true
  1000. blcf=nil
  1001. scfr=nil
  1002. hitbox1.Parent=model1
  1003. hitbox1.Size=vt(1,5,1)
  1004. hitbox1.Transparency=1
  1005. hitbox1.CFrame=prt10.CFrame
  1006. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,25,35,math.random(20,30),"Normal",RootPart,.5,1) end)
  1007. for i=1,3 do
  1008. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  1009. for i=0,1,0.1 do
  1010. swait()
  1011. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1012. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1013. local h = 5
  1014. 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)
  1015. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1016. 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)
  1017. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1018. scfr = blcf
  1019. elseif not scfr then
  1020. scfr = blcf
  1021. end
  1022. hitbox1.CFrame=prt10.CFrame
  1023. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  1024. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  1025. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  1026. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  1027. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  1028. end
  1029. end
  1030. con1:disconnect()
  1031. hitbox1.Parent=nil
  1032. end
  1033. attack=false
  1034. end
  1035.  
  1036. function Bash()
  1037. attack=true
  1038. for i=0,1,0.1 do
  1039. swait()
  1040. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1041. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1042. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1043. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1044. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1045. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1046. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1047. end
  1048. Torso.Velocity=RootPart.CFrame.lookVector*200
  1049. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  1050. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  1051. hit=nil
  1052. for i=1,20 do
  1053. if hit==nil then
  1054. swait()
  1055. end
  1056. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1057. end
  1058. Torso.Velocity=RootPart.CFrame.lookVector*0
  1059. Humanoid.WalkSpeed=0
  1060. for i=0,1,0.1 do
  1061. swait()
  1062. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1063. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1064. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1065. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1066. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  1067. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1068. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1069. end
  1070. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  1071. blcf=nil
  1072. scfr=nil
  1073. for i=0,1,0.2 do
  1074. swait()
  1075. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1076. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1077. local h = 5
  1078. 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)
  1079. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1080. 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)
  1081. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1082. scfr = blcf
  1083. elseif not scfr then
  1084. scfr = blcf
  1085. end
  1086. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  1087. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  1088. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  1089. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  1090. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  1091. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  1092. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  1093. end
  1094. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1095. if hit~=nil then
  1096. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1097. ref.Anchored=true
  1098. ref.CFrame=cf(pos)
  1099. game:GetService("Debris"):AddItem(ref,3)
  1100. for i=1,10 do
  1101. Col=hit.BrickColor
  1102. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1103. groundpart.Anchored=true
  1104. groundpart.Material=hit.Material
  1105. groundpart.CanCollide=true
  1106. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1107. game:GetService("Debris"):AddItem(groundpart,5)
  1108. end
  1109. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  1110. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1111. MagniDamage(ref,10,10,20,math.random(10,20),"Knockdown")
  1112. end
  1113. swait(50)
  1114. Humanoid.WalkSpeed=16
  1115. attack=false
  1116. end
  1117.  
  1118. function ReleaseTheDemon()
  1119. attack=true
  1120. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1121. for i=0,1,0.1 do
  1122. swait()
  1123. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1124. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1125. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1126. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1127. RH.C0=clerp(LH.C0,LHC0,.4)
  1128. LH.C0=clerp(RH.C0,RHC0,.4)
  1129. end
  1130. wld1.Part1=Torso
  1131. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1132. for i=0,1,0.1 do
  1133. swait()
  1134. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1135. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  1136. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  1137. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  1138. end
  1139. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  1140. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  1141. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  1142. num=0
  1143. for i=0,1,0.01 do
  1144. swait()
  1145. if num>=10 then
  1146. num=0
  1147. MagicWave(BrickColor.new("Red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1148. end
  1149. for i=1,2 do
  1150. if math.random(1,5)==1 then
  1151. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1152. else
  1153. MagicBlock(BrickColor.new("Crimson"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1154. end
  1155. end
  1156. num=num+1
  1157. end
  1158. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1159. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  1160. for i=1,4 do
  1161. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  1162. end
  1163. MagicWave(BrickColor.new("Red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  1164. Mode="Demon"
  1165. model2.Parent=Character
  1166. for i=1,#DBlade do
  1167. DBlade[i].Parent=model2
  1168. DBladeWelds[i].Parent=DBlade[1]
  1169. end
  1170. for i=0,1,0.1 do
  1171. swait()
  1172. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  1173. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1174. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  1175. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  1176. end
  1177. swait(50)
  1178. attack=false
  1179. end
  1180.  
  1181. function UnleashTheDemon()
  1182. attack=true
  1183. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1184. for i=0,1,0.1 do
  1185. swait()
  1186. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1187. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1188. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1189. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1190. RH.C0=clerp(RH.C0,RHC0,.4)
  1191. LH.C0=clerp(LH.C0,LHC0,.4)
  1192. end
  1193. wld1.Part1=Torso
  1194. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1195. for i=0,1,0.1 do
  1196. swait()
  1197. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1198. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  1199. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  1200. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  1201. end
  1202. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  1203. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  1204. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  1205. num=0
  1206. for i=0,1,0.01 do
  1207. swait()
  1208. if num>=10 then
  1209. num=0
  1210. MagicWave(BrickColor.new("Red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1211. end
  1212. for i=1,2 do
  1213. if math.random(1,5)==1 then
  1214. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1215. else
  1216. MagicBlock(BrickColor.new("Crimson"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1217. end
  1218. end
  1219. num=num+1
  1220. end
  1221. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1222. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  1223. for i=1,4 do
  1224. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  1225. end
  1226. MagicWave(BrickColor.new("Red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  1227. Mode="Demon"
  1228. z:Remove()
  1229. z = Instance.new("Sound", Character)
  1230. z.SoundId = "rbxassetid://142763357"
  1231. z.Looped = false
  1232. z.Pitch = 1
  1233. z.Volume = 10
  1234. wait(.01)
  1235. z:Play()
  1236. model2.Parent=Character
  1237. for i=1,#DBlade do
  1238. DBlade[i].Parent=model2
  1239. DBladeWelds[i].Parent=DBlade[1]
  1240. end
  1241. for i=0,1,0.1 do
  1242. swait()
  1243. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  1244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  1246. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  1247. end
  1248. swait(50)
  1249. attack=false
  1250. end
  1251.  
  1252. function Demonattackone()
  1253. attack=true
  1254. --[[
  1255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1257. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  1258. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1259. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1260. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1261. ]]
  1262. for i=0,1,0.1 do
  1263. swait()
  1264. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  1265. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1266. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  1267. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  1268. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  1269. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  1270. end
  1271. hitbox2.Parent=model2
  1272. hitbox2.Size=vt(1,6,1)
  1273. hitbox2.Transparency=1
  1274. hitbox2.CFrame=prtd7.CFrame
  1275. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1276. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  1277. blcf=nil
  1278. scfr=nil
  1279. for i=0,1,0.08 do
  1280. swait()
  1281. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1282. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1283. local h = 5
  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. hitbox2.CFrame=prtd7.CFrame
  1293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  1294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1295. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  1296. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1297. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  1298. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  1299. end
  1300. con1:disconnect()
  1301. hitbox2.Parent=nil
  1302. attack=false
  1303. end
  1304.  
  1305. function Demonattacktwo()
  1306. attack=true
  1307. for i=0,1,0.1 do
  1308. swait()
  1309. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  1310. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1311. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  1312. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1313. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  1314. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  1315. end
  1316. hitbox2.Parent=model2
  1317. hitbox2.Size=vt(1,6,1)
  1318. hitbox2.Transparency=1
  1319. hitbox2.CFrame=prtd7.CFrame
  1320. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1321. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  1322. blcf=nil
  1323. scfr=nil
  1324. for i=0,1,0.1 do
  1325. swait()
  1326. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1327. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1328. local h = 5
  1329. 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)
  1330. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1331. 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)
  1332. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1333. scfr = blcf
  1334. elseif not scfr then
  1335. scfr = blcf
  1336. end
  1337. hitbox2.CFrame=prtd7.CFrame
  1338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  1339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  1341. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1342. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  1343. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1344. end
  1345. con1:disconnect()
  1346. hitbox2.Parent=nil
  1347. attack=false
  1348. end
  1349.  
  1350. function Demonattackthree()
  1351. attack=true
  1352. for i=0,1,0.1 do
  1353. swait()
  1354. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  1355. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  1357. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  1358. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  1359. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1360. end
  1361. Humanoid.WalkSpeed=0
  1362. hitbox2.Parent=model2
  1363. hitbox2.Size=vt(1,6,1)
  1364. hitbox2.Transparency=1
  1365. hitbox2.CFrame=prtd7.CFrame
  1366. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1367. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  1368. blcf=nil
  1369. scfr=nil
  1370. for i=0,1,0.15 do
  1371. swait()
  1372. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1373. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1374. local h = 5
  1375. 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)
  1376. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1377. 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)
  1378. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1379. scfr = blcf
  1380. elseif not scfr then
  1381. scfr = blcf
  1382. end
  1383. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  1384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  1385. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  1386. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  1387. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  1388. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  1389. if i==0.6 then
  1390. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1391. if hit~=nil then
  1392. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1393. ref.Anchored=true
  1394. ref.CFrame=cf(pos)
  1395. game:GetService("Debris"):AddItem(ref,3)
  1396. for i=1,5 do
  1397. Col=hit.BrickColor
  1398. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1399. groundpart.Anchored=true
  1400. groundpart.Material=hit.Material
  1401. groundpart.CanCollide=true
  1402. groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1403. game:GetService("Debris"):AddItem(groundpart,3)
  1404. end
  1405. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  1406. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1407. MagniDamage(ref,8,10,15,math.random(10,20),"Normal")
  1408. end
  1409. end
  1410. end
  1411. con1:disconnect()
  1412. hitbox2.Parent=nil
  1413. swait(10)
  1414. Humanoid.WalkSpeed=16
  1415. attack=false
  1416. end
  1417.  
  1418. function LetItBuild()
  1419. attack=true
  1420. for i=0,1,0.1 do
  1421. swait()
  1422. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  1423. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  1424. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  1425. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1426. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1427. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1428. end
  1429. local num=0
  1430. local magik=0
  1431. local num2=0
  1432. while holdx==true do
  1433. swait()
  1434. if magik<25 then
  1435. if num>=10 then
  1436. Humanoid:TakeDamage(1)
  1437. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1438. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1439. Lightning(pos1,pos2,5,3,"Red",.1,.5,.5)
  1440. MagicCircle(BrickColor.new("Red"),cf(pos1),5,5,5,1,1,1,.1)
  1441. MagicBlood(BrickColor.new("Red"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  1442. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  1443. magik=magik+1
  1444. num=0
  1445. end
  1446. end
  1447. num=num+1
  1448. num2=num2+magik
  1449. if num2>=50 then
  1450. MagicBlood(BrickColor.new("Red"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  1451. num2=0
  1452. end
  1453. --MagicBlock(BrickColor.new("Red"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
  1454. end
  1455. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  1456. blcf=nil
  1457. scfr=nil
  1458. hitbox2.Parent=model2
  1459. hitbox2.Size=vt(1,6,1)
  1460. hitbox2.Transparency=1
  1461. hitbox2.CFrame=prtd7.CFrame
  1462. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((magik/2)),magik,1,"Lifesteal",RootPart,.5,1) end)
  1463. for i=1,3 do
  1464. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  1465. for i=0,1,0.1 do
  1466. swait()
  1467. hitbox2.CFrame=prtd7.CFrame
  1468. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1469. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1470. local h = 5
  1471. 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)
  1472. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1473. 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)
  1474. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1475. scfr = blcf
  1476. elseif not scfr then
  1477. scfr = blcf
  1478. end
  1479. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  1480. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  1481. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1482. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1483. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1484. end
  1485. end
  1486. con1:disconnect()
  1487. hitbox2.Parent=nil
  1488. attack=false
  1489. end
  1490.  
  1491. function YourMoveCreep()
  1492. attack=true
  1493. local pers=nil
  1494. for i=0,1,0.1 do
  1495. swait()
  1496. cost=Humanoid.Health*.01
  1497. Humanoid:TakeDamage(cost)
  1498. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  1500. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1501. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  1502. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1503. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1504. end
  1505. local blockprt=part(3,Character,0,1,BrickColor.new("Red"),"Block",vt(8,.1,8))
  1506. blockprt.Anchored=true
  1507. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1508. conbl=blockprt.Touched:connect(function(hit)
  1509. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  1510. hit=hit.Parent.Parent.Torso
  1511. end
  1512. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  1513. pers=hit
  1514. print("HIT")
  1515. guard=false
  1516. end
  1517. end)
  1518. num=0
  1519. while guard==true do
  1520. swait()
  1521. if num>10 then
  1522. num=0
  1523. MagicBlock(BrickColor.new("Red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  1524. MagicCircle(BrickColor.new("Red"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  1525. end
  1526. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1527. num=num+1
  1528. end
  1529. conbl:disconnect()
  1530. blockprt.Parent=nil
  1531. print(pers)
  1532. if pers~=nil then
  1533. for i=0,1,0.1 do
  1534. swait()
  1535. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  1536. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  1537. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  1538. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1539. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  1540. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1541. end
  1542. swait(200)
  1543. end
  1544. attack=false
  1545. end
  1546.  
  1547. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  1548. for _,c in pairs(workspace:children()) do
  1549. local hum=c:findFirstChild("Humanoid")
  1550. if hum~=nil then
  1551. local head=c:findFirstChild("Torso")
  1552. if head~=nil then
  1553. local targ=head.Position-Part.Position
  1554. local mag=targ.magnitude
  1555. if mag<=magni and c.Name~=Player.Name then
  1556. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  1557. end
  1558. end
  1559. end
  1560. end
  1561. end
  1562.  
  1563. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1564. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1565. end
  1566.  
  1567. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1568. LastPoint=Point
  1569. function effect(Color,Ref,LP,P1,returnn)
  1570. local effectsmsh=Instance.new("CylinderMesh")
  1571. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1572. effectsmsh.Name="Mesh"
  1573. local effectsg=Instance.new("Part")
  1574. effectsg.formFactor=3
  1575. effectsg.CanCollide=false
  1576. effectsg.Name="Eff"
  1577. effectsg.Locked=true
  1578. effectsg.Anchored=true
  1579. effectsg.Size=Vector3.new(0.5,1,0.5)
  1580. effectsg.Parent=workspace
  1581. effectsmsh.Parent=effectsg
  1582. effectsg.BrickColor=BrickColor.new(Color)
  1583. effectsg.Reflectance=Ref
  1584. local point1=P1
  1585. local mg=(LP.p - point1.p).magnitude
  1586. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1587. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1588. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1589. game:GetService("Debris"):AddItem(effectsg,2)
  1590. if returnn then return effectsg end
  1591. coroutine.resume(coroutine.create(function(Part,Mesh)
  1592. if not returnn then
  1593. for i=0,1,0.05 do
  1594. wait()
  1595. Part.Transparency=1*i
  1596. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  1597. end
  1598. Part.Parent=nil
  1599. end
  1600. end),effectsg,effectsmsh)
  1601. end
  1602.  
  1603. local function CFrameFromTopBack(at, top, back)
  1604. local right = top:Cross(back)
  1605. return CFrame.new(at.x, at.y, at.z,
  1606. right.x, top.x, back.x,
  1607. right.y, top.y, back.y,
  1608. right.z, top.z, back.z)
  1609. end
  1610.  
  1611. function Triangle(a, b, c)
  1612. local edg1 = (c-a):Dot((b-a).unit)
  1613. local edg2 = (a-b):Dot((c-b).unit)
  1614. local edg3 = (b-c):Dot((a-c).unit)
  1615. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1616. a, b, c = a, b, c
  1617. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1618. a, b, c = b, c, a
  1619. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1620. a, b, c = c, a, b
  1621. else
  1622. assert(false, "unreachable")
  1623. end
  1624.  
  1625. local len1 = (c-a):Dot((b-a).unit)
  1626. local len2 = (b-a).magnitude - len1
  1627. local width = (a + (b-a).unit*len1 - c).magnitude
  1628.  
  1629. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1630.  
  1631. local list = {}
  1632.  
  1633. if len1 > 0.01 then
  1634. local w1 = Instance.new('WedgePart', m)
  1635. game:GetService("Debris"):AddItem(w1,5)
  1636. w1.Material = "Granite"
  1637. w1.FormFactor = 'Custom'
  1638. if Mode=="Binary" then
  1639. w1.BrickColor = BrickColor.new("Crimson")
  1640. else
  1641. w1.BrickColor = BrickColor.new("Red")
  1642. end
  1643. w1.Transparency = 0
  1644. w1.Reflectance = 0
  1645. w1.Material = "Granite"
  1646. w1.CanCollide = false
  1647. NoOutline(w1)
  1648. local sz = Vector3.new(0.2, width, len1)
  1649. w1.Size = sz
  1650. local sp = Instance.new("SpecialMesh",w1)
  1651. sp.MeshType = "Wedge"
  1652. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1653. w1:BreakJoints()
  1654. w1.Anchored = true
  1655. w1.Parent = workspace
  1656. w1.Transparency = 0.7
  1657. table.insert(Effects,{w1,"Disappear",.01})
  1658. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1659. table.insert(list,w1)
  1660. end
  1661.  
  1662. if len2 > 0.01 then
  1663. local w2 = Instance.new('WedgePart', m)
  1664. game:GetService("Debris"):AddItem(w2,5)
  1665. w2.Material = "Granite"
  1666. w2.FormFactor = 'Custom'
  1667. if Mode=="Binary" then
  1668. w2.BrickColor = BrickColor.new("Crimson")
  1669. else
  1670. w2.BrickColor = BrickColor.new("Red")
  1671. end
  1672. w2.Transparency = 0
  1673. w2.Reflectance = 0
  1674. w2.Material = "Granite"
  1675. w2.CanCollide = false
  1676. NoOutline(w2)
  1677. local sz = Vector3.new(0.2, width, len2)
  1678. w2.Size = sz
  1679. local sp = Instance.new("SpecialMesh",w2)
  1680. sp.MeshType = "Wedge"
  1681. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1682. w2:BreakJoints()
  1683. w2.Anchored = true
  1684. w2.Parent = workspace
  1685. w2.Transparency = 0.7
  1686. table.insert(Effects,{w2,"Disappear",.01})
  1687. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1688. table.insert(list,w2)
  1689. end
  1690. return unpack(list)
  1691. end
  1692.  
  1693. --[[
  1694. Things for effects
  1695. put the variables in one table
  1696. like effect={brick,interval,i}
  1697. ]]
  1698. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1699. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1700. prt.Anchored=true
  1701. prt.CFrame=cframe
  1702. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1703. game:GetService("Debris"):AddItem(prt,5)
  1704. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1705. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1706. for i=0,1,delay do
  1707. wait()
  1708. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1709. Part.Transparency=i
  1710. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1711. end
  1712. Part.Parent=nil
  1713. end),prt,msh)]]
  1714. end
  1715.  
  1716. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1717. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1718. prt.Anchored=true
  1719. prt.CFrame=cframe
  1720. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1721. game:GetService("Debris"):AddItem(prt,5)
  1722. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1723. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1724. local wld=nil
  1725. for i=0,1,delay do
  1726. wait()
  1727. Part.CFrame=Part.CFrame
  1728. Part.Transparency=i
  1729. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1730. end
  1731. Part.Parent=nil
  1732. end),prt,msh)]]
  1733. end
  1734.  
  1735. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1736. local prt=part(3,workspace,0,0,brickcolor,"Red",vt())
  1737. prt.Anchored=true
  1738. prt.CFrame=cframe
  1739. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1740. game:GetService("Debris"):AddItem(prt,5)
  1741. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1742. end
  1743.  
  1744. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1745. local prt=part(3,Character,0,0,brickcolor,"Red",vt(0.2,0.2,0.2))
  1746. prt.Anchored=true
  1747. prt.CFrame=cframe
  1748. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1749. game:GetService("Debris"):AddItem(prt,5)
  1750. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1751. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1752. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1753. for i=0,1,delay do
  1754. wait()
  1755. Part.CFrame=Part.CFrame
  1756. Part.Transparency=i
  1757. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1758. end
  1759. Part.Parent=nil
  1760. end),prt,msh)]]
  1761. end
  1762.  
  1763. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1764. local prt=part(3,Character,0,0,brickcolor,"Red",vt(0.2,0.2,0.2))
  1765. prt.Anchored=true
  1766. prt.CFrame=cframe
  1767. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1768. game:GetService("Debris"):AddItem(prt,5)
  1769. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1770. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1771. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1772. for i=0,1,delay do
  1773. wait()
  1774. Part.CFrame=Part.CFrame
  1775. Part.Transparency=i
  1776. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1777. end
  1778. Part.Parent=nil
  1779. end),prt,msh)]]
  1780. end
  1781.  
  1782. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1783. local prt=part(3,workspace,0,0,brickcolor,"Red",vt())
  1784. prt.Anchored=true
  1785. prt.CFrame=cframe
  1786. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1787. game:GetService("Debris"):AddItem(prt,5)
  1788. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  1789. end
  1790.  
  1791. function ElecEffect(cff,x,y,z)
  1792. local prt=part(3,workspace,0,0,BrickColor.new("Really black"),"Part",vt(1,1,1))
  1793. prt.Anchored=true
  1794. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1795. prt.CFrame=cf(prt.Position)
  1796. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1797. game:GetService("Debris"):AddItem(prt,2)
  1798. xval=math.random()/2
  1799. yval=math.random()/2
  1800. zval=math.random()/2
  1801. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1802. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  1803. end
  1804.  
  1805. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  1806. --[[p0=pos1
  1807. p1=pos2
  1808. tym=times
  1809. ofs=offset
  1810. col=color
  1811. th=size
  1812. tra=transparency
  1813. last=lastingtime]]
  1814. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1815. for i=1,tym do
  1816. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  1817. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1818. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1819. if tym == i then
  1820. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1821. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1822. else
  1823. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1824. end
  1825. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  1826. end
  1827. end
  1828.  
  1829. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1830. if hit.Parent==nil then
  1831. return
  1832. end
  1833. h=hit.Parent:FindFirstChild("Humanoid")
  1834. for _,v in pairs(hit.Parent:children()) do
  1835. if v:IsA("Humanoid") then
  1836. h=v
  1837. end
  1838. end
  1839. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1840. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1841. end
  1842. if hit.Parent.className=="Hat" then
  1843. hit=hit.Parent.Parent:findFirstChild("Head")
  1844. end
  1845. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  1846. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1847. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1848. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1849. return
  1850. end]]
  1851. -- hs(hit,1.2)
  1852. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  1853. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  1854. c=Instance.new("ObjectValue")
  1855. c.Name="creator"
  1856. c.Value=game:service("Players").LocalPlayer
  1857. c.Parent=h
  1858. game:GetService("Debris"):AddItem(c,.5)
  1859. Damage=math.random(minim,maxim)
  1860. if Mode=="Demon" then
  1861. Damage=Damage+damcount
  1862. end
  1863. -- h:TakeDamage(Damage)
  1864. blocked=false
  1865. block=hit.Parent:findFirstChild("Block")
  1866. if block~=nil then
  1867. print(block.className)
  1868. if block.className=="NumberValue" then
  1869. if block.Value>0 then
  1870. blocked=true
  1871. if decreaseblock==nil then
  1872. block.Value=block.Value-1
  1873. end
  1874. end
  1875. end
  1876. if block.className=="IntValue" then
  1877. if block.Value>0 then
  1878. blocked=true
  1879. if decreaseblock~=nil then
  1880. block.Value=block.Value-1
  1881. end
  1882. end
  1883. end
  1884. end
  1885. if blocked==false then
  1886. -- h:TakeDamage(Damage)
  1887. h.Health=h.Health-Damage
  1888. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really black"))
  1889. else
  1890. h.Health=h.Health-(Damage/2)
  1891. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1892. end
  1893. if Type=="Knockdown" then
  1894. hum=hit.Parent.Humanoid
  1895. hum.PlatformStand=true
  1896. coroutine.resume(coroutine.create(function(HHumanoid)
  1897. swait(1)
  1898. HHumanoid.PlatformStand=false
  1899. end),hum)
  1900. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1901. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1902. local bodvol=Instance.new("BodyVelocity")
  1903. bodvol.velocity=angle*knockback
  1904. bodvol.P=5000
  1905. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1906. bodvol.Parent=hit
  1907. rl=Instance.new("BodyAngularVelocity")
  1908. rl.P=3000
  1909. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1910. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1911. rl.Parent=hit
  1912. game:GetService("Debris"):AddItem(bodvol,.5)
  1913. game:GetService("Debris"):AddItem(rl,.5)
  1914. elseif Type=="Normal" then
  1915. vp=Instance.new("BodyVelocity")
  1916. vp.P=500
  1917. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1918. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1919. if KnockbackType==1 then
  1920. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  1921. elseif KnockbackType==2 then
  1922. vp.velocity=Property.CFrame.lookVector*knockback
  1923. end
  1924. if knockback>-100 then
  1925. vp.Parent=hit.Parent.Torso
  1926. end
  1927. game:GetService("Debris"):AddItem(vp,.5)
  1928. elseif Type=="Lifesteal" then
  1929. for i=1,5 do
  1930. MagicBlood(BrickColor.new("Red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  1931. end
  1932. vp=Instance.new("BodyVelocity")
  1933. vp.P=500
  1934. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1935. if KnockbackType==1 then
  1936. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  1937. elseif KnockbackType==2 then
  1938. vp.velocity=Property.CFrame.lookVector*knockback
  1939. end
  1940. if knockback>-250 then
  1941. vp.Parent=hit.Parent.Torso
  1942. end
  1943. game:GetService("Debris"):AddItem(vp,.5)
  1944. Heal=math.ceil(Damage/5)
  1945. Humanoid.Health=Humanoid.Health+Heal
  1946. showDamage(RootPart,Heal,.5,BrickColor.new("Bright green"))
  1947. elseif Type=="Up" then
  1948. local bodyVelocity=Instance.new("BodyVelocity")
  1949. bodyVelocity.velocity=vt(0,30,0)
  1950. bodyVelocity.P=5000
  1951. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1952. bodyVelocity.Parent=hit
  1953. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1954. rl=Instance.new("BodyAngularVelocity")
  1955. rl.P=3000
  1956. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1957. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1958. rl.Parent=hit
  1959. game:GetService("Debris"):AddItem(rl,.5)
  1960. elseif Type=="Snare" then
  1961. bp=Instance.new("BodyPosition")
  1962. bp.P=2000
  1963. bp.D=100
  1964. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1965. bp.position=hit.Parent.Torso.Position
  1966. bp.Parent=hit.Parent.Torso
  1967. game:GetService("Debris"):AddItem(bp,1)
  1968. elseif Type=="Charge" then
  1969. Charge=Charge+1
  1970. coroutine.resume(coroutine.create(function(Part)
  1971. swait(30)
  1972. for i=1,5 do
  1973. swait(5)
  1974. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  1975. MagicCircle(BrickColor.new("Red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
  1976. newdam=math.random(1,5)
  1977. if blocked==false then
  1978. h:TakeDamage(newdam)
  1979. showDamage(hit.Parent,newdam,.5,BrickColor.new("Really black"))
  1980. else
  1981. h:TakeDamage(newdam/2)
  1982. showDamage(hit.Parent,newdam,.5,BrickColor.new("Bright blue"))
  1983. end
  1984. end
  1985. end),hit)
  1986. end
  1987. debounce=Instance.new("BoolValue")
  1988. debounce.Name="DebounceHit"
  1989. debounce.Parent=hit.Parent
  1990. debounce.Value=true
  1991. game:GetService("Debris"):AddItem(debounce,Delay)
  1992. c=Instance.new("ObjectValue")
  1993. c.Name="creator"
  1994. c.Value=Player
  1995. c.Parent=h
  1996. game:GetService("Debris"):AddItem(c,.5)
  1997. CRIT=false
  1998. hitDeb=true
  1999. AttackPos=6
  2000. end
  2001. end
  2002.  
  2003. showDamage=function(Char,Dealt,du,Color)
  2004. m=Instance.new("Model")
  2005. m.Name=tostring(Dealt)
  2006. h=Instance.new("Humanoid")
  2007. h.Health=0
  2008. h.MaxHealth=0
  2009. h.Parent=m
  2010. c=Instance.new("Part")
  2011. c.Transparency=0
  2012. c.BrickColor=Color
  2013. c.Name="Head"
  2014. c.TopSurface=0
  2015. c.BottomSurface=0
  2016. c.formFactor="Plate"
  2017. c.Size=Vector3.new(1,.4,1)
  2018. ms=Instance.new("CylinderMesh")
  2019. ms.Scale=Vector3.new(.8,.8,.8)
  2020. if CRIT==true then
  2021. ms.Scale=Vector3.new(1,1.25,1)
  2022. end
  2023. ms.Parent=c
  2024. c.Reflectance=0
  2025. Instance.new("BodyGyro").Parent=c
  2026. c.Parent=m
  2027. if Char:findFirstChild("Head")~=nil then
  2028. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2029. elseif Char.Parent:findFirstChild("Head")~=nil then
  2030. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2031. end
  2032. f=Instance.new("BodyPosition")
  2033. f.P=2000
  2034. f.D=100
  2035. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2036. f.position=c.Position+Vector3.new(0,3,0)
  2037. f.Parent=c
  2038. game:GetService("Debris"):AddItem(m,.5+du)
  2039. c.CanCollide=false
  2040. m.Parent=workspace
  2041. c.CanCollide=false
  2042. end
  2043.  
  2044. combo=0
  2045. function ob1d(mouse)
  2046. hold=true
  2047. if attack==true or equipped==false then return end
  2048. if Mode=="Binary" then
  2049. idle=0
  2050. if Anim=="Run" then
  2051. SpinSlash()
  2052. else
  2053. if combo==0 then
  2054. combo=1
  2055. attackone()
  2056. elseif combo==1 then
  2057. combo=2
  2058. attacktwo()
  2059. elseif combo==2 then
  2060. combo=0
  2061. attackthree()
  2062. end
  2063. end
  2064. else
  2065. if combo==0 then
  2066. combo=1
  2067. Demonattackone()
  2068. elseif combo==1 then
  2069. combo=2
  2070. Demonattacktwo()
  2071. elseif combo==2 then
  2072. combo=0
  2073. Demonattackthree()
  2074. end
  2075. end
  2076. coroutine.resume(coroutine.create(function()
  2077. for i=1,20 do
  2078. if attack==false then
  2079. swait()
  2080. end
  2081. end
  2082. if attack==false then
  2083. combo=0
  2084. --equipanim()
  2085. end
  2086. end))
  2087. end
  2088.  
  2089. function ob1u(mouse)
  2090. hold = false
  2091. end
  2092.  
  2093. buttonhold = false
  2094.  
  2095. eul=0
  2096. holdx=false
  2097. equipped=false
  2098. function key(key)
  2099. if key=="c" then
  2100. if guard==true then
  2101. guard=false
  2102. else
  2103. guard=true
  2104. end
  2105. end
  2106. if key=="x" then
  2107. holdx=true
  2108. end
  2109. if attack==true then return end
  2110. if key=="f" then
  2111. if equipped==false then
  2112. equipped=true
  2113. RSH=ch.Torso["Right Shoulder"]
  2114. LSH=ch.Torso["Left Shoulder"]
  2115. --
  2116. RSH.Parent=nil
  2117. LSH.Parent=nil
  2118. --
  2119. RW.Name="Right Shoulder"
  2120. RW.Part0=ch.Torso
  2121. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2122. RW.C1=cf(0, 0.5, 0)
  2123. RW.Part1=ch["Right Arm"]
  2124. RW.Parent=ch.Torso
  2125. --
  2126. LW.Name="Left Shoulder"
  2127. LW.Part0=ch.Torso
  2128. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2129. LW.C1=cf(0, 0.5, 0)
  2130. LW.Part1=ch["Left Arm"]
  2131. LW.Parent=ch.Torso
  2132. --
  2133. equipanim()
  2134. else
  2135. equipped=false
  2136. hideanim()
  2137. swait(0)
  2138. RW.Parent=nil
  2139. LW.Parent=nil
  2140. RSH.Parent=player.Character.Torso
  2141. LSH.Parent=player.Character.Torso
  2142. end
  2143. end
  2144. if equipped==false then return end
  2145. if Mode=="Binary" then
  2146. if key=="q" then
  2147. idle=500
  2148. end
  2149. if key=="z" and hitfloor~=nil then
  2150. BinarySwing()
  2151. end
  2152. if key=="x" then
  2153. BinaryImpulse()
  2154. end
  2155. if key=="c" then
  2156. Bash()
  2157. end
  2158. if key=="e" then
  2159. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "I bet you like this, dont you?", "Red")
  2160. end
  2161. if key=="r" then
  2162. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "I'm not even getting started!", "Red")
  2163. end
  2164. if key=="q" then
  2165. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Really, really pathetic bud.", "Red")
  2166. end
  2167. if key=="v" then
  2168. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Lets just get this over with.", "Red")
  2169. UnleashTheDemon()
  2170. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Fixer's demon blade!", "Red")
  2171. wait(2)
  2172. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "You're done.", "Red")
  2173. end
  2174. end
  2175. if Mode=="Demon" then
  2176. if key=="x" then
  2177. LetItBuild()
  2178. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Demons dash!", "Red")
  2179. end
  2180. if key=="e" then
  2181. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "AHAHAHAHAHA!", "Red")
  2182. end
  2183. if key=="r" then
  2184. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "IS THAT ALL?", "Red")
  2185. end
  2186. if key=="q" then
  2187. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "THIS IS THE POWER OF TAL'DARIM!", "Red")
  2188. end
  2189. if key=="c" then
  2190. YourMoveCreep()
  2191. game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Try it.", "Red")
  2192. end
  2193. end
  2194. if key=="0" then
  2195. Humanoid.WalkSpeed=(16*2)
  2196. end
  2197. end
  2198.  
  2199. function key2(key)
  2200. if key=="0" then
  2201. Humanoid.WalkSpeed=16
  2202. end
  2203. if key=="x" then
  2204. holdx=false
  2205. end
  2206. end
  2207.  
  2208. function s(mouse)
  2209. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2210. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2211. mouse.KeyDown:connect(key)
  2212. mouse.KeyUp:connect(key2)
  2213.  
  2214. player=Player
  2215. ch=Character
  2216. MMouse=mouse
  2217. end
  2218.  
  2219. function ds(mouse)
  2220. end
  2221.  
  2222. Bin.Selected:connect(s)
  2223. Bin.Deselected:connect(ds)
  2224. print("Fixer the Demon Mercenary loaded.")
  2225.  
  2226. local thenum=0
  2227. while true do
  2228. swait()
  2229. if Mode=="Demon" then
  2230. if thenum>=5 then
  2231. ElecEffect(prtd7.CFrame,2,4,2)
  2232. thenum=0
  2233. end
  2234. thenum=thenum+1
  2235. Humanoid:TakeDamage(Humanoid.Health/1000)
  2236. damcount=(Humanoid.MaxHealth-Humanoid.Health)/10
  2237. damcount=math.floor(damcount)
  2238. for _,c in pairs(Character:children()) do
  2239. for _,v in pairs(c:children()) do
  2240. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  2241. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  2242. v.Parent=nil
  2243. end
  2244. end
  2245. end
  2246. end
  2247. end
  2248. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2249. local velderp=RootPart.Velocity.y
  2250. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2251. if equipped==true then
  2252. if Anim=="Idle" and attack==false and Mode=="Binary" then
  2253. idle=idle+1
  2254. else
  2255. idle=0
  2256. end
  2257. if idleanim>=0.3 then
  2258. idleanim2=true
  2259. elseif idleanim<=0 then
  2260. idleanim2=false
  2261. end
  2262. if idleanim2==false then
  2263. if Anim=="Walk" then
  2264. idleanim=idleanim+0.005
  2265. elseif Anim=="Idle" then
  2266. idleanim=idleanim+0.003
  2267. end
  2268. else
  2269. if Anim=="Walk" then
  2270. idleanim=idleanim-0.005
  2271. elseif Anim=="Idle" then
  2272. idleanim=idleanim-0.003
  2273. end
  2274. end
  2275. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2276. Anim="Jump"
  2277. if attack==false and Mode=="Binary" then
  2278. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  2279. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  2280. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2281. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2282. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2283. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  2284. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  2285. end
  2286. if attack==false and Mode=="Demon" then
  2287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  2288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2289. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  2290. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  2291. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  2292. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  2293. end
  2294. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2295. Anim="Fall"
  2296. if attack==false and Mode=="Binary" then
  2297. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  2298. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  2299. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2300. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  2301. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2302. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2303. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2304. end
  2305. if attack==false and Mode=="Demon" then
  2306. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  2307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  2308. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  2309. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  2310. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  2311. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  2312. end
  2313. elseif torvel<1 and hitfloor~=nil then
  2314. if Anim=="Fall" then
  2315. if velderp<=-70 then
  2316. coroutine.resume(coroutine.create(function()
  2317. Stomp()
  2318. end))
  2319. end
  2320. end
  2321. Anim="Idle"
  2322. if idle<=500 then
  2323. if attack==false and Mode=="Binary" then
  2324. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  2325. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  2326. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  2327. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  2328. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  2329. RH.C0=clerp(RH.C0,RHC0,.2)
  2330. LH.C0=clerp(LH.C0,LHC0,.2)
  2331. end
  2332. if attack==false and Mode=="Demon" then
  2333. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  2334. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  2335. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  2336. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  2337. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  2338. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  2339. end
  2340. else
  2341. if attack==false and Mode=="Binary" then
  2342. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  2343. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  2344. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  2345. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  2346. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  2347. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  2348. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  2349. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  2350. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  2351. end
  2352. end
  2353. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2354. if Anim=="Fall" then
  2355. if velderp<=-70 then
  2356. coroutine.resume(coroutine.create(function()
  2357. Stomp()
  2358. end))
  2359. end
  2360. end
  2361. Anim="Walk"
  2362. if attack==false and Mode=="Binary" then
  2363. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  2364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2365. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2366. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2367. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  2368. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  2369. RH.C0=clerp(RH.C0,RHC0,.3)
  2370. LH.C0=clerp(LH.C0,LHC0,.3)
  2371. end
  2372. if attack==false and Mode=="Demon" then
  2373. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  2374. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2375. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  2376. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  2377. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  2378. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  2379. end
  2380. elseif torvel>=22 and hitfloor~=nil then
  2381. if Anim=="Fall" then
  2382. if velderp<=-70 then
  2383. coroutine.resume(coroutine.create(function()
  2384. Stomp()
  2385. end))
  2386. end
  2387. end
  2388. Anim="Run"
  2389. if attack==false and Mode=="Binary" then
  2390. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  2391. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  2392. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  2393. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  2394. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  2395. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  2396. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  2397. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  2398. end
  2399. if attack==false and Mode=="Demon" then
  2400. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  2401. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  2402. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  2403. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2404. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2405. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  2406. end
  2407. end
  2408. end
  2409. if #Effects>0 then
  2410. --table.insert(Effects,{prt,"Block1",delay})
  2411. for e=1,#Effects do
  2412. if Effects[e]~=nil then
  2413. --for j=1,#Effects[e] do
  2414. local Thing=Effects[e]
  2415. if Thing~=nil then
  2416. local Part=Thing[1]
  2417. local Mode=Thing[2]
  2418. local Delay=Thing[3]
  2419. local IncX=Thing[4]
  2420. local IncY=Thing[5]
  2421. local IncZ=Thing[6]
  2422. if Thing[1].Transparency<=1 then
  2423. if Thing[2]=="Block1" then
  2424. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2425. Mesh=Thing[1].Mesh
  2426. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2427. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2428. elseif Thing[2]=="Cylinder" then
  2429. Mesh=Thing[1].Mesh
  2430. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2431. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2432. elseif Thing[2]=="Blood" then
  2433. Mesh=Thing[1].Mesh
  2434. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2435. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2436. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2437. elseif Thing[2]=="Elec" then
  2438. Mesh=Thing[1].Mesh
  2439. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2440. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2441. elseif Thing[2]=="Disappear" then
  2442. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2443. end
  2444. else
  2445. Part.Parent=nil
  2446. table.remove(Effects,e)
  2447. end
  2448. end
  2449. --end
  2450. end
  2451. end
  2452. end
  2453. end
  2454. --[[
  2455. Copyrighted (C) Fenrier 2014
  2456. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement