memberhero

thing

Apr 16th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.45 KB | None | 0 0
  1. function TakeDamage(hum, dmg)
  2. end
  3.  
  4. wait(0.016666666666666666)
  5. Effects = {}
  6. local Player = game.Players.localPlayer
  7. local Character = Player.Character
  8. local chr = Character
  9. local tors = chr.Torso
  10. local rutprt = chr.HumanoidRootPart
  11. local hed = chr.Head
  12. local Humanoid = Character.Humanoid
  13. local Mouse = Player:GetMouse()
  14. local LeftArm = Character["Left Arm"]
  15. local RightArm = Character["Right Arm"]
  16. local LeftLeg = Character["Left Leg"]
  17. local RightLeg = Character["Right Leg"]
  18. local Head = Character.Head
  19. local Torso = Character.Torso
  20. local Camera = game.Workspace.CurrentCamera
  21. local RootPart = Character.HumanoidRootPart
  22. local RootJoint = RootPart.RootJoint
  23. local attack = false
  24. local Anim = "Idle"
  25. local attacktype = 1
  26. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  27. local velocity = RootPart.Velocity.y
  28. local sine = 0
  29. local change = 1
  30. local Create = LoadLibrary("RbxUtility").Create
  31. local Axe = false
  32. local ClearingTheArea = false
  33. local Combo = false
  34. local ThreeStage = false
  35. ypcall(function()
  36. Character.Shirt:Destroy()
  37. Character.Pants:Destroy()
  38. shirt = Instance.new("Shirt", Character)
  39. shirt.Name = "Shirt"
  40. pants = Instance.new("Pants", Character)
  41. pants.Name = "Pants"
  42. Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=288388204"
  43. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=288388251"
  44. end)
  45. local m = Create("Model")({
  46. Parent = Character,
  47. Name = "WeaponModel"
  48. })
  49. Humanoid.Animator.Parent = nil
  50. Character.Animate.Parent = nil
  51. local function newMotor(part0, part1, c0, c1)
  52. local w = Create("Motor")({
  53. Parent = part0,
  54. Part0 = part0,
  55. Part1 = part1,
  56. C0 = c0,
  57. C1 = c1
  58. })
  59. return w
  60. end
  61. function clerp(a, b, t)
  62. return a:lerp(b, t)
  63. end
  64. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  65. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  66. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  67. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  68. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  69. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  70. RootJoint.C1 = CFrame.new(0, 0, 0)
  71. RootJoint.C0 = CFrame.new(0, 0, 0)
  72. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  73. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  74. local rarmc1 = RW.C1
  75. local larmc1 = LW.C1
  76. local rlegc1 = RH.C1
  77. local llegc1 = LH.C1
  78. local resetc1 = false
  79. function PlayAnimationFromTable(table, speed, bool)
  80. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  81. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  82. RW.C0 = clerp(RW.C0, table[3], speed)
  83. LW.C0 = clerp(LW.C0, table[4], speed)
  84. RH.C0 = clerp(RH.C0, table[5], speed)
  85. LH.C0 = clerp(LH.C0, table[6], speed)
  86. if bool == true and resetc1 == false then
  87. resetc1 = true
  88. RootJoint.C1 = RootJoint.C1
  89. Torso.Neck.C1 = Torso.Neck.C1
  90. RW.C1 = rarmc1
  91. LW.C1 = larmc1
  92. RH.C1 = rlegc1
  93. LH.C1 = llegc1
  94. end
  95. end
  96.  
  97. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  98. if hit.Parent == nil then
  99. return
  100. end
  101. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  102. for _, v in pairs(hit.Parent:children()) do
  103. if v:IsA("Humanoid") then
  104. h = v
  105. end
  106. end
  107. if h ~= nil and hit.Parent.Name ~= chr.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  108. warn'No R15 allowed'
  109. hit.Parent:FindFirstChild("Head"):BreakJoints()
  110. end
  111.  
  112. if h ~= nil and hit.Parent.Name ~= chr.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  113. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  114. if hit.Parent.DebounceHit.Value == true then
  115. return
  116. end
  117. end
  118. if insta == true then
  119. hit.Parent:FindFirstChild("Head"):BreakJoints()
  120. end
  121. local c = Create("ObjectValue"){
  122. Name = "creator",
  123. Value = game:service("Players").LocalPlayer,
  124. Parent = h,
  125. }
  126. game:GetService("Debris"):AddItem(c, .5)
  127. if HitSound ~= nil and HitPitch ~= nil then
  128. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  129. end
  130. local Damage = math.random(minim, maxim)
  131. local blocked = false
  132. local block = hit.Parent:findFirstChild("Block")
  133. if block ~= nil then
  134. if block.className == "IntValue" then
  135. if block.Value > 0 then
  136. blocked = true
  137. block.Value = block.Value - 1
  138. print(block.Value)
  139. end
  140. end
  141. end
  142. if blocked == false then
  143. h.Health = h.Health - Damage
  144. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  145. else
  146. h.Health = h.Health - (Damage / 2)
  147. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  148. end
  149. if Type == "Knockdown" then
  150. local hum = hit.Parent.Humanoid
  151. hum.PlatformStand = true
  152. coroutine.resume(coroutine.create(function(HHumanoid)
  153. swait(1)
  154. HHumanoid.PlatformStand = false
  155. end), hum)
  156. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  157. local bodvol = Create("BodyVelocity"){
  158. velocity = angle * knockback,
  159. P = 5000,
  160. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  161. Parent = hit,
  162. }
  163. local rl = Create("BodyAngularVelocity"){
  164. P = 3000,
  165. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  166. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  167. Parent = hit,
  168. }
  169. game:GetService("Debris"):AddItem(bodvol, .5)
  170. game:GetService("Debris"):AddItem(rl, .5)
  171. elseif Type == "Normal" then
  172. local vp = Create("BodyVelocity"){
  173. P = 500,
  174. maxForce = Vector3.new(math.huge, 0, math.huge),
  175. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  176. }
  177. if knockback > 0 then
  178. vp.Parent = hit.Parent.Torso
  179. end
  180. game:GetService("Debris"):AddItem(vp, .5)
  181. elseif Type == "Up" then
  182. local bodyVelocity = Create("BodyVelocity"){
  183. velocity = Vector3.new(0, 20, 0),
  184. P = 5000,
  185. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  186. Parent = hit,
  187. }
  188. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  189. elseif Type == "DarkUp" then
  190. coroutine.resume(coroutine.create(function()
  191. for i = 0, 1, 0.1 do
  192. swait()
  193. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  194. end
  195. end))
  196. local bodyVelocity = Create("BodyVelocity"){
  197. velocity = Vector3.new(0, 20, 0),
  198. P = 5000,
  199. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  200. Parent = hit,
  201. }
  202. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  203. elseif Type == "Snare" then
  204. local bp = Create("BodyPosition"){
  205. P = 2000,
  206. D = 100,
  207. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  208. position = hit.Parent.Torso.Position,
  209. Parent = hit.Parent.Torso,
  210. }
  211. game:GetService("Debris"):AddItem(bp, 1)
  212. elseif Type == "Freeze" then
  213. local BodPos = Create("BodyPosition"){
  214. P = 50000,
  215. D = 1000,
  216. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  217. position = hit.Parent.Torso.Position,
  218. Parent = hit.Parent.Torso,
  219. }
  220. local BodGy = Create("BodyGyro") {
  221. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  222. P = 20e+003,
  223. Parent = hit.Parent.Torso,
  224. cframe = hit.Parent.Torso.CFrame,
  225. }
  226. hit.Parent.Torso.Anchored = true
  227. coroutine.resume(coroutine.create(function(Part)
  228. swait(1.5)
  229. Part.Anchored = false
  230. end), hit.Parent.Torso)
  231. game:GetService("Debris"):AddItem(BodPos, 3)
  232. game:GetService("Debris"):AddItem(BodGy, 3)
  233. end
  234. local debounce = Create("BoolValue"){
  235. Name = "DebounceHit",
  236. Parent = hit.Parent,
  237. Value = true,
  238. }
  239. game:GetService("Debris"):AddItem(debounce, Delay)
  240. c = Create("ObjectValue"){
  241. Name = "creator",
  242. Value = Player,
  243. Parent = h,
  244. }
  245. game:GetService("Debris"):AddItem(c, .5)
  246. end
  247. end
  248.  
  249. function ShowDamage(Pos, Text, Time, Color)
  250. local Rate = (1 / 30)
  251. local Pos = (Pos or Vector3.new(0, 0, 0))
  252. local Text = (Text or "")
  253. local Time = (Time or 2)
  254. local Color = (Color or Color3.new(1, 0, 1))
  255. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  256. EffectPart.Anchored = true
  257. local BillboardGui = Create("BillboardGui"){
  258. Size = UDim2.new(3, 0, 3, 0),
  259. Adornee = EffectPart,
  260. Parent = EffectPart,
  261. }
  262. local TextLabel = Create("TextLabel"){
  263. BackgroundTransparency = 1,
  264. Size = UDim2.new(1, 0, 1, 0),
  265. Text = Text,
  266. Font = "Highway",
  267. TextColor3 = Color,
  268. TextScaled = true,
  269. Parent = BillboardGui,
  270. }
  271. game.Debris:AddItem(EffectPart, (Time))
  272. EffectPart.Parent = game:GetService("Workspace")
  273. delay(0, function()
  274. local Frames = (Time / Rate)
  275. for Frame = 1, Frames do
  276. wait(Rate)
  277. local Percent = (Frame / Frames)
  278. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  279. TextLabel.TextTransparency = Percent
  280. end
  281. if EffectPart and EffectPart.Parent then
  282. EffectPart:Destroy()
  283. end
  284. end)
  285. end
  286.  
  287. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  288. for _, c in pairs(workspace:children()) do
  289. local hum = c:findFirstChild("Humanoid")
  290. if hum ~= nil then
  291. local head = c:findFirstChild("Head")
  292. if head ~= nil then
  293. local targ = head.Position - Part.Position
  294. local mag = targ.magnitude
  295. if magni >= mag and c.Name ~= plr.Name then
  296. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  297. end
  298. end
  299. end
  300. end
  301. end
  302.  
  303. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  304. Hitboxpart = Instance.new("Part", EffectModel)
  305. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  306. Hitboxpart.CanCollide = false
  307. Hitboxpart.Transparency = 1
  308. Hitboxpart.Anchored = true
  309. Hitboxpart.CFrame = Pose
  310. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  311. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  312. end
  313.  
  314. ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"})
  315. script:WaitForChild("Heartbeat")
  316. frame = 0.03333333333333333
  317. tf = 0
  318. allowframeloss = false
  319. tossremainder = false
  320. lastframe = tick()
  321. script.Heartbeat:Fire()
  322. game:GetService("RunService").Heartbeat:connect(function(s, p)
  323. tf = tf + s
  324. if tf >= frame then
  325. if allowframeloss then
  326. script.Heartbeat:Fire()
  327. lastframe = tick()
  328. else
  329. for i = 1, math.floor(tf / frame) do
  330. script.Heartbeat:Fire()
  331. end
  332. lastframe = tick()
  333. end
  334. if tossremainder then
  335. tf = 0
  336. else
  337. tf = tf - frame * math.floor(tf / frame)
  338. end
  339. end
  340. end)
  341. function swait(num)
  342. if num == 0 or num == nil then
  343. ArtificialHB.Event:wait()
  344. else
  345. for i = 0, num do
  346. ArtificialHB.Event:wait()
  347. end
  348. end
  349. end
  350. function RemoveOutlines(part)
  351. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  352. end
  353. CFuncs = {
  354. Part = {
  355. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  356. local Part = Create("Part")({
  357. Parent = Parent,
  358. Reflectance = Reflectance,
  359. Transparency = Transparency,
  360. CanCollide = false,
  361. Locked = true,
  362. BrickColor = BrickColor.new(tostring(BColor)),
  363. Name = Name,
  364. Size = Size,
  365. Material = Material
  366. })
  367. RemoveOutlines(Part)
  368. return Part
  369. end
  370. },
  371. Mesh = {
  372. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  373. local Msh = Create(Mesh)({
  374. Parent = Part,
  375. Offset = OffSet,
  376. Scale = Scale
  377. })
  378. if Mesh == "SpecialMesh" then
  379. Msh.MeshType = MeshType
  380. Msh.MeshId = ""
  381. end
  382. return Msh
  383. end
  384. },
  385. Weld = {
  386. Create = function(Parent, Part0, Part1, C0, C1)
  387. local Weld = Create("Weld")({
  388. Parent = Parent,
  389. Part0 = Part0,
  390. Part1 = Part1,
  391. C0 = C0,
  392. C1 = C1
  393. })
  394. return Weld
  395. end
  396. },
  397. Sound = {
  398. Create = function(id, par, vol, pit)
  399. coroutine.resume(coroutine.create(function()
  400. local Sound = Create("Sound")({
  401. Volume = vol,
  402. Pitch = pit or 1,
  403. SoundId = "rbxassetid://" .. id,
  404. Parent = par or workspace
  405. })
  406. Sound:play()
  407. game:GetService("Debris"):AddItem(Sound, 10)
  408. end))
  409. end
  410. },
  411. Decal = {
  412. Create = function(Color, Texture, Transparency, Name, Parent)
  413. local Decal = Create("Decal")({
  414. Color3 = Color,
  415. Texture = "rbxassetid://" .. Texture,
  416. Transparency = Transparency,
  417. Name = Name,
  418. Parent = Parent
  419. })
  420. return Decal
  421. end
  422. },
  423. BillboardGui = {
  424. Create = function(Parent, Image, Position, Size)
  425. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  426. BillPar.CFrame = CFrame.new(Position)
  427. local Bill = Create("BillboardGui")({
  428. Parent = BillPar,
  429. Adornee = BillPar,
  430. Size = UDim2.new(1, 0, 1, 0),
  431. SizeOffset = Vector2.new(Size, Size)
  432. })
  433. local d = Create("ImageLabel", Bill)({
  434. Parent = Bill,
  435. BackgroundTransparency = 1,
  436. Size = UDim2.new(1, 0, 1, 0),
  437. Image = "rbxassetid://" .. Image
  438. })
  439. return BillPar
  440. end
  441. },
  442. ParticleEmitter = {
  443. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  444. local Particle = Create("ParticleEmitter")({
  445. Parent = Parent,
  446. Color = ColorSequence.new(Color1, Color2),
  447. LightEmission = LightEmission,
  448. Size = Size,
  449. Texture = Texture,
  450. Transparency = Transparency,
  451. ZOffset = ZOffset,
  452. Acceleration = Accel,
  453. Drag = Drag,
  454. LockedToPart = LockedToPart,
  455. VelocityInheritance = VelocityInheritance,
  456. EmissionDirection = EmissionDirection,
  457. Enabled = Enabled,
  458. Lifetime = LifeTime,
  459. Rate = Rate,
  460. Rotation = Rotation,
  461. RotSpeed = RotSpeed,
  462. Speed = Speed,
  463. VelocitySpread = VelocitySpread
  464. })
  465. return Particle
  466. end
  467. },
  468. CreateTemplate = {}
  469. }
  470. function rayCast(Position, Direction, Range, Ignore)
  471. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  472. end
  473. function FindNearestTorso(pos)
  474. local list = game.Workspace:children()
  475. local torso
  476. local dist = 1000
  477. local temp, human, temp2
  478. for x = 1, #list do
  479. temp2 = list[x]
  480. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  481. temp = temp2:findFirstChild("Torso")
  482. human = temp2:findFirstChild("Humanoid")
  483. if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then
  484. local dohit = true
  485. if dohit == true then
  486. torso = temp
  487. dist = (temp.Position - pos).magnitude
  488. end
  489. end
  490. end
  491. end
  492. return torso, dist
  493. end
  494. function ShowDamage(Pos, Text, Time, Color)
  495. local Rate = 0.03333333333333333
  496. local Pos = Pos or Vector3.new(0, 0, 0)
  497. local Text = Text or ""
  498. local Time = Time or 2
  499. local Color = Color or Color3.new(1, 0, 1)
  500. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  501. EffectPart.Anchored = true
  502. local BillboardGui = Create("BillboardGui")({
  503. Size = UDim2.new(3, 0, 3, 0),
  504. Adornee = EffectPart,
  505. Parent = EffectPart
  506. })
  507. local TextLabel = Create("TextLabel")({
  508. BackgroundTransparency = 1,
  509. Size = UDim2.new(1, 0, 1, 0),
  510. Text = Text,
  511. Font = "SciFi",
  512. TextColor3 = Color,
  513. TextScaled = true,
  514. Parent = BillboardGui
  515. })
  516. game.Debris:AddItem(EffectPart, Time)
  517. EffectPart.Parent = game:GetService("Workspace")
  518. delay(0, function()
  519. local Frames = Time / Rate
  520. for Frame = 1, Frames do
  521. wait(Rate)
  522. local Percent = Frame / Frames
  523. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  524. TextLabel.TextTransparency = Percent
  525. end
  526. if EffectPart and EffectPart.Parent then
  527. EffectPart:Destroy()
  528. end
  529. end)
  530. end
  531. function CamShake(time, freq)
  532. coroutine.resume(coroutine.create(function()
  533. local cam = game:GetService("Workspace").CurrentCamera
  534. local time = 10
  535. local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0)
  536. if math.random(1, 2) == 1 then
  537. seed = Vector3.new(-seed.x, seed.y, 0)
  538. end
  539. if math.random(1, 2) == 1 then
  540. seed = Vector3.new(seed.x, -seed.y, 0)
  541. end
  542. cam.CoordinateFrame = CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(seed.x * time, seed.y * time, 0) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
  543. for i = 1, time do
  544. cam.CoordinateFrame = CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(-seed.x, -seed.y, 0) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
  545. wait()
  546. end
  547. end))
  548. end
  549. local STDamage = false
  550. local Slamming = false
  551. local StrongPunch = false
  552. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  553. if Slamming == false then
  554.  
  555. elseif Slamming == true then
  556.  
  557. end
  558. if StrongPunch == true then
  559.  
  560. end
  561. for _, c in pairs(workspace:children()) do
  562. local hum = c:findFirstChild("Humanoid")
  563. if hum ~= nil then
  564. local head = c:findFirstChild("Torso")
  565. if head ~= nil then
  566. local targ = head.Position - Part.Position
  567. local mag = targ.magnitude
  568. if Magnitude >= mag and c.Name ~= Player.Name then
  569. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch)
  570. if STDamage == true then
  571. for i = 1, 10 do
  572. CamShake(1, 70000)
  573. end
  574. elseif STDamage == false then
  575. CamShake(1, 90000)
  576. end
  577. end
  578. end
  579. end
  580. end
  581. end
  582. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  583. Effects = {
  584. Block = {
  585. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  586. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  587. prt.Anchored = true
  588. prt.CFrame = cframe
  589. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  590. game:GetService("Debris"):AddItem(prt, 10)
  591. if Type == 1 or Type == nil then
  592. table.insert(Effects, {
  593. prt,
  594. "Block1",
  595. delay,
  596. x3,
  597. y3,
  598. z3,
  599. msh
  600. })
  601. elseif Type == 2 then
  602. table.insert(Effects, {
  603. prt,
  604. "Block2",
  605. delay,
  606. x3,
  607. y3,
  608. z3,
  609. msh
  610. })
  611. end
  612. end
  613. },
  614. Cylinder = {
  615. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  616. local prt = CFuncs.Part .. Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  617. prt.Anchored = true
  618. prt.CFrame = cframe
  619. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  620. game:GetService("Debris"):AddItem(prt, 2)
  621. Effects[#Effects + 1] = {
  622. prt,
  623. "Cylinder",
  624. delay,
  625. x3,
  626. y3,
  627. z3
  628. }
  629. end
  630. },
  631. Head = {
  632. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  633. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  634. prt.Anchored = true
  635. prt.CFrame = cframe
  636. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  637. game:GetService("Debris"):AddItem(prt, 10)
  638. table.insert(Effects, {
  639. prt,
  640. "Cylinder",
  641. delay,
  642. x3,
  643. y3,
  644. z3,
  645. msh
  646. })
  647. end
  648. },
  649. Sphere = {
  650. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  651. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  652. prt.Anchored = true
  653. prt.CFrame = cframe
  654. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  655. game:GetService("Debris"):AddItem(prt, 10)
  656. table.insert(Effects, {
  657. prt,
  658. "Cylinder",
  659. delay,
  660. x3,
  661. y3,
  662. z3,
  663. msh
  664. })
  665. end
  666. },
  667. Elect = {
  668. Create = function(cff, x, y, z)
  669. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  670. prt.Anchored = true
  671. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  672. prt.CFrame = CFrame.new(prt.Position)
  673. game:GetService("Debris"):AddItem(prt, 2)
  674. local xval = math.random() / 2
  675. local yval = math.random() / 2
  676. local zval = math.random() / 2
  677. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  678. table.insert(Effects, {
  679. prt,
  680. "Elec",
  681. 0.1,
  682. x,
  683. y,
  684. z,
  685. xval,
  686. yval,
  687. zval
  688. })
  689. end
  690. },
  691. Ring = {
  692. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  693. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  694. prt.Anchored = true
  695. prt.CFrame = cframe
  696. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  697. game:GetService("Debris"):AddItem(prt, 10)
  698. table.insert(Effects, {
  699. prt,
  700. "Cylinder",
  701. delay,
  702. x3,
  703. y3,
  704. z3,
  705. msh
  706. })
  707. end
  708. },
  709. Wave = {
  710. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  711. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  712. prt.Anchored = true
  713. prt.CFrame = cframe
  714. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  715. game:GetService("Debris"):AddItem(prt, 10)
  716. table.insert(Effects, {
  717. prt,
  718. "Cylinder",
  719. delay,
  720. x3,
  721. y3,
  722. z3,
  723. msh
  724. })
  725. end
  726. },
  727. Break = {
  728. Create = function(brickcolor, cframe, x1, y1, z1)
  729. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  730. prt.Anchored = true
  731. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  732. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  733. local num = math.random(10, 50) / 1000
  734. game:GetService("Debris"):AddItem(prt, 10)
  735. table.insert(Effects, {
  736. prt,
  737. "Shatter",
  738. num,
  739. prt.CFrame,
  740. math.random() - math.random(),
  741. 0,
  742. math.random(50, 100) / 100
  743. })
  744. end
  745. },
  746. Fire = {
  747. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  748. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  749. prt.Anchored = true
  750. prt.CFrame = cframe
  751. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  752. game:GetService("Debris"):AddItem(prt, 10)
  753. table.insert(Effects, {
  754. prt,
  755. "Fire",
  756. delay,
  757. 1,
  758. 1,
  759. 1,
  760. msh
  761. })
  762. end
  763. },
  764. FireWave = {
  765. Create = function(brickcolor, cframe, x1, y1, z1)
  766. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  767. prt.Anchored = true
  768. prt.CFrame = cframe
  769. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  770. local d = Create("Decal")({
  771. Parent = prt,
  772. Texture = "rbxassetid://26356434",
  773. Face = "Top"
  774. })
  775. local d = Create("Decal")({
  776. Parent = prt,
  777. Texture = "rbxassetid://26356434",
  778. Face = "Bottom"
  779. })
  780. game:GetService("Debris"):AddItem(prt, 10)
  781. table.insert(Effects, {
  782. prt,
  783. "FireWave",
  784. 1,
  785. 30,
  786. math.random(400, 600) / 100,
  787. msh
  788. })
  789. end
  790. },
  791. Lightning = {
  792. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  793. local magz = (p0 - p1).magnitude
  794. local curpos = p0
  795. local trz = {
  796. -ofs,
  797. ofs
  798. }
  799. for i = 1, tym do
  800. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  801. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  802. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  803. li.Material = "Neon"
  804. if tym == i then
  805. local magz2 = (curpos - p1).magnitude
  806. li.Size = Vector3.new(th, th, magz2)
  807. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  808. table.insert(Effects, {
  809. li,
  810. "Disappear",
  811. last
  812. })
  813. else
  814. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  815. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  816. game.Debris:AddItem(li, 10)
  817. table.insert(Effects, {
  818. li,
  819. "Disappear",
  820. last
  821. })
  822. end
  823. end
  824. end
  825. },
  826. EffectTemplate = {}
  827. }
  828. AHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright orange", "AHandleL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
  829. AHandleLWeld = CFuncs.Weld.Create(m, LeftArm, AHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.210014343, 0.00999736786, 1.14440918E-5, -1, 8.19564079E-8, -5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, -5.96046519E-8, 1.41561088E-7, -1.00000024))
  830. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright orange", "HitboxL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
  831. HitboxLWeld = CFuncs.Weld.Create(m, AHandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.700003624, 0, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  832. LHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright orange", "LHandleR", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  833. LHandleRWeld = CFuncs.Weld.Create(m, RightLeg, LHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498962402, -0.0950021744, 0.00499534607, -1, 8.19564079E-8, -5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, -5.96046519E-8, 1.41561088E-7, -1.00000024))
  834. LHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright orange", "LHandleL", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  835. LHandleLWeld = CFuncs.Weld.Create(m, LeftLeg, LHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498199463, -0.095000267, 0.00502204895, -1, 8.19564079E-8, -5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, -5.96046519E-8, 1.41561088E-7, -1.00000024))
  836. function attackone()
  837. attack = true
  838. for i = 0, 1, 0.1 do
  839. swait()
  840. PlayAnimationFromTable({
  841. CFrame.new(-0.367556393, 0.362597108, -0.168814808, 0.659691274, 0.213571444, 0.720555365, 0.428117335, 0.68120575, -0.593864143, -0.617678702, 0.700250089, 0.357951611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  842. CFrame.new(0.0925649405, 1.59318888, -0.0951198041, 0.854158282, 0.0900404453, -0.512164593, 0.140092775, 0.908643842, 0.39337799, 0.500796735, -0.407755941, 0.763507843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  843. CFrame.new(1.47541833, 0.172845304, 0.55520308, 0.994324088, -0.105229884, -0.0156727433, 0.0849070847, 0.696114421, 0.712891579, -0.0641151518, -0.710172296, 0.701093912) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  844. CFrame.new(-1.70162511, 0.152289137, -0.663924277, 0.948895216, 0.133226007, -0.286092222, -0.313462526, 0.502988875, -0.805446148, 0.0365947783, 0.853963494, 0.519044995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  845. CFrame.new(1.62866521, -1.48856974, 0.349410594, 0.593854785, -0.416557252, -0.688348949, 0.800831735, 0.223546296, 0.555612564, -0.0775686428, -0.881198704, 0.466344714) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  846. CFrame.new(-1.32901418, -1.69751668, 1.1098628, 0.65369916, 0.481991321, -0.583407819, 0.205917597, 0.628553271, 0.750014365, 0.728202343, -0.610417604, 0.311633229) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  847. }, 0.3, false)
  848. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  849. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  850. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  851. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  852. end
  853. CFuncs.Sound.Create("200632136", RightLeg, 0.3, math.random(1, 1.2))
  854. MagnitudeDamage(LHandleR,10, 20, 40, math.random(10, 20), "Normal", "260430117", 1)
  855. for i = 0, 1, 0.1 do
  856. swait()
  857. PlayAnimationFromTable({
  858. CFrame.new(-0.36755383, 0.288112044, -0.176250905, 0.659691572, 0.213571161, 0.720555127, 0.530445576, 0.546872735, -0.647732913, -0.532388806, 0.809520125, 0.247479036) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  859. CFrame.new(0.0925682783, 1.59317803, -0.0951238871, 0.854154587, 0.090043962, -0.512164235, 0.140088409, 0.908640802, 0.393379152, 0.500794768, -0.407754838, 0.763505459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  860. CFrame.new(1.47542572, 0.172846794, 0.55522418, 0.994324446, -0.105231136, -0.0156644583, 0.0849018693, 0.69611454, 0.71289295, -0.0641142875, -0.710176826, 0.701097846) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  861. CFrame.new(-1.70162535, 0.152290061, -0.663927674, 0.948894143, 0.133226484, -0.286095619, -0.313465714, 0.502987981, -0.805445552, 0.0365959704, 0.853963614, 0.51904422) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  862. CFrame.new(1.71297562, -1.68749523, -0.54476285, 0.55140388, -0.754237711, 0.35648185, 0.832835376, 0.522378564, -0.1830208, -0.0481776223, 0.39781028, 0.91620326) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  863. CFrame.new(-1.53493941, -1.32723296, 1.18864489, 0.65253067, 0.577527344, -0.490580291, 0.207690239, 0.486307204, 0.848747611, 0.728746712, -0.655722439, 0.197382882) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  864. }, 0.3, false)
  865. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  866. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  867. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  868. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  869. end
  870. attack = false
  871. end
  872. function attacktwo()
  873. attack = true
  874. for i = 0, 1, 0.1 do
  875. swait()
  876. PlayAnimationFromTable({
  877. CFrame.new(-0.367556393, 0.362597108, -0.168814808, 0.659691274, 0.213571444, 0.720555365, 0.428117335, 0.68120575, -0.593864143, -0.617678702, 0.700250089, 0.357951611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  878. CFrame.new(0.0925649405, 1.59318888, -0.0951198041, 0.854158282, 0.0900404453, -0.512164593, 0.140092775, 0.908643842, 0.39337799, 0.500796735, -0.407755941, 0.763507843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  879. CFrame.new(1.47541833, 0.172845304, 0.55520308, 0.994324088, -0.105229884, -0.0156727433, 0.0849070847, 0.696114421, 0.712891579, -0.0641151518, -0.710172296, 0.701093912) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  880. CFrame.new(-1.70162511, 0.152289137, -0.663924277, 0.948895216, 0.133226007, -0.286092222, -0.313462526, 0.502988875, -0.805446148, 0.0365947783, 0.853963494, 0.519044995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  881. CFrame.new(1.13033497, -1.77228749, -0.0829255581, 0.614124715, 0.413170695, -0.672415018, 0.27985999, 0.682634234, 0.675048769, 0.737922788, -0.602746427, 0.303592384) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  882. CFrame.new(-1.32901418, -1.69751668, 1.1098628, 0.65369916, 0.481991321, -0.583407819, 0.205917597, 0.628553271, 0.750014365, 0.728202343, -0.610417604, 0.311633229) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  883. }, 0.3, false)
  884. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  885. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  886. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  887. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  888. end
  889. CFuncs.Sound.Create("200632136", RightLeg, 0.3, math.random(1, 1.2))
  890. MagnitudeDamage(LHandleR,10, 20, 40, math.random(10, 20), "Up", "260430117", 1)
  891. for i = 0, 1, 0.1 do
  892. swait()
  893. PlayAnimationFromTable({
  894. CFrame.new(-0.367556393, 0.362597108, -0.168814808, 0.659691274, 0.213571444, 0.720555365, 0.428117335, 0.68120575, -0.593864143, -0.617678702, 0.700250089, 0.357951611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  895. CFrame.new(0.0925649405, 1.59318888, -0.0951198041, 0.854158282, 0.0900404453, -0.512164593, 0.140092775, 0.908643842, 0.39337799, 0.500796735, -0.407755941, 0.763507843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  896. CFrame.new(1.47541833, 0.172845304, 0.55520308, 0.994324088, -0.105229884, -0.0156727433, 0.0849070847, 0.696114421, 0.712891579, -0.0641151518, -0.710172296, 0.701093912) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  897. CFrame.new(-1.70162511, 0.152289137, -0.663924277, 0.948895216, 0.133226007, -0.286092222, -0.313462526, 0.502988875, -0.805446148, 0.0365947783, 0.853963494, 0.519044995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  898. CFrame.new(1.8327415, -0.849352121, -1.0175364, 0.614122808, -0.78808254, 0.0422270298, 0.279865921, 0.167436779, -0.945327282, 0.73792392, 0.592364311, 0.323383421) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  899. CFrame.new(-1.32901418, -1.69751668, 1.1098628, 0.65369916, 0.481991321, -0.583407819, 0.205917597, 0.628553271, 0.750014365, 0.728202343, -0.610417604, 0.311633229) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  900. }, 0.3, false)
  901. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  902. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  903. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  904. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  905. end
  906. attack = false
  907. end
  908. function attackthree()
  909. attack = true
  910. for i = 0, 1, 0.1 do
  911. swait()
  912. PlayAnimationFromTable({
  913. CFrame.new(-0.367556393, 0.362597108, -0.168814808, 0.659691274, 0.213571444, 0.720555365, 0.428117335, 0.68120575, -0.593864143, -0.617678702, 0.700250089, 0.357951611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  914. CFrame.new(0.0925649405, 1.59318888, -0.0951198041, 0.854158282, 0.0900404453, -0.512164593, 0.140092775, 0.908643842, 0.39337799, 0.500796735, -0.407755941, 0.763507843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  915. CFrame.new(1.47541833, 0.172845304, 0.55520308, 0.994324088, -0.105229884, -0.0156727433, 0.0849070847, 0.696114421, 0.712891579, -0.0641151518, -0.710172296, 0.701093912) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  916. CFrame.new(-1.70162511, 0.152289137, -0.663924277, 0.948895216, 0.133226007, -0.286092222, -0.313462526, 0.502988875, -0.805446148, 0.0365947783, 0.853963494, 0.519044995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  917. CFrame.new(1.8327415, -0.849352121, -1.0175364, 0.614122808, -0.78808254, 0.0422270298, 0.279865921, 0.167436779, -0.945327282, 0.73792392, 0.592364311, 0.323383421) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  918. CFrame.new(-1.32901418, -1.69751668, 1.1098628, 0.65369916, 0.481991321, -0.583407819, 0.205917597, 0.628553271, 0.750014365, 0.728202343, -0.610417604, 0.311633229) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  919. }, 0.3, false)
  920. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  921. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  922. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  923. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  924. end
  925. CFuncs.Sound.Create("200632136", RightLeg, 0.3, 0.7)
  926. MagnitudeDamage(LHandleR,10, 20, 40, math.random(10, 20), "Normal", "260430117", 1)
  927. for i = 0, 1, 0.1 do
  928. swait()
  929. PlayAnimationFromTable({
  930. CFrame.new(-0.367552429, 0.0611192845, -1.14263844, 0.65969193, 0.21357365, 0.720554054, -0.338366657, 0.94050312, 0.0310184695, -0.671059132, -0.264273465, 0.69270891) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  931. CFrame.new(0.0925538838, 1.593171, -0.0951151848, 0.854154706, 0.0900292099, -0.512166619, 0.140100911, 0.908641815, 0.393372297, 0.500791013, -0.407755822, 0.763507485) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  932. CFrame.new(1.61904371, 0.452465713, 0.340854943, 0.918792784, -0.375160873, -0.122776926, 0.385674596, 0.78689009, 0.481725216, -0.0841125548, -0.489957571, 0.867679) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  933. CFrame.new(-1.84857357, 0.145691067, 0.244089365, 0.92034328, 0.3837955, 0.0752958953, -0.299708635, 0.568375289, 0.766240358, 0.251283377, -0.727770805, 0.638127208) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  934. CFrame.new(1.52336645, -1.6797477, -0.41034317, 0.600343168, -0.267818987, -0.75356555, 0.257193327, 0.956859648, -0.13517186, 0.757257998, -0.112662517, 0.643325448) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  935. CFrame.new(-0.258456647, -2.31806183, 0.313666105, 0.66308558, -0.278153807, -0.694946289, 0.201684564, 0.960452795, -0.191984385, 0.720863402, -0.012857791, 0.692959726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  936. }, 0.3, false)
  937. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  938. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  939. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  940. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  941. end
  942. attack = false
  943. end
  944. function ReAxe()
  945. attack = true
  946. for i = 0, 1, 0.04 do
  947. swait()
  948. PlayAnimationFromTable({
  949. CFrame.new(0, 6.81497383, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-i * 6, 0, 0),
  950. CFrame.new(0, 1.42483747, -0.106030189, 1, 0, 0, 0, 0.992494524, 0.122291081, 0, -0.122291081, 0.992494524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  951. CFrame.new(1.82669258, 0.354503632, 0.116156459, 0.756644666, -0.65167129, -0.0530415997, 0.525806785, 0.654705048, -0.543036461, 0.38860783, 0.382996023, 0.838032305) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  952. CFrame.new(-1.75994623, 0.14361684, -0.353836894, 0.913797319, 0.406170398, 1.57502609E-6, -0.342963129, 0.771596551, -0.535737872, -0.217602074, 0.489555329, 0.844384372) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  953. CFrame.new(0.5, -0.952576637, -0.775204659, 1, 0, 0, 0, 0.803800464, 0.594899118, 0, -0.594899118, 0.803800464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  954. CFrame.new(-0.5, -1.99999714, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  955. }, 0.3, false)
  956. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  957. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  958. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  959. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  960. end
  961. CFuncs.Sound.Create("200632136", RightLeg, 0.3, 0.7)
  962. for i = 0, 1, 0.1 do
  963. swait()
  964. PlayAnimationFromTable({
  965. CFrame.new(-0.551365912, -1.56294012, -1.73210359, 0.999917269, 0.0127521465, -0.00284808339, -0.011285089, 0.952679753, 0.303766876, 0.00658703083, -0.303708971, 0.952745557) * CFrame.new(0.5, 0, 0) * CFrame.Angles(0, 0, 0),
  966. CFrame.new(0.0925273895, 1.5931716, -0.0951160192, 0.999854684, -0.0166062359, 0.00425276998, 0.0120972004, 0.859311283, 0.511312306, -0.0121454326, -0.511184871, 0.859387279) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  967. CFrame.new(1.61901593, 0.452460289, 0.34085089, 0.918793917, -0.375159234, -0.122774139, 0.385672271, 0.786893129, 0.481722146, -0.0841123983, -0.489953876, 0.867681146) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  968. CFrame.new(-1.84856308, 0.145706683, 0.244082704, 0.920344174, 0.38379246, 0.0753004029, -0.299710006, 0.568375349, 0.766239882, 0.251278222, -0.727772713, 0.638127327) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  969. CFrame.new(0.628742516, -0.258574307, -1.84686589, 0.996180117, -0.0451973416, 0.0747158825, 0.0556930676, -0.330178082, -0.942272425, 0.0672571212, 0.94284147, -0.3263973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  970. CFrame.new(-0.416295826, -0.0792745054, -1.22001719, 0.999984026, 0.00104189513, 0.00550700026, 6.8588584E-4, 0.95243454, -0.304742306, -0.00556256576, 0.304741204, 0.952419221) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  971. }, 0.3, false)
  972. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  973. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  974. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  975. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  976. MagnitudeDamage(LHandleR, 7, 1, 5, math.random(10, 20), "Normal", "260430117", 1)
  977. end
  978. attack = false
  979. end
  980. function BoBup()
  981. attack = true
  982. for i = 0, 1, 0.1 do
  983. swait()
  984. PlayAnimationFromTable({
  985. CFrame.new(0, 0.0200396311, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  986. CFrame.new(0, 1.42483699, -0.106030054, 1, 0, 0, 0, 0.992494524, 0.122291081, 0, -0.122291081, 0.992494524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  987. CFrame.new(1.82670534, 0.178882733, 0.0527216718, 0.905366004, -0.421315581, -0.0530520715, 0.373293847, 0.849214196, -0.373492599, 0.202408165, 0.318343878, 0.926120222) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  988. CFrame.new(-1.65915763, 0.0934458524, -0.285711288, 0.913798392, 0.406168014, 5.67670304E-6, -0.378125191, 0.850712657, -0.365115583, -0.148303077, 0.33363986, 0.930962265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  989. CFrame.new(0.607200623, -1.9660548, -0.255543649, 1, 0, 0, 0, 0.990942121, 0.134216279, 0, -0.134216279, 0.990942121) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  990. CFrame.new(-0.769832611, -1.99999738, 0, 1, 0, 0, 0, 0.99486959, 0.101166137, 0, -0.101166129, 0.99486959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  991. }, 0.3, false)
  992. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  993. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  994. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  995. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  996. end
  997. for i = 1, 10 do
  998. CFuncs.Sound.Create("423445777", Torso, 1, 1)
  999. Player.Character.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(math.random(-10, 10), 0, math.random(-10, 10))
  1000. wait()
  1001. end
  1002. attack = false
  1003. end
  1004. function LowestHwechook()
  1005. attack = true
  1006. CFuncs.Sound.Create("200632136", RightLeg, 0.3, math.random(0.6, 0.9))
  1007. for i = 0, 1, 0.06 do
  1008. swait()
  1009. PlayAnimationFromTable({
  1010. CFrame.new(-6.71386719E-4, -0.716550052, 0, 1, 0, 0, 0, 1.00000238, 0, 0, 0, 1.00000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -i * 6, 0),
  1011. CFrame.new(1.36867166E-5, 1.42484498, -0.106025912, 0.787242055, -0.0976274237, -0.608866811, 0.244874239, 0.955692232, 0.163374901, 0.565939367, -0.277711391, 0.776267648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1012. CFrame.new(0.912367761, 0.163385704, -1.03982854, 0.767794013, 0.628768086, 0.123057656, -0.148383886, 0.361355215, -0.920547128, -0.623278141, 0.688530743, 0.370745391) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1013. CFrame.new(-1.65915918, 0.093443051, -0.285713732, 0.913798392, 0.406168014, 5.67670304E-6, -0.378126085, 0.850714684, -0.365116447, -0.148303434, 0.333640605, 0.93096447) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1014. CFrame.new(1.9476912, -1.47111094, -0.222827375, 0.516934752, -0.856025755, -1.97240269E-7, 0.848281682, 0.512259185, 0.134215727, -0.114891902, -0.0693809986, 0.990955055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1015. CFrame.new(-0.496331096, -1.50212884, 0.298891962, 0.999944925, 0.00114219461, 0.0108861709, -0.0108897667, 0.00322096422, 0.999945939, 0.0011070607, -0.999996722, 0.00323345908) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1016. }, 0.3, false)
  1017. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  1018. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  1019. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  1020. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  1021. MagnitudeDamage(LHandleR, 10, 5, 12, 10, "Normal", "260430117", 1)
  1022. Effects.Fire.Create("Bright orange", LHandleR.CFrame * CFrame.new(0, -1, 0), 30, 30, 30, 0.08)
  1023. end
  1024. attack = false
  1025. end
  1026. function HwechookCombo()
  1027. attack = true
  1028. for i = 0, 1, 0.1 do
  1029. swait()
  1030. PlayAnimationFromTable({
  1031. CFrame.new(0, 0.0200396311, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1032. CFrame.new(0, 1.42483699, -0.106030054, 1, 0, 0, 0, 0.992494524, 0.122291081, 0, -0.122291081, 0.992494524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1033. CFrame.new(1.82670534, 0.178882733, 0.0527216718, 0.905366004, -0.421315581, -0.0530520715, 0.373293847, 0.849214196, -0.373492599, 0.202408165, 0.318343878, 0.926120222) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1034. CFrame.new(-1.65915763, 0.0934458524, -0.285711288, 0.913798392, 0.406168014, 5.67670304E-6, -0.378125191, 0.850712657, -0.365115583, -0.148303077, 0.33363986, 0.930962265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1035. CFrame.new(0.607200623, -1.9660548, -0.255543649, 1, 0, 0, 0, 0.990942121, 0.134216279, 0, -0.134216279, 0.990942121) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1036. CFrame.new(-0.769832611, -1.99999738, 0, 1, 0, 0, 0, 0.99486959, 0.101166137, 0, -0.101166129, 0.99486959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1037. }, 0.3, false)
  1038. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  1039. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  1040. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  1041. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  1042. end
  1043. for i = 0, 1, 0.1 do
  1044. swait()
  1045. PlayAnimationFromTable({
  1046. CFrame.new(-0.367556393, 0.362597108, -0.168814808, 0.659691274, 0.213571444, 0.720555365, 0.428117335, 0.68120575, -0.593864143, -0.617678702, 0.700250089, 0.357951611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1047. CFrame.new(0.0925649405, 1.59318888, -0.0951198041, 0.854158282, 0.0900404453, -0.512164593, 0.140092775, 0.908643842, 0.39337799, 0.500796735, -0.407755941, 0.763507843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1048. CFrame.new(1.47541833, 0.172845304, 0.55520308, 0.994324088, -0.105229884, -0.0156727433, 0.0849070847, 0.696114421, 0.712891579, -0.0641151518, -0.710172296, 0.701093912) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1049. CFrame.new(-1.70162511, 0.152289137, -0.663924277, 0.948895216, 0.133226007, -0.286092222, -0.313462526, 0.502988875, -0.805446148, 0.0365947783, 0.853963494, 0.519044995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1050. CFrame.new(1.62866521, -1.48856974, 0.349410594, 0.593854785, -0.416557252, -0.688348949, 0.800831735, 0.223546296, 0.555612564, -0.0775686428, -0.881198704, 0.466344714) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1051. CFrame.new(-1.32901418, -1.69751668, 1.1098628, 0.65369916, 0.481991321, -0.583407819, 0.205917597, 0.628553271, 0.750014365, 0.728202343, -0.610417604, 0.311633229) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1052. }, 0.3, false)
  1053. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  1054. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  1055. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  1056. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  1057. Effects.Fire.Create("Bright orange", LHandleR.CFrame * CFrame.new(0, -1, 0), 30, 30, 30, 0.08)
  1058. end
  1059. CFuncs.Sound.Create("200632136", RightLeg, 0.3, math.random(1, 1.2))
  1060. MagnitudeDamage(LHandleR, 10, 20, 40, math.random(10, 20), "Normal", "260430117", 1)
  1061. for i = 0, 1, 0.1 do
  1062. swait()
  1063. PlayAnimationFromTable({
  1064. CFrame.new(-0.36755383, 0.288112044, -0.176250905, 0.659691572, 0.213571161, 0.720555127, 0.530445576, 0.546872735, -0.647732913, -0.532388806, 0.809520125, 0.247479036) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1065. CFrame.new(0.0925682783, 1.59317803, -0.0951238871, 0.854154587, 0.090043962, -0.512164235, 0.140088409, 0.908640802, 0.393379152, 0.500794768, -0.407754838, 0.763505459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1066. CFrame.new(1.47542572, 0.172846794, 0.55522418, 0.994324446, -0.105231136, -0.0156644583, 0.0849018693, 0.69611454, 0.71289295, -0.0641142875, -0.710176826, 0.701097846) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1067. CFrame.new(-1.70162535, 0.152290061, -0.663927674, 0.948894143, 0.133226484, -0.286095619, -0.313465714, 0.502987981, -0.805445552, 0.0365959704, 0.853963614, 0.51904422) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1068. CFrame.new(1.71297562, -1.68749523, -0.54476285, 0.55140388, -0.754237711, 0.35648185, 0.832835376, 0.522378564, -0.1830208, -0.0481776223, 0.39781028, 0.91620326) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1069. CFrame.new(-1.53493941, -1.32723296, 1.18864489, 0.65253067, 0.577527344, -0.490580291, 0.207690239, 0.486307204, 0.848747611, 0.728746712, -0.655722439, 0.197382882) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1070. }, 0.3, false)
  1071. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  1072. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  1073. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  1074. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  1075. Effects.Fire.Create("Bright orange", LHandleR.CFrame * CFrame.new(0, -1, 0), 30, 30, 30, 0.08)
  1076. end
  1077. CFuncs.Sound.Create("200632136", RightLeg, 0.3, math.random(0.6, 0.9))
  1078. for i = 0, 1, 0.06 do
  1079. swait()
  1080. PlayAnimationFromTable({
  1081. CFrame.new(-6.71386719E-4, -0.716550052, 0, 1, 0, 0, 0, 1.00000238, 0, 0, 0, 1.00000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, i * 6, 0),
  1082. CFrame.new(1.36867166E-5, 1.42484498, -0.106025912, 0.787242055, -0.0976274237, -0.608866811, 0.244874239, 0.955692232, 0.163374901, 0.565939367, -0.277711391, 0.776267648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1083. CFrame.new(0.912367761, 0.163385704, -1.03982854, 0.767794013, 0.628768086, 0.123057656, -0.148383886, 0.361355215, -0.920547128, -0.623278141, 0.688530743, 0.370745391) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1084. CFrame.new(-1.65915918, 0.093443051, -0.285713732, 0.913798392, 0.406168014, 5.67670304E-6, -0.378126085, 0.850714684, -0.365116447, -0.148303434, 0.333640605, 0.93096447) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1085. CFrame.new(1.9476912, -1.47111094, -0.222827375, 0.516934752, -0.856025755, -1.97240269E-7, 0.848281682, 0.512259185, 0.134215727, -0.114891902, -0.0693809986, 0.990955055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1086. CFrame.new(-0.496331096, -1.50212884, 0.298891962, 0.999944925, 0.00114219461, 0.0108861709, -0.0108897667, 0.00322096422, 0.999945939, 0.0011070607, -0.999996722, 0.00323345908) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1087. }, 0.3, false)
  1088. MagnitudeDamage(LHandleR, 10, 20, 40, math.random(10, 20), "Up", "260430117", 1)
  1089. Effects.Fire.Create("Bright orange", LHandleR.CFrame * CFrame.new(0, -1, 0), 30, 30, 30, 0.08)
  1090. end
  1091. for i = 0, 1, 0.1 do
  1092. swait()
  1093. PlayAnimationFromTable({
  1094. CFrame.new(0, 6.81497383, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-i * 6, 0, 0),
  1095. CFrame.new(0, 1.42483747, -0.106030189, 1, 0, 0, 0, 0.992494524, 0.122291081, 0, -0.122291081, 0.992494524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1096. CFrame.new(1.82669258, 0.354503632, 0.116156459, 0.756644666, -0.65167129, -0.0530415997, 0.525806785, 0.654705048, -0.543036461, 0.38860783, 0.382996023, 0.838032305) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1097. CFrame.new(-1.75994623, 0.14361684, -0.353836894, 0.913797319, 0.406170398, 1.57502609E-6, -0.342963129, 0.771596551, -0.535737872, -0.217602074, 0.489555329, 0.844384372) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1098. CFrame.new(0.5, -0.952576637, -0.775204659, 1, 0, 0, 0, 0.803800464, 0.594899118, 0, -0.594899118, 0.803800464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1099. CFrame.new(-0.5, -1.99999714, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1100. }, 0.3, false)
  1101. Effects.Fire.Create("Bright orange", LHandleR.CFrame * CFrame.new(0, -1, 0), 30, 30, 30, 0.08)
  1102. end
  1103. CFuncs.Sound.Create("200632136", RightLeg, 0.3, 0.7)
  1104. MagnitudeDamage(LHandleR, 10, 20, 40, math.random(10, 20), "Normal", "260430117", 1)
  1105. for i = 0, 1, 0.1 do
  1106. swait()
  1107. PlayAnimationFromTable({
  1108. CFrame.new(-0.551365912, -1.56294012, -1.73210359, 0.999917269, 0.0127521465, -0.00284808339, -0.011285089, 0.952679753, 0.303766876, 0.00658703083, -0.303708971, 0.952745557) * CFrame.new(0.5, 0, 0) * CFrame.Angles(0, 0, 0),
  1109. CFrame.new(0.0925273895, 1.5931716, -0.0951160192, 0.999854684, -0.0166062359, 0.00425276998, 0.0120972004, 0.859311283, 0.511312306, -0.0121454326, -0.511184871, 0.859387279) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1110. CFrame.new(1.61901593, 0.452460289, 0.34085089, 0.918793917, -0.375159234, -0.122774139, 0.385672271, 0.786893129, 0.481722146, -0.0841123983, -0.489953876, 0.867681146) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1111. CFrame.new(-1.84856308, 0.145706683, 0.244082704, 0.920344174, 0.38379246, 0.0753004029, -0.299710006, 0.568375349, 0.766239882, 0.251278222, -0.727772713, 0.638127327) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1112. CFrame.new(0.628742516, -0.258574307, -1.84686589, 0.996180117, -0.0451973416, 0.0747158825, 0.0556930676, -0.330178082, -0.942272425, 0.0672571212, 0.94284147, -0.3263973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1113. CFrame.new(-0.416295826, -0.0792745054, -1.22001719, 0.999984026, 0.00104189513, 0.00550700026, 6.8588584E-4, 0.95243454, -0.304742306, -0.00556256576, 0.304741204, 0.952419221) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1114. }, 0.3, false)
  1115. Effects.Fire.Create("Bright orange", LHandleR.CFrame * CFrame.new(0, -1, 0), 30, 30, 30, 0.08)
  1116. end
  1117. attack = false
  1118. end
  1119. function ThreeStageHwechook()
  1120. attack = true
  1121. for i = 0, 1, 0.1 do
  1122. swait()
  1123. PlayAnimationFromTable({
  1124. CFrame.new(-0.367556393, 0.362597108, -0.168814808, 0.659691274, 0.213571444, 0.720555365, 0.428117335, 0.68120575, -0.593864143, -0.617678702, 0.700250089, 0.357951611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1125. CFrame.new(0.0925649405, 1.59318888, -0.0951198041, 0.854158282, 0.0900404453, -0.512164593, 0.140092775, 0.908643842, 0.39337799, 0.500796735, -0.407755941, 0.763507843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1126. CFrame.new(1.47541833, 0.172845304, 0.55520308, 0.994324088, -0.105229884, -0.0156727433, 0.0849070847, 0.696114421, 0.712891579, -0.0641151518, -0.710172296, 0.701093912) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1127. CFrame.new(-1.70162511, 0.152289137, -0.663924277, 0.948895216, 0.133226007, -0.286092222, -0.313462526, 0.502988875, -0.805446148, 0.0365947783, 0.853963494, 0.519044995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1128. CFrame.new(1.62866521, -1.48856974, 0.349410594, 0.593854785, -0.416557252, -0.688348949, 0.800831735, 0.223546296, 0.555612564, -0.0775686428, -0.881198704, 0.466344714) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1129. CFrame.new(-1.32901418, -1.69751668, 1.1098628, 0.65369916, 0.481991321, -0.583407819, 0.205917597, 0.628553271, 0.750014365, 0.728202343, -0.610417604, 0.311633229) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1130. }, 0.3, false)
  1131. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  1132. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  1133. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  1134. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  1135. end
  1136. CFuncs.Sound.Create("200632136", RightLeg, 0.3, math.random(1, 1.2))
  1137. MagnitudeDamage(LHandleR, 4, 10, 15, math.random(10, 20), "Normal", "260430117", 1)
  1138. for i = 0, 1, 0.1 do
  1139. swait()
  1140. PlayAnimationFromTable({
  1141. CFrame.new(-0.36755383, 0.288112044, -0.176250905, 0.659691572, 0.213571161, 0.720555127, 0.530445576, 0.546872735, -0.647732913, -0.532388806, 0.809520125, 0.247479036) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1142. CFrame.new(0.0925682783, 1.59317803, -0.0951238871, 0.854154587, 0.090043962, -0.512164235, 0.140088409, 0.908640802, 0.393379152, 0.500794768, -0.407754838, 0.763505459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1143. CFrame.new(1.47542572, 0.172846794, 0.55522418, 0.994324446, -0.105231136, -0.0156644583, 0.0849018693, 0.69611454, 0.71289295, -0.0641142875, -0.710176826, 0.701097846) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1144. CFrame.new(-1.70162535, 0.152290061, -0.663927674, 0.948894143, 0.133226484, -0.286095619, -0.313465714, 0.502987981, -0.805445552, 0.0365959704, 0.853963614, 0.51904422) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1145. CFrame.new(1.71297562, -1.68749523, -0.54476285, 0.55140388, -0.754237711, 0.35648185, 0.832835376, 0.522378564, -0.1830208, -0.0481776223, 0.39781028, 0.91620326) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1146. CFrame.new(-1.53493941, -1.32723296, 1.18864489, 0.65253067, 0.577527344, -0.490580291, 0.207690239, 0.486307204, 0.848747611, 0.728746712, -0.655722439, 0.197382882) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1147. }, 0.3, false)
  1148. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  1149. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  1150. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  1151. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  1152. end
  1153. for i = 0, 1, 0.1 do
  1154. swait()
  1155. PlayAnimationFromTable({
  1156. CFrame.new(-0.113312133, 0.13116172, -0.354558915, 0.649551153, 0.154637128, -0.744426489, -0.534994125, 0.788657904, -0.302985191, 0.540245116, 0.595068097, 0.595003545) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1157. CFrame.new(1.71661395E-5, 1.42483521, -0.106044486, 1.00000012, 0, 0, 2.98023224E-8, 0.992493987, 0.122293949, -2.98023224E-8, -0.122293979, 0.992493987) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1158. CFrame.new(1.82667983, 0.178878903, 0.0527277514, 0.905365586, -0.42130667, -0.0530500114, 0.373289913, 0.849209666, -0.37349388, 0.20240593, 0.318345457, 0.926114559) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1159. CFrame.new(-1.65914595, 0.09345413, -0.285713971, 0.913795471, 0.406175107, 8.89599323E-6, -0.37812984, 0.850708246, -0.365121096, -0.148310661, 0.333642572, 0.930960059) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1160. CFrame.new(1.45908952, -1.66813385, 0.0576419234, 0.79650557, -0.602663875, -0.048830986, 0.558065176, 0.701652765, 0.443001509, -0.23272112, -0.380099148, 0.895192087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1161. CFrame.new(-1.86138082, -1.34563231, -0.421400368, 0.499536276, 0.816758871, 0.288736284, -0.857176244, 0.417784929, 0.301174074, 0.1253573, -0.397944957, 0.908803999) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1162. }, 0.3, false)
  1163. end
  1164. CFuncs.Sound.Create("200632136", RightLeg, 0.3, math.random(1, 1.2))
  1165. MagnitudeDamage(LHandleL, 10, 20, 40, math.random(10, 20), "Normal", "260430117", 1)
  1166. CFuncs.Sound.Create("423445777", Torso, 1, 1)
  1167. Player.Character.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -9)
  1168. for i = 0, 2, 0.09 do
  1169. swait()
  1170. PlayAnimationFromTable({
  1171. CFrame.new(-6.71386719E-4, -0.716550052, 0, 1, 0, 0, 0, 1.00000238, 0, 0, 0, 1.00000238) * CFrame.new(0, 2, 0) * CFrame.Angles(0, i * 6, 0),
  1172. CFrame.new(1.36867166E-5, 1.42484498, -0.106025912, 0.787242055, -0.0976274237, -0.608866811, 0.244874239, 0.955692232, 0.163374901, 0.565939367, -0.277711391, 0.776267648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1173. CFrame.new(0.912367761, 0.163385704, -1.03982854, 0.767794013, 0.628768086, 0.123057656, -0.148383886, 0.361355215, -0.920547128, -0.623278141, 0.688530743, 0.370745391) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1174. CFrame.new(-1.65915918, 0.093443051, -0.285713732, 0.913798392, 0.406168014, 5.67670304E-6, -0.378126085, 0.850714684, -0.365116447, -0.148303434, 0.333640605, 0.93096447) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1175. CFrame.new(1.9476912, -1.47111094, -0.222827375, 0.516934752, -0.856025755, -1.97240269E-7, 0.848281682, 0.512259185, 0.134215727, -0.114891902, -0.0693809986, 0.990955055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1176. CFrame.new(-0.496331096, -1.50212884, 0.298891962, 0.999944925, 0.00114219461, 0.0108861709, -0.0108897667, 0.00322096422, 0.999945939, 0.0011070607, -0.999996722, 0.00323345908) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1177. }, 0.3, false)
  1178. MagnitudeDamage(LHandleR, 10, 20, 40, math.random(10, 20), "Normal", "260430117", 1)
  1179. end
  1180. attack = false
  1181. end
  1182. Mouse.Button1Down:connect(function()
  1183. if attack == false and attacktype == 1 then
  1184. attackone()
  1185. attacktype = 2
  1186. elseif attack == false and attacktype == 2 then
  1187. attacktwo()
  1188. attacktype = 3
  1189. elseif attack == false and attacktype == 3 then
  1190. attackthree()
  1191. attacktype = 1
  1192. end
  1193. end)
  1194. Mouse.KeyDown:connect(function(k)
  1195. k = k:lower()
  1196. if attack == false and k == "r" and Axe == false then
  1197. Axe = true
  1198. ReAxe()
  1199. wait(2)
  1200. Axe = false
  1201. end
  1202. if attack == false and k == "e" and ClearingTheArea == false then
  1203. ClearingTheArea = true
  1204. LowestHwechook()
  1205. wait(4)
  1206. ClearingTheArea = false
  1207. end
  1208. if attack == false and k == "f" and Combo == false then
  1209. Combo = true
  1210. HwechookCombo()
  1211. wait(5)
  1212. Combo = false
  1213. end
  1214. if attack == false and k == "q" and ThreeStage == false then
  1215. ThreeStage = true
  1216. ThreeStageHwechook()
  1217. wait(8)
  1218. ThreeStage = false
  1219. end
  1220. end)
  1221. while true do
  1222. swait()
  1223. for i, v in pairs(Character:GetChildren()) do
  1224. if v:IsA("Part") then
  1225. v.Material = "SmoothPlastic"
  1226. elseif v:IsA("Accessory") then
  1227. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1228. end
  1229. end
  1230. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1231. velocity = RootPart.Velocity.y
  1232. sine = sine + change
  1233. sine = sine + change
  1234. local RightLeg = CFrame.new(0.5, -1, 0)
  1235. local LeftLeg = CFrame.new(-0.5, -1, 0)
  1236. local lefth = Torso.CFrame * LeftLeg
  1237. local righth = Torso.CFrame * RightLeg
  1238. local speed = Vector3.new(Torso.Velocity.X, 0, Torso.Velocity.Z)
  1239. local TiltOnAxis = (Torso.CFrame - Torso.CFrame.p):vectorToObjectSpace(speed / 100)
  1240. local AngleThetaR = (righth - righth.p):vectorToObjectSpace(speed / 100)
  1241. local AngleThetaL = (lefth - lefth.p):vectorToObjectSpace(speed / 100)
  1242. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1243. if 1 < RootPart.Velocity.y and hit == nil then
  1244. Anim = "Jump"
  1245. if attack == false then
  1246. PlayAnimationFromTable({
  1247. CFrame.new(0, 0.00872418843, 0.0292903651, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1248. CFrame.new(0, 1.49999177, -1.49011612E-7, 1, 0, 0, 0, 0.98480767, 0.173648626, 0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1249. CFrame.new(1.64140427, 0.273908556, 0.192029893, 0.946035206, -0.31541416, 0.0743736848, 0.284469575, 0.91821146, 0.275617331, -0.155224368, -0.239586651, 0.958386064) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1250. CFrame.new(-1.59350562, 0.239538491, 0.192243189, 0.935008764, 0.347148597, -0.0724328309, -0.312019885, 0.902400434, 0.297181845, 0.168529674, -0.255267143, 0.952069581) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1251. CFrame.new(0.602718651, -1.95556056, 0.410092652, 0.978475571, 0.0150757888, -0.205834776, 0.0853612274, 0.878464639, 0.470120817, 0.187906027, -0.477568805, 0.85826844) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1252. CFrame.new(-0.41903314, -1.41877925, -0.229210436, 0.962251842, -0.0299757104, 0.270510197, -0.084186092, 0.912393093, 0.400567293, -0.258819073, -0.408219665, 0.875425339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1253. }, 0.06, false)
  1254. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.06)
  1255. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.06)
  1256. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.06)
  1257. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.06)
  1258. end
  1259. elseif RootPart.Velocity.y < -1 and hit == nil then
  1260. Anim = "Fall"
  1261. if attack == false then
  1262. PlayAnimationFromTable({
  1263. CFrame.new(0, -0.0366669223, -0.0478199311, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1264. CFrame.new(0, 1.58110774, -0.115850762, 1, 0, 0, 0, 0.98480767, 0.173647821, 0, -0.173647821, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1265. CFrame.new(1.72150326, 0.610064566, 0.0891361833, 0.724097908, -0.685675204, 0.0743751749, 0.645872176, 0.711960018, 0.275611937, -0.241932437, -0.151533186, 0.958387375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1266. CFrame.new(-1.69228244, 0.568353653, 0.082095027, 0.759895504, 0.646005511, -0.0724337399, -0.601845145, 0.741260946, 0.297183931, 0.24567467, -0.182231784, 0.952074111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1267. CFrame.new(0.60271728, -1.95556188, 0.410093039, 0.978470623, -0.00292155147, -0.206365243, 0.0853614658, 0.916095972, 0.391767859, 0.187905625, -0.400949359, 0.896622121) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1268. CFrame.new(-0.453899324, -1.81726217, -0.229221463, 0.962255239, -0.00628663599, 0.272094905, -0.0841865242, 0.943832874, 0.319526881, -0.258820891, -0.33037129, 0.90767473) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1269. }, 0.06, false)
  1270. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.06)
  1271. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.06)
  1272. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.06)
  1273. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.06)
  1274. end
  1275. elseif Torsovelocity < 1 and hit ~= nil then
  1276. Anim = "Idle"
  1277. if attack == false then
  1278. change = 1
  1279. PlayAnimationFromTable({
  1280. CFrame.new(0, -0.00190299738, -0.0435779989, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0 - math.sin(sine / 39) / 16, 0) * CFrame.Angles(0 - 0.5 * math.sin(sine / 39) / 16, 0, 0),
  1281. CFrame.new(0, 1.49999213, 3.27825546E-7, 1, 0, 0, 0, 0.99619478, 0.0871553123, 0, -0.0871553123, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(math.cos(sine / 39) / 16, 0, 0),
  1282. CFrame.new(1.64141297, 0.173907071, -0.107973814, 0.946035922, -0.270955235, 0.177766502, 0.284470022, 0.957103431, -0.055051513, -0.155224428, 0.102649838, 0.982532144) * CFrame.new(0, 0 - 1 * math.sin(sine / 39) / 16, 0) * CFrame.Angles(math.sin(sine / 39) / 16, 0, -math.cos(sine / 39) / 16),
  1283. CFrame.new(-1.59350157, 0.139536366, -0.107754946, 0.935009062, 0.284010828, -0.212358981, -0.312018842, 0.943447471, -0.11203292, 0.168530986, 0.171011835, 0.970748305) * CFrame.new(0, 0 - 1 * math.sin(sine / 39) / 16, 0) * CFrame.Angles(math.sin(sine / 39) / 16, 0, math.cos(sine / 39) / 16),
  1284. CFrame.new(0.640606463, -2.04178405, -0.149884507, 0.999857128, 0.00922466256, 0.0142093226, -0.00979161169, 0.999138415, 0.0403634124, -0.0138245597, -0.0404968038, 0.999084651) * CFrame.new(0, 0 + 1 * math.sin(sine / 39) / 16, 0) * CFrame.Angles(0, 0, 0),
  1285. CFrame.new(-0.669387758, -2.10988212, 0.0830777287, 0.994904816, 0.0294452235, 0.0964424536, -0.0412058383, 0.991637051, 0.12232089, -0.0920340344, -0.125671521, 0.987794578) * CFrame.new(0, 0 + 1 * math.sin(sine / 39) / 16, 0) * CFrame.Angles(0, 0, 0)
  1286. }, 0.08, false)
  1287. LH.C1 = clerp(LH.C1, CFrame.new(0, 0, 0), 0.08)
  1288. RH.C1 = clerp(RH.C1, CFrame.new(0, 0, 0), 0.08)
  1289. RW.C1 = clerp(RW.C1, CFrame.new(0, 0, 0), 0.08)
  1290. LW.C1 = clerp(LW.C1, CFrame.new(0, 0, 0), 0.08)
  1291. end
  1292. elseif Torsovelocity > 2 and hit ~= nil then
  1293. Anim = "Walk"
  1294. if attack == false then
  1295. change = 0.5
  1296. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 + 0.12 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-4 + 2 * math.cos(sine / 2)), math.rad(0 + 10 * math.cos(sine / 4) / 2.3) + RootPart.RotVelocity.Y / 30, math.rad(0) + RootPart.RotVelocity.Y / 30), 0.4)
  1297. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1298. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.05 * math.cos(sine / 2), math.sin(sine / 4) / 4) * CFrame.Angles(-math.sin(sine / 4) / 2.8, -math.sin(sine / 4) / 3, math.rad(10 + 7 * math.cos(sine / 2)) + RootPart.RotVelocity.Y / 30), 0.4)
  1299. RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  1300. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.8, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + RootPart.RotVelocity.Y / 30), 0.4)
  1301. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  1302. RH.C0 = RH.C0:lerp(CFrame.new(0.5, -1 + math.cos(sine / 4) * 0.3, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - RootPart.RotVelocity.Y / 20), 0.8)
  1303. RH.C1 = RH.C1:lerp(CFrame.new(0, 1, 0), 0.8)
  1304. LH.C0 = LH.C0:lerp(CFrame.new(-0.5, -1 - math.cos(sine / 4) * 0.3, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - RootPart.RotVelocity.Y / 20), 0.8)
  1305. LH.C1 = LH.C1:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1306. end
  1307. end
  1308. if 0 < #Effects then
  1309. for e = 1, #Effects do
  1310. if Effects[e] ~= nil then
  1311. local Thing = Effects[e]
  1312. if Thing ~= nil then
  1313. local Part = Thing[1]
  1314. local Mode = Thing[2]
  1315. local Delay = Thing[3]
  1316. local IncX = Thing[4]
  1317. local IncY = Thing[5]
  1318. local IncZ = Thing[6]
  1319. if Thing[2] == "Shoot" then
  1320. local Look = Thing[1]
  1321. local move = 30
  1322. if Thing[8] == 3 then
  1323. move = 10
  1324. end
  1325. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1326. if Thing[10] ~= nil then
  1327. da = pos
  1328. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1329. cfa = CFrame.new(Thing[4], pos)
  1330. tehCF = cfa:lerp(cf2, 0.2)
  1331. Thing[1] = tehCF.lookVector
  1332. end
  1333. local mag = (Thing[4] - pos).magnitude
  1334. Effects.Head.Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1335. if Thing[8] == 2 then
  1336. Effects.Ring.Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1337. end
  1338. Thing[4] = Thing[4] + Look * move
  1339. Thing[3] = Thing[3] - 1
  1340. if 2 < Thing[5] then
  1341. Thing[5] = Thing[5] - 0.3
  1342. Thing[6] = Thing[6] - 0.3
  1343. end
  1344. if hit ~= nil then
  1345. Thing[3] = 0
  1346. if Thing[8] == 1 or Thing[8] == 3 then
  1347. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1348. elseif Thing[8] == 2 then
  1349. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1350. if hit.Parent:findFirstChild("Humanoid") ~= nil or hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  1351. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1352. ref.Anchored = true
  1353. ref.CFrame = CFrame.new(pos)
  1354. CFuncs.Sound.Create("161006093", ref, 1, 1.2)
  1355. game:GetService("Debris"):AddItem(ref, 0.2)
  1356. Effects.Block.Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1357. Effects.Ring.Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1358. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1359. end
  1360. end
  1361. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1362. ref.Anchored = true
  1363. ref.CFrame = CFrame.new(pos)
  1364. Effects.Sphere.Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1365. game:GetService("Debris"):AddItem(ref, 1)
  1366. end
  1367. if Thing[3] <= 0 then
  1368. table.remove(Effects, e)
  1369. end
  1370. end
  1371. if Thing[2] == "FireWave" then
  1372. if Thing[3] <= Thing[4] then
  1373. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1374. Thing[3] = Thing[3] + 1
  1375. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1376. else
  1377. Part.Parent = nil
  1378. table.remove(Effects, e)
  1379. end
  1380. end
  1381. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1382. if Thing[1].Transparency <= 1 then
  1383. if Thing[2] == "Block1" then
  1384. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1385. Mesh = Thing[7]
  1386. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1387. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1388. elseif Thing[2] == "Block2" then
  1389. Thing[1].CFrame = Thing[1].CFrame
  1390. Mesh = Thing[7]
  1391. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1392. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1393. elseif Thing[2] == "Fire" then
  1394. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1395. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1396. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1397. elseif Thing[2] == "Cylinder" then
  1398. Mesh = Thing[7]
  1399. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1400. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1401. elseif Thing[2] == "Blood" then
  1402. Mesh = Thing[7]
  1403. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1404. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1405. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1406. elseif Thing[2] == "Elec" then
  1407. Mesh = Thing[10]
  1408. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1409. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1410. elseif Thing[2] == "Disappear" then
  1411. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1412. end
  1413. else
  1414. Part.Parent = nil
  1415. table.remove(Effects, e)
  1416. end
  1417. end
  1418. end
  1419. end
  1420. end
  1421. end
  1422. end
Add Comment
Please, Sign In to add comment