Advertisement
lolz3456

Untitled

Sep 4th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.70 KB | None | 0 0
  1. wait(0.016666666666667)
  2. Effects = {}
  3. local Player = game.Players.localPlayer
  4. local Character = Player.Character
  5. local Humanoid = Character.Humanoid
  6. local mouse = Player:GetMouse()
  7. local m = Instance.new("Model", Character)
  8. m.Name = "WeaponModel"
  9. local LeftArm = Character["Left Arm"]
  10. local RightArm = Character["Right Arm"]
  11. local LeftLeg = Character["Left Leg"]
  12. local RightLeg = Character["Right Leg"]
  13. local Head = Character.Head
  14. local Torso = Character.Torso
  15. local cam = game.Workspace.CurrentCamera
  16. local RootPart = Character.HumanoidRootPart
  17. local RootJoint = RootPart.RootJoint
  18. local equipped = false
  19. local attack = false
  20. local Anim = "Idle"
  21. local idle = 0
  22. local attacktype = 1
  23. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  24. local velocity = RootPart.Velocity.y
  25. local sine = 0
  26. local change = 1
  27. local grabbed = false
  28. local cf = CFrame.new
  29. local mr = math.rad
  30. local angles = CFrame.Angles
  31. local ud = UDim2.new
  32. local vt = Vector3.new
  33. local c3 = Color3.new
  34. local mana = 0
  35. local mananum = 0
  36. local it = Instance.new
  37. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  38. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  39. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  40. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  41. xenabled = true
  42. cenabled = true
  43. venabled = true
  44. zenabled = true
  45. RSH = nil
  46. RW = Instance.new("Weld")
  47. LW = Instance.new("Weld")
  48. RH = Torso["Right Hip"]
  49. LH = Torso["Left Hip"]
  50. RSH = Torso["Right Shoulder"]
  51. LSH = Torso["Left Shoulder"]
  52. RSH.Parent = nil
  53. LSH.Parent = nil
  54. RW.Name = "RW"
  55. RW.Part0 = Torso
  56. RW.C0 = cf(1.5, 0.5, 0)
  57. RW.C1 = cf(0, 0.5, 0)
  58. RW.Part1 = RightArm
  59. RW.Parent = Torso
  60. LW.Name = "LW"
  61. LW.Part0 = Torso
  62. LW.C0 = cf(-1.5, 0.5, 0)
  63. LW.C1 = cf(0, 0.5, 0)
  64. LW.Part1 = LeftArm
  65. LW.Parent = Torso
  66. clerp = function(a, b, t)
  67. return a:lerp(b, t)
  68. end
  69.  
  70. ArtificialHB = Instance.new("BindableEvent", script)
  71. ArtificialHB.Name = "Heartbeat"
  72. script:WaitForChild("Heartbeat")
  73. frame = 0.016666666666667
  74. tf = 0
  75. allowframeloss = false
  76. tossremainder = false
  77. lastframe = tick()
  78. script.Heartbeat:Fire()
  79. game:GetService("RunService").Heartbeat:connect(function(s, p)
  80. tf = tf + s
  81. if frame <= tf then
  82. if allowframeloss then
  83. script.Heartbeat:Fire()
  84. lastframe = tick()
  85. else
  86. for i = 1, math.floor(tf / frame) do
  87. script.Heartbeat:Fire()
  88. end
  89. lastframe = tick()
  90. end
  91. if tossremainder then
  92. tf = 0
  93. else
  94. tf = tf - frame * math.floor(tf / frame)
  95. end
  96. end
  97. end
  98. )
  99. swait = function(num)
  100. if num == 0 or num == nil then
  101. ArtificialHB.Event:wait()
  102. else
  103. for i = 0, num do
  104. ArtificialHB.Event:wait()
  105. end
  106. end
  107. end
  108.  
  109. local fengui = it("GuiMain")
  110. fengui.Parent = Player.PlayerGui
  111. fengui.Name = "WeaponGUI"
  112. local fenframe1 = it("TextLabel")
  113. fenframe1.Parent = fengui
  114. fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  115. fenframe1.BackgroundTransparency = 0.3
  116. fenframe1.BorderSizePixel = 5
  117. fenframe1.BorderColor3 = Color3.new(1, 1, 1)
  118. fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
  119. fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
  120. fenframe1.Text = "Z"
  121. fenframe1.TextWrapped = true
  122. fenframe1.FontSize = 7
  123. fenframe1.TextColor3 = Color3.new(1, 1, 1)
  124. local fenframe1a = it("TextLabel")
  125. fenframe1a.Parent = fengui
  126. fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  127. fenframe1a.BackgroundTransparency = 0.3
  128. fenframe1a.BorderSizePixel = 5
  129. fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
  130. fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
  131. fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
  132. fenframe1a.Text = ""
  133. local fenframe2 = it("TextLabel")
  134. fenframe2.Parent = fengui
  135. fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  136. fenframe2.BackgroundTransparency = 0.3
  137. fenframe2.BorderSizePixel = 5
  138. fenframe2.BorderColor3 = Color3.new(1, 1, 1)
  139. fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
  140. fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
  141. fenframe2.Text = "X"
  142. fenframe2.TextWrapped = true
  143. fenframe2.FontSize = 7
  144. fenframe2.TextColor3 = Color3.new(1, 1, 1)
  145. local fenframe2a = it("TextLabel")
  146. fenframe2a.Parent = fengui
  147. fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  148. fenframe2a.BackgroundTransparency = 0.3
  149. fenframe2a.BorderSizePixel = 5
  150. fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
  151. fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
  152. fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
  153. fenframe2a.Text = ""
  154. local fenframe3 = it("TextLabel")
  155. fenframe3.Parent = fengui
  156. fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  157. fenframe3.BackgroundTransparency = 0.3
  158. fenframe3.BorderSizePixel = 5
  159. fenframe3.BorderColor3 = Color3.new(1, 1, 1)
  160. fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
  161. fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
  162. fenframe3.Text = "C"
  163. fenframe3.TextWrapped = true
  164. fenframe3.FontSize = 7
  165. fenframe3.TextColor3 = Color3.new(1, 1, 1)
  166. local fenframe3a = it("TextLabel")
  167. fenframe3a.Parent = fengui
  168. fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  169. fenframe3a.BackgroundTransparency = 0.3
  170. fenframe3a.BorderSizePixel = 5
  171. fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
  172. fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
  173. fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
  174. fenframe3a.Text = ""
  175. local fenframe4 = it("TextLabel")
  176. fenframe4.Parent = fengui
  177. fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  178. fenframe4.BackgroundTransparency = 0.3
  179. fenframe4.BorderSizePixel = 5
  180. fenframe4.BorderColor3 = Color3.new(1, 1, 1)
  181. fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
  182. fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
  183. fenframe4.Text = "V"
  184. fenframe4.TextWrapped = true
  185. fenframe4.FontSize = 7
  186. fenframe4.TextColor3 = Color3.new(1, 1, 1)
  187. local fenframe4a = it("TextLabel")
  188. fenframe4a.Parent = fengui
  189. fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  190. fenframe4a.BackgroundTransparency = 0.3
  191. fenframe4a.BorderSizePixel = 5
  192. fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
  193. fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
  194. fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
  195. fenframe4a.Text = ""
  196. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  197. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  198. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  199. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  200. local RbxUtility = LoadLibrary("RbxUtility")
  201. local Create = RbxUtility.Create
  202. RemoveOutlines = function(part)
  203. part.TopSurface = 10
  204. end
  205.  
  206. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  207. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  208. RemoveOutlines(Part)
  209. return Part
  210. end
  211.  
  212. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  213. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  214. if Mesh == "SpecialMesh" then
  215. Msh.MeshType = MeshType
  216. Msh.MeshId = MeshId
  217. end
  218. return Msh
  219. end
  220.  
  221. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  222. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  223. return Weld
  224. end
  225.  
  226. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  227. if hit.Parent == nil then
  228. return
  229. end
  230. local h = hit.Parent:FindFirstChild("Humanoid")
  231. for _,v in pairs(hit.Parent:children()) do
  232. if v:IsA("Humanoid") then
  233. h = v
  234. end
  235. end
  236. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  237. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  238. return
  239. end
  240. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  241. game:GetService("Debris"):AddItem(c, 0.5)
  242. if HitSound ~= nil and HitPitch ~= nil then
  243. CreateSound(HitSound, hit, 1, HitPitch)
  244. end
  245. local Damage = math.random(minim, maxim)
  246. local blocked = false
  247. local block = hit.Parent:findFirstChild("Block")
  248. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  249. blocked = true
  250. block.Value = block.Value - 1
  251. print(block.Value)
  252. end
  253. if blocked == false then
  254. HitHealth = h.Health
  255. h.Health = h.Health - Damage
  256. if mana < 100 then
  257. mana = mana + math.random(5, 10)
  258. end
  259. if mana > 100 then
  260. mana = 100
  261. end
  262. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then
  263. print("gained spree")
  264. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value = game.Players.LocalPlayer.leaderstats.Spree.Value + 1
  265. end
  266. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  267. else
  268. h.Health = h.Health - Damage / 2
  269. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  270. end
  271. if Type == "Knockdown" then
  272. local hum = hit.Parent.Humanoid
  273. hum.PlatformStand = true
  274. coroutine.resume(coroutine.create(function(HHumanoid)
  275. swait(1)
  276. HHumanoid.PlatformStand = false
  277. end
  278. ), hum)
  279. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  280. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  281. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  282. game:GetService("Debris"):AddItem(bodvol, 0.5)
  283. game:GetService("Debris"):AddItem(rl, 0.5)
  284. else
  285. do
  286. if Type == "Normal" then
  287. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  288. if knockback > 0 then
  289. vp.Parent = hit.Parent.Torso
  290. end
  291. game:GetService("Debris"):AddItem(vp, 0.5)
  292. else
  293. do
  294. if Type == "Up" then
  295. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  296. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  297. else
  298. do
  299. if Type == "DarkUp" then
  300. coroutine.resume(coroutine.create(function()
  301. for i = 0, 1, 0.1 do
  302. swait()
  303. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  304. end
  305. end
  306. ))
  307. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  308. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  309. else
  310. do
  311. if Type == "Snare" then
  312. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  313. game:GetService("Debris"):AddItem(bp, 1)
  314. else
  315. do
  316. if Type == "Freeze" then
  317. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  318. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  319. hit.Parent.Torso.Anchored = true
  320. coroutine.resume(coroutine.create(function(Part)
  321. swait(1.5)
  322. Part.Anchored = false
  323. end
  324. ), hit.Parent.Torso)
  325. game:GetService("Debris"):AddItem(BodPos, 3)
  326. game:GetService("Debris"):AddItem(BodGy, 3)
  327. end
  328. do
  329. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  330. game:GetService("Debris"):AddItem(debounce, Delay)
  331. c = Instance.new("ObjectValue")
  332. c.Name = "creator"
  333. c.Value = Player
  334. c.Parent = h
  335. game:GetService("Debris"):AddItem(c, 0.5)
  336. end
  337. end
  338. end
  339. end
  340. end
  341. end
  342. end
  343. end
  344. end
  345. end
  346. end
  347. end
  348. end
  349.  
  350. ShowDamage = function(Pos, Text, Time, Color)
  351. local Rate = 0.033333333333333
  352. if not Pos then
  353. local Pos = Vector3.new(0, 0, 0)
  354. end
  355. local Text = Text or ""
  356. local Time = Time or 2
  357. if not Color then
  358. local Color = Color3.new(1, 0, 1)
  359. end
  360. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  361. EffectPart.Anchored = true
  362. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  363. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  364. game.Debris:AddItem(EffectPart, Time + 0.1)
  365. EffectPart.Parent = game:GetService("Workspace")
  366. delay(0, function()
  367. local Frames = Time / Rate
  368. for Frame = 1, Frames do
  369. wait(Rate)
  370. local Percent = Frame / Frames
  371. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  372. TextLabel.TextTransparency = Percent
  373. end
  374. if EffectPart and EffectPart.Parent then
  375. EffectPart:Destroy()
  376. end
  377. end
  378. )
  379. end
  380.  
  381. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  382. for _,c in pairs(workspace:children()) do
  383. local hum = c:findFirstChild("Humanoid")
  384. if hum ~= nil then
  385. local head = c:findFirstChild("Torso")
  386. if head ~= nil then
  387. local targ = head.Position - Part.Position
  388. local mag = targ.magnitude
  389. if mag <= magni and c.Name ~= Player.Name then
  390. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  391. end
  392. end
  393. end
  394. end
  395. end
  396.  
  397. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
  398. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.982839942, 0.146006823, 0.234023571, 0.211453959, -0.977137685, 0.0221185088, -0.0402157828, -0.0313093588, -0.99870044, 0.976560295, 0.210289627, -0.0459168404))
  399. CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
  400. FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "FakeHandle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
  401. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  402. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 1, 0.200000003))
  403. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.07288361e-006, 0.683865368, -4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  404. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(2, 0.5, 2))
  405. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  406. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31791997, -0.975689411, 2.925138, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
  407. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  408. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 0.729999959, 1))
  409. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.4692868, -3.70743895, -1.52587891e-005, 0.916809797, -0.399324507, 1.15483999e-006, 0.399324447, 0.916809678, -4.00096178e-006, 5.56348823e-007, 4.12762165e-006, 1))
  410. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
  411. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  412. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31796861, -0.99111104, 3.62495184, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
  413. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  414. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  415. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.64674854, -0.903340101, -0.354405403, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
  416. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  417. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  418. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155968666, -0.981806874, 5.01632404, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  419. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  420. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  421. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.015683651, -0.99636519, 4.31590414, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  422. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  423. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  424. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.2746892, -0.975648642, 2.9260354, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
  425. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  426. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  427. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.27468133, -0.991158009, 3.62575912, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
  428. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  429. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  430. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155587196, -1.11407149, 4.663311, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  431. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
  432. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  433. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0131573677, 0.00466442108, 4.61167336, -1.74657907e-006, -1.09747052e-005, -1.00000012, 0.764525652, -0.644593418, 5.77419996e-006, -0.644593358, -0.764525771, 9.49576497e-006))
  434. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
  435. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Cone", Vector3.new(1, 1.01999998, 1))
  436. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.6467495, -0.918762922, 0.345379829, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
  437. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  438. Cone = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Cone", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  439. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00376915932, -3.44346094, -0.00172424316, -1.00000012, -1.70432031e-006, 1.69267878e-007, 1.70432031e-006, -1.00000012, -2.12341547e-007, 1.75088644e-007, -2.12341547e-007, 1.00000012))
  440. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.300000012, 0.200000003))
  441. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 1, 1))
  442. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.31130219e-006, -3.5749507, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  443. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 0.400000006))
  444. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.10000000149012, 0, "Really black", "Part", Vector3.new(0.200000003, 4.57000017, 0.200000003))
  445. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.96046448e-007, -1.50000107, 9.53674316e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  446. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
  447. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Part", Vector3.new(1, 1.16999996, 1))
  448. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68149614, -0.0198745728, -1.09672546e-005, 0.0220478568, 0.999756992, -2.0749867e-006, -0.999756932, 0.0220478605, -1.48452818e-006, -1.42678618e-006, 2.10851431e-006, 1.00000012))
  449. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  450. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Part", Vector3.new(1, 0.870000005, 1))
  451. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71543217, -0.0690839291, -9.53674316e-006, 0.19052954, 0.981681645, -1.97067857e-006, -0.981681526, 0.190529525, -1.91386789e-006, -1.49046537e-006, 2.29105353e-006, 1.00000012))
  452. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.899999976))
  453. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 0.729999959, 1))
  454. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.51120782, -3.69066477, -7.15255737e-006, 0.911903143, 0.410405785, -3.35276127e-007, -0.410405725, 0.911903143, -1.79186463e-006, -4.35044058e-007, 1.76206231e-006, 1.00000012))
  455. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
  456. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Part", Vector3.new(1, 0.870000005, 1))
  457. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71087646, -0.0231897831, -6.19888306e-006, 0.318961442, 0.947767794, -1.48266554e-006, -0.947767675, 0.318961442, -2.70921737e-006, -2.10118014e-006, 2.26870179e-006, 1.00000012))
  458. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.850000024))
  459. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 0, "Black", "Part", Vector3.new(1, 0.769999981, 1))
  460. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68154573, -0.4009372, -5.7220459e-006, 0.516243339, 0.856442034, -8.04662704e-007, -0.856442034, 0.516243339, -4.18536365e-006, -3.15741636e-006, 2.8423965e-006, 1.00000012))
  461. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
  462. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.10000000149012, 0, "Really black", "Part", Vector3.new(0.200000003, 2.57999992, 0.200000003))
  463. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.4570694e-006, 1.91385686, 4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  464. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  465. Hitbox = CreatePart(m, Enum.Material.SmoothPlastic, 0.25, 1, "Black", "Hitbox", Vector3.new(2.4000001, 3.67000008, 0.399999976))
  466. HitboxWeld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.76720476, 3.04898357, 0.00860214233, -0.699169815, 0.713988841, 0.0371726528, -0.713755548, -0.700063348, 0.0215496495, 0.0414094217, -0.0114653222, 0.999076545))
  467. rayCast = function(Position, Direction, Range, Ignore)
  468. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  469. end
  470.  
  471. CreateSound = function(id, par, vol, pit)
  472. coroutine.resume(coroutine.create(function()
  473. local sou = Instance.new("Sound", par or workspace)
  474. sou.Volume = vol
  475. sou.Pitch = pit or 1
  476. sou.SoundId = id
  477. swait()
  478. sou:play()
  479. game:GetService("Debris"):AddItem(sou, 6)
  480. end
  481. ))
  482. end
  483.  
  484. local getclosest = function(obj, distance)
  485. local last, lastx = distance + 1, nil
  486. for i,v in pairs(workspace:GetChildren()) do
  487. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  488. local t = v.Torso
  489. local dist = t.Position - obj.Position.magnitude
  490. if dist <= distance and dist < last then
  491. last = dist
  492. lastx = v
  493. end
  494. end
  495. end
  496. return lastx
  497. end
  498.  
  499. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  500. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  501. prt.Anchored = true
  502. prt.CFrame = cframe
  503. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  504. game:GetService("Debris"):AddItem(prt, 10)
  505. if Type == 1 or Type == nil then
  506. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  507. else
  508. if Type == 2 then
  509. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  510. end
  511. end
  512. end
  513.  
  514. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  515. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  516. prt.Anchored = true
  517. prt.CFrame = cframe
  518. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  519. game:GetService("Debris"):AddItem(prt, 10)
  520. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  521. end
  522.  
  523. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  524. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  525. prt.Anchored = true
  526. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  527. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  528. game:GetService("Debris"):AddItem(prt, 10)
  529. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  530. end
  531.  
  532. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  533. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  534. prt.Anchored = true
  535. prt.CFrame = cframe
  536. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  537. game:GetService("Debris"):AddItem(prt, 10)
  538. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  539. end
  540.  
  541. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  542. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  543. prt.Anchored = true
  544. prt.CFrame = cframe
  545. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  546. game:GetService("Debris"):AddItem(prt, 10)
  547. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  548. end
  549.  
  550. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  551. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  552. prt.Anchored = true
  553. prt.CFrame = cframe
  554. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  555. game:GetService("Debris"):AddItem(prt, 10)
  556. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  557. end
  558.  
  559. DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  560. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  561. prt.Anchored = true
  562. prt.CFrame = cframe
  563. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  564. game:GetService("Debris"):AddItem(prt, 10)
  565. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  566. end
  567.  
  568. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  569. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  570. prt.Anchored = true
  571. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  572. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  573. local num = math.random(10, 50) / 1000
  574. game:GetService("Debris"):AddItem(prt, 10)
  575. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  576. end
  577.  
  578. attackone = function()
  579. attack = true
  580. for i = 0, 1, 0.1 do
  581. swait()
  582. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  583. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  584. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  585. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  586. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  587. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  588. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  589. end
  590. local con = Hitbox.Touched:connect(function(hit)
  591. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  592. end
  593. )
  594. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  595. for i = 0, 1, 0.1 do
  596. swait()
  597. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  598. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  599. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  600. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  601. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  602. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  603. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  604. end
  605. con:disconnect()
  606. attack = false
  607. end
  608.  
  609. Deathwish = function()
  610. attack = true
  611. CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1)
  612. for i = 0, 1, 0.05 do
  613. swait()
  614. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09)
  615. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1)
  616. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  617. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  618. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  619. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  620. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  621. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  622. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  623. end
  624. MagniDamage(RootPart, 55, 10, 15, 0, "DarkUp")
  625. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1)
  626. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  627. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07)
  628. for i = 0, 1, 0.05 do
  629. swait()
  630. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  631. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  632. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  633. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
  634. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  635. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  636. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  637. end
  638. for i = 0, 1, 0.1 do
  639. swait()
  640. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3)
  641. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(100)), 0.3)
  642. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  643. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3)
  644. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  645. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  646. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  647. end
  648. MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown")
  649. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2)
  650. SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06)
  651. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  652. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07)
  653. for i = 0, 1, 0.1 do
  654. swait()
  655. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  656. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(50)), 0.3)
  657. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  658. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  659. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  660. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  661. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  662. end
  663. attack = false
  664. end
  665.  
  666. ChaosDriver = function()
  667. attack = true
  668. for i = 0, 1, 0.05 do
  669. swait()
  670. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  671. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  672. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  673. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  674. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  675. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  676. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  677. end
  678. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  679. coroutine.resume(coroutine.create(function()
  680. for i = 1, 5 do
  681. swait()
  682. local ef = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "Effect", vt())
  683. ef.Anchored = true
  684. ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i)
  685. MagniDamage(ef, 17, 10, 15, 1, "DarkUp")
  686. game:GetService("Debris"):AddItem(ef, 0.5)
  687. CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7)
  688. DragonEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 170, 5, 0, -10, 0, 0.07)
  689. DragonEffect(BrickColor.new("Magenta"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 150, 5, 0, -10, 0, 0.07)
  690. end
  691. end
  692. ))
  693. for i = 0, 1, 0.1 do
  694. swait()
  695. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  696. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  697. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  698. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  699. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  700. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  701. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  702. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  703. end
  704. attack = false
  705. end
  706.  
  707. attacktwo = function()
  708. attack = true
  709. for i = 0, 1, 0.1 do
  710. swait()
  711. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  712. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  713. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  714. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  715. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  716. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  717. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  718. end
  719. local con = Hitbox.Touched:connect(function(hit)
  720. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  721. end
  722. )
  723. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  724. for i = 0, 1, 0.1 do
  725. swait()
  726. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  727. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  728. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  729. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  730. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  731. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  732. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  733. end
  734. con:disconnect()
  735. attack = false
  736. end
  737.  
  738. local soundn = false
  739. attackthree = function()
  740. attack = true
  741. soundn = true
  742. for i = 0, 1, 0.1 do
  743. swait()
  744. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  745. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  747. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  748. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  749. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  750. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  751. end
  752. local con = Hitbox.Touched:connect(function(hit)
  753. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  754. end
  755. )
  756. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  757. coroutine.resume(coroutine.create(function()
  758. while soundn do
  759. wait(0.3)
  760. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  761. end
  762. end
  763. ))
  764. for i = 0, 1, 0.1 do
  765. swait()
  766. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  767. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  768. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  769. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  770. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  771. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  772. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  773. end
  774. con:disconnect()
  775. soundn = false
  776. attack = false
  777. end
  778.  
  779. ThanatosDriver = function()
  780. attack = true
  781. for i = 0, 1, 0.1 do
  782. swait()
  783. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  784. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  785. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  786. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  787. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  788. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  789. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  790. end
  791. local con = Hitbox.Touched:connect(function(hit)
  792. Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  793. end
  794. )
  795. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7)
  796. for i = 0, 1, 0.1 do
  797. swait()
  798. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  799. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  800. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(-90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  801. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3)
  802. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  803. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3)
  804. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  805. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  806. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  807. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2)
  808. end
  809. con:disconnect()
  810. attack = false
  811. end
  812.  
  813. LastResort = function()
  814. attack = true
  815. soundn = true
  816. CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1)
  817. MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown")
  818. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  819. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  820. RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20)
  821. for i = 0, 1, 0.1 do
  822. swait()
  823. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  824. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  825. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  826. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  827. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  828. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  829. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  830. end
  831. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  832. coroutine.resume(coroutine.create(function()
  833. while soundn do
  834. wait(0.5)
  835. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  836. end
  837. end
  838. ))
  839. for i = 0, 1, 0.1 do
  840. swait()
  841. MagniDamage(RootPart, 10, 5, 10, 0, "Normal")
  842. Torso.Velocity = RootPart.CFrame.lookVector * 100
  843. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  844. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  845. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  846. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  847. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  848. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  849. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  850. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  851. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  852. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  853. end
  854. for i = 0, 1, 0.1 do
  855. swait()
  856. MagniDamage(RootPart, 10, 3, 3, 0, "Normal")
  857. Torso.Velocity = RootPart.CFrame.lookVector * 100
  858. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  859. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  860. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  861. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  862. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  863. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  864. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  865. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  866. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  867. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  868. end
  869. soundn = false
  870. attack = false
  871. end
  872.  
  873. ob1u = function()
  874. end
  875.  
  876. ob1d = function()
  877. if attack == false and attacktype == 1 then
  878. attacktype = 2
  879. attackone()
  880. else
  881. if attack == false and attacktype == 2 then
  882. attacktype = 3
  883. attacktwo()
  884. else
  885. if attack == false and attacktype == 3 then
  886. attacktype = 1
  887. attackthree()
  888. end
  889. end
  890. end
  891. end
  892.  
  893. key = function(k)
  894. k = k:lower()
  895. if attack == false and k == "z" and zenabled == true then
  896. zenabled = false
  897. coroutine.resume(coroutine.create(function()
  898. for i = 1, 0, -0.02 do
  899. swait()
  900. fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  901. end
  902. zenabled = true
  903. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  904. end
  905. ))
  906. ThanatosDriver()
  907. else
  908. if attack == false and k == "x" and xenabled == true then
  909. xenabled = false
  910. coroutine.resume(coroutine.create(function()
  911. for i = 1, 0, -0.005 do
  912. swait()
  913. fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  914. end
  915. xenabled = true
  916. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  917. end
  918. ))
  919. LastResort()
  920. else
  921. if attack == false and k == "c" and cenabled == true then
  922. cenabled = false
  923. coroutine.resume(coroutine.create(function()
  924. for i = 1, 0, -0.0025 do
  925. swait()
  926. fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  927. end
  928. cenabled = true
  929. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  930. end
  931. ))
  932. ChaosDriver()
  933. else
  934. if attack == false and k == "v" and venabled == true then
  935. venabled = false
  936. coroutine.resume(coroutine.create(function()
  937. for i = 1, 0, -0.0005 do
  938. swait()
  939. fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  940. end
  941. venabled = true
  942. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  943. end
  944. ))
  945. Deathwish()
  946. end
  947. end
  948. end
  949. end
  950. end
  951.  
  952.  
  953.  
  954.  
  955.  
  956. mouse.Button1Down:connect(function()
  957. ob1d(mouse)
  958. end
  959. )
  960. mouse.Button1Up:connect(function()
  961. ob1u(mouse)
  962. end
  963. )
  964. mouse.KeyDown:connect(key)
  965.  
  966.  
  967. --Bin.Selected:connect(s)
  968. --Bin.Deselected:connect(ds)
  969. while 1 do
  970. swait()
  971. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  972. velocity = RootPart.Velocity.y
  973. sine = sine + change
  974. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  975. if equipped == true or equipped == false then
  976. if 1 < RootPart.Velocity.y and hit == nil then
  977. Anim = "Jump"
  978. if attack == false then
  979. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  980. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  981. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  982. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  983. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  984. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  985. end
  986. else
  987. if RootPart.Velocity.y < -1 and hit == nil then
  988. Anim = "Fall"
  989. if attack == false then
  990. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  991. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  992. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  993. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  994. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  995. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  996. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  997. end
  998. else
  999. if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
  1000. Anim = "Idle"
  1001. if attack == false then
  1002. change = 1
  1003. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1004. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos((sine) / 5)), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  1005. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  1006. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1007. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1008. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1009. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1010. end
  1011. else
  1012. if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
  1013. Anim = "Walk"
  1014. if attack == false then
  1015. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1016. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1017. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1018. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1019. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
  1020. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1021. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1022. end
  1023. end
  1024. end
  1025. end
  1026. end
  1027. end
  1028. if 0 < #Effects then
  1029. for e = 1, #Effects do
  1030. if Effects[e] ~= nil then
  1031. local Thing = Effects[e]
  1032. if Thing ~= nil then
  1033. local Part = Thing[1]
  1034. local Mode = Thing[2]
  1035. local Delay = Thing[3]
  1036. local IncX = Thing[4]
  1037. local IncY = Thing[5]
  1038. local IncZ = Thing[6]
  1039. if Thing[1].Transparency <= 1 then
  1040. if Thing[2] == "Block1" then
  1041. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1042. Mesh = Thing[1].Mesh
  1043. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1044. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1045. else
  1046. if Thing[2] == "Block2" then
  1047. Thing[1].CFrame = Thing[1].CFrame
  1048. Mesh = Thing[7]
  1049. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1050. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1051. else
  1052. if Thing[2] == "Cylinder" then
  1053. Mesh = Thing[1].Mesh
  1054. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1055. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1056. else
  1057. if Thing[2] == "Blood" then
  1058. Mesh = Thing[7]
  1059. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1060. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1061. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1062. else
  1063. if Thing[2] == "Elec" then
  1064. Mesh = Thing[1].Mesh
  1065. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1066. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1067. else
  1068. if Thing[2] == "Disappear" then
  1069. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1070. else
  1071. if Thing[2] == "Shatter" then
  1072. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1073. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1074. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1075. Thing[6] = Thing[6] + Thing[5]
  1076. end
  1077. end
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083. else
  1084. Part.Parent = nil
  1085. table.remove(Effects, e)
  1086. end
  1087. end
  1088. end
  1089. end
  1090. end
  1091. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement