Advertisement
AndrewTheMaster

Cerberus Fang

May 2nd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 147.24 KB | None | 0 0
  1. wait(0.5)
  2. local Player = game.Players.LocalPlayer
  3. repeat
  4. wait()
  5. until Player ~= nil
  6. local Character = Player.Character
  7. repeat
  8. wait()
  9. until Character ~= nil
  10. PlayerGui = Player.PlayerGui
  11. Backpack = Player.Backpack
  12. Torso = Character.Torso
  13. Head = Character.Head
  14. Humanoid = Character.Humanoid
  15. Humanoid.JumpPower = 90
  16. LeftArm = Character:WaitForChild("Left Arm")
  17. LeftLeg = Character:WaitForChild("Left Leg")
  18. RightArm = Character:WaitForChild("Right Arm")
  19. RightLeg = Character:WaitForChild("Left Arm")
  20. LS = Torso:WaitForChild("Left Shoulder")
  21. LH = Torso:WaitForChild("Left Hip")
  22. RS = Torso:WaitForChild("Right Shoulder")
  23. RH = Torso:WaitForChild("Right Hip")
  24. Neck = Torso.Neck
  25. it = Instance.new
  26. vt = Vector3.new
  27. cf = CFrame.new
  28. local runServ = game:GetService("RunService").RenderStepped
  29. local TextTable = {}
  30. euler = CFrame.fromEulerAnglesXYZ
  31. angles = CFrame.Angles
  32. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  33. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  34. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  35. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  36. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  37. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  38. RootPart = Character.HumanoidRootPart
  39. RootJoint = RootPart.RootJoint
  40. RootCF = euler(-1.57, 0, 3.14)
  41. attack = false
  42. attackdebounce = false
  43. MMouse = Player:GetMouse()
  44. combo = 0
  45. local Anim = "Idle"
  46. local Effects = {}
  47. equipped = false
  48. local idle = 0
  49. local hold = false
  50. local con1, con2 = nil, nil
  51. local Mode = "Binary"
  52. local idleanim = 0
  53. local idleanim2 = false
  54. local impulse = 1
  55. local hitfloor, posfloor = nil, nil
  56. local damcount = 0
  57. local guard = false
  58. local damagebonus = 1
  59. player = nil
  60. RSH = nil
  61. LSH = nil
  62. RW = Instance.new("Weld")
  63. LW = Instance.new("Weld")
  64. RW.Name = "Right Shoulder"
  65. LW.Name = "Left Shoulder"
  66. LH = Torso["Left Hip"]
  67. RH = Torso["Right Hip"]
  68. Asset = "http://www.roblox.com/asset/?id="
  69. Health = 200
  70. Humanoid.MaxHealth = math.huge
  71. Humanoid.Health = math.huge
  72. coroutine.resume(coroutine.create(function()
  73. for i = 1, 20 do
  74. Humanoid.MaxHealth = math.huge
  75. Humanoid.Health = math.huge
  76. end
  77. Humanoid.MaxHealth = 200
  78. wait()
  79. Humanoid.Health = 200
  80. Humanoid:TakeDamage(1)
  81. Humanoid.Health = Health
  82. end
  83. ))
  84. Humanoid.Health = Health
  85. function swait(num)
  86. if num==0 or num==nil then
  87. game:service'RunService'.RenderStepped:wait()
  88. else
  89. for i=0,num do
  90. game:service'RunService'.RenderStepped:wait()
  91. end
  92. end
  93. end
  94.  
  95. if Character:findFirstChild("Binary Sword", true) ~= nil then
  96. Character:findFirstChild("Binary Sword", true).Parent = nil
  97. end
  98. if Character:findFirstChild("Demon Blade", true) ~= nil then
  99. Character:findFirstChild("Demon Blade", true).Parent = nil
  100. end
  101. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  102. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  103. end
  104. NoOutline = function(Part)
  105. Part.TopSurface = 10
  106. end
  107.  
  108. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  109. local fp = it("Part")
  110. fp.formFactor = formfactor
  111. fp.Parent = parent
  112. fp.Reflectance = reflectance
  113. fp.Transparency = transparency
  114. fp.CanCollide = false
  115. fp.Locked = true
  116. fp.BrickColor = brickcolor
  117. fp.Name = name
  118. fp.Size = size
  119. fp.Position = Torso.Position
  120. NoOutline(fp)
  121. if fp.BrickColor == BrickColor.new("Dark indigo") then
  122. fp.Material = "Neon"
  123. else
  124. if fp.BrickColor == BrickColor.new("Fossil") then
  125. fp.BrickColor = BrickColor.new("Dark indigo")
  126. fp.Material = "Granite"
  127. else
  128. fp.Material = "SmoothPlastic"
  129. end
  130. end
  131. fp:BreakJoints()
  132. return fp
  133. end
  134.  
  135. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  136. local mesh = it(Mesh)
  137. mesh.Parent = part
  138. if Mesh == "SpecialMesh" then
  139. mesh.MeshType = meshtype
  140. mesh.MeshId = meshid
  141. end
  142. mesh.Offset = offset
  143. mesh.Scale = scale
  144. return mesh
  145. end
  146.  
  147. weld = function(parent, part0, part1, c0)
  148. local weld = it("Weld")
  149. weld.Parent = parent
  150. weld.Part0 = part0
  151. weld.Part1 = part1
  152. weld.C0 = c0
  153. return weld
  154. end
  155.  
  156. local fengui = it("GuiMain")
  157. fengui.Parent = Player.PlayerGui
  158. fengui.Name = "WeaponGUI"
  159. local Color1 = BrickColor.new("Really black")
  160. local Color2 = BrickColor.new("Dark stone grey")
  161. local Colorr3 = BrickColor.new("Dark indigo")
  162. local Color4 = BrickColor.new("Fossil")
  163. local model1 = Instance.new("Model")
  164. model1.Parent = Character
  165. model1.Name = "Binary Sword"
  166. BSword = {}
  167. BSwordWelds = {}
  168. local model2 = Instance.new("Model")
  169. model2.Parent = nil
  170. model2.Name = "Demon Blade"
  171. DBlade = {}
  172. DBladeWelds = {}
  173. prt1 = part(3, model1, 0, 1, Color1, "Part1", vt())
  174. prt2 = part(3, model1, 0, 0, Color2, "Part2", vt())
  175. prt3 = part(3, model1, 0, 0, Color2, "Part3", vt())
  176. prt4 = part(3, model1, 0, 0, Colorr3, "Part4", vt())
  177. prt5 = part(3, model1, 0, 0, Color1, "Part5", vt())
  178. prt6 = part(3, model1, 0, 0, Color4, "Part6", vt())
  179. prt7 = part(3, model1, 0, 0, Color4, "Part7", vt())
  180. prt8 = part(3, model1, 0, 0, Color4, "Part8", vt())
  181. prt9 = part(3, model1, 0, 0, Color4, "Part9", vt())
  182. prt10 = part(3, model1, 0, 0, Colorr3, "Part10", vt())
  183. prt11 = part(3, model1, 0, 0, Colorr3, "Part11", vt())
  184. prt12 = part(3, model1, 0, 0, Colorr3, "Part12", vt())
  185. prtd1 = part(3, model2, 0, 0.4, BrickColor.new("Dark indigo"), "DPart1", vt())
  186. prtd2 = part(3, model2, 0, 0, BrickColor.new("Really black"), "DPart2", vt())
  187. prtd3 = part(3, model2, 0, 0, BrickColor.new("Really black"), "DPart3", vt())
  188. prtd4 = part(3, model2, 0, 0, BrickColor.new("Really black"), "DPart4", vt())
  189. prtd5 = part(3, model2, 0, 0, BrickColor.new("Really black"), "DPart5", vt())
  190. prtd6 = part(3, model2, 0, 0, BrickColor.new("Really black"), "DPart6", vt())
  191. prtd7 = part(3, model2, 0.8, 0, BrickColor.new("Dark indigo"), "DPart7", vt())
  192. prtd8 = part(3, model2, 0.8, 0, BrickColor.new("Dark indigo"), "DPart8", vt())
  193. prtd9 = part(3, model2, 0.5, 0.2, BrickColor.new("Fossil"), "DPart9", vt())
  194. prtd10 = part(3, model2, 0.5, 0.2, BrickColor.new("Fossil"), "DPart10", vt())
  195. prtd11 = part(3, model2, 0.5, 0, BrickColor.new("Dark indigo"), "DPart11", vt())
  196. prtd12 = part(3, model2, 0, 0, BrickColor.new("Really black"), "DPart12", vt())
  197. for _,c in pairs(model2:children()) do
  198. if c.className == "Part" then
  199. table.insert(DBlade, c)
  200. end
  201. end
  202. msh1 = mesh("BlockMesh", prt1, "", "", vt(0, 0, 0), vt(1, 1, 1))
  203. msh2 = mesh("CylinderMesh", prt2, "", "", vt(0, 0, 0), vt(2, 10, 2))
  204. msh3 = mesh("SpecialMesh", prt3, "Head", "", vt(0, 0, 0), vt(2.5, 2, 2.5))
  205. msh4 = mesh("SpecialMesh", prt4, "Sphere", "", vt(0, 0, 0), vt(3, 3, 3))
  206. msh5 = mesh("SpecialMesh", prt5, "FileMesh", "http://www.roblox.com/asset/?id=9756362", vt(0, 0, 0), vt(0.5, 0.5, 1))
  207. msh6 = mesh("BlockMesh", prt6, "", "", vt(0, 0, 0), vt(0.5, 20, 1))
  208. msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(0.5, 20, 1))
  209. msh8 = mesh("SpecialMesh", prt8, "Wedge", "", vt(0, 0, 0), vt(0.5, 5, 1))
  210. msh9 = mesh("SpecialMesh", prt9, "Wedge", "", vt(0, 0, 0), vt(0.5, 5, 1))
  211. msh10 = mesh("BlockMesh", prt10, "", "", vt(0, 0, 0), vt(0.6, 20, 0.2))
  212. msh11 = mesh("SpecialMesh", prt11, "Wedge", "", vt(0, 0, 0), vt(0.6, 5, 0.1))
  213. msh12 = mesh("SpecialMesh", prt12, "Wedge", "", vt(0, 0, 0), vt(0.6, 5, 0.1))
  214. mshd1 = mesh("BlockMesh", prtd1, "", "", vt(0, 0, 0), vt(5.01, 3, 5.01))
  215. mshd2 = mesh("BlockMesh", prtd2, "", "", vt(0, 0, 0), vt(5.1, 3, 5.1))
  216. mshd3 = mesh("SpecialMesh", prtd3, "Wedge", "", vt(0, 0, 0), vt(5.05, 4, 3))
  217. mshd4 = mesh("SpecialMesh", prtd4, "Wedge", "", vt(0, 0, 0), vt(5.05, 4, 3))
  218. mshd5 = mesh("SpecialMesh", prtd5, "Wedge", "", vt(0, 0, 0), vt(5.5, 6, 6))
  219. mshd6 = mesh("SpecialMesh", prtd6, "Wedge", "", vt(0, 0, 0), vt(5.5, 6, 6))
  220. mshd7 = mesh("BlockMesh", prtd7, "", "", vt(0, 0, 0), vt(3, 20, 1))
  221. mshd8 = mesh("SpecialMesh", prtd8, "Wedge", "", vt(0, 0, 0), vt(1, 3, 5))
  222. mshd9 = mesh("BlockMesh", prtd9, "", "", vt(0, 0, 0), vt(4.5, 20, 0.1))
  223. mshd10 = mesh("SpecialMesh", prtd10, "Wedge", "", vt(0, 0, 0), vt(0.1, 4.5, 8))
  224. mshd11 = mesh("CylinderMesh", prtd11, "", "", vt(0, 0, 0), vt(4, 5.8, 4))
  225. mshd12 = mesh("CylinderMesh", prtd12, "", "", vt(0, 0, 0), vt(3, 5.9, 3))
  226. wld1 = weld(prt1, prt1, Torso, euler(3.7, 1.57, 0) * cf(-1.5, -2.3, -0.5))
  227. wld2 = weld(prt2, prt2, prt1, euler(0, 0, 0) * cf(0, 0, 0))
  228. wld3 = weld(prt3, prt3, prt2, euler(0, 0, 0) * cf(0, 1, 0))
  229. wld4 = weld(prt4, prt4, prt2, euler(0, 0, 0) * cf(0, -1, 0))
  230. wld5 = weld(prt5, prt5, prt4, euler(0, 0, 0) * cf(0, -0.2, 0))
  231. wld6 = weld(prt6, prt6, prt5, euler(0, 0, 0) * cf(0, -2, 0.1))
  232. wld7 = weld(prt7, prt7, prt5, euler(0, 0, 0) * cf(0, -2, -0.1))
  233. wld8 = weld(prt8, prt8, prt6, euler(0, 0, 0) * cf(0, -2.5, 0))
  234. wld9 = weld(prt9, prt9, prt7, euler(0, 3.14, 0) * cf(0, -2.5, 0))
  235. wld10 = weld(prt10, prt10, prt5, euler(0, 0, 0) * cf(0, -2, 0))
  236. wld11 = weld(prt11, prt11, prt10, euler(0, 0, 0) * cf(0, -2.5, 0.01))
  237. wld12 = weld(prt12, prt12, prt10, euler(0, 3.14, 0) * cf(0, -2.5, -0.01))
  238. wldd1 = weld(prtd1, prtd1, RightArm, euler(0, 0, 0) * cf(0, 0.21, 0))
  239. wldd2 = weld(prtd1, prtd2, prtd1, euler(0, 0, 0) * cf(0, 0.5, 0))
  240. wldd3 = weld(prtd1, prtd3, prtd2, euler(0, 1.57, 0) * cf(0.21, -0.6, 0))
  241. wldd4 = weld(prtd1, prtd4, prtd2, euler(0, -1.57, 0) * cf(-0.21, -0.6, 0))
  242. wldd5 = weld(prtd1, prtd5, prtd2, euler(0, -1.57, 0) * cf(0.1, -0.1, 0))
  243. wldd6 = weld(prtd1, prtd6, prtd5, euler(0, 0, 3.14) * cf(0, 1.2, 0))
  244. wldd7 = weld(prtd1, prtd7, prtd2, euler(0, 0, 0) * cf(0, 2.5, 0))
  245. wldd8 = weld(prtd1, prtd8, prtd7, euler(1.57, 1.57, 0) * cf(0, 2.5, 0))
  246. wldd9 = weld(prtd1, prtd9, prtd7, euler(0, 0, 0) * cf(0, 0, 0))
  247. wldd10 = weld(prtd1, prtd10, prtd8, euler(0, 0, 0) * cf(0, 0, 0.3))
  248. wldd11 = weld(prtd1, prtd11, prtd1, euler(1.57, 0, 0) * cf(0, 1, 0))
  249. wldd12 = weld(prtd1, prtd12, prtd11, euler(0, 0, 0) * cf(0, 0, 0))
  250. for _,c in pairs(prtd1:children()) do
  251. if c.className == "Weld" then
  252. table.insert(DBladeWelds, c)
  253. print(c)
  254. end
  255. end
  256. for i = -0.9, 0.9, 0.2 do
  257. prt13 = part(3, model1, 0, 0, Color1, "Part13", vt())
  258. msh13 = mesh("CylinderMesh", prt13, "", "", vt(0, 0, 0), vt(2.2, 1, 2.2))
  259. 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))
  260. end
  261. Make1 = function(Ceef)
  262. prtnr = part(3, model1, 0, 1, Color1, "1a", vt())
  263. mshnr = mesh("BlockMesh", prtnr, "", "", vt(0, 0, 0), vt(0.7, 0.7, 0.7))
  264. wldnr = weld(prtnr, prtnr, prt10, euler(0, 0, 0) * cf(0, Ceef, 0))
  265. prtn1 = part(3, model1, 0, 0, Colorr3, "1a", vt())
  266. mshn1 = mesh("BlockMesh", prtn1, "", "", vt(0, 0, 0), vt(0.7, 0.2, 1.5))
  267. wldn1 = weld(prtn1, prtn1, prtnr, euler(0, 0, 0) * cf(0, 0, 0))
  268. prtn2 = part(3, model1, 0, 0, Colorr3, "1b", vt())
  269. mshn2 = mesh("BlockMesh", prtn2, "", "", vt(0, 0, 0), vt(0.7, 0.2, 0.5))
  270. wldn2 = weld(prtn2, prtn2, prtn1, euler(0.5, 0, 0) * cf(0, 0.03, -0.1))
  271. prtn3 = part(3, model1, 0, 0, Colorr3, "1c", vt())
  272. mshn3 = mesh("BlockMesh", prtn3, "", "", vt(0, 0, 0), vt(0.7, 0.2, 0.5))
  273. wldn3 = weld(prtn3, prtn3, prtn1, euler(1.57, 0, 0) * cf(0, 0, 0.15))
  274. end
  275.  
  276. Make0 = function(Ceef)
  277. prtnr = part(3, model1, 0, 1, Color1, "1a", vt())
  278. mshnr = mesh("BlockMesh", prtnr, "", "", vt(0, 0, 0), vt(0.7, 0.7, 0.7))
  279. wldnr = weld(prtnr, prtnr, prt10, euler(0, 0, 0) * cf(0, Ceef, 0))
  280. prtn1 = part(3, model1, 0, 0, Colorr3, "0a", vt())
  281. mshn1 = mesh("BlockMesh", prtn1, "", "", vt(0, 0, 0), vt(0.7, 0.2, 1.5))
  282. wldn1 = weld(prtn1, prtn1, prtnr, euler(0, 0, 0) * cf(0, -0.05, 0))
  283. prtn2 = part(3, model1, 0, 0, Colorr3, "0b", vt())
  284. mshn2 = mesh("BlockMesh", prtn2, "", "", vt(0, 0, 0), vt(0.7, 0.2, 0.5))
  285. wldn2 = weld(prtn2, prtn2, prtn1, euler(1.57, 0, 0) * cf(0, 0.05, 0.15))
  286. prtn3 = part(3, model1, 0, 0, Colorr3, "0c", vt())
  287. mshn3 = mesh("BlockMesh", prtn3, "", "", vt(0, 0, 0), vt(0.7, 0.2, 0.5))
  288. wldn3 = weld(prtn3, prtn3, prtn1, euler(1.57, 0, 0) * cf(0, 0.05, -0.15))
  289. prtn4 = part(3, model1, 0, 0, Colorr3, "0d", vt())
  290. mshn4 = mesh("BlockMesh", prtn4, "", "", vt(0, 0, 0), vt(0.7, 0.2, 1.5))
  291. wldn4 = weld(prtn4, prtn4, prtn1, euler(0, 0, 0) * cf(0, 0.1, 0))
  292. end
  293.  
  294. Make1(1.6)
  295. Make0(1.4)
  296. Make0(1.2)
  297. Make1(1)
  298. Make1(0.8)
  299. Make1(0.6)
  300. Make1(0.4)
  301. Make0(0.2)
  302. Make0(0)
  303. local hitbox1 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  304. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  305. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
  306. local Tool = Instance.new("HopperBin")
  307. Tool.Parent = Backpack
  308. Tool.Name = "Cerberus\' Fang"
  309. local Bin = Tool
  310. script.Parent = Tool
  311. local bodvel = Instance.new("BodyVelocity")
  312. bodvel.Name = "FixerVel"
  313. local bg = Instance.new("BodyGyro")
  314. bg.Name = "FixerGyro"
  315. so = function(id, par, vol, pit)
  316. coroutine.resume(coroutine.create(function()
  317. local sou = Instance.new("Sound", par or workspace)
  318. sou.Parent = par
  319. sou.Volume = vol
  320. sou.Pitch = pit or 1
  321. sou.SoundId = id
  322. swait()
  323. sou:Play()
  324. game:GetService("Debris"):AddItem(sou, 6)
  325. end
  326. ))
  327. end
  328.  
  329. function clerp(a,b,t)
  330. local qa = {QuaternionFromCFrame(a)}
  331. local qb = {QuaternionFromCFrame(b)}
  332. local ax, ay, az = a.x, a.y, a.z
  333. local bx, by, bz = b.x, b.y, b.z
  334. local _t = 1-t
  335. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  336. end
  337.  
  338. function QuaternionFromCFrame(cf)
  339. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  340. local trace = m00 + m11 + m22
  341. if trace > 0 then
  342. local s = math.sqrt(1 + trace)
  343. local recip = 0.5/s
  344. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  345. else
  346. local i = 0
  347. if m11 > m00 then
  348. i = 1
  349. end
  350. if m22 > (i == 0 and m00 or m11) then
  351. i = 2
  352. end
  353. if i == 0 then
  354. local s = math.sqrt(m00-m11-m22+1)
  355. local recip = 0.5/s
  356. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  357. elseif i == 1 then
  358. local s = math.sqrt(m11-m22-m00+1)
  359. local recip = 0.5/s
  360. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  361. elseif i == 2 then
  362. local s = math.sqrt(m22-m00-m11+1)
  363. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  364. end
  365. end
  366. end
  367.  
  368. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  369. local xs, ys, zs = x + x, y + y, z + z
  370. local wx, wy, wz = w*xs, w*ys, w*zs
  371. local xx = x*xs
  372. local xy = x*ys
  373. local xz = x*zs
  374. local yy = y*ys
  375. local yz = y*zs
  376. local zz = z*zs
  377. 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))
  378. end
  379.  
  380. function QuaternionSlerp(a, b, t)
  381. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  382. local startInterp, finishInterp;
  383. if cosTheta >= 0.0001 then
  384. if (1 - cosTheta) > 0.0001 then
  385. local theta = math.acos(cosTheta)
  386. local invSinTheta = 1/math.sin(theta)
  387. startInterp = math.sin((1-t)*theta)*invSinTheta
  388. finishInterp = math.sin(t*theta)*invSinTheta
  389. else
  390. startInterp = 1-t
  391. finishInterp = t
  392. end
  393. else
  394. if (1+cosTheta) > 0.0001 then
  395. local theta = math.acos(-cosTheta)
  396. local invSinTheta = 1/math.sin(theta)
  397. startInterp = math.sin((t-1)*theta)*invSinTheta
  398. finishInterp = math.sin(t*theta)*invSinTheta
  399. else
  400. startInterp = t-1
  401. finishInterp = t
  402. end
  403. end
  404. 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
  405. end
  406.  
  407. hideanim = function()
  408. equipped = false
  409. attack = true
  410. if Mode == "Binary" then
  411. so("rbxasset://sounds\\unsheath.wav", prt1, 1, 0.8)
  412. for i = 0, 1, 0.1 do
  413. swait()
  414. wld1.C0 = clerp(wld1.C0, euler(0.2, 0, -0.5) * cf(0, 1, 0), 0.3)
  415. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.4, 0, -0.5), 0.3)
  416. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.2) * euler(3.4, 0, 0), 0.3)
  417. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  418. end
  419. wld1.Part1 = Torso
  420. wld1.C0 = euler(3.7, 1.57, 0) * cf(-1.5, -2.3, -0.5)
  421. for i = 0, 1, 0.2 do
  422. swait()
  423. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.2) * euler(0.5, 0, 0), 0.3)
  424. end
  425. for i = 0, 1, 0.1 do
  426. swait()
  427. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  428. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.4)
  429. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  430. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  431. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  432. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  433. end
  434. else
  435. do
  436. for i = 0, 1, 0.1 do
  437. swait()
  438. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.4, 0, -0.4), 0.3)
  439. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, -0.8), 0.3)
  440. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, -0.5, 1) * euler(0.5, 0, 0), 0.3)
  441. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  442. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(-0.2, 1.57, 0), 0.3)
  443. LH.C0 = clerp(LH.C0, cf(-1, -0.5, 0) * euler(0.5, -1.2, 0) * euler(-0.2, 0, 0), 0.3)
  444. end
  445. so("http://roblox.com/asset/?id=161006163", RightArm, 1, 0.4)
  446. so("http://roblox.com/asset/?id=160867463", RightArm, 1, 1.2)
  447. for i = 0, 1, 0.015 do
  448. swait()
  449. for i = 1, 3 do
  450. if math.random(1, 4) == 1 then
  451. 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, 0.5, 0.5, 0.5, 0.05)
  452. else
  453. MagicBlock(BrickColor.new("Dark indigo"), 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, 0.5, 0.5, 0.5, 0.05)
  454. end
  455. end
  456. end
  457. model2.Parent = nil
  458. for i = 0, 1, 0.1 do
  459. swait()
  460. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  461. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.4)
  462. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  463. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  464. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  465. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  466. end
  467. do
  468. Torso.Neck.C0 = necko
  469. Torso.Neck.C1 = necko2
  470. RootJoint.C0 = RootCF
  471. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  472. RW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  473. LW.C0 = cf(-1.5, 0.5, 0) * euler(0, 0, 0)
  474. LW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  475. RH.C0 = RHC0
  476. RH.C1 = RHC1
  477. LH.C0 = LHC0
  478. LH.C1 = LHC1
  479. Mode = "Binary"
  480. attack = false
  481. end
  482. end
  483. end
  484. end
  485.  
  486. equipanim = function()
  487. equipped = true
  488. attack = true
  489. for i = 0, 1, 0.2 do
  490. swait()
  491. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.4, 0, -0.5), 0.3)
  492. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.2) * euler(3, 0, 0), 0.4)
  493. end
  494. for i = 0, 1, 0.1 do
  495. swait()
  496. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.5, 0, -0.6), 0.3)
  497. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.2) * euler(3.4, 0, 0), 0.3)
  498. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5), 0.3)
  499. end
  500. so("rbxasset://sounds\\unsheath.wav", prt1, 1, 0.6)
  501. wld1.Part1 = RightArm
  502. wld1.C0 = euler(0.2, 0, -0.5) * cf(0, 1, 0)
  503. for i = 0, 1, 0.1 do
  504. swait()
  505. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  506. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.2, 0, -0.5), 0.3)
  507. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.2) * euler(0.5, -0.5, 0), 0.3)
  508. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5), 0.3)
  509. end
  510. for i = 0, 1, 0.1 do
  511. swait()
  512. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.3)
  513. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.5), 0.3)
  514. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  515. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, -0.5, -0.7), 0.3)
  516. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1, -0.5, 0.5), 0.3)
  517. end
  518. wld1.C0 = euler(1.57, 0, 0) * cf(0, 1, -0.3)
  519. Torso.Neck.C0 = necko * euler(0, 0, 0.5)
  520. RootJoint.C0 = RootCF * euler(0, 0, -0.5)
  521. RW.C0 = cf(1, 0.5, -0.5) * euler(1, -0.5, -0.7)
  522. RW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  523. LW.C0 = cf(-1, 0.5, -0.5) * euler(1, -0.5, 0.5)
  524. LW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  525. attack = false
  526. end
  527.  
  528. Stomp = function()
  529. Humanoid.WalkSpeed = 0
  530. Torso.Velocity = RootPart.CFrame.lookVector * 0
  531. so("http://roblox.com/asset/?id=157878578", Torso, 1, 0.8)
  532. so("http://roblox.com/asset/?id=2760979", Torso, 1, 0.4)
  533. MagicWave(BrickColor.new("Dark indigo"), cf(Torso.Position) * cf(0, -1, 0), 1, 1, 1, 1.5, 1, 1.5, 0.05)
  534. Dam = math.random(5, 10)
  535. Humanoid.Health = Humanoid.Health - Dam
  536. showDamage(Torso, Dam, 0.5, BrickColor:Red())
  537. MagniDamage(Torso, 20, 50, 99, math.random(10, 15), "Knockdown")
  538. swait(10)
  539. Humanoid.WalkSpeed = 16
  540. end
  541.  
  542. attackone = function()
  543. attack = true
  544. for i = 0, 1, 0.1 do
  545. swait()
  546. wld1.C0 = clerp(wld1.C0, euler(1.2, 0, 0) * cf(0, 1, -0.3), 0.3)
  547. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.1, 0, 1), 0.3)
  548. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.3)
  549. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(2, -0.5, -0.2), 0.3)
  550. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(2.5, -0.5, 0.8), 0.3)
  551. RH.C0 = clerp(RH.C0, RHC0 * euler(-0.2, 0, 0), 0.3)
  552. LH.C0 = clerp(LH.C0, LHC0 * euler(-0.2, 0, 0), 0.3)
  553. end
  554. hitbox1.Parent = model1
  555. hitbox1.Size = vt(1, 5, 1)
  556. hitbox1.Transparency = 1
  557. hitbox1.CFrame = prt10.CFrame
  558. con1 = hitbox1.Touched:connect(function(hit)
  559. Damagefunc(hit, 20, 50, math.random(1, 5), "Normal", RootPart, 0.5, 1)
  560. end
  561. )
  562. so("http://roblox.com/asset/?id=161006212", prt10, 1, 0.7)
  563. blcf = nil
  564. scfr = nil
  565. for i = 0, 1, 0.25 do
  566. swait()
  567. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  568. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  569. local h = 5
  570. 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)
  571. if a then
  572. game.Debris:AddItem(a, 1)
  573. end
  574. if b then
  575. game.Debris:AddItem(b, 1)
  576. end
  577. 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)
  578. if a then
  579. game.Debris:AddItem(a, 1)
  580. end
  581. if b then
  582. game.Debris:AddItem(b, 1)
  583. end
  584. scfr = blcf
  585. else
  586. --[[if not scfr then
  587. scfr = blcf
  588. end--]]
  589. hitbox1.CFrame = prt10.CFrame
  590. wld1.C0 = clerp(wld1.C0, euler(1.8, 0, 0) * cf(0, 1, -0.3), 0.3)
  591. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.1, 0, -0.3), 0.3)
  592. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.3), 0.3)
  593. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.5, -0.3, -0.3), 0.3)
  594. LW.C0 = clerp(LW.C0, cf(-0.8, 0.2, -0.5) * euler(0.5, -0.5, 1), 0.3)
  595. end
  596. end
  597. for i = 0, 1, 0.1 do
  598. swait()
  599. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  600. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  601. local h = 5
  602. 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)
  603. if a then
  604. game.Debris:AddItem(a, 1)
  605. end
  606. if b then
  607. game.Debris:AddItem(b, 1)
  608. end
  609. 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)
  610. if a then
  611. game.Debris:AddItem(a, 1)
  612. end
  613. if b then
  614. game.Debris:AddItem(b, 1)
  615. end
  616. scfr = blcf
  617. else
  618. --[[if not scfr then
  619. scfr = blcf
  620. end--]]
  621. hitbox1.CFrame = prt10.CFrame
  622. wld1.C0 = clerp(wld1.C0, euler(2, 0, 0) * cf(0, 1, -0.3), 0.3)
  623. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.1, 0, -0.9), 0.3)
  624. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.9), 0.3)
  625. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.5, -0.8, -0.3), 0.3)
  626. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.1, -0.5, 0.7), 0.3)
  627. end
  628. end
  629. con1:disconnect()
  630. hitbox1.Parent = nil
  631. attack = false
  632. end
  633.  
  634. attacktwo = function()
  635. attack = true
  636. for i = 0, 1, 0.1 do
  637. swait()
  638. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.3)
  639. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.1, 0, -1.2), 0.3)
  640. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.2), 0.3)
  641. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.5, 1.8, 1.5), 0.3)
  642. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.5, -0.5, 0.8), 0.3)
  643. RH.C0 = clerp(RH.C0, RHC0 * euler(-0.2, 0, 0), 0.3)
  644. LH.C0 = clerp(LH.C0, LHC0 * euler(-0.2, 0, 0), 0.3)
  645. end
  646. hitbox1.Parent = model1
  647. hitbox1.Size = vt(1, 5, 1)
  648. hitbox1.Transparency = 1
  649. hitbox1.CFrame = prt10.CFrame
  650. con1 = hitbox1.Touched:connect(function(hit)
  651. Damagefunc(hit, 20, 40, math.random(1, 5), "Normal", RootPart, 0.5, 1)
  652. end
  653. )
  654. so("http://roblox.com/asset/?id=161006212", prt10, 1, 0.8)
  655. blcf = nil
  656. scfr = nil
  657. for i = 0, 1, 0.1 do
  658. swait()
  659. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  660. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  661. local h = 5
  662. 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)
  663. if a then
  664. game.Debris:AddItem(a, 1)
  665. end
  666. if b then
  667. game.Debris:AddItem(b, 1)
  668. end
  669. 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)
  670. if a then
  671. game.Debris:AddItem(a, 1)
  672. end
  673. if b then
  674. game.Debris:AddItem(b, 1)
  675. end
  676. scfr = blcf
  677. else
  678. do
  679. do
  680. --[[if not scfr then
  681. scfr = blcf
  682. end--]]
  683. hitbox1.CFrame = prt10.CFrame
  684. wld1.C0 = clerp(wld1.C0, euler(2.2, 0, 0) * cf(0, 0.8, -0.3), 0.3)
  685. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.1, 0, 1), 0.3)
  686. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.3)
  687. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, 1.2, 0) * euler(-1.5, 0, 0), 0.3)
  688. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, -0.2, -1.4), 0.3)
  689. end
  690. end
  691. end
  692. end
  693. con1:disconnect()
  694. hitbox1.Parent = nil
  695. attack = false
  696. end
  697.  
  698. attackthree = function()
  699. attack = true
  700. for i = 0, 1, 0.1 do
  701. swait()
  702. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, -0.785) * cf(0, 0.8, 0), 0.3)
  703. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.2, 0, 0), 0.3)
  704. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  705. RW.C0 = clerp(RW.C0, cf(1, 1, 0) * euler(2.8, 0, -0.785), 0.3)
  706. LW.C0 = clerp(LW.C0, cf(-1, 1, 0) * euler(2.8, 0, 0.785), 0.3)
  707. RH.C0 = clerp(RH.C0, RHC0 * euler(-0.2, 0, 0), 0.3)
  708. LH.C0 = clerp(LH.C0, LHC0 * euler(-0.2, 0, 0), 0.3)
  709. end
  710. hitbox1.Parent = model1
  711. hitbox1.Size = vt(1, 5, 1)
  712. hitbox1.Transparency = 1
  713. hitbox1.CFrame = prt10.CFrame
  714. con1 = hitbox1.Touched:connect(function(hit)
  715. Damagefunc(hit, 20, 40, math.random(1, 5), "Normal", RootPart, 0.5, 1)
  716. end
  717. )
  718. so("http://roblox.com/asset/?id=161006212", prt10, 1, 0.9)
  719. blcf = nil
  720. scfr = nil
  721. for i = 0, 1, 0.25 do
  722. swait()
  723. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  724. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  725. local h = 5
  726. 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)
  727. if a then
  728. game.Debris:AddItem(a, 1)
  729. end
  730. if b then
  731. game.Debris:AddItem(b, 1)
  732. end
  733. 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)
  734. if a then
  735. game.Debris:AddItem(a, 1)
  736. end
  737. if b then
  738. game.Debris:AddItem(b, 1)
  739. end
  740. scfr = blcf
  741. else
  742. do
  743. do
  744. --[[if not scfr then
  745. scfr = blcf
  746. end--]]
  747. hitbox1.CFrame = prt10.CFrame
  748. wld1.C0 = clerp(wld1.C0, euler(1.7, 0, 0) * cf(0, 1, 0), 0.4)
  749. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.2, 0, -0.6), 0.4)
  750. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.6), 0.4)
  751. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.5, 0, 0.2), 0.4)
  752. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.4)
  753. -- DECOMPILER ERROR at PC364: LeaveBlock: unexpected jumping out DO_STMT
  754.  
  755. -- DECOMPILER ERROR at PC364: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  756.  
  757. -- DECOMPILER ERROR at PC364: LeaveBlock: unexpected jumping out IF_STMT
  758.  
  759. end
  760. end
  761. end
  762. end
  763. for i = 0, 1, 0.2 do
  764. swait()
  765. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  766. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  767. local h = 5
  768. 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)
  769. if a then
  770. game.Debris:AddItem(a, 1)
  771. end
  772. if b then
  773. game.Debris:AddItem(b, 1)
  774. end
  775. 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)
  776. if a then
  777. game.Debris:AddItem(a, 1)
  778. end
  779. if b then
  780. game.Debris:AddItem(b, 1)
  781. end
  782. scfr = blcf
  783. else
  784. do
  785. do
  786. --[[if not scfr then
  787. scfr = blcf
  788. end--]]
  789. hitbox1.CFrame = prt10.CFrame
  790. wld1.C0 = clerp(wld1.C0, euler(2, 0, 0) * cf(0, 0.7, -0.3), 0.4)
  791. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.4, 0, -0.8), 0.4)
  792. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.4)
  793. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, -0.4, 0.4), 0.4)
  794. -- DECOMPILER ERROR at PC558: LeaveBlock: unexpected jumping out DO_STMT
  795.  
  796. -- DECOMPILER ERROR at PC558: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  797.  
  798. -- DECOMPILER ERROR at PC558: LeaveBlock: unexpected jumping out IF_STMT
  799.  
  800. end
  801. end
  802. end
  803. end
  804. con1:disconnect()
  805. hitbox1.Parent = nil
  806. attack = false
  807. end
  808.  
  809. SpinSlash = function()
  810. attack = true
  811. for i = 0, 1, 0.1 do
  812. swait()
  813. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.4)
  814. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.3, 0, 0.8), 0.4)
  815. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.2, 0, -0.8), 0.4)
  816. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(2.2, -1.2, 0) * euler(0, 0, 1), 0.4)
  817. LW.C0 = clerp(LW.C0, cf(0.1, 0.5, -0.8) * euler(1.8, -0.5, 1), 0.4)
  818. end
  819. hitbox1.Parent = model1
  820. hitbox1.Size = vt(1, 5, 1)
  821. hitbox1.Transparency = 1
  822. hitbox1.CFrame = prt10.CFrame
  823. con1 = hitbox1.Touched:connect(function(hit)
  824. Damagefunc(hit, 30, 60, math.random(1, 5), "Normal", RootPart, 0.001, 1)
  825. end
  826. )
  827. blcf = nil
  828. scfr = nil
  829. so("http://roblox.com/asset/?id=161006212", prt10, 1, 0.6)
  830. repeat
  831. hitbox1.Parent = model1
  832. hitbox1.Size = vt(1, 5, 1)
  833. hitbox1.Transparency = 1
  834. hitbox1.CFrame = prt10.CFrame
  835. for i = 0, 1, 0.15 do
  836. swait()
  837. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  838. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  839. local h = 5
  840. 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)
  841. if a then
  842. game.Debris:AddItem(a, 1)
  843. end
  844. if b then
  845. game.Debris:AddItem(b, 1)
  846. end
  847. 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)
  848. if a then
  849. game.Debris:AddItem(a, 1)
  850. end
  851. if b then
  852. game.Debris:AddItem(b, 1)
  853. end
  854. scfr = blcf
  855. else
  856. do
  857. do
  858. --[[if not scfr then
  859. scfr = blcf
  860. end--]]
  861. hitbox1.CFrame = prt10.CFrame
  862. wld1.C0 = clerp(wld1.C0, euler(1.2, 0, 0) * cf(0, 1, -0.3), 0.3)
  863. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.3, 0, 0), 0.3)
  864. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0, 0, 2.3), 0.25)
  865. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, -1.57, 0) * euler(-0.5, 0, 0), 0.3)
  866. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.57, -1.57, 0) * euler(0.5, 0, 0), 0.3)
  867. RH.C0 = clerp(RH.C0, RHC0, 0.3)
  868. LH.C0 = clerp(LH.C0, LHC0, 0.3)
  869. -- DECOMPILER ERROR at PC398: LeaveBlock: unexpected jumping out DO_STMT
  870.  
  871. -- DECOMPILER ERROR at PC398: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  872.  
  873. -- DECOMPILER ERROR at PC398: LeaveBlock: unexpected jumping out IF_STMT
  874.  
  875. end
  876. end
  877. end
  878. end
  879. for i = 0, 1, 0.05 do
  880. swait()
  881. if i >= 0.45 and i <= 0.5 then
  882. so("http://roblox.com/asset/?id=161006212", prt10, 1, 0.7)
  883. end
  884. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  885. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  886. local h = 5
  887. 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)
  888. if a then
  889. game.Debris:AddItem(a, 1)
  890. end
  891. if b then
  892. game.Debris:AddItem(b, 1)
  893. end
  894. 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)
  895. if a then
  896. game.Debris:AddItem(a, 1)
  897. end
  898. if b then
  899. game.Debris:AddItem(b, 1)
  900. end
  901. scfr = blcf
  902. else
  903. do
  904. do
  905. --[[if not scfr then
  906. scfr = blcf
  907. end--]]
  908. hitbox1.CFrame = prt10.CFrame
  909. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0, 0, 2.3 + 6 * i), 1)
  910. -- DECOMPILER ERROR at PC557: LeaveBlock: unexpected jumping out DO_STMT
  911.  
  912. -- DECOMPILER ERROR at PC557: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  913.  
  914. -- DECOMPILER ERROR at PC557: LeaveBlock: unexpected jumping out IF_STMT
  915.  
  916. end
  917. end
  918. end
  919. end
  920. until hold == false
  921. con1:disconnect()
  922. hitbox1.Parent = nil
  923. attack = false
  924. end
  925.  
  926. BinarySwing = function()
  927. attack = true
  928. for i = 0, 1, 0.1 do
  929. swait()
  930. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.3)
  931. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.8), 0.3)
  932. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0, 0, -0.8), 0.3)
  933. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.5, -2, 0) * euler(0.5, 0, 0), 0.3)
  934. LW.C0 = clerp(LW.C0, cf(-0.2, -0.1, -0.5) * euler(1, -1.8, 0) * euler(0.9, 0, 0), 0.3)
  935. RH.C0 = clerp(RH.C0, RHC0 * cf(0.2, 1, 0.1) * euler(0, -0.5, -0.2), 0.3)
  936. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.2, 1, 0.1) * euler(0, 0.5, 0.2), 0.3)
  937. end
  938. Humanoid.Jump = true
  939. bodvol = Instance.new("BodyVelocity")
  940. bodvol.Parent = RootPart
  941. bodvol.velocity = vt(0, 1, 0) * 600
  942. bodvol.P = 7000
  943. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  944. hitbox1.Parent = model1
  945. hitbox1.Size = vt(1, 5, 1)
  946. hitbox1.Transparency = 1
  947. hitbox1.CFrame = prt10.CFrame
  948. con1 = hitbox1.Touched:connect(function(hit)
  949. Damagefunc(hit, 40, 80, math.random(10, 20), "Dragger", RootPart, 0.001, 1)
  950. end
  951. )
  952. so("http://roblox.com/asset/?id=161006212", prt10, 1, 0.8)
  953. blcf = nil
  954. scfr = nil
  955. for i = 0, 1, 0.1 do
  956. swait()
  957. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  958. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  959. local h = 5
  960. local a, b = Triangle(scfr * CFrame.new(0, h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p, blcf * CFrame.new(0, h / 2, 0).p)
  961. if a then
  962. game.Debris:AddItem(a, 1)
  963. end
  964. if b then
  965. game.Debris:AddItem(b, 1)
  966. end
  967. 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)
  968. if a then
  969. game.Debris:AddItem(a, 1)
  970. end
  971. if b then
  972. game.Debris:AddItem(b, 1)
  973. end
  974. scfr = blcf
  975. else
  976. do
  977. do
  978. --[[if not scfr then
  979. scfr = blcf
  980. end--]]
  981. hitbox1.CFrame = prt10.CFrame
  982. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(3, -2.4, 0) * euler(0.1, 0, 0), 0.3)
  983. LW.C0 = clerp(LW.C0, cf(-0.2, 0.8, -0.5) * euler(3.1, -1.8, 0) * euler(0.9, 0, 0), 0.3)
  984. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, -0.8), 0.3)
  985. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 1.3), 0.3)
  986. RH.C0 = clerp(RH.C0, RHC0, 0.3)
  987. LH.C0 = clerp(LH.C0, LHC0, 0.3)
  988. -- DECOMPILER ERROR at PC438: LeaveBlock: unexpected jumping out DO_STMT
  989.  
  990. -- DECOMPILER ERROR at PC438: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  991.  
  992. -- DECOMPILER ERROR at PC438: LeaveBlock: unexpected jumping out IF_STMT
  993.  
  994. end
  995. end
  996. end
  997. end
  998. con1:disconnect()
  999. hitbox1.Parent = nil
  1000. bodvol.Parent = nil
  1001. attack = false
  1002. end
  1003.  
  1004. BinaryImpulse = function()
  1005. attack = true
  1006. if impulse == 1 then
  1007. impulse = 2
  1008. Humanoid.Jump = true
  1009. for i = 0, 1, 0.2 do
  1010. swait()
  1011. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.45)
  1012. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.45)
  1013. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0.5, 0), 0.45)
  1014. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.5, -1.5, 0) * euler(0.5, 0, 0), 0.45)
  1015. LW.C0 = clerp(LW.C0, cf(0, 0.5, -0.7) * euler(1.5, -1.5, 0) * euler(0.7, 0, 0), 0.45)
  1016. RH.C0 = clerp(RH.C0, RHC0 * euler(-0.2, 0, 0), 0.45)
  1017. LH.C0 = clerp(LH.C0, LHC0 * euler(-0.2, 0, 0), 0.45)
  1018. end
  1019. blcf = nil
  1020. scfr = nil
  1021. hitbox1.Parent = model1
  1022. hitbox1.Size = vt(1, 5, 1)
  1023. hitbox1.Transparency = 1
  1024. hitbox1.CFrame = prt10.CFrame
  1025. con1 = hitbox1.Touched:connect(function(hit)
  1026. Damagefunc(hit, 20, 30, math.random(10, 20), "Dragger", RootPart, 0.01, 1)
  1027. end
  1028. )
  1029. for i = 1, 3 do
  1030. so("http://roblox.com/asset/?id=161006212", prt10, 1, 1)
  1031. for i = 0, 1, 0.1 do
  1032. swait()
  1033. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  1034. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  1035. local h = 5
  1036. 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)
  1037. if a then
  1038. game.Debris:AddItem(a, 1)
  1039. end
  1040. if b then
  1041. game.Debris:AddItem(b, 1)
  1042. end
  1043. 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)
  1044. if a then
  1045. game.Debris:AddItem(a, 1)
  1046. end
  1047. if b then
  1048. game.Debris:AddItem(b, 1)
  1049. end
  1050. scfr = blcf
  1051. else
  1052. do
  1053. do
  1054. --[[if not scfr then
  1055. scfr = blcf
  1056. end--]]
  1057. hitbox1.CFrame = prt10.CFrame
  1058. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.5, -1.5, 0) * euler(-0.5, 0, 0), 0.3)
  1059. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.5, -1.5, 0) * euler(0.5, 0, 0), 0.3)
  1060. RootJoint.C0 = RootCF * euler(0, 0.5, 6.6 * i)
  1061. -- DECOMPILER ERROR at PC360: LeaveBlock: unexpected jumping out DO_STMT
  1062.  
  1063. -- DECOMPILER ERROR at PC360: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1064.  
  1065. -- DECOMPILER ERROR at PC360: LeaveBlock: unexpected jumping out IF_STMT
  1066.  
  1067. end
  1068. end
  1069. end
  1070. end
  1071. end
  1072. con1:disconnect()
  1073. hitbox1.Parent = nil
  1074. else
  1075. if impulse == 2 then
  1076. impulse = 3
  1077. Humanoid.Jump = true
  1078. for i = 0, 1, 0.2 do
  1079. swait()
  1080. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.45)
  1081. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.45)
  1082. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, -0.5, 0), 0.45)
  1083. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.5, -1.5, 0) * euler(0.5, 0, 0), 0.45)
  1084. LW.C0 = clerp(LW.C0, cf(0, 0.5, -0.7) * euler(1.5, -1.5, 0) * euler(0.7, 0, 0), 0.45)
  1085. RH.C0 = clerp(RH.C0, RHC0 * euler(-0.2, 0, 0), 0.45)
  1086. LH.C0 = clerp(LH.C0, LHC0 * euler(-0.2, 0, 0), 0.45)
  1087. end
  1088. blcf = nil
  1089. scfr = nil
  1090. hitbox1.Parent = model1
  1091. hitbox1.Size = vt(1, 5, 1)
  1092. hitbox1.Transparency = 1
  1093. hitbox1.CFrame = prt10.CFrame
  1094. con1 = hitbox1.Touched:connect(function(hit)
  1095. Damagefunc(hit, 20, 30, math.random(10, 20), "Dragger", RootPart, 0.01, 1)
  1096. end
  1097. )
  1098. for i = 1, 3 do
  1099. so("http://roblox.com/asset/?id=161006212", prt10, 1, 1.05)
  1100. for i = 0, 1, 0.1 do
  1101. swait()
  1102. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  1103. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  1104. local h = 5
  1105. 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)
  1106. if a then
  1107. game.Debris:AddItem(a, 1)
  1108. end
  1109. if b then
  1110. game.Debris:AddItem(b, 1)
  1111. end
  1112. 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)
  1113. if a then
  1114. game.Debris:AddItem(a, 1)
  1115. end
  1116. if b then
  1117. game.Debris:AddItem(b, 1)
  1118. end
  1119. scfr = blcf
  1120. else
  1121. do
  1122. do
  1123. --[[if not scfr then
  1124. scfr = blcf
  1125. end--]]
  1126. hitbox1.CFrame = prt10.CFrame
  1127. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.5, -1.5, 0) * euler(-0.5, 0, 0), 0.3)
  1128. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.5, -1.5, 0) * euler(0.5, 0, 0), 0.3)
  1129. RootJoint.C0 = RootCF * euler(0, -0.5, 6.6 * i)
  1130. -- DECOMPILER ERROR at PC726: LeaveBlock: unexpected jumping out DO_STMT
  1131.  
  1132. -- DECOMPILER ERROR at PC726: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1133.  
  1134. -- DECOMPILER ERROR at PC726: LeaveBlock: unexpected jumping out IF_STMT
  1135.  
  1136. end
  1137. end
  1138. end
  1139. end
  1140. end
  1141. con1:disconnect()
  1142. hitbox1.Parent = nil
  1143. else
  1144. if impulse == 3 then
  1145. impulse = 1
  1146. for i = 0, 1, 0.2 do
  1147. swait()
  1148. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, -0.785) * cf(0, 1, -0.3), 0.45)
  1149. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.4, 0, 0), 0.45)
  1150. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.45)
  1151. RW.C0 = clerp(RW.C0, cf(1, 0.8, -0.5) * euler(3, 0, -0.785), 0.45)
  1152. LW.C0 = clerp(LW.C0, cf(-1, 0.8, -0.5) * euler(3, 0, 0.785), 0.45)
  1153. RH.C0 = clerp(RH.C0, RHC0 * euler(-0.2, 0, 0), 0.45)
  1154. LH.C0 = clerp(LH.C0, LHC0 * euler(-0.2, 0, 0), 0.45)
  1155. end
  1156. Humanoid.Jump = true
  1157. blcf = nil
  1158. scfr = nil
  1159. hitbox1.Parent = model1
  1160. hitbox1.Size = vt(1, 5, 1)
  1161. hitbox1.Transparency = 1
  1162. hitbox1.CFrame = prt10.CFrame
  1163. con1 = hitbox1.Touched:connect(function(hit)
  1164. Damagefunc(hit, 25, 35, math.random(20, 30), "Dragger", RootPart, 0.01, 1)
  1165. end
  1166. )
  1167. for i = 1, 3 do
  1168. so("http://roblox.com/asset/?id=161006195", prt10, 1, 1)
  1169. for i = 0, 1, 0.1 do
  1170. swait()
  1171. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  1172. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  1173. local h = 5
  1174. 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)
  1175. if a then
  1176. game.Debris:AddItem(a, 1)
  1177. end
  1178. if b then
  1179. game.Debris:AddItem(b, 1)
  1180. end
  1181. 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)
  1182. if a then
  1183. game.Debris:AddItem(a, 1)
  1184. end
  1185. if b then
  1186. game.Debris:AddItem(b, 1)
  1187. end
  1188. scfr = blcf
  1189. else
  1190. do
  1191. do
  1192. --[[if not scfr then
  1193. scfr = blcf
  1194. end--]]
  1195. hitbox1.CFrame = prt10.CFrame
  1196. wld1.C0 = clerp(wld1.C0, euler(2, 0, -0.785) * cf(0, 1, -0.3), 0.45)
  1197. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.2, 0, 0), 0.45)
  1198. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.785), 0.3)
  1199. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.785), 0.3)
  1200. RootJoint.C0 = RootCF * euler(6.28 * i, 0, 0)
  1201. -- DECOMPILER ERROR at PC1102: LeaveBlock: unexpected jumping out DO_STMT
  1202.  
  1203. -- DECOMPILER ERROR at PC1102: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1204.  
  1205. -- DECOMPILER ERROR at PC1102: LeaveBlock: unexpected jumping out IF_STMT
  1206.  
  1207. end
  1208. end
  1209. end
  1210. end
  1211. end
  1212. con1:disconnect()
  1213. hitbox1.Parent = nil
  1214. end
  1215. end
  1216. end
  1217. attack = false
  1218. end
  1219.  
  1220. Bash = function()
  1221. attack = true
  1222. for i = 0, 1, 0.1 do
  1223. swait()
  1224. wld1.C0 = clerp(wld1.C0, euler(1.1, 0, 0) * cf(0, 1, -0.4), 0.3)
  1225. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 1) * euler(0.5, 0, 0), 0.3)
  1226. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.4), 0.3)
  1227. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.4, -1.4, 0) * euler(-0.6, 0, 0), 0.3)
  1228. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, -1, 0) * euler(0.5, 0, 0), 0.3)
  1229. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 2.5, 0), 0.3)
  1230. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1, 0), 0.3)
  1231. end
  1232. Torso.Velocity = RootPart.CFrame.lookVector * 600
  1233. so("http://roblox.com/asset/?id=2767090", Torso, 1, 0.7)
  1234. MagicWave(Color4, RootPart.CFrame * euler(1.57, 0, 0), 1, 1, 1, 1, 1, 1, 0.05)
  1235. hit = nil
  1236. for i = 1, 20 do
  1237. if hit == nil then
  1238. swait()
  1239. end
  1240. hit = rayCast(RootPart.Position, RootPart.CFrame.lookVector, 6, Character)
  1241. end
  1242. Torso.Velocity = RootPart.CFrame.lookVector * 0
  1243. Humanoid.WalkSpeed = 0
  1244. for i = 0, 1, 0.1 do
  1245. swait()
  1246. wld1.C0 = clerp(wld1.C0, euler(1.1, 0, 0) * cf(0, 1, -0.4), 0.3)
  1247. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 1.4) * euler(-0.2, 0, 0), 0.3)
  1248. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.4), 0.3)
  1249. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(3, -1.4, 0) * euler(-0.6, 0, 0), 0.3)
  1250. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.3, -1.4, 0) * euler(0.5, 0, 0), 0.3)
  1251. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  1252. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  1253. end
  1254. so("http://roblox.com/asset/?id=161006195", prt10, 1, 0.5)
  1255. blcf = nil
  1256. scfr = nil
  1257. for i = 0, 1, 0.2 do
  1258. swait()
  1259. local blcf = prt10.CFrame * CFrame.new(0, 0.5, 0)
  1260. if scfr and (prt10.Position - scfr.p).magnitude > 0.1 then
  1261. local h = 5
  1262. local a, b = Triangle(scfr * CFrame.new(0, h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p, blcf * CFrame.new(0, h / 2, 0).p)
  1263. if a then
  1264. game.Debris:AddItem(a, 1)
  1265. end
  1266. if b then
  1267. game.Debris:AddItem(b, 1)
  1268. end
  1269. 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)
  1270. if a then
  1271. game.Debris:AddItem(a, 1)
  1272. end
  1273. if b then
  1274. game.Debris:AddItem(b, 1)
  1275. end
  1276. scfr = blcf
  1277. else
  1278. do
  1279. do
  1280. --[[if not scfr then
  1281. scfr = blcf
  1282. end--]]
  1283. wld1.C0 = clerp(wld1.C0, euler(2.2, 0, 0) * cf(0, 0.8, -0.3), 0.45)
  1284. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 1.4) * euler(0.4, 0, 0), 0.45)
  1285. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.3) * euler(0, 0, -1.4), 0.45)
  1286. RW.C0 = clerp(RW.C0, cf(0.5, 0.2, -0.5) * euler(3, -1.4, 0) * euler(-2.7, 0, 0), 0.45)
  1287. LW.C0 = clerp(LW.C0, cf(-1.2, 0.1, -0.3) * euler(0, -1.4, 0) * euler(0.5, 0, 0), 0.45)
  1288. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(-1.2, 1.57, 0), 0.45)
  1289. LH.C0 = clerp(LH.C0, cf(-1.1, 0.4, -0.8) * euler(-0.05, -1.57, 0), 0.45)
  1290. -- DECOMPILER ERROR at PC630: LeaveBlock: unexpected jumping out DO_STMT
  1291.  
  1292. -- DECOMPILER ERROR at PC630: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1293.  
  1294. -- DECOMPILER ERROR at PC630: LeaveBlock: unexpected jumping out IF_STMT
  1295.  
  1296. end
  1297. end
  1298. end
  1299. end
  1300. hit, pos = rayCast(prt10.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  1301. do
  1302. if hit ~= nil then
  1303. local ref = part(3, workspace, 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
  1304. ref.Anchored = true
  1305. ref.CFrame = cf(pos)
  1306. game:GetService("Debris"):AddItem(ref, 3)
  1307. for i = 1, 10 do
  1308. Col = hit.BrickColor
  1309. local groundpart = part(3, F2, 0, 0, Col, "Ground", vt(math.random(50, 200) / 100, math.random(50, 200) / 100, math.random(50, 200) / 100))
  1310. groundpart.Anchored = true
  1311. groundpart.Material = hit.Material
  1312. groundpart.CanCollide = true
  1313. 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))
  1314. game:GetService("Debris"):AddItem(groundpart, 5)
  1315. end
  1316. so("http://roblox.com/asset/?id=157878578", ref, 0.6, 1.2)
  1317. MagicWave(hit.BrickColor, cf(pos), 1, 1, 1, 0.7, 0.7, 0.7, 0.05)
  1318. MagniDamage(ref, 10, 40, 80, math.random(100, 600), "Up")
  1319. end
  1320. swait(10)
  1321. Humanoid.WalkSpeed = 16
  1322. attack = false
  1323. end
  1324. end
  1325.  
  1326. UnleashTheDemon = function()
  1327. attack = true
  1328. so("rbxasset://sounds\\unsheath.wav", prt1, 1, 0.8)
  1329. chatServ:Chat(Head, "Were you prepared for this?", 2)
  1330. for i = 0, 1, 0.1 do
  1331. swait()
  1332. wld1.C0 = clerp(wld1.C0, euler(0.2, 0, -0.5) * cf(0, 1, 0), 0.3)
  1333. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.4, 0, -0.5), 0.3)
  1334. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.2) * euler(3.4, 0, 0), 0.3)
  1335. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  1336. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  1337. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  1338. end
  1339. wld1.Part1 = Torso
  1340. wld1.C0 = euler(3.7, 1.57, 0) * cf(-1.5, -2.3, -0.5)
  1341. for i = 0, 1, 0.1 do
  1342. swait()
  1343. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1344. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.4, 0, -0.4), 0.3)
  1345. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3, 0, 0), 0.3)
  1346. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.4, -1.57, 0) * euler(1.2, 0, 0), 0.3)
  1347. end
  1348. so("http://roblox.com/asset/?id=178452217", RightArm, 0.5, 0.4)
  1349. so("http://roblox.com/asset/?id=168586586", RightArm, 0.5, 0.6)
  1350. so("http://roblox.com/asset/?id=160740121", RightArm, 1, 0.8)
  1351. num = 0
  1352. for i = 0, 1, 0.01 do
  1353. swait()
  1354. if num >= 10 then
  1355. num = 0
  1356. MagicWave(BrickColor.new("Dark indigo"), cf(Torso.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  1357. end
  1358. for i = 1, 2 do
  1359. if math.random(1, 5) == 1 then
  1360. 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, 0.5, 0.5, 0.5, 0.05)
  1361. else
  1362. MagicBlock(BrickColor.new("Dark indigo"), 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, 0.5, 0.5, 0.5, 0.05)
  1363. end
  1364. end
  1365. num = num + 1
  1366. end
  1367. so("http://roblox.com/asset/?id=168586621", RightArm, 1, 0.5)
  1368. so("http://roblox.com/asset/?id=160867463", RightArm, 1, 0.8)
  1369. for i = 1, 4 do
  1370. MagicBlock(BrickColor.new("Dark indigo"), RightArm.CFrame * cf(0, -0.5 - math.random(0, 500) / 100, 0), 2, 2, 2, 0.5, 0.5, 0.5, 0.05)
  1371. end
  1372. MagicWave(BrickColor.new("Dark indigo"), cf(Torso.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 0.5, 0.3, 0.5, 0.01)
  1373. Mode = "Demon"
  1374. chatServ:Chat(Head, "Awaken, Demon Blade!", 2)
  1375. model2.Parent = Character
  1376. for i = 1, #DBlade do
  1377. DBlade[i].Parent = model2
  1378. DBladeWelds[i].Parent = DBlade[1]
  1379. end
  1380. for i = 0, 1, 0.1 do
  1381. swait()
  1382. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.4), 0.3)
  1383. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.4), 0.3)
  1384. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, -0.5, 1), 0.3)
  1385. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.4, 0.5, -1.3), 0.3)
  1386. end
  1387. swait(10)
  1388. attack = false
  1389. end
  1390.  
  1391. local MomentumCancel = true
  1392. chatServ = game:GetService("Chat")
  1393. local chattedAlready = false
  1394. MomentumCanelling = function()
  1395. if Humanoid.WalkSpeed + 50 < RootPart.Velocity.Magnitude and not attack and MomentumCancel then
  1396. RootPart.Velocity = Vector3.new(0, 0, 0)
  1397. if not chattedAlready then
  1398. chattedAlready = true
  1399. chatServ:Chat(Head, "Momentum Cancel!", 2)
  1400. wait(1)
  1401. chattedAlready = false
  1402. end
  1403. end
  1404. end
  1405.  
  1406. RootPart.Changed:connect(MomentumCanelling)
  1407. Torso.Changed:connect(MomentumCanelling)
  1408. Head.Changed:connect(MomentumCanelling)
  1409. RightArm.Changed:connect(MomentumCanelling)
  1410. RightLeg.Changed:connect(MomentumCanelling)
  1411. LeftArm.Changed:connect(MomentumCanelling)
  1412. LeftLeg.Changed:connect(MomentumCanelling)
  1413. Demonattackone = function()
  1414. attack = true
  1415. for i = 0, 1, 0.1 do
  1416. swait()
  1417. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.4, 0, -1), 0.3)
  1418. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.7), 0.3)
  1419. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, -0.5, 1) * euler(0.3, 0, 0.5), 0.3)
  1420. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.7, 0, -0.7), 0.3)
  1421. RH.C0 = clerp(RH.C0, cf(1, -1, -0.6) * euler(-0.3, 1.57, 0) * euler(0, 0.5, 0), 0.3)
  1422. LH.C0 = clerp(LH.C0, cf(-1, -0.3, 0) * euler(0.5, -0.8, 0) * euler(-0.5, 0, 0), 0.3)
  1423. end
  1424. hitbox2.Parent = model2
  1425. hitbox2.Size = vt(1, 6, 1)
  1426. hitbox2.Transparency = 1
  1427. hitbox2.CFrame = prtd7.CFrame
  1428. con1 = hitbox2.Touched:connect(function(hit)
  1429. Damagefunc(hit, 30, 60, math.random(1, 5), "Lifesteal", RootPart, 0.5, 1)
  1430. end
  1431. )
  1432. so("http://roblox.com/asset/?id=28144425", prtd7, 1, 0.7)
  1433. blcf = nil
  1434. scfr = nil
  1435. for i = 0, 1, 0.08 do
  1436. swait()
  1437. local blcf = prtd7.CFrame * CFrame.new(0, -0.5, 0)
  1438. if scfr and (prtd7.Position - scfr.p).magnitude > 0.1 then
  1439. local h = 5
  1440. 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)
  1441. if a then
  1442. game.Debris:AddItem(a, 1)
  1443. end
  1444. if b then
  1445. game.Debris:AddItem(b, 1)
  1446. end
  1447. 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)
  1448. if a then
  1449. game.Debris:AddItem(a, 1)
  1450. end
  1451. if b then
  1452. game.Debris:AddItem(b, 1)
  1453. end
  1454. scfr = blcf
  1455. else
  1456. do
  1457. do
  1458. --[[if not scfr then
  1459. scfr = blcf
  1460. end--]]
  1461. hitbox2.CFrame = prtd7.CFrame
  1462. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.2, 0, 1), 0.3)
  1463. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, -0.7), 0.3)
  1464. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.4, -0.5, 1) * euler(1.3, 0, -1.7), 0.3)
  1465. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.7, 0, -0.7), 0.3)
  1466. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(-0.3, 1.57, 0) * euler(0, -1, 0), 0.3)
  1467. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.3, -2.3, 0) * euler(0, 0, 0), 0.3)
  1468. -- DECOMPILER ERROR at PC420: LeaveBlock: unexpected jumping out DO_STMT
  1469.  
  1470. -- DECOMPILER ERROR at PC420: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1471.  
  1472. -- DECOMPILER ERROR at PC420: LeaveBlock: unexpected jumping out IF_STMT
  1473.  
  1474. end
  1475. end
  1476. end
  1477. end
  1478. con1:disconnect()
  1479. hitbox2.Parent = nil
  1480. attack = false
  1481. end
  1482.  
  1483. Demonattacktwo = function()
  1484. attack = true
  1485. for i = 0, 1, 0.1 do
  1486. swait()
  1487. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.1, 0, 1.2), 0.3)
  1488. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, -0.7), 0.3)
  1489. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.4, -1.2, 0.6) * euler(1.1, 0, -1.7), 0.3)
  1490. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.7, 0, -0.7), 0.3)
  1491. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(-0.1, 1.57, 0) * euler(0, -1, 0), 0.3)
  1492. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.1, -2.3, 0) * euler(0, 0, 0), 0.3)
  1493. end
  1494. hitbox2.Parent = model2
  1495. hitbox2.Size = vt(1, 6, 1)
  1496. hitbox2.Transparency = 1
  1497. hitbox2.CFrame = prtd7.CFrame
  1498. con1 = hitbox2.Touched:connect(function(hit)
  1499. Damagefunc(hit, 30, 60, math.random(1, 5), "Lifesteal", RootPart, 0.5, 1)
  1500. end
  1501. )
  1502. so("http://roblox.com/asset/?id=28144425", prtd7, 1, 0.5)
  1503. blcf = nil
  1504. scfr = nil
  1505. for i = 0, 1, 0.1 do
  1506. swait()
  1507. local blcf = prtd7.CFrame * CFrame.new(0, -0.5, 0)
  1508. if scfr and (prtd7.Position - scfr.p).magnitude > 0.1 then
  1509. local h = 5
  1510. 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)
  1511. if a then
  1512. game.Debris:AddItem(a, 1)
  1513. end
  1514. if b then
  1515. game.Debris:AddItem(b, 1)
  1516. end
  1517. 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)
  1518. if a then
  1519. game.Debris:AddItem(a, 1)
  1520. end
  1521. if b then
  1522. game.Debris:AddItem(b, 1)
  1523. end
  1524. scfr = blcf
  1525. else
  1526. do
  1527. do
  1528. --[[if not scfr then
  1529. scfr = blcf
  1530. end--]]
  1531. hitbox2.CFrame = prtd7.CFrame
  1532. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.1, 0, -0.8), 0.3)
  1533. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.7), 0.3)
  1534. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, -0.8, 0.6) * euler(0.5, 0, 0.5), 0.3)
  1535. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.7, 0, -0.7), 0.3)
  1536. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.3) * euler(-0.2, 1.57, 0), 0.3)
  1537. LH.C0 = clerp(LH.C0, cf(-1, -0.6, -0.2) * euler(0.2, -1.2, 0) * euler(-0.2, 0, 0), 0.3)
  1538. -- DECOMPILER ERROR at PC414: LeaveBlock: unexpected jumping out DO_STMT
  1539.  
  1540. -- DECOMPILER ERROR at PC414: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1541.  
  1542. -- DECOMPILER ERROR at PC414: LeaveBlock: unexpected jumping out IF_STMT
  1543.  
  1544. end
  1545. end
  1546. end
  1547. end
  1548. con1:disconnect()
  1549. hitbox2.Parent = nil
  1550. attack = false
  1551. end
  1552.  
  1553. Demonattackthree = function()
  1554. attack = true
  1555. for i = 0, 1, 0.1 do
  1556. swait()
  1557. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.1, 0, -0.2), 0.3)
  1558. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.4), 0.3)
  1559. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.9, -1.8, 0) * euler(0.5, 0, 0), 0.3)
  1560. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.3)
  1561. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(-0.2, 1.57, 0), 0.3)
  1562. LH.C0 = clerp(LH.C0, cf(-1, -0.7, 0) * euler(0.2, -1.2, 0) * euler(-0.2, 0, 0), 0.3)
  1563. end
  1564. hitbox2.Parent = model2
  1565. hitbox2.Size = vt(1, 6, 1)
  1566. hitbox2.Transparency = 1
  1567. hitbox2.CFrame = prtd7.CFrame
  1568. con1 = hitbox2.Touched:connect(function(hit)
  1569. Damagefunc(hit, 30, 60, math.random(1, 5), "Lifesteal", RootPart, 0.5, 1)
  1570. end
  1571. )
  1572. so("http://roblox.com/asset/?id=28144425", prtd7, 1, 0.6)
  1573. blcf = nil
  1574. scfr = nil
  1575. for i = 0, 1, 0.15 do
  1576. swait()
  1577. local blcf = prtd7.CFrame * CFrame.new(0, -0.5, 0)
  1578. if scfr and (prtd7.Position - scfr.p).magnitude > 0.1 then
  1579. local h = 5
  1580. 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)
  1581. if a then
  1582. game.Debris:AddItem(a, 1)
  1583. end
  1584. if b then
  1585. game.Debris:AddItem(b, 1)
  1586. end
  1587. 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)
  1588. if a then
  1589. game.Debris:AddItem(a, 1)
  1590. end
  1591. if b then
  1592. game.Debris:AddItem(b, 1)
  1593. end
  1594. scfr = blcf
  1595. else
  1596. do
  1597. --[[if not scfr then
  1598. scfr = blcf
  1599. end--]]
  1600. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.8) * euler(0.5, 0, 0.6), 0.4)
  1601. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.1, 0, -0.6), 0.4)
  1602. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.55, -1.5, 0) * euler(0.3, 0, 0), 0.4)
  1603. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.4)
  1604. RH.C0 = clerp(RH.C0, cf(1, -0.1, -0.4) * euler(0.4, 1.57, 0) * euler(-0.2, 0, 0), 0.4)
  1605. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(-0.2, -1.2, 0) * euler(-0.2, 0, 0), 0.4)
  1606. if i == 0.6 then
  1607. hit, pos = rayCast(prtd8.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1608. if hit ~= nil then
  1609. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1610. ref.Anchored = true
  1611. ref.CFrame = cf(pos)
  1612. game:GetService("Debris"):AddItem(ref, 3)
  1613. for i = 1, 5 do
  1614. Col = hit.BrickColor
  1615. local groundpart = part(3, F2, 0, 0, Col, "Ground", vt(math.random(50, 200) / 100, math.random(50, 200) / 100, math.random(50, 200) / 100))
  1616. groundpart.Anchored = true
  1617. groundpart.Material = hit.Material
  1618. groundpart.CanCollide = true
  1619. 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))
  1620. game:GetService("Debris"):AddItem(groundpart, 3)
  1621. end
  1622. so("http://roblox.com/asset/?id=157878578", ref, 0.6, 1.5)
  1623. MagicWave(hit.BrickColor, cf(pos), 1, 1, 1, 0.7, 0.7, 0.7, 0.05)
  1624. MagniDamage(ref, 10, 10, 20, math.random(10, 20), "Normal")
  1625. end
  1626. end
  1627. do
  1628. -- DECOMPILER ERROR at PC583: LeaveBlock: unexpected jumping out DO_STMT
  1629.  
  1630. -- DECOMPILER ERROR at PC583: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1631.  
  1632. -- DECOMPILER ERROR at PC583: LeaveBlock: unexpected jumping out IF_STMT
  1633.  
  1634. end
  1635. end
  1636. end
  1637. end
  1638. con1:disconnect()
  1639. hitbox2.Parent = nil
  1640. swait(10)
  1641. attack = false
  1642. end
  1643.  
  1644. LetItBuild = function()
  1645. attack = true
  1646. for i = 0, 1, 0.1 do
  1647. swait()
  1648. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.8) * euler(0.2, 0, -1), 0.3)
  1649. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 1), 0.3)
  1650. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, -0.5, 1.5) * euler(0.6, 0, 0.4), 0.3)
  1651. LW.C0 = clerp(LW.C0, cf(0, 0.5, -0.5) * euler(1.57, -1.57, 0) * euler(1.5, 0, 0), 0.3)
  1652. RH.C0 = clerp(RH.C0, cf(1, -0.6, -0.5) * euler(-0.2, 2, 0) * euler(0, 0, 0), 0.3)
  1653. LH.C0 = clerp(LH.C0, cf(-1, -0.2, 0) * euler(0.5, -0.6, 0) * euler(-0.4, 0, 0), 0.3)
  1654. end
  1655. local num = 0
  1656. local magik = 0
  1657. local num2 = 0
  1658. local dammulti = 1
  1659. chatServ:Chat(Head, "Devil...", 2)
  1660. while holdx == true do
  1661. swait()
  1662. if magik < 25 and num >= 10 then
  1663. pos1 = Torso.Position + vt(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100)
  1664. pos2 = prtd8.Position
  1665. Lightning(pos1, pos2, 5, 3, "Dark indigo", 0.1, 0.5, 0.5)
  1666. MagicCircle(BrickColor.new("Dark indigo"), cf(pos1), 5, 5, 5, 1, 1, 1, 0.1)
  1667. MagicBlood(BrickColor.new("Dark indigo"), Torso.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.1, 0.1, 0.1, 0.1, 2, 0.1, 0.05)
  1668. so("http://www.roblox.com/asset/?id=178452221", Torso, 0.1, 1.5)
  1669. magik = magik + 3
  1670. num = 0
  1671. end
  1672. Humanoid.MaxHealth = Humanoid.MaxHealth + 20
  1673. dammulti = dammulti + (2 + Humanoid.MaxHealth / Humanoid.Health)
  1674. num = num + 1
  1675. num2 = num2 + (magik)
  1676. Humanoid.Health = Humanoid.Health - 0.08
  1677. if num2 >= 50 then
  1678. MagicBlood(BrickColor.new("Dark indigo"), cf(prtd8.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.1, 0.1, 0.1, 0.1, 1, 0.1, 0.1)
  1679. num2 = 0
  1680. end
  1681. end
  1682. chatServ:Chat(Head, "Cutter!", 2)
  1683. RootPart.Velocity = RootPart.CFrame.lookVector * (6 * (magik))
  1684. blcf = nil
  1685. scfr = nil
  1686. hitbox2.Parent = model2
  1687. hitbox2.Size = vt(1, 6, 1)
  1688. hitbox2.Transparency = 1
  1689. hitbox2.CFrame = prtd7.CFrame
  1690. con1 = hitbox2.Touched:connect(function(hit)
  1691. Damagefunc(hit, magik * 2221 * dammulti, magik * 4441 * dammulti, 1, "DevilStyle", RootPart, 0.2 / (dammulti * magik), 1)
  1692. end
  1693. )
  1694. for i = 1, 3 do
  1695. so("http://roblox.com/asset/?id=28144425", prtd7, 1, 1)
  1696. for i = 0, 1, 0.1 do
  1697. swait()
  1698. hitbox2.CFrame = prtd7.CFrame
  1699. local blcf = prtd7.CFrame * CFrame.new(0, -0.5, 0)
  1700. if scfr and (prtd7.Position - scfr.p).magnitude > 0.1 then
  1701. local h = 5
  1702. 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)
  1703. if a then
  1704. game.Debris:AddItem(a, 1)
  1705. end
  1706. if b then
  1707. game.Debris:AddItem(b, 1)
  1708. end
  1709. 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)
  1710. if a then
  1711. game.Debris:AddItem(a, 1)
  1712. end
  1713. if b then
  1714. game.Debris:AddItem(b, 1)
  1715. end
  1716. scfr = blcf
  1717. else
  1718. do
  1719. do
  1720. --[[if not scfr then
  1721. scfr = blcf
  1722. end--]]
  1723. RootJoint.C0 = RootCF * cf(0, 0, -0.8) * euler(0, 0, 6.28 * i) * euler(0.2, 0, -1)
  1724. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, -0.5, 1.5) * euler(0.4, 0, 0), 0.3)
  1725. LW.C0 = clerp(LW.C0, cf(0, 0.5, -0.5) * euler(1.57, -1.57, 0) * euler(1.5, 0, 0), 0.3)
  1726. RH.C0 = clerp(RH.C0, cf(1, -0.6, -0.5) * euler(-0.2, 2, 0) * euler(0, 0, 0), 0.3)
  1727. LH.C0 = clerp(LH.C0, cf(-1, -0.2, 0) * euler(0.5, -0.6, 0) * euler(-0.4, 0, 0), 0.3)
  1728. -- DECOMPILER ERROR at PC607: LeaveBlock: unexpected jumping out DO_STMT
  1729.  
  1730. -- DECOMPILER ERROR at PC607: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1731.  
  1732. -- DECOMPILER ERROR at PC607: LeaveBlock: unexpected jumping out IF_STMT
  1733.  
  1734. end
  1735. end
  1736. end
  1737. end
  1738. end
  1739. con1:disconnect()
  1740. hitbox2.Parent = nil
  1741. attack = false
  1742. end
  1743.  
  1744. YourMoveCreep = function()
  1745. attack = true
  1746. local pers = nil
  1747. for i = 0, 1, 0.1 do
  1748. swait()
  1749. cost = Humanoid.Health * 0.01
  1750. Humanoid:TakeDamage(cost)
  1751. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.7) * euler(0.2, 0, -1.3), 0.3)
  1752. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0.2, 1.3), 0.3)
  1753. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.8, -0.5, 1) * euler(0.5, 0, 0), 0.3)
  1754. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, -0.4, 0) * euler(0, 0, -1.7), 0.3)
  1755. RH.C0 = clerp(RH.C0, cf(0.1, -1, -0.9) * euler(-0.2, 1.57, 0) * euler(-0.7, 1.57, 0), 0.3)
  1756. LH.C0 = clerp(LH.C0, cf(-0.8, -0.4, 0) * euler(0.2, -1.2, 0) * euler(-0.2, 1.4, 0), 0.3)
  1757. end
  1758. local blockprt = part(3, Character, 0, 1, BrickColor.new("Dark indigo"), "Block", vt(6, 0.1, 6))
  1759. chatServ:Chat(Head, "Your move, creep.", 2)
  1760. blockprt.Anchored = false
  1761. blockprt.CanCollide = false
  1762. blockprt.CFrame = LeftArm.CFrame * cf(0, -1, 0)
  1763. local Blockweld = Instance.new("Weld", blockprt)
  1764. Blockweld.Part0 = LeftArm
  1765. Blockweld.Part1 = blockprt
  1766. Blockweld.C0 = CFrame.new(0, -1, 0)
  1767. conbl = blockprt.Touched:connect(function(hit)
  1768. end
  1769. )
  1770. local extradam = 1
  1771. blockprt.Touched:connect(function(hit)
  1772. local Tor1 = hit.Parent.Parent:findFirstChild("Torso")
  1773. local Tor2 = hit.Parent:findFirstChild("Torso")
  1774. local FindAHumanoid = function(parent)
  1775. local H = nil
  1776. for _,HUM in pairs(parent:GetChildren()) do
  1777. if HUM:IsA("Humanoid") then
  1778. H = HUM
  1779. end
  1780. end
  1781. return H
  1782. end
  1783.  
  1784. if Tor1 and guard then
  1785. if Tor1.Parent == Character then
  1786. local HUM = FindAHumanoid(Tor1.Parent)
  1787. local DAM = math.random(10, 20) * extradam
  1788. if HUM then
  1789. if HUM.MaxHealth > 10000000 then
  1790. HUM.MaxHealth = 100
  1791. end
  1792. showDamage(Tor1.Parent, DAM, 0.5, BrickColor.new("Dark indigo"))
  1793. HUM.Health = HUM.Health - DAM
  1794. HUM:ChangeState(Enum.HumanoidStateType.FallingDown)
  1795. chatServ:Chat(Head, "Ha!", 2)
  1796. end
  1797. guard = false
  1798. local BBlast = Instance.new("Part", F2)
  1799. BBlast.BrickColor = BrickColor.new("Dark indigo")
  1800. BBlast.Material = "Neon"
  1801. BBlast.Transparency = 0.5
  1802. local OverallSize = Tor1.Size.X * 4
  1803. BBlast.Size = Vector3.new(OverallSize, OverallSize, OverallSize)
  1804. BBlast.CFrame = Tor1.CFrame
  1805. BBlast.Anchored = true
  1806. BBlast.CanCollide = false
  1807. BBlast.Locked = true
  1808. local BMesh = Instance.new("SpecialMesh", BBlast)
  1809. BMesh.MeshType = "Sphere"
  1810. do
  1811. local BSound = Instance.new("Sound", BBlast)
  1812. BSound.Volume = 10
  1813. BSound.SoundId = "rbxassetid://153832523"
  1814. BSound.Pitch = 0.8
  1815. BSound:Play()
  1816. MagniDamage(BBlast, OverallSize * 2, DAM / 2 - 0.01, DAM / 2, 1, "Breaker")
  1817. for I = 0.5, 1, 0.05 do
  1818. wait()
  1819. BMesh.Scale = Vector3.new(I * 2, I * 2, I * 2)
  1820. BBlast.Transparency = I
  1821. end
  1822. game:GetService("Debris"):AddItem(BBlast, 0)
  1823. game:GetService("Debris"):AddItem(BSound, 0)
  1824. if Tor2 and guard then
  1825. if Tor2.Parent == Character then
  1826. local HUM = FindAHumanoid(Tor2.Parent)
  1827. local DAM = math.random(10, 20) * extradam
  1828. if HUM then
  1829. if HUM.MaxHealth > 10000000 then
  1830. HUM.MaxHealth = 100
  1831. wait()
  1832. end
  1833. showDamage(Tor2.Parent, DAM, 0.5, BrickColor.new("Dark indigo"))
  1834. HUM.Health = HUM.Health - DAM
  1835. HUM:ChangeState(Enum.HumanoidStateType.Ragdoll)
  1836. chatServ:Chat(Head, "Ha!", 2)
  1837. end
  1838. guard = false
  1839. local BBlast = Instance.new("Part", F2)
  1840. BBlast.BrickColor = BrickColor.new("Dark indigo")
  1841. BBlast.Material = "Neon"
  1842. BBlast.Transparency = 0.5
  1843. local OverallSize = Tor2.Size.X * 4
  1844. BBlast.Size = Vector3.new(OverallSize, OverallSize, OverallSize)
  1845. BBlast.CFrame = Tor2.CFrame
  1846. BBlast.Anchored = true
  1847. BBlast.CanCollide = false
  1848. BBlast.Locked = true
  1849. local BMesh = Instance.new("SpecialMesh", BBlast)
  1850. BMesh.MeshType = "Sphere"
  1851. local BSound = Instance.new("Sound", BBlast)
  1852. BSound.Volume = 10
  1853. BSound.SoundId = "rbxassetid://153832523"
  1854. BSound.Pitch = 0.8
  1855. BSound:Play()
  1856. MagniDamage(BBlast, OverallSize * 2, DAM / 2 - 0.01, DAM / 2, 1, "Breaker")
  1857. for I = 0.5, 1, 0.05 do
  1858. wait()
  1859. BMesh.Scale = Vector3.new(I * 2, I * 2, I * 2)
  1860. BBlast.Transparency = I
  1861. end
  1862. game:GetService("Debris"):AddItem(BBlast, 0)
  1863. game:GetService("Debris"):AddItem(BSound, 0)
  1864. end
  1865. end
  1866. end
  1867. end
  1868. end
  1869. end
  1870. )
  1871. num = 0
  1872. while guard == true do
  1873. swait()
  1874. extradam = extradam + 0.5
  1875. if num > 10 then
  1876. num = 0
  1877. MagicBlock(BrickColor.new("Dark indigo"), LeftArm.CFrame * cf(0, -1, 0), 1, 1, 1, 0.7, 0.7, 0.7, 0.05)
  1878. MagicCircle(BrickColor.new("Dark indigo"), LeftArm.CFrame * cf(0, -1, 0), 1, 0.1, 1, 6, 0, 6, 0.1)
  1879. end
  1880. num = num + 1
  1881. end
  1882. conbl:disconnect()
  1883. game:GetService("Debris"):AddItem(blockprt, 0)
  1884. print(pers)
  1885. if pers ~= nil then
  1886. for i = 0, 1, 0.1 do
  1887. swait()
  1888. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.7) * euler(-0.2, 0, 1.6), 0.3)
  1889. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, -0.2, -1), 0.3)
  1890. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.8, -1, 1) * euler(1, 0, 0), 0.3)
  1891. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5), 0.3)
  1892. RH.C0 = clerp(RH.C0, cf(0.1, -1, -0.9) * euler(-0.2, 1.57, 0) * euler(-0.7, -1.57, 0), 0.3)
  1893. LH.C0 = clerp(LH.C0, cf(-0.8, -0.4, 0) * euler(0.2, -1.2, 0) * euler(-0.2, 1.4, 0), 0.3)
  1894. end
  1895. swait(200)
  1896. end
  1897. attack = false
  1898. end
  1899.  
  1900. CreateWeaponPart = function(className, parent, Brickcolor, Material, Transparency, Reflectance, Name, Size, Position, Rotation, MeshClass, MeshScale, MeshId, MeshType)
  1901. local Part = Instance.new(className, parent)
  1902. Part.BrickColor = BrickColor.new(Brickcolor)
  1903. Part.Transparency = Transparency
  1904. Part.Reflectance = Reflectance
  1905. Part.Material = Material
  1906. Part.Name = Name
  1907. Part.Anchored = true
  1908. Part.CanCollide = false
  1909. Part.Locked = true
  1910. Part.Size = Size
  1911. Part.Position = Position
  1912. Part.Rotation = Rotation
  1913. local Mesh = Instance.new(MeshClass, Part)
  1914. Mesh.Scale = MeshScale
  1915. if MeshClass == "SpecialMesh" then
  1916. Mesh.MeshId = MeshId
  1917. Mesh.MeshType = MeshType
  1918. end
  1919. return Part
  1920. end
  1921.  
  1922. local Demon_Cannon = Instance.new("Model")
  1923. Demon_Cannon.Name = "Demon Cannon"
  1924. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1925. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1926. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1927. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1928. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 2.982, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1929. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.418, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1930. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.309, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1931. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.091, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1932. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1933. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1934. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(1.2, 0.436, 0.545), Vector3.new(3.1, 3.2, -267.264), Vector3.new(-90, 90, 0), "SpecialMesh", Vector3.new(1, 1, 1), "", "Torso")
  1935. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(0.545, 1.2, 0.2), Vector3.new(3.1, 3.2, -266.991), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1, 1, 0.545), _, _)
  1936. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBody", Vector3.new(0.545, 0.545, 2.509), Vector3.new(3.1, 3.2, -265.682), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1937. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 3.473, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1, 1, 1), _, _)
  1938. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 2.927, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1, 1, 1), _, _)
  1939. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  1940. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  1941. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1942. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1943. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1944. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1945. local CannonMain = CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Main", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, 0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1946. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole1", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 3.473, -264.436), Vector3.new(-180, 0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1947. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole2", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 2.927, -264.436), Vector3.new(-180, 0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1948. local CHole1 = Demon_Cannon:WaitForChild("Blaster Hole1")
  1949. local CHole2 = Demon_Cannon:WaitForChild("Blaster Hole2")
  1950. for _,Part in pairs(Demon_Cannon:GetChildren()) do
  1951. if Part:IsA("Part") then
  1952. if Part.Name ~= "Main" then
  1953. local x = CannonMain
  1954. local y = Part
  1955. local W = Instance.new("Weld")
  1956. W.Part0 = x
  1957. W.Part1 = y
  1958. local CJ = CFrame.new(x.Position)
  1959. local C0 = x.CFrame:inverse() * CJ
  1960. local C1 = y.CFrame:inverse() * CJ
  1961. W.C0 = C0
  1962. W.C1 = C1
  1963. W.Parent = x
  1964. x.Anchored = false
  1965. y.Anchored = false
  1966. end
  1967. do
  1968. do
  1969. Part.Anchored = false
  1970. Part.TopSurface = "SmoothNoOutlines"
  1971. Part.BottomSurface = "SmoothNoOutlines"
  1972. Part.LeftSurface = "SmoothNoOutlines"
  1973. Part.RightSurface = "SmoothNoOutlines"
  1974. Part.FrontSurface = "SmoothNoOutlines"
  1975. Part.BackSurface = "SmoothNoOutlines"
  1976. -- DECOMPILER ERROR at PC2774: LeaveBlock: unexpected jumping out DO_STMT
  1977.  
  1978. -- DECOMPILER ERROR at PC2774: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1979.  
  1980. -- DECOMPILER ERROR at PC2774: LeaveBlock: unexpected jumping out IF_STMT
  1981.  
  1982. end
  1983. end
  1984. end
  1985. end
  1986. CannonMain.Anchored = true
  1987. local CM2 = CreateWeaponPart("Part", Character, "Really black", "SmoothPlastic", 1, 0, "Main2", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, 0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1988. CM2.Anchored = false
  1989. local CMW1 = Instance.new("Weld", CM2)
  1990. CMW1.Part0 = RootPart
  1991. CMW1.Part1 = CM2
  1992. CMW1.C0 = CFrame.new(0, 3, 0)
  1993. local CannonWeld = Instance.new("Weld", CM2)
  1994. local CPos = Instance.new("BodyPosition")
  1995. local CGyro = Instance.new("BodyGyro")
  1996. local DCOn = false
  1997. local TCtrl = false
  1998. local CanUseCannon = false
  1999. local Firing = false
  2000. local C = 1
  2001. DemonCannon = function()
  2002. attack = true
  2003. chatServ:Chat(Head, "Behold..", 2)
  2004. for i = 0, 10 do
  2005. swait()
  2006. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.7) * euler(0.2, 0, -1.3), 0.3)
  2007. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0.2, 1.3), 0.3)
  2008. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.8, -0.5, 1) * euler(0.5, 0, 0), 0.3)
  2009. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, -0.4, 0) * euler(0, 0, -1.7), 0.3)
  2010. RH.C0 = clerp(RH.C0, cf(0.1, -1, -0.9) * euler(-0.2, 1.57, 0) * euler(-0.7, 1.57, 0), 0.3)
  2011. LH.C0 = clerp(LH.C0, cf(-0.8, -0.4, 0) * euler(0.2, -1.2, 0) * euler(-0.2, 1.4, 0), 0.3)
  2012. end
  2013. wait(1)
  2014. Humanoid.WalkSpeed = 8
  2015. for i = 0, 10 do
  2016. swait()
  2017. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.7) * euler(0.2, 0, -1.3), 0.3)
  2018. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, -0.4, 1.3), 0.3)
  2019. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.8, -0.5, 1) * euler(0.5, 0, 0), 0.3)
  2020. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, -0.4, 0) * euler(0, 0, -2.6), 0.3)
  2021. RH.C0 = clerp(RH.C0, cf(0.1, -1, -0.9) * euler(-0.2, 1.57, 0) * euler(-0.7, 1.57, 0), 0.3)
  2022. LH.C0 = clerp(LH.C0, cf(-0.8, -0.4, 0) * euler(0.2, -1.2, 0) * euler(-0.2, 1.4, 0), 0.3)
  2023. end
  2024. so("http://roblox.com/asset/?id=178452217", CM2, 1, 0.4)
  2025. for i = 0, 1, 0.01 do
  2026. swait()
  2027. for i = 1, 4 do
  2028. if math.random(1, 4) == 1 then
  2029. MagicBlock(BrickColor.new("Really black"), CM2.CFrame * cf(math.random(-100, 100) / 100, -math.random(-100, 100) / 100, math.random(-300, 300) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  2030. else
  2031. MagicBlock(BrickColor.new("Dark indigo"), CM2.CFrame * cf(math.random(-100, 100) / 100, -math.random(-100, 100) / 100, math.random(-300, 300) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  2032. end
  2033. end
  2034. num = num + 1
  2035. end
  2036. so("http://roblox.com/asset/?id=168586621", RightArm, 1, 0.5)
  2037. local Boo = Instance.new("Part", F2)
  2038. Boo.BrickColor = BrickColor.new("Dark indigo")
  2039. Boo.Transparency = 0.5
  2040. Boo.Material = "Neon"
  2041. Boo.Anchored = true
  2042. Boo.CanCollide = false
  2043. Boo.CFrame = CM2.CFrame
  2044. Boo.Size = Vector3.new(3, 3, 3)
  2045. local BooM = Instance.new("SpecialMesh", Boo)
  2046. BooM.MeshType = "Sphere"
  2047. local nuM = 0
  2048. chatServ:Chat(Head, "The Demon Cannon!", 2)
  2049. Humanoid.WalkSpeed = 16
  2050. for i = 1, 4, 0.1 do
  2051. wait()
  2052. BooM.Scale = Vector3.new(i, i, i)
  2053. Boo.Transparency = 0.5 + i / 8
  2054. if nuM ~= 1 then
  2055. Demon_Cannon.Parent = Character
  2056. CannonWeld = Instance.new("Weld", CM2)
  2057. CannonWeld.Part0 = CM2
  2058. CannonWeld.Part1 = CannonMain
  2059. CannonMain.Anchored = false
  2060. nuM = 1
  2061. end
  2062. end
  2063. for i = 0, 1, 0.1 do
  2064. wait()
  2065. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.7) * euler(-0.2, 0, 1.6), 0.3)
  2066. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, -0.2, -1), 0.3)
  2067. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.8, -1, 1) * euler(1, 0, 0), 0.3)
  2068. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5), 0.3)
  2069. RH.C0 = clerp(RH.C0, cf(0.1, -1, -0.9) * euler(-0.2, 1.57, 0) * euler(-0.7, -1.57, 0), 0.3)
  2070. LH.C0 = clerp(LH.C0, cf(-0.8, -0.4, 0) * euler(0.2, -1.2, 0) * euler(-0.2, 1.4, 0), 0.3)
  2071. end
  2072. game:GetService("Debris"):AddItem(Boo, 0)
  2073. CanUseCannon = true
  2074. CannonWeld.Part0 = nil
  2075. CannonWeld.Part1 = nil
  2076. CPos.Parent = CannonMain
  2077. CPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  2078. CGyro.Parent = CannonMain
  2079. CGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  2080. attack = false
  2081. end
  2082.  
  2083. HideDemonCannon = function()
  2084. attack = true
  2085. CanUseCannon = false
  2086. CPos.Parent = nil
  2087. CPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  2088. CGyro.Parent = nil
  2089. CGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  2090. CannonWeld = Instance.new("Weld", CM2)
  2091. CannonWeld.Part0 = CM2
  2092. CannonWeld.Part1 = CannonMain
  2093. so("http://roblox.com/asset/?id=178452217", CM2, 1, 0.4)
  2094. for i = 0, 1, 0.01 do
  2095. swait()
  2096. for i = 1, 4 do
  2097. if math.random(1, 4) == 1 then
  2098. MagicBlock(BrickColor.new("Really black"), CM2.CFrame * cf(math.random(-100, 100) / 100, -math.random(-100, 100) / 100, math.random(-300, 300) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  2099. else
  2100. MagicBlock(BrickColor.new("Dark indigo"), CM2.CFrame * cf(math.random(-100, 100) / 100, -math.random(-100, 100) / 100, math.random(-300, 300) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  2101. end
  2102. end
  2103. num = num + 1
  2104. end
  2105. CannonMain.Anchored = true
  2106. Demon_Cannon.Parent = nil
  2107. CannonWeld.Part0 = nil
  2108. CannonWeld.Part1 = nil
  2109. game:GetService("Debris"):AddItem(CannonWeld, 0)
  2110. attack = false
  2111. end
  2112.  
  2113. TimeControl = function()
  2114. print("hahaha")
  2115. attack = true
  2116. for i = 0, 1, 0.1 do
  2117. wait()
  2118. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(math.rad(20), 0, math.rad(-30)), 0.3)
  2119. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, math.rad(30)), 0.3)
  2120. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(math.rad(-50), math.rad(0), math.rad(60)) * euler(0, math.rad(-120), 0), 0.3)
  2121. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(math.rad(110), math.rad(-10), math.rad(-30)), 0.3)
  2122. RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.85) * euler(0, math.rad(100), math.rad(-30)) * euler(0, 0, 0), 0.3)
  2123. LH.C0 = clerp(LH.C0, cf(-1, -0.45, -0.35) * euler(0, math.rad(-60), math.rad(-20)) * euler(0, 0, 0), 0.3)
  2124. end
  2125. local EmeraldWeld = Instance.new("Motor", LeftArm)
  2126. local Chaos_Emerald = Instance.new("Part", F2)
  2127. Chaos_Emerald.BrickColor = BrickColor.new("Dark indigo")
  2128. Chaos_Emerald.Material = "SmoothPlastic"
  2129. Chaos_Emerald.Reflectance = 0.3
  2130. Chaos_Emerald.Transparency = 1
  2131. Chaos_Emerald.Name = "Chaos Emerald"
  2132. Chaos_Emerald.Anchored = false
  2133. Chaos_Emerald.CanCollide = false
  2134. Chaos_Emerald.Locked = true
  2135. Chaos_Emerald.Size = Vector3.new(1, 0.4, 1)
  2136. local CE_Mesh = Instance.new("SpecialMesh", Chaos_Emerald)
  2137. CE_Mesh.MeshId = "http://www.roblox.com/asset?id=160003363"
  2138. CE_Mesh.Scale = Vector3.new(2, 1, 2)
  2139. local CE_Light = Instance.new("PointLight", Chaos_Emerald)
  2140. CE_Light.Brightness = 100
  2141. CE_Light.Color = Color3.new(0.33333333333333, 0, 0.49803921568627)
  2142. CE_Light.Range = 8
  2143. CE_Light.Shadows = true
  2144. CE_Light.Enabled = false
  2145. local transPoints = {NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 1, 0)}
  2146. local ETransparency = NumberSequence.new(transPoints)
  2147. local CE_PE = Instance.new("ParticleEmitter", Chaos_Emerald)
  2148. CE_PE.Color = ColorSequence.new(Chaos_Emerald.BrickColor.Color)
  2149. CE_PE.LightEmission = 1
  2150. CE_PE.Size = NumberSequence.new(0.4)
  2151. CE_PE.Transparency = ETransparency
  2152. CE_PE.EmissionDirection = "Top"
  2153. CE_PE.LockedToPart = true
  2154. CE_PE.VelocityInheritance = 1
  2155. CE_PE.Rate = 50
  2156. CE_PE.Lifetime = NumberRange.new(0.3, 0.5)
  2157. CE_PE.RotSpeed = NumberRange.new(100, 300)
  2158. CE_PE.Speed = NumberRange.new(2)
  2159. CE_PE.VelocitySpread = 100
  2160. CE_PE.Enabled = false
  2161. EmeraldWeld.Part0 = LeftArm
  2162. EmeraldWeld.Part1 = Chaos_Emerald
  2163. EmeraldWeld.DesiredAngle = 1e+061
  2164. EmeraldWeld.MaxVelocity = math.rad(5)
  2165. EmeraldWeld.C0 = CFrame.new(0, -6, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-180), 0, 0)
  2166. EmeraldWeld.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  2167. so("http://roblox.com/asset/?id=178452217", CM2, 1, 0.4)
  2168. for i = 0, 1, 0.01 do
  2169. swait()
  2170. for i = 1, 6 do
  2171. if math.random(1, 4) == 1 then
  2172. MagicBlock(BrickColor.new("Really black"), Chaos_Emerald.CFrame * cf(math.random(-100, 100) / 100, -math.random(-100, 100) / 100, math.random(-100, 100) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  2173. else
  2174. MagicBlock(BrickColor.new("Dark indigo"), Chaos_Emerald.CFrame * cf(math.random(-100, 100) / 100, -math.random(-100, 100) / 100, math.random(-100, 100) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  2175. end
  2176. end
  2177. num = num + 1
  2178. end
  2179. Chaos_Emerald.Transparency = 0.3
  2180. CE_PE.Enabled = true
  2181. CE_Light.Enabled = true
  2182. Humanoid.WalkSpeed = 0
  2183. wait(1)
  2184. for i = 0, 2.25, 0.1 do
  2185. wait()
  2186. EmeraldWeld.C0 = clerp(EmeraldWeld.C0, cf(0, -0.5, 0) * euler(math.rad(-180), 0, 0), 0.1)
  2187. end
  2188. EmeraldWeld.MaxVelocity = 0
  2189. so("http://roblox.com/asset/?id=227194112", LeftArm, 1, 1)
  2190. for i = 0, 1, 0.1 do
  2191. wait()
  2192. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, math.rad(-30)), 0.3)
  2193. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, math.rad(30)), 0.3)
  2194. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(math.rad(-50), math.rad(0), math.rad(60)) * euler(0, math.rad(-160), 0), 0.3)
  2195. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -1) * euler(math.rad(90), 0, math.rad(80)), 0.3)
  2196. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, math.rad(90), 0), 0.3)
  2197. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, math.rad(-90), 0), 0.3)
  2198. end
  2199. for i = 0, 1, 0.1 do
  2200. wait()
  2201. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  2202. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(math.rad(-20), 0, 0), 0.3)
  2203. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(math.rad(0), math.rad(0), math.rad(60)) * euler(0, math.rad(-90), 0), 0.3)
  2204. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(math.rad(150), 0, 0), 0.3)
  2205. end
  2206. chatServ:Chat(Head, "Behold, my power!", 2)
  2207. EmeraldWeld.MaxVelocity = math.rad(5)
  2208. for i = 0, 1, 0.1 do
  2209. wait()
  2210. EmeraldWeld.C0 = clerp(EmeraldWeld.C0, cf(0, -3, -1.1) * euler(math.rad(-240), 0, 0), 0.3)
  2211. end
  2212. local Chaos_Emerald2 = Chaos_Emerald:Clone()
  2213. Chaos_Emerald2.Parent = F2
  2214. Chaos_Emerald2.Anchored = false
  2215. for _,k in pairs(Chaos_Emerald2:GetChildren()) do
  2216. if k:IsA("PointLight") or k:IsA("ParticleEmitter") then
  2217. game:GetService("Debris"):AddItem(k, 0)
  2218. end
  2219. end
  2220. Chaos_Emerald2.Transparency = 0.5
  2221. local EmeraldWeld2 = Instance.new("Weld", Chaos_Emerald)
  2222. EmeraldWeld2.Part0 = Chaos_Emerald
  2223. EmeraldWeld2.Part1 = Chaos_Emerald2
  2224. EmeraldWeld2.C0 = CFrame.new(0, 0, 0)
  2225. local CE2_Mesh = Chaos_Emerald2:WaitForChild("Mesh")
  2226. CE2_Mesh.Scale = Vector3.new(0, 0, 0)
  2227. local EFlash = function()
  2228. for t = 0, 2, 0.1 do
  2229. wait()
  2230. CE2_Mesh.Scale = Vector3.new(t * 4, t * 1.2, t * 4)
  2231. Chaos_Emerald2.Transparency = 0.5 + t / 4
  2232. end
  2233. end
  2234.  
  2235. for i = 0, 5 do
  2236. EFlash()
  2237. wait(0.1)
  2238. end
  2239. chatServ:Chat(Head, "Time control!", 2)
  2240. local TPlayers = {}
  2241. local THumanoids = {}
  2242. local RecentBrightness = game.Lighting.Brightness
  2243. local RecentOutDoorAmbient = game.Lighting.OutdoorAmbient
  2244. local RecentTimeOfDay = game.Lighting.TimeOfDay
  2245. local RecentFogEnd = game.Lighting.FogEnd
  2246. local RecentFogColor = game.Lighting.FogColor
  2247. local TBlast, TBMesh = Instance.new("Part", F2), Instance.new("SpecialMesh")
  2248. TBlast.BrickColor = BrickColor.new("Dark indigo")
  2249. TBlast.Transparency = 1
  2250. TBlast.Anchored = true
  2251. TBlast.CanCollide = false
  2252. TBlast.CFrame = RootPart.CFrame
  2253. TBlast.Size = Vector3.new(2, 2, 2)
  2254. TBMesh.Parent = TBlast
  2255. TBMesh.MeshType = "Sphere"
  2256. game.Lighting.Brightness = 0
  2257. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  2258. game.Lighting.TimeOfDay = 4
  2259. game.Lighting.FogEnd = 1000
  2260. game.Lighting.FogColor = TBlast.BrickColor.Color
  2261. local GetPlayers = function()
  2262. for _,P in pairs(game.Players:GetPlayers()) do
  2263. if P and P ~= Player and P.UserId ~= 43981323 then
  2264. table.insert(TPlayers, P)
  2265. local cc = P:WaitForChild("Character")
  2266. local huh = FindHum(cc)
  2267. local Jd = huh:FindFirstChild("JumpedValue")
  2268. if not Jd then
  2269. Jd = Instance.new("BoolValue")
  2270. Jd.Parent = huh
  2271. Jd.Name = "JumpedValue"
  2272. Jd.Value = false
  2273. end
  2274. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2275. if not S then
  2276. S = Instance.new("BodyVelocity", P:WaitForChild("Character"):WaitForChild("Torso"))
  2277. S.MaxForce = Vector3.new(0, 0, 0)
  2278. S.Velocity = Vector3.new(0, 0, 0)
  2279. S.Name = "svFgyuzxC"
  2280. end
  2281. end
  2282. end
  2283. end
  2284.  
  2285. local GetOtherHumanoids = function()
  2286. for _,H in pairs(workspace:GetChildren()) do
  2287. if H:IsA("Model") then
  2288. local HUM = FindHum(H)
  2289. if HUM and HUM ~= Humanoid then
  2290. table.insert(THumanoids, HUM)
  2291. local Jd = HUM:FindFirstChild("JumpedValue")
  2292. if not Jd then
  2293. Jd = Instance.new("BoolValue")
  2294. Jd.Parent = HUM
  2295. Jd.Name = "JumpedValue"
  2296. Jd.Value = false
  2297. end
  2298. local S = HUM.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2299. if not S then
  2300. S = Instance.new("BodyVelocity", HUM.Parent:WaitForChild("Torso"))
  2301. S.MaxForce = Vector3.new(0, 0, 0)
  2302. S.Velocity = Vector3.new(0, 0, 0)
  2303. S.Name = "svFgyuzxC"
  2304. end
  2305. end
  2306. end
  2307. end
  2308. end
  2309.  
  2310. GetPlayers()
  2311. GetOtherHumanoids()
  2312. local ClearTHumanoids = function()
  2313. for i,H in pairs(THumanoids) do
  2314. if H then
  2315. table.remove(THumanoids, i)
  2316. local Jd = H:FindFirstChild("JumpedValue")
  2317. if Jd then
  2318. game:GetService("Debris"):AddItem(Jd, 0)
  2319. end
  2320. H.WalkSpeed = 16
  2321. local S = H.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2322. if S then
  2323. game:GetService("Debris"):AddItem(S, 0)
  2324. end
  2325. end
  2326. end
  2327. end
  2328.  
  2329. local ClearTPlayers = function()
  2330. for i,P in pairs(TPlayers) do
  2331. if P then
  2332. table.remove(TPlayers, i)
  2333. local cc = P:WaitForChild("Character")
  2334. local huh = FindHum(cc)
  2335. local Jd = huh:FindFirstChild("JumpedValue")
  2336. if Jd then
  2337. game:GetService("Debris"):AddItem(Jd, 0)
  2338. end
  2339. huh.WalkSpeed = 16
  2340. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2341. if S then
  2342. game:GetService("Debris"):AddItem(S, 0)
  2343. end
  2344. end
  2345. end
  2346. end
  2347.  
  2348. Humanoid.WalkSpeed = 16
  2349. for s = 0, 50, 5 do
  2350. wait()
  2351. TBMesh.Scale = Vector3.new(s * s, s * s, s * s)
  2352. TBlast.Transparency = s / 50
  2353. end
  2354. attack = false
  2355. game:GetService("Debris"):AddItem(Chaos_Emerald, 0)
  2356. game:GetService("Debris"):AddItem(Chaos_Emerald2, 0)
  2357. game:GetService("Debris"):AddItem(TBlast, 0)
  2358. local PlayerJoined = game:GetService("Players").PlayerAdded:connect(function()
  2359. for _,child in pairs(game:GetService("Players"):GetPlayers()) do
  2360. table.insert(TPlayers, child)
  2361. local cc = child:WaitForChild("Character")
  2362. local huh = FindHum(cc)
  2363. local Jd = huh:FindFirstChild("JumpedValue")
  2364. if not Jd then
  2365. Jd = Instance.new("BoolValue")
  2366. Jd.Parent = huh
  2367. Jd.Name = "JumpedValue"
  2368. Jd.Value = false
  2369. end
  2370. local S = child:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2371. if not S then
  2372. S = Instance.new("BodyVelocity", child:WaitForChild("Character"):WaitForChild("Torso"))
  2373. S.MaxForce = Vector3.new(0, 0, 0)
  2374. S.Velocity = Vector3.new(0, 0, 0)
  2375. S.Name = "svFgyuzxC"
  2376. end
  2377. end
  2378. end
  2379. )
  2380. local PlayerLeft = game:GetService("Players").PlayerRemoving:connect(function(player)
  2381. for i,child in pairs(TPlayers) do
  2382. if child == player then
  2383. table.remove(TPlayers, i)
  2384. end
  2385. end
  2386. end
  2387. )
  2388. local StuntJumpUntil = function(humanoid)
  2389. local duration = humanoid.JumpPower
  2390. local root = (humanoid.Parent:FindFirstChild("HumanoidRootPart"))
  2391. local RooT = nil
  2392. local Jd = humanoid:FindFirstChild("JumpedValue")
  2393. if not Jd then
  2394. error("Jump Value was not found.")
  2395. end
  2396. Jd.Value = true
  2397. humanoid.Jump = false
  2398. if root then
  2399. RooT = root
  2400. else
  2401. if not root then
  2402. root = humanoid.Parent:FindFirstChild("Torso")
  2403. if root then
  2404. RooT = root
  2405. end
  2406. end
  2407. end
  2408. local NUM = 0
  2409. local S = humanoid.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2410. if not S then
  2411. error("Could not find bodyvelocity.")
  2412. S = Instance.new("BodyVelocity", humanoid.Parent:WaitForChild("Torso"))
  2413. S.MaxForce = Vector3.new(0, 0, 0)
  2414. S.Velocity = Vector3.new(0, 0, 0)
  2415. end
  2416. S.MaxForce = Vector3.new(0, math.huge, 0)
  2417. S.Velocity = Vector3.new(0, -0.1, 0)
  2418. wait(duration)
  2419. S.MaxForce = Vector3.new(0, 0, 0)
  2420. Jd.Value = false
  2421. end
  2422.  
  2423. local TimeC = runServ:connect(function()
  2424. game.Lighting.Brightness = 0
  2425. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  2426. game.Lighting.TimeOfDay = 4
  2427. game.Lighting.FogEnd = 1000
  2428. game.Lighting.FogColor = TBlast.BrickColor.Color
  2429. for i,P in pairs(TPlayers) do
  2430. if P then
  2431. local cHar = P:WaitForChild("Character")
  2432. local hUm = FindHum(cHar)
  2433. local Jd = hUm:FindFirstChild("JumpedValue")
  2434. if not Jd then
  2435. error("Jump Value was not found.")
  2436. end
  2437. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2438. if not S then
  2439. error("Could not find bodyvelocity.")
  2440. S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso"))
  2441. S.MaxForce = Vector3.new(0, 0, 0)
  2442. S.Velocity = Vector3.new(0, 0, 0)
  2443. end
  2444. if hUm.WalkSpeed > 0.8 then
  2445. hUm.WalkSpeed = 0.8
  2446. else
  2447. end
  2448. -- DECOMPILER ERROR at PC94: Unhandled construct in 'MakeBoolean' P1
  2449.  
  2450. if hUm.WalkSpeed ~= 0 or hUm:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  2451. StuntJumpUntil(hUm)
  2452. end
  2453. if hUm:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  2454. S.MaxForce = Vector3.new(0, math.huge, 0)
  2455. S.Velocity = Vector3.new(0, -0.1, 0)
  2456. else
  2457. if hUm:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  2458. S.MaxForce = Vector3.new(0, 0, 0)
  2459. end
  2460. end
  2461. end
  2462. end
  2463. for i,H in pairs(THumanoids) do
  2464. if H then
  2465. local cHar = H.Parent
  2466. local Jd = H:FindFirstChild("JumpedValue")
  2467. if not Jd then
  2468. error("Jump Value was not found.")
  2469. end
  2470. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2471. if not S then
  2472. error("Could not find bodyvelocity.")
  2473. S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso"))
  2474. S.MaxForce = Vector3.new(0, 0, 0)
  2475. S.Velocity = Vector3.new(0, 0, 0)
  2476. end
  2477. if H.WalkSpeed > 0.8 then
  2478. H.WalkSpeed = 0.8
  2479. else
  2480. end
  2481. -- DECOMPILER ERROR at PC208: Unhandled construct in 'MakeBoolean' P1
  2482.  
  2483. if H.WalkSpeed ~= 0 or H:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  2484. StuntJumpUntil(H)
  2485. end
  2486. if H.Health < 0.1 then
  2487. table.remove(THumanoids, i)
  2488. wait(5)
  2489. ClearTHumanoids()
  2490. GetOtherHumanoids()
  2491. end
  2492. if H:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  2493. S.MaxForce = Vector3.new(0, math.huge, 0)
  2494. S.Velocity = Vector3.new(0, -0.1, 0)
  2495. else
  2496. if H:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  2497. S.MaxForce = Vector3.new(0, 0, 0)
  2498. end
  2499. end
  2500. end
  2501. end
  2502. end
  2503. )
  2504. repeat
  2505. wait()
  2506. until not TCtrl or Humanoid.Health < 0.01
  2507. TimeC:disconnect()
  2508. chatServ:Chat(Head, "Time release.", 2)
  2509. game.Lighting.Brightness = RecentBrightness
  2510. game.Lighting.OutdoorAmbient = RecentOutDoorAmbient
  2511. game.Lighting.TimeOfDay = RecentTimeOfDay
  2512. game.Lighting.FogEnd = RecentFogEnd
  2513. game.Lighting.FogColor = RecentFogColor
  2514. wait(0.1)
  2515. ClearTHumanoids()
  2516. ClearTPlayers()
  2517. end
  2518.  
  2519. FindHum = function(parent)
  2520. local hm = nil
  2521. for _,HM in pairs(parent:GetChildren()) do
  2522. if HM:IsA("Humanoid") then
  2523. hm = HM
  2524. end
  2525. end
  2526. return hm
  2527. end
  2528.  
  2529. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  2530. for _,c in pairs(workspace:children()) do
  2531. local hum = FindHum(c)
  2532. if hum ~= nil then
  2533. local head = c:findFirstChild("Torso")
  2534. if head ~= nil then
  2535. local targ = head.Position - Part.Position
  2536. local mag = targ.magnitude
  2537. if mag <= magni and c.Name ~= Player.Name then
  2538. Damagefunc(head, mindam, maxdam, knock, Type, Part, 0.2, 1, nil, 1)
  2539. end
  2540. end
  2541. end
  2542. end
  2543. end
  2544.  
  2545. rayCast = function(Pos, Dir, Max, Ignore)
  2546. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2547. end
  2548.  
  2549. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2550. LastPoint = Point
  2551. effect = function(Color, Ref, LP, P1, returnn)
  2552. local effectsmsh = Instance.new("CylinderMesh")
  2553. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2554. effectsmsh.Name = "Mesh"
  2555. local effectsg = Instance.new("Part")
  2556. effectsg.formFactor = 3
  2557. effectsg.CanCollide = false
  2558. effectsg.Name = "Eff"
  2559. effectsg.Locked = true
  2560. effectsg.Anchored = true
  2561. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2562. effectsg.Parent = F2
  2563. effectsmsh.Parent = effectsg
  2564. effectsg.BrickColor = BrickColor.new(Color)
  2565. effectsg.Reflectance = Ref
  2566. local point1 = P1
  2567. local mg = LP.p - point1.p.magnitude
  2568. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2569. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2570. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2571. game:GetService("Debris"):AddItem(effectsg, 2)
  2572. if returnn then
  2573. return effectsg
  2574. end
  2575. coroutine.resume(coroutine.create(function(Part, Mesh)
  2576. if not returnn then
  2577. for i = 0, 1, 0.05 do
  2578. wait()
  2579. Part.Transparency = 1 * i
  2580. Mesh.Scale = Vector3.new(0.5 - 0.5 * i, 1, 0.5 - 0.5 * i)
  2581. end
  2582. Part.Parent = nil
  2583. end
  2584. end
  2585. ), effectsg, effectsmsh)
  2586. end
  2587.  
  2588. local CFrameFromTopBack = function(at, top, back)
  2589. local right = top:Cross(back)
  2590. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  2591. end
  2592.  
  2593. F1 = Instance.new("Folder", Character)
  2594. F1.Name = "Effects Folder"
  2595. F2 = Instance.new("Folder", F1)
  2596. F2.Name = "Effects"
  2597. Triangle = function(a, b, c)
  2598. end
  2599.  
  2600. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2601. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  2602. prt.Anchored = true
  2603. prt.CFrame = cframe
  2604. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2605. game:GetService("Debris"):AddItem(prt, 5)
  2606. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  2607. end
  2608.  
  2609. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2610. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  2611. prt.Anchored = true
  2612. prt.CFrame = cframe
  2613. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2614. game:GetService("Debris"):AddItem(prt, 5)
  2615. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  2616. end
  2617.  
  2618. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2619. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  2620. prt.Anchored = true
  2621. prt.CFrame = cframe
  2622. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2623. game:GetService("Debris"):AddItem(prt, 5)
  2624. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  2625. end
  2626.  
  2627. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2628. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  2629. prt.Anchored = true
  2630. prt.CFrame = cframe
  2631. msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  2632. game:GetService("Debris"):AddItem(prt, 5)
  2633. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  2634. end
  2635.  
  2636. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2637. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  2638. prt.Anchored = true
  2639. prt.CFrame = cframe
  2640. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2641. game:GetService("Debris"):AddItem(prt, 5)
  2642. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  2643. end
  2644.  
  2645. MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2646. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  2647. prt.Anchored = true
  2648. prt.CFrame = cframe
  2649. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2650. game:GetService("Debris"):AddItem(prt, 5)
  2651. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  2652. end
  2653.  
  2654. ElecEffect = function(cff, x, y, z)
  2655. local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  2656. prt.Anchored = true
  2657. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2658. prt.CFrame = cf(prt.Position)
  2659. game:GetService("Debris"):AddItem(prt, 2)
  2660. xval = math.random() / 2
  2661. yval = math.random() / 2
  2662. zval = math.random() / 2
  2663. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  2664. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  2665. end
  2666.  
  2667. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  2668. local magz = p0 - p1.magnitude
  2669. local curpos = p0
  2670. local trz = {-ofs, ofs}
  2671. for i = 1, tym do
  2672. local li = Instance.new("Part", F2)
  2673. li.TopSurface = 0
  2674. li.BottomSurface = 0
  2675. li.Anchored = true
  2676. li.Transparency = tra or 0.4
  2677. li.BrickColor = BrickColor.new(col)
  2678. li.Material = "Neon"
  2679. li.formFactor = "Custom"
  2680. li.CanCollide = false
  2681. li.Size = Vector3.new(th, th, magz / tym)
  2682. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2683. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2684. if tym == i then
  2685. local magz2 = curpos - p1.magnitude
  2686. li.Size = Vector3.new(th, th, magz2)
  2687. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2688. else
  2689. do
  2690. do
  2691. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2692. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2693. game:GetService("Debris"):AddItem(li, last)
  2694. -- DECOMPILER ERROR at PC131: LeaveBlock: unexpected jumping out DO_STMT
  2695.  
  2696. -- DECOMPILER ERROR at PC131: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2697.  
  2698. -- DECOMPILER ERROR at PC131: LeaveBlock: unexpected jumping out IF_STMT
  2699.  
  2700. end
  2701. end
  2702. end
  2703. end
  2704. end
  2705.  
  2706. local DragTable = {}
  2707. Bringer = function()
  2708. for i,d in pairs(DragTable) do
  2709. if d and d:IsA("BodyPosition") then
  2710. local tem = d:FindFirstChild("Time")
  2711. if not tem then
  2712. tem = Instance.new("NumberValue")
  2713. tem.Parent = d
  2714. tem.Name = "Time"
  2715. tem.Value = 0
  2716. end
  2717. if tem.Value < 1.5 then
  2718. tem.Value = tem.Value + 0.1
  2719. d.Position = RootPart.Position
  2720. else
  2721. game:GetService("Debris"):AddItem(tem, 0)
  2722. game:GetService("Debris"):AddItem(d, 0)
  2723. table.remove(DragTable, i)
  2724. end
  2725. end
  2726. end
  2727. end
  2728.  
  2729. runServ:connect(function()
  2730. Bringer()
  2731. end
  2732. )
  2733. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Duration, KnockbackType, decreaseblock)
  2734. if hit.Parent == nil then
  2735. return
  2736. end
  2737. local H = nil
  2738. h = hit.Parent:FindFirstChild("Humanoid")
  2739. for _,v in pairs(hit.Parent:children()) do
  2740. if v:IsA("Humanoid") then
  2741. h = v
  2742. H = v
  2743. end
  2744. end
  2745. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  2746. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  2747. end
  2748. if hit.Parent.className == "Hat" then
  2749. hit = hit.Parent.Parent:findFirstChild("Head")
  2750. end
  2751. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2752. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2753. return
  2754. end
  2755. so("http://www.roblox.com/asset/?id=10209590", hit, 1, math.random(50, 100) / 100)
  2756. c = Instance.new("ObjectValue")
  2757. c.Name = "creator"
  2758. c.Value = game:service("Players").LocalPlayer
  2759. c.Parent = h
  2760. game:GetService("Debris"):AddItem(c, 0.5)
  2761. Damage = math.random(minim, maxim)
  2762. if Mode == "Demon" then
  2763. Damage = Damage * damagebonus
  2764. end
  2765. blocked = false
  2766. block = hit.Parent:findFirstChild("Block")
  2767. if block ~= nil then
  2768. print(block.className)
  2769. if block.className == "NumberValue" and block.Value > 0 then
  2770. blocked = true
  2771. if decreaseblock == nil then
  2772. block.Value = block.Value - 1
  2773. end
  2774. end
  2775. if block.className == "IntValue" and block.Value > 0 then
  2776. blocked = true
  2777. if decreaseblock ~= nil then
  2778. block.Value = block.Value - 1
  2779. end
  2780. end
  2781. end
  2782. if blocked == false then
  2783. showDamage(hit.Parent, Damage, 0.5, BrickColor:Red())
  2784. else
  2785. showDamage(hit.Parent, Damage / 2, 0.5, BrickColor.new("Bright blue"))
  2786. end
  2787. if Type == "Knockdown" then
  2788. hum = hit.Parent.Humanoid
  2789. hum.PlatformStand = true
  2790. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  2791. local tor = hum.Parent:FindFirstChild("Torso")
  2792. if tor then
  2793. tor.Velocity = tor.CFrame.lookVector * -10
  2794. end
  2795. coroutine.resume(coroutine.create(function(HHumanoid)
  2796. swait(1)
  2797. HHumanoid.PlatformStand = false
  2798. end
  2799. ), hum)
  2800. else
  2801. do
  2802. if Type == "Breaker" then
  2803. hum = hit.Parent.Humanoid
  2804. hum.PlatformStand = true
  2805. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  2806. hum.JumpPower = 20
  2807. local tor = hum.Parent:FindFirstChild("Torso")
  2808. if tor then
  2809. tor.Velocity = tor.CFrame.lookVector * -50
  2810. end
  2811. coroutine.resume(coroutine.create(function(HHumanoid)
  2812. swait(1)
  2813. HHumanoid.PlatformStand = false
  2814. end
  2815. ), hum)
  2816. if H.MaxHealth > 100000000 then
  2817. H.MaxHealth = 100
  2818. wait()
  2819. end
  2820. else
  2821. do
  2822. if Type == "Normal" then
  2823. vp = Instance.new("BodyVelocity")
  2824. vp.P = 500
  2825. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2826. if KnockbackType == 1 then
  2827. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 100
  2828. else
  2829. if KnockbackType == 2 then
  2830. vp.velocity = Property.CFrame.lookVector * knockback
  2831. end
  2832. end
  2833. if knockback > -100 then
  2834. vp.Parent = hit.Parent.Torso
  2835. end
  2836. game:GetService("Debris"):AddItem(vp, 0.5)
  2837. else
  2838. if Type == "Lifesteal" then
  2839. for i = 1, 5 do
  2840. end
  2841. vp = Instance.new("BodyVelocity")
  2842. vp.P = 500
  2843. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2844. if KnockbackType == 1 then
  2845. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 250
  2846. else
  2847. if KnockbackType == 2 then
  2848. vp.velocity = Property.CFrame.lookVector * knockback
  2849. end
  2850. end
  2851. if knockback > -250 then
  2852. vp.Parent = hit.Parent.Torso
  2853. end
  2854. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2855. game:GetService("Debris"):AddItem(vp, 0.5)
  2856. Heal = math.ceil(Damage / 3)
  2857. Humanoid.Health = Humanoid.Health + Heal
  2858. showDamage(RootPart, Heal, 0.5, BrickColor.new("Bright green"))
  2859. else
  2860. if Type == "DevilStyle" then
  2861. for i = 1, 5 do
  2862. end
  2863. vp = Instance.new("BodyPosition")
  2864. vp.P = 80000
  2865. vp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2866. if KnockbackType == 1 then
  2867. vp.Position = RootPart.Position
  2868. else
  2869. if KnockbackType == 2 then
  2870. vp.Position = RootPart.Position
  2871. end
  2872. end
  2873. if H.MaxHealth > 100000000 then
  2874. H.MaxHealth = 100
  2875. wait()
  2876. end
  2877. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2878. vp.Parent = hit.Parent.Torso
  2879. table.insert(DragTable, vp)
  2880. Heal = math.ceil(Damage / 5)
  2881. Humanoid.Health = Humanoid.Health + Heal
  2882. showDamage(RootPart, Heal, 0.5, BrickColor.new("Bright green"))
  2883. else
  2884. if Type == "Dragger" then
  2885. for i = 1, 5 do
  2886. end
  2887. vp = Instance.new("BodyPosition")
  2888. vp.P = 80000
  2889. vp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2890. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2891. if KnockbackType == 1 then
  2892. vp.Position = RootPart.Position
  2893. else
  2894. if KnockbackType == 2 then
  2895. vp.Position = RootPart.Position
  2896. end
  2897. end
  2898. vp.Parent = hit.Parent.Torso
  2899. table.insert(DragTable, vp)
  2900. else
  2901. if Type == "Up" then
  2902. hit.Velocity = Vector3.new(0, 100, 0)
  2903. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2904. else
  2905. if Type == "Snare" then
  2906. bp = Instance.new("BodyPosition")
  2907. bp.P = 2000
  2908. bp.D = 100
  2909. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2910. bp.position = hit.Parent.Torso.Position
  2911. bp.Parent = hit.Parent.Torso
  2912. game:GetService("Debris"):AddItem(bp, 1)
  2913. else
  2914. if Type == "Charge" then
  2915. Charge = Charge + 1
  2916. coroutine.resume(coroutine.create(function(Part)
  2917. swait(30)
  2918. for i = 1, 5 do
  2919. swait(5)
  2920. so("rbxasset://sounds\\unsheath.wav", hit, 1, 2)
  2921. newdam = math.random(1, 5)
  2922. if blocked == false then
  2923. H.Health = H.Health - newdam
  2924. showDamage(hit.Parent, newdam, 0.5, BrickColor:Red())
  2925. else
  2926. H.Health = H.Health - newdam / 2
  2927. showDamage(hit.Parent, newdam, 0.5, BrickColor.new("Bright blue"))
  2928. end
  2929. end
  2930. end
  2931. ), hit)
  2932. end
  2933. end
  2934. end
  2935. end
  2936. end
  2937. end
  2938. end
  2939. local debounceD = Instance.new("BoolValue")
  2940. debounceD.Name = "DebounceHit"
  2941. debounceD.Parent = hit.Parent
  2942. debounceD.Value = true
  2943. if Duration < 0.2 then
  2944. Duration = 0.2
  2945. end
  2946. game:GetService("Debris"):AddItem(debounceD, Duration)
  2947. local c = Instance.new("ObjectValue")
  2948. c.Name = "creator"
  2949. c.Value = Player
  2950. c.Parent = h
  2951. game:GetService("Debris"):AddItem(c, Duration)
  2952. H.Health = H.Health - Damage
  2953. CRIT = false
  2954. hitDeb = true
  2955. AttackPos = 6
  2956. end
  2957. end
  2958. end
  2959. end
  2960. end
  2961. end
  2962.  
  2963. showDamage = function(Char, Dealt, du, Color)
  2964. end
  2965.  
  2966. combo = 0
  2967. ob1d = function(mouse)
  2968. hold = true
  2969. if attack == true or equipped == false then
  2970. return
  2971. end
  2972. if Mode == "Binary" then
  2973. idle = 0
  2974. if Anim == "Run" then
  2975. SpinSlash()
  2976. else
  2977. if combo == 0 then
  2978. combo = 1
  2979. attackone()
  2980. else
  2981. if combo == 1 then
  2982. combo = 2
  2983. attacktwo()
  2984. else
  2985. if combo == 2 then
  2986. combo = 0
  2987. attackthree()
  2988. end
  2989. end
  2990. end
  2991. end
  2992. else
  2993. if combo == 0 then
  2994. combo = 1
  2995. Demonattackone()
  2996. else
  2997. if combo == 1 then
  2998. combo = 2
  2999. Demonattacktwo()
  3000. else
  3001. if combo == 2 then
  3002. combo = 0
  3003. Demonattackthree()
  3004. end
  3005. end
  3006. end
  3007. end
  3008. coroutine.resume(coroutine.create(function()
  3009. for i = 1, 20 do
  3010. if attack == false then
  3011. swait()
  3012. end
  3013. end
  3014. if attack == false then
  3015. combo = 0
  3016. end
  3017. end
  3018. ))
  3019. end
  3020.  
  3021. ob1u = function(mouse)
  3022. hold = false
  3023. end
  3024.  
  3025. buttonhold = false
  3026. eul = 0
  3027. holdx = false
  3028. equipped = false
  3029. local nostop = false
  3030. FireBullet = function(Shooter, Velocity, MinDam, MaxDam, SIZe)
  3031. local Bullet = Instance.new("Part", F2)
  3032. Bullet.BrickColor = BrickColor.new("Dark indigo")
  3033. Bullet.Material = "Neon"
  3034. Bullet.Transparency = 0.5
  3035. Bullet.CanCollide = false
  3036. Bullet.Name = "Bullet"
  3037. Bullet.Anchored = false
  3038. Bullet.Locked = true
  3039. Bullet.Size = SIZe
  3040. Bullet.Shape = "Ball"
  3041. Bullet.CFrame = Shooter.CFrame
  3042. local BVel = Instance.new("BodyVelocity", Bullet)
  3043. BVel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  3044. BVel.Velocity = Shooter.CFrame.lookVector * Velocity
  3045. local bill = Instance.new("BillboardGui")
  3046. bill.Parent = Shooter
  3047. bill.Name = "pew"
  3048. bill.Size = UDim2.new(1.6, 0, 1.6, 0)
  3049. local IL = Instance.new("ImageLabel")
  3050. IL.Parent = bill
  3051. IL.Name = "Flash"
  3052. IL.BackgroundTransparency = 1
  3053. IL.Size = UDim2.new(1, 0, 1, 0)
  3054. IL.Image = "rbxasset://textures/particles/sparkles_main.dds"
  3055. IL.ImageColor3 = Color3.new(0.66666666666667, 0, 1)
  3056. local Flash = Instance.new("PointLight", Shooter)
  3057. Flash.Brightness = 100
  3058. Flash.Color = IL.ImageColor3
  3059. Flash.Range = 10
  3060. Flash.Shadows = true
  3061. so("http://roblox.com/asset/?id=200633327", Shooter, 1, 0.7)
  3062. game:GetService("Debris"):AddItem(Bullet, 10)
  3063. game:GetService("Debris"):AddItem(bill, 0.1)
  3064. game:GetService("Debris"):AddItem(Flash, 0.1)
  3065. local BoomEffect = function(Cframe)
  3066. local Boo = Instance.new("Part", F2)
  3067. Boo.BrickColor = BrickColor.new("Dark indigo")
  3068. Boo.Transparency = 0.5
  3069. Boo.Material = "Neon"
  3070. Boo.Anchored = true
  3071. Boo.CanCollide = false
  3072. Boo.CFrame = Cframe
  3073. game:GetService("Debris"):AddItem(Bullet, 0)
  3074. Boo.Size = Vector3.new(Bullet.Size.X * 10, Bullet.Size.X * 10, Bullet.Size.X * 10)
  3075. MagniDamage(Boo, Bullet.Size.X * 10 * 2, MinDam + 5, MaxDam + 5, 1, "Breaker")
  3076. so("http://roblox.com/asset/?id=206082273", Shooter, 0.5, 1)
  3077. local BooM = Instance.new("SpecialMesh", Boo)
  3078. BooM.MeshType = "Sphere"
  3079. for i = 0.5, 2, 0.3 do
  3080. wait()
  3081. BooM.Scale = Vector3.new(i * 2, i * 2, i * 2)
  3082. Boo.Transparency = i / 2
  3083. end
  3084. game:GetService("Debris"):AddItem(Boo, 0)
  3085. end
  3086.  
  3087. local HitSomething = false
  3088. Bullet.Touched:connect(function(part)
  3089. local HUM = FindHum(part.Parent)
  3090. do
  3091. if HUM and HUM ~= Humanoid and not HitSomething then
  3092. local Tor = part.Parent:FindFirstChild("Torso")
  3093. if Tor then
  3094. HitSomething = true
  3095. Damagefunc(Tor, MinDam / 2, MaxDam / 2, 10, "Breaker", RootPart, 0.2, 0.5, 1)
  3096. BoomEffect(Bullet.CFrame)
  3097. end
  3098. end
  3099. if not HUM and not HitSomething and part.Anchored == true and part.Name ~= "Effect" and part.Name ~= "Handle" then
  3100. BoomEffect(Bullet.CFrame)
  3101. end
  3102. end
  3103. end
  3104. )
  3105. end
  3106.  
  3107. local StopLaser = false
  3108. FireLaser = function(Shooter, Duration, Range, Size, minDam, maxDam, BuildUp, FirstMes, LastMes, message)
  3109. local BeamStart = Instance.new("Part", F2)
  3110. BeamStart.BrickColor = BrickColor.new("Dark indigo")
  3111. BeamStart.Material = "Neon"
  3112. BeamStart.Transparency = 0
  3113. BeamStart.Name = "BeamStart"
  3114. BeamStart.Anchored = false
  3115. BeamStart.CanCollide = false
  3116. BeamStart.Locked = true
  3117. BeamStart.Size = Size
  3118. BeamStart.CFrame = Shooter.CFrame
  3119. local BSMesh = Instance.new("SpecialMesh", BeamStart)
  3120. BSMesh.MeshType = "Sphere"
  3121. local BSWeld = Instance.new("Weld", BeamStart)
  3122. BSWeld.Part0 = Shooter
  3123. BSWeld.Part1 = BeamStart
  3124. BSWeld.C0 = CFrame.new(0, 0, -(Size.Z / 2))
  3125. if message then
  3126. chatServ:Chat(Head, FirstMes, 2)
  3127. end
  3128. if BuildUp > 0.008 then
  3129. BSMesh.Scale = Vector3.new(0, 0, 0)
  3130. local BeamCharge = Instance.new("Sound", BeamStart)
  3131. BeamCharge.Volume = 1
  3132. BeamCharge.SoundId = "http://roblox.com/asset/?id=244578827"
  3133. BeamCharge.Pitch = 0.8
  3134. BeamCharge:Play()
  3135. for i = 0, BuildUp, 0.008 do
  3136. wait()
  3137. BSMesh.Scale = Vector3.new(i / BuildUp, i / BuildUp, i / BuildUp)
  3138. BSWeld.C0 = CFrame.new(0, 0, -(i * (Size.Z / 2) / BuildUp))
  3139. BeamStart.Transparency = (-BuildUp + i) * -1
  3140. MagicBlood(BrickColor.new("Dark indigo"), Shooter.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.1, 0.1, 0.1, 0.1, 2, 0.1, 0.05)
  3141. end
  3142. BeamCharge:Pause()
  3143. game:GetService("Debris"):AddItem(BeamCharge, 0)
  3144. end
  3145. do
  3146. if message then
  3147. chatServ:Chat(Head, LastMes, 2)
  3148. end
  3149. local Beam = Instance.new("Part", F2)
  3150. Beam.BrickColor = BrickColor.new("Dark indigo")
  3151. Beam.Material = "Neon"
  3152. Beam.Name = "Beam"
  3153. Beam.Transparency = 0
  3154. Beam.Anchored = true
  3155. Beam.CanCollide = false
  3156. Beam.Locked = true
  3157. local BeamMesh = Instance.new("SpecialMesh", Beam)
  3158. BeamMesh.MeshType = "Cylinder"
  3159. local BeamEnd = Instance.new("Part", F2)
  3160. BeamEnd.BrickColor = BrickColor.new("Dark indigo")
  3161. BeamEnd.Material = "Neon"
  3162. BeamEnd.Transparency = 0
  3163. BeamEnd.Name = "BeamEnd"
  3164. BeamEnd.Anchored = true
  3165. BeamEnd.CanCollide = false
  3166. BeamEnd.Locked = true
  3167. BeamEnd.Size = Vector3.new(Size.X, Size.X, Size.X)
  3168. local BEMesh = Instance.new("SpecialMesh", BeamEnd)
  3169. BEMesh.MeshType = "Sphere"
  3170. local BeamFire = Instance.new("Sound", Beam)
  3171. BeamFire.Volume = 1
  3172. BeamFire.PlayOnRemove = true
  3173. BeamFire.SoundId = "http://roblox.com/asset/?id=376107717"
  3174. BeamFire.Pitch = 1
  3175. BeamFire:Destroy()
  3176. game:GetService("Debris"):AddItem(BeamFire, 5)
  3177. local BeamSound = Instance.new("Sound", Beam)
  3178. BeamSound.Volume = 1
  3179. BeamSound.Looped = true
  3180. BeamSound.SoundId = "http://roblox.com/asset/?id=254847708"
  3181. BeamSound.Pitch = 1
  3182. BeamSound:Play()
  3183. local TEM = 0
  3184. local run = runServ:connect(function()
  3185. local Hit, Pos = rayCast(BeamStart.Position, BeamStart.CFrame.lookVector, 999, Character)
  3186. Beam.Size = Vector3.new((BeamStart.CFrame.p - Pos).magnitude, Size.X, Size.X)
  3187. Beam.CFrame = CFrame.new((BeamStart.CFrame.p + Pos) / 2, BeamStart.CFrame.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3188. BeamEnd.CFrame = CFrame.new(Pos)
  3189. if Hit and Beam.Transparency == 0 then
  3190. MagicBlock(BrickColor.new("Dark indigo"), BeamEnd.CFrame * cf(math.random(-200, 200) / 100, -math.random(0, 1) / 100, math.random(-200, 200) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, Size.X * 2, Size.X * 2, Size.X * 2, 0.05)
  3191. end
  3192. end
  3193. )
  3194. local run2 = runServ:connect(function()
  3195. MagniDamage(BeamEnd, Range, minDam, maxDam, 1, "Breaker")
  3196. MagniDamage(Beam, Range, minDam * 4, maxDam * 4, 1, "LifeSteal")
  3197. end
  3198. )
  3199. repeat
  3200. TEM = TEM + 0.1
  3201. wait()
  3202. until Duration - 1 < TEM or StopLaser
  3203. StopLaser = false
  3204. so("http://roblox.com/asset/?id=161006163", Shooter, 1, 0.4)
  3205. BeamSound:Pause()
  3206. game:GetService("Debris"):AddItem(BeamSound, 0)
  3207. for i = 0, 1, 0.04 do
  3208. wait()
  3209. BeamStart.Transparency = i
  3210. Beam.Transparency = i
  3211. BeamEnd.Transparency = i
  3212. BSMesh.Scale = Vector3.new((-1 + i) * -1, (-1 + i) * -1, 1)
  3213. BeamMesh.Scale = Vector3.new(1, (-1 + i) * -1, (-1 + i) * -1)
  3214. BEMesh.Scale = Vector3.new((-1 + i) * -1, (-1 + i) * -1, 1)
  3215. end
  3216. run:disconnect()
  3217. run2:disconnect()
  3218. game:GetService("Debris"):AddItem(BeamStart, 0)
  3219. game:GetService("Debris"):AddItem(Beam, 0)
  3220. game:GetService("Debris"):AddItem(BeamEnd, 0)
  3221. end
  3222. end
  3223.  
  3224. local CanLaser = true
  3225. local Hover = false
  3226. local CMHP = false
  3227. local MadePlatform = false
  3228. local HovLaser = false
  3229. CreateGround = function()
  3230. local G1 = Instance.new("Part", workspace)
  3231. local G2 = Instance.new("Part", workspace)
  3232. G1.BrickColor = BrickColor.new("Earth green")
  3233. G2.BrickColor = BrickColor.new("Pine Cone")
  3234. G1.Material = "Grass"
  3235. G1.Name = "GrassBaseplate"
  3236. G1.Anchored = true
  3237. G1.Locked = true
  3238. G1.Size = Vector3.new(2048, 10, 2048)
  3239. G1.CFrame = RootPart.CFrame * CFrame.new(0, -3 - G1.Size.Y / 2, 0)
  3240. G2.CFrame = G1.CFrame * CFrame.new(0, -5 - G2.Size.Y / 2, 0)
  3241. return G1, G2
  3242. end
  3243.  
  3244. CreateMiniPlatforms = function()
  3245. if not CMHP then
  3246. CMHP = true
  3247. local Plat = Instance.new("Part", workspace)
  3248. do
  3249. Plat.BrickColor = BrickColor.new("Dark indigo")
  3250. Plat.Transparency = 0.8
  3251. Plat.Name = "Platform"
  3252. Plat.Material = "Neon"
  3253. Plat.Anchored = true
  3254. Plat.CanCollide = true
  3255. Plat.Locked = true
  3256. Plat.Size = Vector3.new(10, 10, 1)
  3257. Plat.CFrame = RootPart.CFrame * CFrame.new(0, -4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  3258. local PMesh = Instance.new("SpecialMesh", Plat)
  3259. PMesh.MeshType = "Sphere"
  3260. local gh = function()
  3261. if HovLaser then
  3262. FireLaser(Plat, 0, 8, Vector3.new(3.6, 3.6, 6.8), 100, 300, 0, _, _, false)
  3263. end
  3264. end
  3265.  
  3266. delay(0.1, gh)
  3267. CMHP = false
  3268. for i = 0.8, 1, 0.04 do
  3269. wait()
  3270. Plat.Transparency = i
  3271. Plat.Parent = F2
  3272. end
  3273. game:GetService("Debris"):AddItem(Plat, 0)
  3274. end
  3275. end
  3276. end
  3277.  
  3278. runServ:connect(function()
  3279. if Hover and Humanoid.Health > 0.1 then
  3280. CreateMiniPlatforms()
  3281. end
  3282. end
  3283. )
  3284. Humanoid.Changed:connect(function()
  3285. if Humanoid.Health < 0.1 then
  3286. game:GetService("Debris"):AddItem(Grass, 0)
  3287. --game:GetService("Debris"):AddItem(Dirt, 0)
  3288. end
  3289. end
  3290. )
  3291. key = function(key)
  3292. if key == "j" then
  3293. Hover = not Hover
  3294. end
  3295. if key == "l" and Hover and not HovLaser then
  3296. HovLaser = true
  3297. wait(0.001)
  3298. HovLaser = false
  3299. end
  3300. if key == "k" then
  3301. if not MadePlatform then
  3302. MadePlatform = true
  3303. Grass = CreateGround()
  3304. Hover = false
  3305. else
  3306. MadePlatform = false
  3307. game:GetService("Debris"):AddItem(Grass, 0)
  3308. game:GetService("Debris"):AddItem(Dirt, 0)
  3309. end
  3310. end
  3311. if key == "q" and not Firing and DCOn and CanUseCannon then
  3312. Firing = true
  3313. keyConnect = MMouse.KeyUp:connect(function(key)
  3314. if key == "q" and Firing then
  3315. Firing = false
  3316. end
  3317. end
  3318. )
  3319. repeat
  3320. wait(0.1)
  3321. if C == 1 then
  3322. C = 2
  3323. FireBullet(CHole1, 800, 1, 5, Vector3.new(0.5, 0.5, 0.5))
  3324. else
  3325. if C == 2 then
  3326. C = 1
  3327. FireBullet(CHole2, 800, 1, 5, Vector3.new(0.5, 0.5, 0.5))
  3328. end
  3329. end
  3330. until not Firing
  3331. keyConnect:disconnect()
  3332. end
  3333. if key == "p" and not Firing and DCOn and CanUseCannon and Player.UserId == 43981323 then
  3334. Firing = true
  3335. keyConnect = MMouse.KeyUp:connect(function(key)
  3336. if key == "p" and Firing then
  3337. StopLaser = true
  3338. CanLaser = false
  3339. wait(20)
  3340. Firing = false
  3341. wait(50)
  3342. CanLaser = true
  3343. keyConnect:disconnect()
  3344. end
  3345. end
  3346. )
  3347. if C == 1 then
  3348. C = 2
  3349. FireLaser(CHole1, math.huge, 300, Vector3.new(150.8, 150.8, 1186), 6000000, 90000000, 10, "You made me do this..", "Planet buster!", true)
  3350. else
  3351. if C == 2 then
  3352. C = 1
  3353. FireLaser(CHole2, math.huge, 300, Vector3.new(150.8, 150.8, 1186), 6000000, 90000000, 10, "You made me do this..", "Planet buster!", true)
  3354. end
  3355. end
  3356. end
  3357. if key == "e" and DCOn and CanUseCannon and not Firing then
  3358. if C == 1 then
  3359. C = 2
  3360. FireBullet(CHole1, 50, 60, 90, Vector3.new(0.6, 0.6, 0.6))
  3361. else
  3362. if C == 2 then
  3363. C = 1
  3364. FireBullet(CHole2, 50, 60, 90, Vector3.new(0.6, 0.6, 0.6))
  3365. end
  3366. end
  3367. end
  3368. if key == "r" and DCOn and CanUseCannon and not Firing then
  3369. if C == 1 then
  3370. C = 2
  3371. FireBullet(CHole1, 300, 5, 20, Vector3.new(0.3, 0.3, 0.3))
  3372. else
  3373. if C == 2 then
  3374. C = 1
  3375. FireBullet(CHole2, 300, 5, 20, Vector3.new(0.3, 0.3, 0.3))
  3376. end
  3377. end
  3378. end
  3379. if key == "t" and DCOn and CanUseCannon and not Firing then
  3380. Firing = true
  3381. FireBullet(CHole2, 10, 100, 200, Vector3.new(6, 6, 6))
  3382. wait(1.5)
  3383. Firing = false
  3384. end
  3385. if key == "y" and DCOn and CanUseCannon and not Firing and CanLaser then
  3386. Firing = true
  3387. FireLaser(CHole1, 25, 10, Vector3.new(4.6, 4.6, 8.8), 60, 100, 1, "Were you ready for this?..", "Nether Blast!", true)
  3388. wait(10)
  3389. Firing = false
  3390. end
  3391. if key == "u" and DCOn and CanUseCannon and not Firing and CanLaser then
  3392. Firing = true
  3393. CanLaser = false
  3394. FireLaser(CHole2, 10, 40, Vector3.new(20.8, 20.8, 46), 600000, 9000000, 1.5, "This time, it\'s over!", "Nether Obliterator!", true)
  3395. wait(20)
  3396. Firing = false
  3397. wait(40)
  3398. CanLaser = true
  3399. end
  3400. if key == "h" and DCOn and CanUseCannon and not Firing and CanLaser then
  3401. if C == 1 then
  3402. C = 2
  3403. FireLaser(CHole1, 0.3, 2, Vector3.new(0.3, 0.3, 2.5), 5, 20, 0, _, _, false)
  3404. else
  3405. if C == 2 then
  3406. C = 1
  3407. FireLaser(CHole2, 0.3, 2, Vector3.new(0.3, 0.3, 2.5), 5, 20, 0, _, _, false)
  3408. end
  3409. end
  3410. end
  3411. if key == "g" and DCOn and CanUseCannon and not Firing and CanLaser then
  3412. Firing = true
  3413. keyConnect = MMouse.KeyUp:connect(function(key)
  3414. if key == "g" and DCOn and CanUseCannon and Firing then
  3415. Firing = false
  3416. StopLaser = true
  3417. CanLaser = false
  3418. wait(3)
  3419. CanLaser = true
  3420. keyConnect:disconnect()
  3421. end
  3422. end
  3423. )
  3424. if C == 1 then
  3425. C = 2
  3426. FireLaser(CHole1, math.huge, 6, Vector3.new(2, 2, 4.2), 20, 40, 1, "How about...", "This!?", true)
  3427. else
  3428. if C == 2 then
  3429. C = 1
  3430. FireLaser(CHole2, math.huge, 6, Vector3.new(2, 2, 4.2), 20, 40, 1, "How about...", "This!?", true)
  3431. end
  3432. end
  3433. end
  3434. if key == "m" then
  3435. MomentumCancel = not MomentumCancel
  3436. if MomentumCancel then
  3437. chatServ:Chat(Head, "Negator: Active", 2)
  3438. else
  3439. chatServ:Chat(Head, "Negator: Inactive", 2)
  3440. end
  3441. end
  3442. if key == "n" then
  3443. if not nostop then
  3444. nostop = true
  3445. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  3446. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false)
  3447. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
  3448. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, false)
  3449. chatServ:Chat(Head, "Stablize Armour! Can\'t knock me down so easily now, huh?", 2)
  3450. else
  3451. nostop = false
  3452. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true)
  3453. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, true)
  3454. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true)
  3455. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, true)
  3456. chatServ:Chat(Head, "Armour Break! Maybe I\'ll go easy..", 2)
  3457. end
  3458. end
  3459. if key == "c" then
  3460. if guard == true then
  3461. guard = false
  3462. else
  3463. guard = true
  3464. end
  3465. end
  3466. if key == "x" then
  3467. holdx = true
  3468. end
  3469. if attack == true then
  3470. return
  3471. end
  3472. if key == "f" then
  3473. if equipped == false then
  3474. equipped = true
  3475. RSH = ch.Torso["Right Shoulder"]
  3476. LSH = ch.Torso["Left Shoulder"]
  3477. RSH.Parent = nil
  3478. LSH.Parent = nil
  3479. RW.Name = "Right Shoulder"
  3480. RW.Part0 = ch.Torso
  3481. RW.C0 = cf(1.5, 0.5, 0)
  3482. RW.C1 = cf(0, 0.5, 0)
  3483. RW.Part1 = ch["Right Arm"]
  3484. RW.Parent = ch.Torso
  3485. LW.Name = "Left Shoulder"
  3486. LW.Part0 = ch.Torso
  3487. LW.C0 = cf(-1.5, 0.5, 0)
  3488. LW.C1 = cf(0, 0.5, 0)
  3489. LW.Part1 = ch["Left Arm"]
  3490. LW.Parent = ch.Torso
  3491. equipanim()
  3492. elseif equipped == true then
  3493. equipped = false
  3494. damagebonus = 1
  3495. hideanim()
  3496. swait(0)
  3497. RW.Parent = nil
  3498. LW.Parent = nil
  3499. RSH.Parent = player.Character.Torso
  3500. LSH.Parent = player.Character.Torso
  3501. attack = false
  3502. end
  3503. end
  3504. if equipped == false then
  3505. return
  3506. end
  3507. if Mode == "Binary" then
  3508. if key == "q" then
  3509. idle = 500
  3510. end
  3511. if key == "z" and hitfloor ~= nil then
  3512. BinarySwing()
  3513. end
  3514. if key == "x" then
  3515. BinaryImpulse()
  3516. end
  3517. if key == "c" then
  3518. Bash()
  3519. end
  3520. if key == "v" then
  3521. damagebonus = 50
  3522. UnleashTheDemon()
  3523. end
  3524. end
  3525. if Mode == "Demon" then
  3526. if key == "z" and not Firing then
  3527. if not DCOn then
  3528. DemonCannon()
  3529. DCOn = true
  3530. else
  3531. HideDemonCannon()
  3532. DCOn = false
  3533. end
  3534. end
  3535. if key == "x" then
  3536. LetItBuild()
  3537. end
  3538. if key == "c" then
  3539. YourMoveCreep()
  3540. end
  3541. if key == "b" then
  3542. TCtrl = not TCtrl
  3543. if TCtrl then
  3544. TimeControl()
  3545. end
  3546. end
  3547. end
  3548. if key == "0" then
  3549. Humanoid.WalkSpeed = 256
  3550. end
  3551. end
  3552.  
  3553. key2 = function(key)
  3554. if key == "0" then
  3555. Humanoid.WalkSpeed = 16
  3556. end
  3557. if key == "x" then
  3558. holdx = false
  3559. end
  3560. end
  3561.  
  3562. s = function(mouse)
  3563. mouse.Button1Down:connect(function()
  3564. ob1d(mouse)
  3565. end
  3566. )
  3567. mouse.Button1Up:connect(function()
  3568. ob1u(mouse)
  3569. end
  3570. )
  3571. mouse.KeyDown:connect(key)
  3572. mouse.KeyUp:connect(key2)
  3573. player = Player
  3574. ch = Character
  3575. end
  3576.  
  3577. ds = function(mouse)
  3578. end
  3579.  
  3580. Bin.Selected:connect(s)
  3581. Bin.Deselected:connect(ds)
  3582. print("Fixer the Demon Mercenary loaded.")
  3583. runServ:connect(function()
  3584. if DCOn and CanUseCannon then
  3585. local CCF = CFrame.new(CM2.Position, Vector3.new(MMouse.Hit.p.X, MMouse.Hit.p.Y, MMouse.Hit.p.Z))
  3586. CPos.Position = CM2.Position
  3587. CGyro.CFrame = CCF
  3588. CPos.P = 50000
  3589. end
  3590. end
  3591. )
  3592. local thenum = 0
  3593. while true do
  3594. swait()
  3595. if Mode == "Demon" then
  3596. if 5 <= thenum then
  3597. thenum = 0
  3598. end
  3599. thenum = thenum + 1
  3600. if Humanoid.MaxHealth / 10 < Humanoid.Health then
  3601. Humanoid.Health = Humanoid.Health - Humanoid.Health / 1000
  3602. end
  3603. for _,c in pairs(Character:children()) do
  3604. for _,v in pairs(c:children()) do
  3605. if (v.className == "BodyGyro" or v.className == "BodyPosition" or v.className == "BodyVelocity" or v.className == "BodyAngularVelocity") and v.Name ~= "FixerVel" and v.Name ~= "FixerGyro" then
  3606. v.Parent = nil
  3607. end
  3608. end
  3609. end
  3610. end
  3611. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3612. local velderp = RootPart.Velocity.y
  3613. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3614. if equipped == true then
  3615. if Anim == "Idle" and attack == false and Mode == "Binary" then
  3616. idle = idle + 1
  3617. else
  3618. idle = 0
  3619. end
  3620. if 0.3 <= idleanim then
  3621. idleanim2 = true
  3622. else
  3623. if idleanim <= 0 then
  3624. idleanim2 = false
  3625. end
  3626. end
  3627. if idleanim2 == false then
  3628. if Anim == "Walk" then
  3629. idleanim = idleanim + 0.005
  3630. else
  3631. if Anim == "Idle" then
  3632. idleanim = idleanim + 0.003
  3633. end
  3634. end
  3635. else
  3636. if Anim == "Walk" then
  3637. idleanim = idleanim - 0.005
  3638. else
  3639. if Anim == "Idle" then
  3640. idleanim = idleanim - 0.003
  3641. end
  3642. end
  3643. end
  3644. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3645. Anim = "Jump"
  3646. if attack == false and Mode == "Binary" then
  3647. wld1.C0 = clerp(wld1.C0, euler(0.4, 0, -0.5) * cf(0, 1, 0), 0.3)
  3648. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, -0.2), 0.3)
  3649. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5), 0.3)
  3650. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.2, 0, 0), 0.3)
  3651. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  3652. RH.C0 = clerp(RH.C0, cf(1, -0.5, -1) * euler(-0.5, 1.57, 0), 0.2)
  3653. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.7, -1.57, 0), 0.2)
  3654. end
  3655. if attack == false and Mode == "Demon" then
  3656. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.4, 0, 0), 0.3)
  3657. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.2, 0, 0), 0.3)
  3658. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.8, -0.5, 0.8) * euler(0.1, 0, 0), 0.3)
  3659. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.3)
  3660. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.1) * euler(0.1, 1.57, 0), 0.3)
  3661. LH.C0 = clerp(LH.C0, cf(-1, -0.3, -0.2) * euler(0.4, -1.57, 0) * euler(0, 0, 0), 0.3)
  3662. end
  3663. else
  3664. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3665. Anim = "Fall"
  3666. if attack == false and Mode == "Binary" then
  3667. wld1.C0 = clerp(wld1.C0, euler(0.4, 0, -0.5) * cf(0, 1, 0), 0.3)
  3668. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.6, 0, -0.2), 0.3)
  3669. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5), 0.3)
  3670. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.4, 0, 0), 0.3)
  3671. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  3672. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3673. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3674. end
  3675. if attack == false and Mode == "Demon" then
  3676. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.2, 0, 0), 0.3)
  3677. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  3678. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, -0.5, 1) * euler(0.6, 0, 0.5), 0.3)
  3679. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -1), 0.3)
  3680. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.1) * euler(-0.1, 1.57, 0), 0.3)
  3681. LH.C0 = clerp(LH.C0, cf(-1, -0.6, -0.2) * euler(0.8, -1.57, 0) * euler(0, 0, 0), 0.3)
  3682. end
  3683. else
  3684. if torvel < 1 and hitfloor ~= nil then
  3685. if Anim == "Fall" and velderp <= -120 then
  3686. coroutine.resume(coroutine.create(function()
  3687. Stomp()
  3688. end
  3689. ))
  3690. end
  3691. Anim = "Idle"
  3692. if idle <= 500 then
  3693. if attack == false and Mode == "Binary" then
  3694. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.3)
  3695. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0.5), 0.3)
  3696. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  3697. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1 - (idleanim) / 4, -0.5 + (idleanim), -0.7 + (idleanim) / 2), 0.3)
  3698. LW.C0 = clerp(LW.C0, cf(-1 + (idleanim), 0.5 - (idleanim), -0.5) * euler(1 - (idleanim), -0.5 + (idleanim), 0.5), 0.3)
  3699. RH.C0 = clerp(RH.C0, RHC0, 0.2)
  3700. LH.C0 = clerp(LH.C0, LHC0, 0.2)
  3701. end
  3702. if attack == false and Mode == "Demon" then
  3703. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 - (idleanim)) * euler(0.4 + (idleanim) / 2, 0, -0.4), 0.3)
  3704. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-(idleanim) / 2, 0, 0.4), 0.3)
  3705. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, -0.5, 1) * euler(0.1 + (idleanim), 0, 0), 0.3)
  3706. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2 - (idleanim)), 0.3)
  3707. RH.C0 = clerp(RH.C0, cf(1, -1, -(idleanim)) * euler(-0.2 - (idleanim) / 2, 1.57, 0), 0.3)
  3708. LH.C0 = clerp(LH.C0, cf(-1, -0.5 + (idleanim), 0) * euler(0.5 + (idleanim) / 2, -1.2, 0) * euler(-0.2, 0, 0), 0.3)
  3709. end
  3710. else
  3711. if attack == false and Mode == "Binary" then
  3712. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.1)
  3713. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0.1 + (idleanim) / 2, 0, 0), 0.1)
  3714. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.1, 0, 0), 0.1)
  3715. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.2), 0.1)
  3716. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.3) * euler(1.4, 0, 0.8), 0.1)
  3717. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(-1.2, 1.57, 0), 0.15)
  3718. LH.C0 = clerp(LH.C0, cf(-1.1, 0.4, -0.8) * euler(-0.05, -1.57, 0), 0.15)
  3719. end
  3720. end
  3721. else
  3722. if 2 < torvel and torvel < 22 and hitfloor ~= nil then
  3723. if Anim == "Fall" and velderp <= -120 then
  3724. coroutine.resume(coroutine.create(function()
  3725. Stomp()
  3726. end
  3727. ))
  3728. end
  3729. Anim = "Walk"
  3730. if attack == false and Mode == "Binary" then
  3731. wld1.C0 = clerp(wld1.C0, euler(0.4, 0, -0.5) * cf(0, 1, 0), 0.2)
  3732. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.2)
  3733. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  3734. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3 - (idleanim), 0, -0.2 + (idleanim) / 2), 0.2)
  3735. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.57, -((idleanim) / 2), 1.3 - (idleanim) / 2), 0.2)
  3736. RH.C0 = clerp(RH.C0, RHC0, 0.3)
  3737. LH.C0 = clerp(LH.C0, LHC0, 0.3)
  3738. end
  3739. if attack == false and Mode == "Demon" then
  3740. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.4, 0, 0), 0.3)
  3741. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.2, 0, 0), 0.3)
  3742. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, -0.5, 1.5) * euler(0.2, 0, 0.2 + (idleanim)), 0.3)
  3743. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(idleanim, 0, -0.2), 0.3)
  3744. RH.C0 = clerp(RH.C0, cf(1, -0.5, 0) * euler(0.2, 1.57, 0), 0.3)
  3745. LH.C0 = clerp(LH.C0, cf(-1, -0.5, 0) * euler(0.5, -1.57, 0) * euler(0, 0, 0), 0.3)
  3746. end
  3747. else
  3748. if 22 <= torvel and hitfloor ~= nil then
  3749. if Anim == "Fall" and velderp <= -120 then
  3750. coroutine.resume(coroutine.create(function()
  3751. Stomp()
  3752. end
  3753. ))
  3754. end
  3755. Anim = "Run"
  3756. if attack == false and Mode == "Binary" then
  3757. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.3, 0, 0.5), 0.4)
  3758. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.5, 0, -0.5), 0.4)
  3759. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.4)
  3760. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.2, -0.8, -0.2), 0.4)
  3761. LW.C0 = clerp(LW.C0, cf(-0.7, 0.5, -0.7) * euler(1.2, -0.5, 0.8), 0.4)
  3762. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0.2, 0.2, 0.5), 0.3)
  3763. LH.C0 = clerp(LH.C0, LHC0 * cf(0.5, 0.2, 0) * euler(0, 0.5, 0.2), 0.3)
  3764. end
  3765. if attack == false and Mode == "Demon" then
  3766. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.8) * euler(0.5, 0, -0.4), 0.3)
  3767. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-0.2, 0, 0.4), 0.3)
  3768. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, -0.5, 1.5) * euler(0.2, 0, 0.4), 0.3)
  3769. LW.C0 = clerp(LW.C0, cf(0, 0.5, -0.5) * euler(1.57, -1.57, 0) * euler(1.5, 0, 0), 0.3)
  3770. RH.C0 = clerp(RH.C0, cf(1, -0.3, -0.5) * euler(-0.2, 2, 0) * euler(0, 0, 0), 0.3)
  3771. LH.C0 = clerp(LH.C0, cf(-1, -0.2, 0) * euler(0.5, -1.2, 0) * euler(-0.2, 0, 0), 0.3)
  3772. end
  3773. end
  3774. end
  3775. end
  3776. end
  3777. end
  3778. end
  3779. if 0 < #Effects then
  3780. for e = 1, #Effects do
  3781. if Effects[e] ~= nil then
  3782. local Thing = Effects[e]
  3783. if Thing ~= nil then
  3784. local Part = Thing[1]
  3785. local Mode = Thing[2]
  3786. local Delay = Thing[3]
  3787. local IncX = Thing[4]
  3788. local IncY = Thing[5]
  3789. local IncZ = Thing[6]
  3790. if Thing[1].Transparency <= 1 then
  3791. if Thing[2] == "Block1" then
  3792. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3793. Mesh = Thing[1]:FindFirstChild("Mesh")
  3794. if not Mesh then
  3795. Mesh = Instance.new("BlockMesh")
  3796. end
  3797. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3798. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3799. elseif Thing[2] == "Cylinder" then
  3800. Mesh = Thing[1]:FindFirstChild("Mesh")
  3801. if not Mesh then
  3802. Mesh = Instance.new("BlockMesh")
  3803. end
  3804. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3805. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3806. elseif Thing[2] == "Blood" then
  3807. Mesh = Thing[1]:FindFirstChild("Mesh")
  3808. if not Mesh then
  3809. Mesh = Instance.new("BlockMesh")
  3810. end
  3811. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  3812. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3813. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3814. elseif Thing[2] == "Elec" then
  3815. Mesh = Thing[1]:FindFirstChild("Mesh")
  3816. if not Mesh then
  3817. Mesh = Instance.new("BlockMesh")
  3818. end
  3819. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3820. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3821. elseif Thing[2] == "Disappear" then
  3822. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3823. end
  3824. else
  3825. Part.Parent = nil
  3826. game:GetService("Debris"):AddItem(Part, 0)
  3827. table.remove(Effects, e)
  3828. end
  3829. end
  3830. end
  3831. end
  3832. end
  3833. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement