Advertisement
memberhero

Fighter

Jul 12th, 2018
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.33 KB | None | 0 0
  1.  
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. Humanoid = Character.Humanoid
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LS = Torso["Left Shoulder"]
  14. LH = Torso["Left Hip"]
  15. RS = Torso["Right Shoulder"]
  16. RH = Torso["Right Hip"]
  17. Face = Head.face
  18. Neck = Torso.Neck
  19. it = Instance.new
  20. attacktype = 1
  21. attacktype2 = 1
  22. vt = Vector3.new
  23. cf = CFrame.new
  24. cn = CFrame.new
  25. euler = CFrame.fromEulerAnglesXYZ
  26. angles = CFrame.Angles
  27. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  28. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  29. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  30. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  31. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  32. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  33. RootPart = Character.HumanoidRootPart
  34. RootJoint = RootPart.RootJoint
  35. RootCF = euler(-1.57, 0, 3.14)
  36. attack = false
  37. attackdebounce = false
  38. trispeed = 0.2
  39. attackmode = "none"
  40. local idle = 0
  41. local Anim = "Idle"
  42. stance = false
  43. local ff = 2
  44. noleg = false
  45. evadecooldown = false
  46. Humanoid.Animator.Parent = nil
  47. equip = false
  48. Face.Texture = "http://www.roblox.com/asset/?id=0"
  49. attackspeed = 0.14
  50. df = false
  51. Swing = 1
  52. local sine = 0
  53. local change = 1
  54. local val = 0
  55. magic = false
  56. cam = workspace.CurrentCamera
  57. deb = game:GetService("Debris")
  58. RbxUtility = LoadLibrary("RbxUtility")
  59. Create = RbxUtility.Create
  60. local handee = Instance.new("Part")
  61. handee.Parent = Character
  62. handee.Size = Vector3.new(0.2, 0.2, 0.2)
  63. handee.Archivable = true
  64. handee.Transparency = 1
  65. ---handee.CanCollide = false
  66. handee.BrickColor = BrickColor.new("Cyan")
  67. handee.Material = "Neon"
  68. local handeeweld = Instance.new("Weld")
  69. handeeweld.Parent = handee
  70. handeeweld.Part0 = RightArm
  71. handeeweld.Part1 = handee
  72. handeeweld.C1 = CFrame.new(0, 0.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  73. handeeweld.Part0 = RightArm
  74. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  75. local wld = Instance.new("Weld", wp1)
  76. wld.Part0 = wp0
  77. wld.Part1 = wp1
  78. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  79. end
  80. function weld(model)
  81. local parts, last = {}, nil
  82. local function scan(parent)
  83. for _, v in pairs(parent:GetChildren()) do
  84. if v:IsA("BasePart") then
  85. if last then
  86. local w = Instance.new("Weld")
  87. w.Name = ("%s_Weld"):format(v.Name)
  88. w.Part0, w.Part1 = last, v
  89. w.C0 = last.CFrame:inverse()
  90. w.C1 = v.CFrame:inverse()
  91. w.Parent = last
  92. end
  93. last = v
  94. table.insert(parts, v)
  95. end
  96. scan(v)
  97. end
  98. end
  99. scan(model)
  100. for _, v in pairs(parts) do
  101. v.Anchored = false
  102. v.Locked = true
  103. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  104. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  105. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  106. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  107. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  108. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  109. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  110. end
  111. end
  112. for i, v in pairs(Character:GetChildren()) do
  113. if v:IsA("Accoutrement") then
  114. v:Destroy()
  115. elseif v:IsA("Part") then
  116. v.Transparency = 0
  117. end
  118. end
  119.  
  120. music = Instance.new("Sound", Torso)
  121. music.Volume = 1
  122. music.TimePosition = 0
  123. music.Pitch = 1
  124. music.SoundId = "rbxassetid://1466277933"
  125. music.Looped = true
  126. music:Play()
  127. function so(id, par, vol, pit)
  128. coroutine.resume(coroutine.create(function()
  129. local sou = Instance.new("Sound", par or workspace)
  130. sou.Volume = vol
  131. sou.Pitch = pit or 1
  132. sou.SoundId = id
  133. swait()
  134. sou:play()
  135. game:GetService("Debris"):AddItem(sou, 8)
  136. end))
  137. end
  138. RSH, LSH = nil, nil
  139. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  140. RW.Name = "Right Shoulder"
  141. LW.Name = "Left Shoulder"
  142. LH = Torso["Left Hip"]
  143. RH = Torso["Right Hip"]
  144. TorsoColor = Torso.BrickColor
  145. function NoOutline(Part)
  146. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  147. end
  148. player = Player
  149. ch = Character
  150. RSH = ch.Torso["Right Shoulder"]
  151. LSH = ch.Torso["Left Shoulder"]
  152. RSH.Parent = nil
  153. LSH.Parent = nil
  154. RW.Name = "Right Shoulder"
  155. RW.Part0 = ch.Torso
  156. RW.C0 = cf(1.5, 0.5, 0)
  157. RW.C1 = cf(0, 0.5, 0)
  158. RW.Part1 = ch["Right Arm"]
  159. RW.Parent = ch.Torso
  160. LW.Name = "Left Shoulder"
  161. LW.Part0 = ch.Torso
  162. LW.C0 = cf(-1.5, 0.5, 0)
  163. LW.C1 = cf(0, 0.5, 0)
  164. LW.Part1 = ch["Left Arm"]
  165. LW.Parent = ch.Torso
  166. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  167. local wld = Instance.new("Weld", wp1)
  168. wld.Part0 = wp0
  169. wld.Part1 = wp1
  170. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  171. end
  172. newWeld(RootPart, Torso, 0, -1, 0)
  173. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  174. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  175. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  176. newWeld(Torso, RightLeg, 0.5, -1, 0)
  177. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  178. Player = game:GetService("Players").LocalPlayer
  179. Character = Player.Character
  180. mouse = Player:GetMouse()
  181. m = Instance.new("Model", Character)
  182.  
  183. local weldBetween = function(a, b)
  184. local weldd = Instance.new("ManualWeld")
  185. weldd.Part0 = a
  186. weldd.Part1 = b
  187. weldd.C0 = CFrame.new()
  188. weldd.C1 = b.CFrame:inverse() * a.CFrame
  189. weldd.Parent = a
  190. return weldd
  191. end
  192. ArtificialHB = Instance.new("BindableEvent", script)
  193. ArtificialHB.Name = "Heartbeat"
  194. script:WaitForChild("Heartbeat")
  195. frame = 0.016666666666666666
  196. tf = 0
  197. allowframeloss = false
  198. tossremainder = false
  199. lastframe = tick()
  200. script.Heartbeat:Fire()
  201. game:GetService("RunService").Heartbeat:connect(function(s, p)
  202. tf = tf + s
  203. if tf >= frame then
  204. if allowframeloss then
  205. script.Heartbeat:Fire()
  206. lastframe = tick()
  207. else
  208. for i = 1, math.floor(tf / frame) do
  209. script.Heartbeat:Fire()
  210. end
  211. lastframe = tick()
  212. end
  213. if tossremainder then
  214. tf = 0
  215. else
  216. tf = tf - frame * math.floor(tf / frame)
  217. end
  218. end
  219. end)
  220. function swait(num)
  221. if num == 0 or num == nil then
  222. ArtificialHB.Event:wait()
  223. else
  224. for i = 0, num do
  225. ArtificialHB.Event:wait()
  226. end
  227. end
  228. end
  229. function RemoveOutlines(part)
  230. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  231. end
  232. CFuncs = {
  233. Part = {
  234. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  235. local Part = Create("Part")({
  236. Parent = Parent,
  237. Reflectance = Reflectance,
  238. Transparency = Transparency,
  239. CanCollide = false,
  240. Locked = true,
  241. BrickColor = BrickColor.new(tostring(BColor)),
  242. Name = Name,
  243. Size = Size,
  244. Material = Material
  245. })
  246. RemoveOutlines(Part)
  247. return Part
  248. end
  249. },
  250. Mesh = {
  251. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  252. local Msh = Create(Mesh)({
  253. Parent = Part,
  254. Offset = OffSet,
  255. Scale = Scale
  256. })
  257. if Mesh == "SpecialMesh" then
  258. Msh.MeshType = MeshType
  259. Msh.MeshId = MeshId
  260. end
  261. return Msh
  262. end
  263. },
  264. Mesh = {
  265. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  266. local Msh = Create(Mesh)({
  267. Parent = Part,
  268. Offset = OffSet,
  269. Scale = Scale
  270. })
  271. if Mesh == "SpecialMesh" then
  272. Msh.MeshType = MeshType
  273. Msh.MeshId = MeshId
  274. end
  275. return Msh
  276. end
  277. },
  278. Weld = {
  279. Create = function(Parent, Part0, Part1, C0, C1)
  280. local Weld = Create("Weld")({
  281. Parent = Parent,
  282. Part0 = Part0,
  283. Part1 = Part1,
  284. C0 = C0,
  285. C1 = C1
  286. })
  287. return Weld
  288. end
  289. },
  290. Sound = {
  291. Create = function(id, par, vol, pit)
  292. coroutine.resume(coroutine.create(function()
  293. local S = Create("Sound")({
  294. Volume = vol,
  295. Pitch = pit or 1,
  296. SoundId = id,
  297. Parent = par or workspace
  298. })
  299. wait()
  300. S:play()
  301. game:GetService("Debris"):AddItem(S, 6)
  302. end))
  303. end
  304. },
  305. ParticleEmitter = {
  306. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  307. local fp = Create("ParticleEmitter")({
  308. Parent = Parent,
  309. Color = ColorSequence.new(Color1, Color2),
  310. LightEmission = LightEmission,
  311. Size = Size,
  312. Texture = Texture,
  313. Transparency = Transparency,
  314. ZOffset = ZOffset,
  315. Acceleration = Accel,
  316. Drag = Drag,
  317. LockedToPart = LockedToPart,
  318. VelocityInheritance = VelocityInheritance,
  319. EmissionDirection = EmissionDirection,
  320. Enabled = Enabled,
  321. Lifetime = LifeTime,
  322. Rate = Rate,
  323. Rotation = Rotation,
  324. RotSpeed = RotSpeed,
  325. Speed = Speed,
  326. VelocitySpread = VelocitySpread
  327. })
  328. return fp
  329. end
  330. },
  331. CreateTemplate = {}
  332. }
  333. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  334. Effects = {
  335. Block = {
  336. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  337. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  338. prt.Anchored = true
  339. prt.CFrame = cframe
  340. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  341. game:GetService("Debris"):AddItem(prt, 2)
  342. if Type == 1 or Type == nil then
  343. table.insert(Effects, {
  344. prt,
  345. "Block1",
  346. delay,
  347. x3,
  348. y3,
  349. z3,
  350. msh
  351. })
  352. elseif Type == 2 then
  353. table.insert(Effects, {
  354. prt,
  355. "Block2",
  356. delay,
  357. x3,
  358. y3,
  359. z3,
  360. msh
  361. })
  362. end
  363. end
  364. },
  365. Cylinder = {
  366. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  367. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  368. prt.Anchored = true
  369. prt.CFrame = cframe
  370. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  371. game:GetService("Debris"):AddItem(prt, 10)
  372. table.insert(Effects, {
  373. prt,
  374. "Cylinder",
  375. delay,
  376. x3,
  377. y3,
  378. z3,
  379. msh
  380. })
  381. end
  382. },
  383. Head = {
  384. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  385. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  386. prt.Anchored = true
  387. prt.CFrame = cframe
  388. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  389. game:GetService("Debris"):AddItem(prt, 10)
  390. table.insert(Effects, {
  391. prt,
  392. "Cylinder",
  393. delay,
  394. x3,
  395. y3,
  396. z3,
  397. msh
  398. })
  399. end
  400. },
  401. Sphere = {
  402. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  403. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  404. prt.Anchored = true
  405. prt.CFrame = cframe
  406. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  407. game:GetService("Debris"):AddItem(prt, 10)
  408. table.insert(Effects, {
  409. prt,
  410. "Cylinder",
  411. delay,
  412. x3,
  413. y3,
  414. z3,
  415. msh
  416. })
  417. end
  418. },
  419. Elect = {
  420. Create = function(cff, x, y, z)
  421. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  422. prt.Anchored = true
  423. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  424. prt.CFrame = CFrame.new(prt.Position)
  425. game:GetService("Debris"):AddItem(prt, 2)
  426. local xval = math.random() / 2
  427. local yval = math.random() / 2
  428. local zval = math.random() / 2
  429. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  430. table.insert(Effects, {
  431. prt,
  432. "Elec",
  433. 0.1,
  434. x,
  435. y,
  436. z,
  437. xval,
  438. yval,
  439. zval
  440. })
  441. end
  442. },
  443. Ring = {
  444. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  445. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  446. prt.Anchored = true
  447. prt.CFrame = cframe
  448. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  449. game:GetService("Debris"):AddItem(prt, 10)
  450. table.insert(Effects, {
  451. prt,
  452. "Cylinder",
  453. delay,
  454. x3,
  455. y3,
  456. z3,
  457. msh
  458. })
  459. end
  460. },
  461. Wave = {
  462. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  463. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  464. prt.Anchored = true
  465. prt.CFrame = cframe
  466. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  467. game:GetService("Debris"):AddItem(prt, 10)
  468. table.insert(Effects, {
  469. prt,
  470. "Cylinder",
  471. delay,
  472. x3,
  473. y3,
  474. z3,
  475. msh
  476. })
  477. end
  478. },
  479. Break = {
  480. Create = function(brickcolor, cframe, x1, y1, z1)
  481. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  482. prt.Anchored = true
  483. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  484. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  485. local num = math.random(10, 50) / 1000
  486. game:GetService("Debris"):AddItem(prt, 10)
  487. table.insert(Effects, {
  488. prt,
  489. "Shatter",
  490. num,
  491. prt.CFrame,
  492. math.random() - math.random(),
  493. 0,
  494. math.random(50, 100) / 100
  495. })
  496. end
  497. },
  498. Fire = {
  499. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  500. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  501. prt.Anchored = true
  502. prt.CFrame = cframe
  503. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  504. game:GetService("Debris"):AddItem(prt, 10)
  505. table.insert(Effects, {
  506. prt,
  507. "Fire",
  508. delay,
  509. 1,
  510. 1,
  511. 1,
  512. msh
  513. })
  514. end
  515. },
  516. FireWave = {
  517. Create = function(brickcolor, cframe, x1, y1, z1)
  518. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  519. prt.Anchored = true
  520. prt.CFrame = cframe
  521. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  522. local d = Create("Decal")({
  523. Parent = prt,
  524. Texture = "rbxassetid://26356434",
  525. Face = "Top"
  526. })
  527. local d = Create("Decal")({
  528. Parent = prt,
  529. Texture = "rbxassetid://26356434",
  530. Face = "Bottom"
  531. })
  532. game:GetService("Debris"):AddItem(prt, 10)
  533. table.insert(Effects, {
  534. prt,
  535. "FireWave",
  536. 1,
  537. 30,
  538. math.random(400, 600) / 100,
  539. msh
  540. })
  541. end
  542. },
  543. Lightning = {
  544. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  545. local magz = (p0 - p1).magnitude
  546. local curpos = p0
  547. local trz = {
  548. -ofs,
  549. ofs
  550. }
  551. for i = 1, tym do
  552. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  553. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  554. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  555. li.Material = "Neon"
  556. if tym == i then
  557. local magz2 = (curpos - p1).magnitude
  558. li.Size = Vector3.new(th, th, magz2)
  559. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  560. table.insert(Effects, {
  561. li,
  562. "Disappear",
  563. last
  564. })
  565. else
  566. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  567. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  568. game.Debris:AddItem(li, 10)
  569. table.insert(Effects, {
  570. li,
  571. "Disappear",
  572. last
  573. })
  574. end
  575. end
  576. end
  577. },
  578. EffectTemplate = {}
  579. }
  580. function New(Object, Parent, Name, Data)
  581. local Object = Instance.new(Object)
  582. for Index, Value in pairs(Data or {}) do
  583. Object[Index] = Value
  584. end
  585. Object.Parent = Parent
  586. Object.Name = Name
  587. return Object
  588. end
  589. function clerp(a, b, t)
  590. local qa = {
  591. QuaternionFromCFrame(a)
  592. }
  593. local qb = {
  594. QuaternionFromCFrame(b)
  595. }
  596. local ax, ay, az = a.x, a.y, a.z
  597. local bx, by, bz = b.x, b.y, b.z
  598. local _t = 1 - t
  599. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  600. end
  601. function QuaternionFromCFrame(cf)
  602. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  603. local trace = m00 + m11 + m22
  604. if trace > 0 then
  605. local s = math.sqrt(1 + trace)
  606. local recip = 0.5 / s
  607. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  608. else
  609. local i = 0
  610. if m00 < m11 then
  611. i = 1
  612. end
  613. if m22 > (i == 0 and m00 or m11) then
  614. i = 2
  615. end
  616. if i == 0 then
  617. local s = math.sqrt(m00 - m11 - m22 + 1)
  618. local recip = 0.5 / s
  619. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  620. elseif i == 1 then
  621. local s = math.sqrt(m11 - m22 - m00 + 1)
  622. local recip = 0.5 / s
  623. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  624. elseif i == 2 then
  625. local s = math.sqrt(m22 - m00 - m11 + 1)
  626. local recip = 0.5 / s
  627. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  628. end
  629. end
  630. end
  631. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  632. local xs, ys, zs = x + x, y + y, z + z
  633. local wx, wy, wz = w * xs, w * ys, w * zs
  634. local xx = x * xs
  635. local xy = x * ys
  636. local xz = x * zs
  637. local yy = y * ys
  638. local yz = y * zs
  639. local zz = z * zs
  640. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  641. end
  642. function QuaternionSlerp(a, b, t)
  643. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  644. local startInterp, finishInterp
  645. if cosTheta >= 1.0E-4 then
  646. if 1 - cosTheta > 1.0E-4 then
  647. local theta = math.acos(cosTheta)
  648. local invSinTheta = 1 / math.sin(theta)
  649. startInterp = math.sin((1 - t) * theta) * invSinTheta
  650. finishInterp = math.sin(t * theta) * invSinTheta
  651. else
  652. startInterp = 1 - t
  653. finishInterp = t
  654. end
  655. elseif 1 + cosTheta > 1.0E-4 then
  656. local theta = math.acos(-cosTheta)
  657. local invSinTheta = 1 / math.sin(theta)
  658. startInterp = math.sin((t - 1) * theta) * invSinTheta
  659. finishInterp = math.sin(t * theta) * invSinTheta
  660. else
  661. startInterp = t - 1
  662. finishInterp = t
  663. end
  664. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  665. end
  666. function weld5(part0, part1, c0, c1)
  667. weeld = Instance.new("Weld", part0)
  668. weeld.Part0 = part0
  669. weeld.Part1 = part1
  670. weeld.C0 = c0
  671. weeld.C1 = c1
  672. return weeld
  673. end
  674. function rayCast(Pos, Dir, Max, Ignore)
  675. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  676. end
  677. function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  678. if hit.Parent == nil then
  679. return
  680. end
  681. h = hit.Parent:FindFirstChild("Humanoid")
  682. for _, v in pairs(hit.Parent:children()) do
  683. if v:IsA("Humanoid") then
  684. h = v
  685. end
  686. end
  687. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  688. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  689. end
  690. if hit.Parent.className == "Hat" then
  691. hit = hit.Parent.Parent:findFirstChild("Head")
  692. end
  693. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  694. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  695. return
  696. end
  697. c = Instance.new("ObjectValue")
  698. c.Name = "creator"
  699. c.Value = game:service("Players").LocalPlayer
  700. c.Parent = h
  701. game:GetService("Debris"):AddItem(c, 0.5)
  702. Damage = math.random(minim, maxim)
  703. blocked = false
  704. block = hit.Parent:findFirstChild("Block")
  705. if block ~= nil then
  706. print(block.className)
  707. if block.className == "NumberValue" and block.Value > 0 then
  708. blocked = true
  709. if decreaseblock == nil then
  710. block.Value = block.Value - 1
  711. end
  712. end
  713. if block.className == "IntValue" and block.Value > 0 then
  714. blocked = true
  715. if decreaseblock ~= nil then
  716. block.Value = block.Value - 1
  717. end
  718. end
  719. end
  720. if blocked == false then
  721. h.Health = h.Health - Damage
  722. showDamage(hit.Parent, Damage, 0.5, BrickColor.new("White"))
  723. else
  724. h.Health = h.Health - Damage / 2
  725. showDamage(hit.Parent, Damage / 2, 0.5, BrickColor.new("Bright blue"))
  726. end
  727. h.Health = h.Health - Damage
  728. if Type == "Knockdown" then
  729. hum = hit.Parent.Humanoid
  730. hum.PlatformStand = true
  731. coroutine.resume(coroutine.create(function(HHumanoid)
  732. swait(5)
  733. HHumanoid.PlatformStand = false
  734. end), hum)
  735. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  736. local bodvol = Instance.new("BodyVelocity")
  737. bodvol.velocity = angle * knockback
  738. bodvol.P = 5000
  739. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  740. bodvol.Parent = hit
  741. rl = Instance.new("BodyAngularVelocity")
  742. rl.P = 30000
  743. rl.maxTorque = Vector3.new(0, 10, 10) * 5000
  744. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(2, 4), math.random(-10, 10))
  745. rl.Parent = hit
  746. game:GetService("Debris"):AddItem(bodvol, 0.5)
  747. game:GetService("Debris"):AddItem(rl, 0.5)
  748. elseif Type == "Normal" then
  749. vp = Instance.new("BodyVelocity")
  750. vp.P = 500
  751. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  752. if KnockbackType == 1 then
  753. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  754. elseif KnockbackType == 2 then
  755. vp.velocity = Property.CFrame.lookVector * knockback
  756. end
  757. if knockback > 0 then
  758. vp.Parent = hit.Parent.Torso
  759. end
  760. game:GetService("Debris"):AddItem(vp, 0.5)
  761. elseif Type == "Up" then
  762. local bodyVelocity = Instance.new("BodyVelocity")
  763. bodyVelocity.velocity = vt(0, 4, 0)
  764. bodyVelocity.P = 1000
  765. bodyVelocity.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  766. bodyVelocity.Parent = hit
  767. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  768. rl = Instance.new("BodyAngularVelocity")
  769. rl.P = 3000
  770. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  771. rl.angularvelocity = Vector3.new(math.random(-20, 20), math.random(-20, 20), math.random(-20, 20))
  772. rl.Parent = hit
  773. game:GetService("Debris"):AddItem(rl, 0.5)
  774. elseif Type == "Slam" then
  775. local bodyVelocity2 = Instance.new("BodyVelocity")
  776. bodyVelocity2.velocity = vt(0, 4, 0)
  777. bodyVelocity2.P = 1000
  778. bodyVelocity2.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  779. bodyVelocity2.Parent = hit
  780. game:GetService("Debris"):AddItem(bodyVelocity2, 1)
  781. rl2 = Instance.new("BodyAngularVelocity")
  782. rl2.P = 3000
  783. rl2.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  784. rl2.angularvelocity = Vector3.new(math.random(-20, 20), math.random(-20, 20), math.random(-20, 20))
  785. rl2.Parent = hit
  786. game:GetService("Debris"):AddItem(rl2, 0.5)
  787. elseif Type == "Snare" then
  788. bp = Instance.new("BodyPosition")
  789. bp.P = 2000
  790. bp.D = 100
  791. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  792. bp.position = hit.Parent.Torso.Position
  793. bp.Parent = hit.Parent.Torso
  794. game:GetService("Debris"):AddItem(bp, 1)
  795. elseif Type == "Target" and Targetting == false then
  796. ZTarget = hit.Parent.Torso
  797. coroutine.resume(coroutine.create(function(Part)
  798. so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  799. swait(5)
  800. so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  801. end), ZTarget)
  802. TargHum = ZTarget.Parent:findFirstChild("Humanoid")
  803. targetgui = Instance.new("BillboardGui")
  804. targetgui.Parent = ZTarget
  805. targetgui.Size = UDim2.new(10, 100, 10, 100)
  806. targ = Instance.new("ImageLabel")
  807. targ.Parent = targetgui
  808. targ.BackgroundTransparency = 1
  809. targ.Image = "rbxassetid://4834067"
  810. targ.Size = UDim2.new(1, 0, 1, 0)
  811. cam.CameraType = "Scriptable"
  812. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  813. dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  814. workspace.CurrentCamera.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  815. Targetting = true
  816. RocketTarget = ZTarget
  817. for i = 1, Property do
  818. if 0 < Humanoid.Health and Character.Parent ~= nil and 0 < TargHum.Health and TargHum.Parent ~= nil and Targetting == true then
  819. swait()
  820. end
  821. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  822. dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  823. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) * cf(0, 5, 10) * euler(-0.3, 0, 0)
  824. end
  825. Targetting = false
  826. RocketTarget = nil
  827. targetgui.Parent = nil
  828. cam.CameraType = "Custom"
  829. end
  830. debounce = Instance.new("BoolValue")
  831. debounce.Name = "DebounceHit"
  832. debounce.Parent = hit.Parent
  833. debounce.Value = true
  834. game:GetService("Debris"):AddItem(debounce, Delay)
  835. c = Instance.new("ObjectValue")
  836. c.Name = "creator"
  837. c.Value = Player
  838. c.Parent = h
  839. game:GetService("Debris"):AddItem(c, 0.5)
  840. CRIT = false
  841. hitDeb = true
  842. AttackPos = 6
  843. end
  844. end
  845. function showDamage(Char, Dealt, du, Color)
  846. m = Instance.new("Model")
  847. m.Name = tostring(Dealt)
  848. h = Instance.new("Humanoid")
  849. h.Health = 0
  850. h.MaxHealth = 0
  851. h.Parent = m
  852. c = Instance.new("Part")
  853. c.Transparency = 0
  854. c.BrickColor = Color
  855. c.Name = "Head"
  856. c.TopSurface = 0
  857. c.Material = "Neon"
  858. c.BrickColor = BrickColor.new("Toothpaste")
  859. c.BottomSurface = 0
  860. c.formFactor = "Plate"
  861. c.Size = Vector3.new(1, 0.4, 1)
  862. ms = Instance.new("CylinderMesh")
  863. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  864. if CRIT == true then
  865. ms.Scale = Vector3.new(1, 1.25, 1)
  866. end
  867. ms.Parent = c
  868. c.Reflectance = 0
  869. Instance.new("BodyGyro").Parent = c
  870. c.Parent = m
  871. if Char:findFirstChild("Head") ~= nil then
  872. c.CFrame = CFrame.new(Char.Head.CFrame.p + Vector3.new(0, 1.5, 0))
  873. elseif Char.Parent:findFirstChild("Head") ~= nil then
  874. c.CFrame = CFrame.new(Char.Parent.Head.CFrame.p + Vector3.new(0, 1.5, 0))
  875. end
  876. f = Instance.new("BodyPosition")
  877. f.P = 2000
  878. f.D = 100
  879. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  880. f.position = c.Position + Vector3.new(0, 3, 0)
  881. f.Parent = c
  882. game:GetService("Debris"):AddItem(m, 0.5 + du)
  883. c.CanCollide = false
  884. m.Parent = workspace
  885. c.CanCollide = false
  886. end
  887. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  888. local Part = Create("Part")({
  889. formFactor = FormFactor,
  890. Parent = Parent,
  891. Reflectance = Reflectance,
  892. Transparency = Transparency,
  893. CanCollide = false,
  894. Locked = true,
  895. BrickColor = BrickColor.new(tostring(BColor)),
  896. Name = Name,
  897. Size = Size,
  898. Material = Material
  899. })
  900. RemoveOutlines(Part)
  901. return Part
  902. end
  903. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  904. local Msh = Create(Mesh)({
  905. Parent = Part,
  906. Offset = OffSet,
  907. Scale = Scale
  908. })
  909. if Mesh == "SpecialMesh" then
  910. Msh.MeshType = MeshType
  911. Msh.MeshId = MeshId
  912. end
  913. return Msh
  914. end
  915. function CreateWeld(Parent, Part0, Part1, C0, C1)
  916. local Weld = Create("Weld")({
  917. Parent = Parent,
  918. Part0 = Part0,
  919. Part1 = Part1,
  920. C0 = C0,
  921. C1 = C1
  922. })
  923. return Weld
  924. end
  925. function attackone()
  926. attack = true
  927. for i = 0, 2, attackspeed + 0.16 do
  928. swait()
  929. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.1)
  930. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.2)
  931. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.2)
  932. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.3 * i) * angles(math.rad(60 * i), math.rad(0), math.rad(-20 * i)), 0.2)
  933. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(0)), 0.2)
  934. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(4)), 0.2)
  935. end
  936. so("http://roblox.com/asset/?id=1022532343", LeftArm, 1, 1)
  937. RootPart.Velocity = RootPart.CFrame.lookVector * 34
  938. con5 = Humanoid.Touched:connect(function(hit)
  939. if hit.Parent:FindFirstChild("Humanoid") ~= nil and attackdebounce == false then
  940. attackdebounce = true
  941. Damagefunc(hit, 5, 8, math.random(5, 8), "Normal", RootPart, 0, 1)
  942. so("http://roblox.com/asset/?id=573395724", LeftArm, 1, 1)
  943. wait(0.2)
  944. attackdebounce = false
  945. end
  946. end)
  947. for i = 0, 1, attackspeed do
  948. swait()
  949. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  950. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(60)), 0.4)
  951. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.4)
  952. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.3) * angles(math.rad(20), math.rad(-40 * i), math.rad(-90)), 0.4)
  953. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.3)
  954. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.3)
  955. end
  956. attack = false
  957. con5:Disconnect()
  958. end
  959. function attacktwo()
  960. attack = true
  961. for i = 0, 2, 0.15 do
  962. swait()
  963. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.1)
  964. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(30)), 0.2)
  965. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.3 * i) * angles(math.rad(60 * i), math.rad(0), math.rad(20 * i)), 0.2)
  966. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90 - 40 * i), math.rad(0), math.rad(-90 + 40 * i)), 0.2)
  967. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(4)), 0.2)
  968. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.2)
  969. end
  970. so("http://roblox.com/asset/?id=169259383", RightArm, 1, 1)
  971. RootPart.Velocity = RootPart.CFrame.lookVector * 45
  972. con5 = Humanoid.Touched:connect(function(hit)
  973. if hit.Parent:FindFirstChild("Humanoid") ~= nil and attackdebounce == false then
  974. attackdebounce = true
  975. Damagefunc(hit, 6, 17, math.random(5, 12), "Normal", RootPart, 0, 1)
  976. so("http://roblox.com/asset/?id=542443306", RightArm, 1, 1)
  977. wait(0.3)
  978. attackdebounce = false
  979. end
  980. end)
  981. for i = 0, 1, 0.07 do
  982. swait()
  983. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(90 * i), math.rad(0)), 0.6)
  984. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(15), math.rad(-70)), 0.4)
  985. RW.C0 = clerp(RW.C0, CFrame.new(0.9, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-50)), 0.7)
  986. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(50)), 0.4)
  987. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(0)), 0.3)
  988. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(-40), math.rad(20)), 0.3)
  989. end
  990. con5:Disconnect()
  991. attack = false
  992. end
  993. function attackthree()
  994. attack = true
  995. noleg = true
  996. for i = 0, 2.3, 0.16 do
  997. swait()
  998. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1.15, 2.5) * CFrame.Angles(math.rad(-27), math.rad(0 - 50 * i), math.rad(0)), 0.2)
  999. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-24), math.rad(-8), math.rad(43)), 0.2)
  1000. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(60)), 0.2)
  1001. LW.C0 = clerp(LW.C0, CFrame.new(-0.9, 0.5, -0.3) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.2)
  1002. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.72, -0.4) * CFrame.Angles(math.rad(17), math.rad(0), math.rad(-16)), 0.2)
  1003. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.34, -1.15, 0.3) * CFrame.Angles(math.rad(-77), math.rad(0), math.rad(0)), 0.2)
  1004. end
  1005. con5 = Humanoid.Touched:connect(function(hit)
  1006. if hit.Parent:FindFirstChild("Humanoid") ~= nil and attackdebounce == false then
  1007. attackdebounce = true
  1008. Damagefunc(hit, 6, 12, math.random(5, 8), "Normal", RootPart, 0, 1)
  1009. so("http://roblox.com/asset/?id=573395724", LeftLeg, 1, 1)
  1010. wait(0.17)
  1011. attackdebounce = false
  1012. end
  1013. end)
  1014. so("http://roblox.com/asset/?id=1022532343", LeftLeg, 1, 1.34)
  1015. so("http://roblox.com/asset/?id=1022532343", RightLeg, 1, 1.34)
  1016. for i = 0, 3.17, 0.11 do
  1017. swait()
  1018. RootPart.Velocity = RootPart.CFrame.lookVector * 45
  1019. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, -0.9) * CFrame.Angles(math.rad(16 + 40 * i), math.rad(0 + 111 * i), math.rad(32 + 20 * i)), 0.1)
  1020. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(23), math.rad(0), math.rad(-10)), 0.16)
  1021. RW.C0 = clerp(RW.C0, CFrame.new(0.3, 0.35, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.16)
  1022. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.2) * angles(math.rad(-70), math.rad(0), math.rad(-40)), 0.16)
  1023. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.79, -0.95, 0.34) * CFrame.Angles(math.rad(-32), math.rad(32), math.rad(-40)), 0.17)
  1024. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.4, -0.75, -0.43) * CFrame.Angles(math.rad(76), math.rad(38), math.rad(0)), 0.1)
  1025. end
  1026. for i = 0, 1, attackspeed do
  1027. swait()
  1028. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -0.4) * CFrame.Angles(math.rad(-8), math.rad(-30), math.rad(0)), 0.1)
  1029. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(30)), 0.1)
  1030. RW.C0 = clerp(RW.C0, CFrame.new(0.3, 0.35, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.16)
  1031. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.1)
  1032. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(0)), 0.1)
  1033. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.03, 0.3) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.1)
  1034. end
  1035. noleg = false
  1036. attack = false
  1037. con5:Disconnect()
  1038. end
  1039. function Fdash()
  1040. evadecooldown = true
  1041. attack = true
  1042. so("http://www.roblox.com/asset/?id=558640653", Character, 2.5, 1)
  1043. Effects.Block.Create(BrickColor.new("Navy blue"), RootPart.CFrame, 2, 2, 2, 33.6, 33.6, 33.6, 0.05)
  1044. Effects.Block.Create(BrickColor.new("White"), RootPart.CFrame, 2, 2, 2, 33.4, 33.4, 33.4, 0.04)
  1045. Effects.Block.Create(BrickColor.new("Navy blue"), RootPart.CFrame, 2, 2, 2, 36.6, 36.6, 36.6, 0.05)
  1046. Effects.Block.Create(BrickColor.new("Deep blue"), RootPart.CFrame, 2, 2, 2, 36.4, 36.4, 36.4, 0.05)
  1047. Effects.Ring.Create(BrickColor.new("New Yeller"), Torso.CFrame, 2, 2, 2, 7.6, 7.6, 7.6, 0.025)
  1048. Effects.Ring.Create(BrickColor.new("Deep blue"), Torso.CFrame, 2, 2, 2, 8.6, 8.6, 8.6, 0.03)
  1049. Effects.Ring.Create(BrickColor.new("White"), Torso.CFrame, 2, 2, 2, 9.6, 9.6, 9.6, 0.04)
  1050. Effects.Ring.Create(BrickColor.new("Navy blue"), Torso.CFrame, 2, 2, 2, 10.6, 10.6, 10.6, 0.05)
  1051. for i = 0, 2, 0.064 do
  1052. swait()
  1053. RootPart.Velocity = RootPart.CFrame.lookVector * 145
  1054. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -4.8) * CFrame.Angles(math.rad(-90), math.rad(0 + 213.8 * i), math.rad(0)), 0.2)
  1055. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.2)
  1056. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(70)), 0.2)
  1057. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-70)), 0.2)
  1058. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1059. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1060. end
  1061. attack = false
  1062. wait(0.13)
  1063. evadecooldown = false
  1064. end
  1065. function Adash()
  1066. evadecooldown = true
  1067. attack = true
  1068. so("http://www.roblox.com/asset/?id=558640653", Character, 2.5, 1)
  1069. Effects.Block.Create(BrickColor.new("Navy blue"), LeftLeg.CFrame, 2, 2, 2, 33.6, 33.6, 33.6, 0.05)
  1070. Effects.Block.Create(BrickColor.new("White"), RightLeg.CFrame, 2, 2, 2, 33.4, 33.4, 33.4, 0.04)
  1071. Effects.Block.Create(BrickColor.new("Navy blue"), LeftLeg.CFrame, 2, 2, 2, 36.6, 36.6, 36.6, 0.05)
  1072. Effects.Block.Create(BrickColor.new("Deep blue"), RightLeg.CFrame, 2, 2, 2, 36.4, 36.4, 36.4, 0.05)
  1073. Torso.Velocity = RootPart.Velocity + vt(0, 19.4, 0)
  1074. for i = 0, 2, 0.064 do
  1075. swait()
  1076. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 8, 0) * CFrame.Angles(math.rad(0), math.rad(0 + 213.8 * i), math.rad(0)), 0.2)
  1077. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.2)
  1078. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(70)), 0.2)
  1079. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-70)), 0.2)
  1080. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1081. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1082. end
  1083. attack = false
  1084. wait(0.13)
  1085. evadecooldown = false
  1086. end
  1087. function Ldash()
  1088. evadecooldown = true
  1089. attack = true
  1090. so("http://www.roblox.com/asset/?id=707957812", Torso, 2.5, 1)
  1091. for i = 0, 2, 0.064 do
  1092. swait()
  1093. RootPart.Velocity = RootPart.CFrame.rightVector * -75
  1094. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(32)), 0.2)
  1095. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(-9), math.rad(-14)), 0.2)
  1096. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(77), math.rad(0), math.rad(70)), 0.2)
  1097. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -0.55) * angles(math.rad(30), math.rad(0), math.rad(70)), 0.2)
  1098. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(12)), 0.2)
  1099. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(8)), 0.2)
  1100. end
  1101. attack = false
  1102. wait(0.13)
  1103. evadecooldown = false
  1104. end
  1105. function Rdash()
  1106. evadecooldown = true
  1107. attack = true
  1108. so("http://www.roblox.com/asset/?id=707957812", Torso, 2.5, 1)
  1109. for i = 0, 2, 0.064 do
  1110. swait()
  1111. RootPart.Velocity = RootPart.CFrame.rightVector * 75
  1112. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-32)), 0.2)
  1113. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(9), math.rad(14)), 0.2)
  1114. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.55) * angles(math.rad(30), math.rad(0), math.rad(-70)), 0.2)
  1115. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(77), math.rad(0), math.rad(-70)), 0.2)
  1116. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)), 0.2)
  1117. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-12)), 0.2)
  1118. end
  1119. attack = false
  1120. wait(0.13)
  1121. evadecooldown = false
  1122. end
  1123. function Bdash()
  1124. evadecooldown = true
  1125. attack = true
  1126. for i = 0, 8.4, 0.21 do
  1127. swait()
  1128. RootPart.Velocity = RootPart.CFrame.lookVector * -90
  1129. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 2.5) * CFrame.Angles(math.rad(0 + 100 * i), math.rad(0), math.rad(0)), 0.2)
  1130. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  1131. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)), 0.2)
  1132. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)), 0.2)
  1133. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1134. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1135. end
  1136. attack = false
  1137. wait(0.9)
  1138. evadecooldown = false
  1139. end
  1140. function bullets()
  1141. local X = Instance.new("Part", Workspace)
  1142. local O = Instance.new("ObjectValue", X)
  1143. O.Name = "creator"
  1144. X.Locked = true
  1145. X.Name = "Shell"
  1146. X.Anchored = false
  1147. X.CanCollide = false
  1148. X.Transparency = 0.24
  1149. X.Reflectance = 0
  1150. X.BottomSurface = 0
  1151. X.TopSurface = 0
  1152. X.Shape = 0
  1153. local V = Instance.new("ObjectValue", X)
  1154. V.Value = Character
  1155. V.Name = "creator"
  1156. X.BrickColor = BrickColor.new("Cyan")
  1157. X.Size = Vector3.new(2, 2, 2)
  1158. X.Material = "Neon"
  1159. local Z = Instance.new("SpecialMesh", X)
  1160. Z.MeshType = "Sphere"
  1161. Z.Scale = Vector3.new(0.2, 0.2, 0.7) + Vector3.new(math.random(0, 0.7), math.random(0, 0.7), math.random(0, 0.7))
  1162. X.CFrame = handee.CFrame * CFrame.new(0, -5, -1) + Vector3.new(math.random(-76, 76), math.random(5, 10), math.random(-44, 44))
  1163. local bv = Instance.new("BodyVelocity", X)
  1164. bv.maxForce = Vector3.new(99999, 99999, 99999)
  1165. X.CFrame = CFrame.new(X.Position, mouse.Hit.p)
  1166. bv.velocity = X.CFrame.lookVector * 445
  1167. so("http://roblox.com/asset/?id=200633327", X, 1, 1)
  1168. local X2 = Instance.new("Part", Workspace)
  1169. local O2 = Instance.new("ObjectValue", X2)
  1170. O2.Name = "creator"
  1171. X2.Locked = true
  1172. X2.Name = "Shell"
  1173. X2.Anchored = false
  1174. X2.CanCollide = false
  1175. X2.Transparency = 0.24
  1176. X2.Reflectance = 0
  1177. X2.BottomSurface = 0
  1178. X2.TopSurface = 0
  1179. X2.Shape = 0
  1180. local V2 = Instance.new("ObjectValue", X2)
  1181. V2.Value = Character
  1182. V2.Name = "creator"
  1183. X2.BrickColor = BrickColor.new("New Yeller")
  1184. X2.Size = Vector3.new(2, 2, 2)
  1185. X2.Material = "Neon"
  1186. local Z2 = Instance.new("SpecialMesh", X2)
  1187. Z2.MeshType = "Sphere"
  1188. Z2.Scale = Vector3.new(0.2, 0.2, 0.7) + Vector3.new(math.random(0, 0.7), math.random(0, 0.7), math.random(0, 0.7))
  1189. X2.CFrame = handee.CFrame * CFrame.new(0, -5, -1) + Vector3.new(math.random(-76, 76), math.random(5, 10), math.random(-44, 44))
  1190. local bv2 = Instance.new("BodyVelocity", X2)
  1191. bv2.maxForce = Vector3.new(99999, 99999, 99999)
  1192. X2.CFrame = CFrame.new(X2.Position, mouse.Hit.p)
  1193. bv2.velocity = X2.CFrame.lookVector * 345
  1194. so("http://roblox.com/asset/?id=200633327", X2, 1, 1)
  1195. local X3 = Instance.new("Part", Workspace)
  1196. local O3 = Instance.new("ObjectValue", X3)
  1197. O3.Name = "creator"
  1198. X3.Locked = true
  1199. X3.Name = "Shell"
  1200. X3.Anchored = false
  1201. X3.CanCollide = false
  1202. X3.Transparency = 0.24
  1203. X3.Reflectance = 0
  1204. X3.BottomSurface = 0
  1205. X3.TopSurface = 0
  1206. X3.Shape = 0
  1207. local V3 = Instance.new("ObjectValue", X3)
  1208. V3.Value = Character
  1209. V3.Name = "creator"
  1210. X3.BrickColor = BrickColor.new("White")
  1211. X3.Size = Vector3.new(2, 2, 2)
  1212. X3.Material = "Neon"
  1213. local Z3 = Instance.new("SpecialMesh", X3)
  1214. Z3.MeshType = "Sphere"
  1215. Z3.Scale = Vector3.new(0.2, 0.2, 0.7) + Vector3.new(math.random(0, 0.7), math.random(0, 0.7), math.random(0, 0.7))
  1216. X3.CFrame = handee.CFrame * CFrame.new(0, -5, -1) + Vector3.new(math.random(-76, 76), math.random(5, 10), math.random(-44, 44))
  1217. local bv3 = Instance.new("BodyVelocity", X3)
  1218. bv3.maxForce = Vector3.new(99999, 99999, 99999)
  1219. X3.CFrame = CFrame.new(X3.Position, mouse.Hit.p)
  1220. bv3.velocity = X3.CFrame.lookVector * 545
  1221. so("http://roblox.com/asset/?id=200633327", X3, 1, 1)
  1222. local con5 = X.Touched:connect(function(hit)
  1223. Effects.Sphere.Create(BrickColor.new("Toothpaste"), X.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1224. X:Destroy()
  1225. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1226. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "X2" or hit.Name ~= "X3" then
  1227. Damagefunc(hit, 9, 16, math.random(4, 6), "Knockdown", RootPart, 0.2, 1)
  1228. Effects.Sphere.Create(BrickColor.new("Toothpaste"), X.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1229. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1230. X:Destroy()
  1231. end
  1232. end)
  1233. local con5 = X2.Touched:connect(function(hit)
  1234. Effects.Sphere.Create(BrickColor.new("New Yeller"), X2.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1235. X2:Destroy()
  1236. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1237. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "X" or hit.Name ~= "X3" then
  1238. Damagefunc(hit, 9, 16, math.random(4, 6), "Knockdown", RootPart, 0.2, 1)
  1239. Effects.Sphere.Create(BrickColor.new("New Yeller"), X2.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1240. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1241. X2:Destroy()
  1242. end
  1243. end)
  1244. local con5 = X3.Touched:connect(function(hit)
  1245. Effects.Sphere.Create(BrickColor.new("White"), X3.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1246. X3:Destroy()
  1247. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1248. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "X2" or hit.Name ~= "X" then
  1249. Damagefunc(hit, 9, 16, math.random(4, 6), "Knockdown", RootPart, 0.2, 1)
  1250. Effects.Sphere.Create(BrickColor.new("White"), X3.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1251. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1252. X3:Destroy()
  1253. end
  1254. end)
  1255. end
  1256. function Fkickcombo()
  1257. attack = true
  1258. for i = 0, 2.3, 0.16 do
  1259. swait()
  1260. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1.15, 2.5) * CFrame.Angles(math.rad(-27), math.rad(0 - 50 * i), math.rad(0)), 0.2)
  1261. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-24), math.rad(-8), math.rad(43)), 0.2)
  1262. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(60)), 0.2)
  1263. LW.C0 = clerp(LW.C0, CFrame.new(-0.9, 0.5, -0.3) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.2)
  1264. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.72, -0.4) * CFrame.Angles(math.rad(17), math.rad(0), math.rad(-16)), 0.2)
  1265. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.34, -1.15, 0.3) * CFrame.Angles(math.rad(-77), math.rad(0), math.rad(0)), 0.2)
  1266. end
  1267. con5 = Humanoid.Touched:connect(function(hit)
  1268. if hit.Parent:FindFirstChild("Humanoid") ~= nil and attackdebounce == false then
  1269. attackdebounce = true
  1270. Damagefunc(hit, 17, 26, math.random(2, 3), "Normal", RootPart, 0, 1)
  1271. so("http://roblox.com/asset/?id=260429995", RightLeg, 2, 1)
  1272. wait(0.14)
  1273. attackdebounce = false
  1274. end
  1275. end)
  1276. so("http://roblox.com/asset/?id=158475221", Torso, 1, 1.9)
  1277. noleg = true
  1278. for i = 0, 3.3, 0.11 do
  1279. swait()
  1280. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 2.4, -0.8) * CFrame.Angles(math.rad(13 - 22 * i), math.rad(0 + 130 * i), math.rad(80 - 15 * i)), 0.15)
  1281. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(13), math.rad(-17), math.rad(0)), 0.2)
  1282. RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.5, -0.7) * angles(math.rad(80), math.rad(0), math.rad(-70)), 0.15)
  1283. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(-30)), 0.15)
  1284. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.03, 0.4) * CFrame.Angles(math.rad(-54 - 3 * i), math.rad(0), math.rad(0)), 0.15)
  1285. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.7) * CFrame.Angles(math.rad(60 + 3 * i), math.rad(10), math.rad(-4)), 0.15)
  1286. end
  1287. attack = false
  1288. noleg = false
  1289. con5:disconnect()
  1290. end
  1291. function Magicform()
  1292. df = true
  1293. attack = true
  1294. music.TimePosition = 0
  1295. music.SoundId = "rbxassetid://1228696343"
  1296. swait(1)
  1297. for i = 0, 4, 0.1 do
  1298. swait()
  1299. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  1300. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  1301. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -0.35) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.2)
  1302. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -0.35) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.2)
  1303. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-4), math.rad(3)), 0.2)
  1304. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(30), math.rad(4), math.rad(-3)), 0.2)
  1305. end
  1306. so("http://roblox.com/asset/?id=1286168545", Head, 6, 1)
  1307. Effects.Sphere.Create(BrickColor.new("Toothpaste"), Torso.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1308. Part56.BrickColor = BrickColor.new("Cyan")
  1309. Part156.BrickColor = BrickColor.new("Cyan")
  1310. for i = 0, 4, 0.1 do
  1311. swait()
  1312. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  1313. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-54), math.rad(0), math.rad(0)), 0.2)
  1314. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(70)), 0.2)
  1315. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(-70)), 0.2)
  1316. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(4), math.rad(-3)), 0.2)
  1317. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(-4), math.rad(3)), 0.2)
  1318. end
  1319. attack = false
  1320. end
  1321. function Magicrevert()
  1322. df = false
  1323. attack = true
  1324. music.TimePosition = 0
  1325. music.SoundId = "rbxassetid://1343241846"
  1326. swait(1)
  1327. for i = 0, 4, 0.1 do
  1328. swait()
  1329. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  1330. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  1331. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -0.35) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.2)
  1332. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -0.35) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.2)
  1333. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-4), math.rad(3)), 0.2)
  1334. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(30), math.rad(4), math.rad(-3)), 0.2)
  1335. end
  1336. so("http://roblox.com/asset/?id=1286168545", Head, 6, 1)
  1337. Effects.Sphere.Create(BrickColor.new("New Yeller"), Torso.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1338. Part56.BrickColor = BrickColor.new("New Yeller")
  1339. Part156.BrickColor = BrickColor.new("New Yeller")
  1340. for i = 0, 4, 0.1 do
  1341. swait()
  1342. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  1343. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-54), math.rad(0), math.rad(0)), 0.2)
  1344. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(70)), 0.2)
  1345. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(-70)), 0.2)
  1346. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(4), math.rad(-3)), 0.2)
  1347. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(-4), math.rad(3)), 0.2)
  1348. end
  1349. attack = false
  1350. end
  1351. function Sphere1()
  1352. magic = true
  1353. while magic == true do
  1354. do
  1355. local thing = Instance.new("BodyGyro", RootPart)
  1356. thing.D = 30
  1357. thing.P = 3000
  1358. thing.MaxTorque = vt(math.huge, math.huge, 0)
  1359. thing.CFrame = CFrame.new(RootPart.Position, mouse.Hit.p)
  1360. attack = true
  1361. Effects.Block.Create(BrickColor.new("Navy blue"), handee.CFrame, 2, 2, 2, 3.6, 3.6, 3.6, 0.07)
  1362. for i = 0, 1.6, 0.22 do
  1363. swait()
  1364. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-14), math.rad(-60), math.rad(0)), 0.2)
  1365. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(70)), 0.2)
  1366. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.2)
  1367. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.2)
  1368. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.06, 0) * CFrame.Angles(math.rad(-8), math.rad(27), math.rad(-12)), 0.2)
  1369. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(2), math.rad(-24), math.rad(7)), 0.2)
  1370. end
  1371. local X = Instance.new("Part", Workspace)
  1372. local O = Instance.new("ObjectValue", X)
  1373. O.Name = "creator"
  1374. X.Locked = true
  1375. X.Name = "Shell"
  1376. X.Anchored = false
  1377. X.CanCollide = false
  1378. X.Transparency = 0.24
  1379. X.Reflectance = 0
  1380. X.BottomSurface = 0
  1381. X.TopSurface = 0
  1382. X.Shape = 0
  1383. local V = Instance.new("ObjectValue", X)
  1384. V.Value = char
  1385. V.Name = "creator"
  1386. X.BrickColor = BrickColor.new("Cyan")
  1387. X.Size = Vector3.new(2, 2, 2)
  1388. X.Material = "Neon"
  1389. local Z = Instance.new("SpecialMesh", X)
  1390. Z.MeshType = "Sphere"
  1391. Z.Scale = Vector3.new(1.5, 1.5, 2)
  1392. X.CFrame = handee.CFrame * CFrame.new(0, -5, -1)
  1393. local bv = Instance.new("BodyVelocity", X)
  1394. bv.maxForce = Vector3.new(99999, 99999, 99999)
  1395. X.CFrame = CFrame.new(X.Position, mouse.Hit.p)
  1396. bv.velocity = X.CFrame.lookVector * 245
  1397. RootPart.Velocity = RootPart.CFrame.lookVector * -43
  1398. Torso.Velocity = RootPart.Velocity + vt(0, 3.4, 0)
  1399. game:service("Debris"):AddItem(X, 9)
  1400. local con5 = X.Touched:connect(function(hit)
  1401. Effects.Sphere.Create(BrickColor.new("Toothpaste"), X.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1402. X:Destroy()
  1403. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1404. if hit.Parent:FindFirstChild("Humanoid") ~= nil and attackdebounce == false then
  1405. attackdebounce = true
  1406. Damagefunc(hit, 9, 16, math.random(4, 6), "Knockdown", RootPart, 0.2, 1)
  1407. Effects.Sphere.Create(BrickColor.new("Toothpaste"), X.CFrame, 2, 2, 2, 37.6, 37.6, 37.6, 0.07)
  1408. so("http://roblox.com/asset/?id=265581252", Workspace, 0.5, 1)
  1409. X:Destroy()
  1410. wait()
  1411. attackdebounce = false
  1412. end
  1413. end)
  1414. Effects.Block.Create(BrickColor.new("Navy blue"), handee.CFrame, 2, 2, 2, 3.6, 3.6, 3.6, 0.07)
  1415. for i = 0, 2.86, 0.22 do
  1416. swait()
  1417. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(40), math.rad(0)), 0.2)
  1418. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(6), math.rad(0), math.rad(-50)), 0.2)
  1419. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -0.65) * angles(math.rad(80), math.rad(0), math.rad(-70)), 0.2)
  1420. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.2)
  1421. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-16), math.rad(4), math.rad(11)), 0.2)
  1422. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(16), math.rad(-4), math.rad(13)), 0.2)
  1423. end
  1424. thing:Destroy()
  1425. attack = false
  1426. end
  1427. end
  1428. end
  1429. function Sphere2()
  1430. attack = true
  1431. local thing = Instance.new("BodyGyro", RootPart)
  1432. thing.D = 30
  1433. thing.P = 3000
  1434. thing.MaxTorque = vt(math.huge, math.huge, 0)
  1435. Effects.Block.Create(BrickColor.new("Navy blue"), handee.CFrame, 2, 2, 2, 3.6, 3.6, 3.6, 0.07)
  1436. for i = 0, 2.86, 0.22 do
  1437. swait()
  1438. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(40), math.rad(0)), 0.2)
  1439. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(6), math.rad(0), math.rad(-50)), 0.2)
  1440. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -0.65) * angles(math.rad(80), math.rad(0), math.rad(-70)), 0.2)
  1441. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.2)
  1442. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-16), math.rad(4), math.rad(11)), 0.2)
  1443. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(16), math.rad(-4), math.rad(13)), 0.2)
  1444. end
  1445. for i = 1, 215 do
  1446. thing.CFrame = CFrame.new(RootPart.Position, mouse.Hit.p)
  1447. bullets()
  1448. swait()
  1449. bullets()
  1450. bullets()
  1451. wait(0.2)
  1452. bullets()
  1453. bullets()
  1454. RootPart.Velocity = RootPart.CFrame.lookVector * -23
  1455. end
  1456. thing:Destroy()
  1457. attack = false
  1458. end
  1459. function laser()
  1460. local thing = Instance.new("BodyGyro", RootPart)
  1461. thing.D = 0
  1462. thing.P = 7000
  1463. thing.MaxTorque = vt(math.huge, math.huge, 0)
  1464. thing.CFrame = CFrame.new(RootPart.Position, mouse.Hit.p)
  1465. attack = true
  1466. so("http://roblox.com/asset/?id=1048497321", RightArm, 1, 1)
  1467. for i = 0, 1, 0.1 do
  1468. swait()
  1469. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  1470. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.2)
  1471. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.2)
  1472. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.2)
  1473. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  1474. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  1475. end
  1476. local ray = Ray.new(handee.CFrame.p, (mouse.Hit.p - handee.CFrame.p).unit * 700)
  1477. local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
  1478. local beam = Instance.new("Part", workspace)
  1479. beam.BrickColor = BrickColor.new("Navy blue")
  1480. beam.FormFactor = "Custom"
  1481. beam.Material = "Neon"
  1482. beam.Transparency = 0
  1483. beam.Anchored = true
  1484. beam.Locked = true
  1485. beam.CanCollide = false
  1486. local beam1 = Instance.new("Part", workspace)
  1487. beam1.BrickColor = BrickColor.new("Navy blue")
  1488. beam1.FormFactor = "Custom"
  1489. beam1.Material = "Neon"
  1490. beam1.Transparency = 0
  1491. beam1.Anchored = false
  1492. beam1.Locked = true
  1493. beam1.CanCollide = false
  1494. local distance = (handee.CFrame.p - position).magnitude
  1495. beam.Size = Vector3.new(1.71, 1.71, distance)
  1496. beam1.Size = Vector3.new(2.71, 2.71, distance)
  1497. beam.CFrame = CFrame.new(handee.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1498. beam1.CFrame = CFrame.new(handee.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1499. local Z = Instance.new("SpecialMesh", beam)
  1500. Z.MeshType = "Sphere"
  1501. local Z1 = Instance.new("SpecialMesh", beam1)
  1502. Z1.MeshType = "Sphere"
  1503. local bv = Instance.new("BodyVelocity", beam1)
  1504. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1505. beam1.CFrame = CFrame.new(beam1.Position, mouse.Hit.p)
  1506. bv.velocity = beam1.CFrame.lookVector * 350
  1507. so("http://roblox.com/asset/?id=215270668", RightArm, 6, 1)
  1508. Torso.Anchored = true
  1509. Effects.Ring.Create(BrickColor.new("Navy blue"), RootPart.CFrame, 2, 2, 2, 18.6, 18.6, 18.6, 0.02)
  1510. Effects.Block.Create(BrickColor.new("Navy blue"), handee.CFrame, 2, 2, 2, 3.6, 3.6, 3.6, 0.03)
  1511. if part then
  1512. local humanoid = part.Parent:FindFirstChild("Humanoid")
  1513. humanoid = humanoid or part.Parent.Parent:FindFirstChild("Humanoid")
  1514. if humanoid and part.Parent:FindFirstChild("Humanoid") ~= nil and attackdebounce == false then
  1515. attackdebounce = true
  1516. Damagefunc(part, 1, 9, math.random(1, 2), "Knockdown", RootPart, 0.2, 1)
  1517. swait()
  1518. attackdebounce = false
  1519. end
  1520. end
  1521. for i = 0, 3.8, 0.1 do
  1522. swait()
  1523. beam.Size = beam.Size + Vector3.new(3.71, 3.71, 0)
  1524. beam1.Size = beam1.Size + Vector3.new(7.71, 7.71, 0)
  1525. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  1526. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.2)
  1527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90 + 7 * math.cos(sine / 1.6) / 2), math.rad(0), math.rad(90)), 0.2)
  1528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.2)
  1529. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  1530. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  1531. end
  1532. for i = 0, 3.8, 0.1 do
  1533. swait()
  1534. beam.Size = beam.Size - Vector3.new(6.71, 6.71, 0)
  1535. beam1.Size = beam1.Size - Vector3.new(9.71, 9.71, 0)
  1536. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  1537. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.2)
  1538. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90 + 7 * math.cos(sine / 1.6) / 2), math.rad(0), math.rad(90)), 0.2)
  1539. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.2)
  1540. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  1541. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  1542. end
  1543. Torso.Anchored = false
  1544. game:GetService("Debris"):AddItem(beam, 0.1)
  1545. game:GetService("Debris"):AddItem(beam1, 0.1)
  1546. attack = false
  1547. thing:Destroy()
  1548. end
  1549. mouse.Button1Down:connect(function()
  1550. if attack == false and attacktype == 1 and df == false then
  1551. attacktype = 2
  1552. attackone()
  1553. elseif attack == false and attacktype == 2 and df == false then
  1554. attacktype = 3
  1555. attacktwo()
  1556. elseif attack == false and attacktype == 3 and df == false then
  1557. attacktype = 1
  1558. attackthree()
  1559. elseif attack == false and attacktype == 4 and df == false then
  1560. attacktype = 1
  1561. attackfour()
  1562. elseif attack == false and attacktype2 == 1 and df == true then
  1563. attacktype = 1
  1564. Sphere1()
  1565. end
  1566. end)
  1567. mouse.Button1Up:connect(function()
  1568. if attack == true and df == true then
  1569. magic = false
  1570. end
  1571. end)
  1572. mouse.KeyDown:connect(function(key)
  1573. if key == "f" and attack == false and evadecooldown == false then
  1574. Fdash()
  1575. end
  1576. end)
  1577. mouse.KeyDown:connect(function(key)
  1578. if key == "g" and attack == false and evadecooldown == false then
  1579. Adash()
  1580. end
  1581. end)
  1582. mouse.KeyDown:connect(function(key)
  1583. if key == "e" and attack == false and evadecooldown == false then
  1584. Ldash()
  1585. end
  1586. end)
  1587. mouse.KeyDown:connect(function(key)
  1588. if key == "r" and attack == false and evadecooldown == false then
  1589. Rdash()
  1590. end
  1591. end)
  1592. mouse.KeyDown:connect(function(key)
  1593. if key == "q" and attack == false and df == false then
  1594. Fkickcombo()
  1595. end
  1596. end)
  1597. mouse.KeyDown:connect(function(key)
  1598. if key == "t" and attack == false then
  1599. Bdash()
  1600. end
  1601. end)
  1602. mouse.KeyDown:connect(function(key)
  1603. if key == "y" and attack == false and df == false then
  1604. Magicform()
  1605. end
  1606. end)
  1607. mouse.KeyDown:connect(function(key)
  1608. if key == "u" and attack == false and df == true then
  1609. Magicrevert()
  1610. end
  1611. end)
  1612. mouse.KeyDown:connect(function(key)
  1613. if key == "l" and attack == false and df == true then
  1614. laser()
  1615. end
  1616. end)
  1617. mouse.KeyDown:connect(function(key)
  1618. if key == "h" and attack == false and df == true then
  1619. Sphere2()
  1620. end
  1621. end)
  1622. mouse.KeyDown:connect(function(key)
  1623. if string.byte(key) == 32 then
  1624. local ray = Ray.new(Torso.CFrame.p, Torso.CFrame.lookVector * 2)
  1625. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  1626. if hit and hit ~= lastwall then
  1627. print("walljump")
  1628. local velo = Instance.new("BodyVelocity", Torso)
  1629. velo.MaxForce = Vector3.new(400000, 400000, 400000)
  1630. velo.Velocity = -Torso.CFrame.lookVector * 20 + Vector3.new(0, 16, 0)
  1631. game.Debris:AddItem(velo, 0.1)
  1632. lastwall = hit
  1633. wait(0.4)
  1634. lastwall = nil
  1635. end
  1636. end
  1637. end)
  1638. for _, v in next, game:service("Players").localPlayer.Character:GetDescendants() do
  1639. if v:IsA("BasePart") then
  1640. local BF = Instance.new("BodyForce", v)
  1641. BF.force = Vector3.new(0, workspace.Gravity * v:GetMass() / 1.121, 0)
  1642. end
  1643. end
  1644. mouse.KeyDown:connect(function(key)
  1645. if string.byte(key) == 48 then
  1646. Swing = 2
  1647. if df == true then
  1648. Character.Humanoid.WalkSpeed = 38.82
  1649. end
  1650. if df == false then
  1651. Character.Humanoid.WalkSpeed = 28.82
  1652. end
  1653. end
  1654. end)
  1655. mouse.KeyUp:connect(function(key)
  1656. if string.byte(key) == 48 then
  1657. Swing = 1
  1658. Character.Humanoid.WalkSpeed = 8
  1659. end
  1660. end)
  1661. Humanoid.JumpPower = 43.3
  1662. Character.Humanoid.WalkSpeed = 8
  1663. while true do
  1664. swait()
  1665. sine = sine + change
  1666. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1667. local velderp = RootPart.Velocity.y
  1668. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1669. if attack == true or attack == false then
  1670. if attack == false then
  1671. idle = idle + 1
  1672. else
  1673. idle = 0
  1674. end
  1675. if not (idle >= 500) or attack == false then
  1676. end
  1677. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1678. Anim = "Jump"
  1679. if attack == false then
  1680. change = 1
  1681. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1682. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -0.15) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.1)
  1683. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1)
  1684. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(50 - 2.05 * math.cos(sine / 5))), 0.1)
  1685. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(-50 + 2.05 * math.cos(sine / 5))), 0.1)
  1686. end
  1687. if attack == false then
  1688. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-25 + 3.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1)
  1689. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.7) * CFrame.Angles(math.rad(-12 + 3.05 * math.cos(sine / 5)), math.rad(-3), math.rad(0)), 0.1)
  1690. end
  1691. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1692. Anim = "Fall"
  1693. change = 1
  1694. if attack == false then
  1695. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1696. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1697. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(20), math.rad(90)), 0.1)
  1698. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.1)
  1699. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(40), math.rad(0), math.rad(0)), 0.1)
  1700. end
  1701. if attack == false or attack == true then
  1702. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(3), math.rad(0)), 0.1)
  1703. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.67, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1704. end
  1705. elseif torvel < 1 and hitfloor ~= nil then
  1706. Anim = "Idle"
  1707. change = 1.54
  1708. if attack == false and equip == false then
  1709. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1710. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.1 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(-43), math.rad(0)), 0.1)
  1711. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(7 + 5 * math.sin(sine / 40)), math.rad(-4), math.rad(43)), 0.1)
  1712. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 + 0.07 * math.sin(sine / 40), 0) * angles(math.rad(-13), math.rad(0 + 7 * math.cos(sine / 40)), math.rad(14 + 3.2 * math.cos(sine / 40))), 0.1)
  1713. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.07 * math.sin(sine / 40), 0) * angles(math.rad(-3), math.rad(0 - 7 * math.cos(sine / 40)), math.rad(-14 - 3.2 * math.cos(sine / 40))), 0.1)
  1714. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.03 + 0.1 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(25), math.rad(-4)), 0.1)
  1715. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.1 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(-14), math.rad(-9), math.rad(7)), 0.1)
  1716. end
  1717. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1718. Anim = "Walk"
  1719. change = 0.76
  1720. if attack == false and equip == false then
  1721. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1722. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 + 0.23 * math.cos(sine / 3.5), -0.3) * angles(math.rad(-7 + 3 * math.cos(sine / 3.5)), math.rad(0 + 4 * math.cos(sine / 7)), math.rad(0) + RootPart.RotVelocity.Y / 46), 0.1)
  1723. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0 - 6 * math.cos(sine / 3.5)), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 13), 0.1)
  1724. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 7)) * angles(math.rad(0 - 44 * math.sin(sine / 7)) + RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(5 + 14 * math.sin(sine / 7)) - RootPart.RotVelocity.Y / 34), 0.1)
  1725. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 7)) * angles(math.rad(0 + 44 * math.sin(sine / 7)) + RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-5 + 14 * math.sin(sine / 7)) + RootPart.RotVelocity.Y / -34), 0.1)
  1726. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.22 * math.cos(sine / 7), 0 + 0.22 * math.sin(sine / 7)) * CFrame.Angles(math.rad(0 - 65 * math.sin(sine / 7)), math.rad(3), math.rad(0)), 0.1)
  1727. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.22 * math.cos(sine / 7), 0 - 0.22 * math.sin(sine / 7)) * CFrame.Angles(math.rad(0 + 65 * math.sin(sine / 7)), math.rad(-3), math.rad(0)), 0.1)
  1728. end
  1729. if attack == true and noleg == false then
  1730. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.12 * math.cos(sine / 18), 0 + 0.22 * math.sin(sine / 18)) * CFrame.Angles(math.rad(0 - 30 * math.sin(sine / 18)), math.rad(3), math.rad(0)), 0.1)
  1731. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.12 * math.cos(sine / 18), 0 - 0.22 * math.sin(sine / 18)) * CFrame.Angles(math.rad(0 + 30 * math.sin(sine / 18)), math.rad(-3), math.rad(0)), 0.1)
  1732. end
  1733. elseif torvel >= 25 and hitfloor ~= nil then
  1734. Anim = "Run"
  1735. if df == false then
  1736. change = 1
  1737. end
  1738. if df == true then
  1739. change = 1.35
  1740. end
  1741. if attack == false and equip == false then
  1742. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1743. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.42 * math.cos(sine / 2.5), -0.8) * angles(math.rad(-27), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 26), 0.1)
  1744. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-13 + 20 * math.sin(sine / 2.5)), math.rad(0), math.rad(0 + 5 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / 13), 0.1)
  1745. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 5)) * angles(math.rad(0 - 80 * math.sin(sine / 5)), math.rad(0), math.rad(10 + 18 * math.sin(sine / 5))), 0.15)
  1746. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 5)) * angles(math.rad(0 + 80 * math.sin(sine / 5)), math.rad(0), math.rad(-10 + 18 * math.sin(sine / 5))), 0.15)
  1747. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 - 85 * math.sin(sine / 5)), math.rad(3), math.rad(0)), 0.2)
  1748. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 + 85 * math.sin(sine / 5)), math.rad(-3), math.rad(0)), 0.2)
  1749. end
  1750. if attack == true and noleg == false then
  1751. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 - 65 * math.sin(sine / 5)), math.rad(3), math.rad(0)), 0.2)
  1752. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 + 65 * math.sin(sine / 5)), math.rad(-3), math.rad(0)), 0.2)
  1753. end
  1754. end
  1755. end
  1756. if 0 < #Effects then
  1757. for e = 1, #Effects do
  1758. if Effects[e] ~= nil then
  1759. local Thing = Effects[e]
  1760. if Thing ~= nil then
  1761. local Part = Thing[1]
  1762. local Mode = Thing[2]
  1763. local Delay = Thing[3]
  1764. local IncX = Thing[4]
  1765. local IncY = Thing[5]
  1766. local IncZ = Thing[6]
  1767. if Thing[2] == "Shoot" then
  1768. local Look = Thing[1]
  1769. local move = 30
  1770. if Thing[8] == 3 then
  1771. move = 10
  1772. end
  1773. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1774. if Thing[10] ~= nil then
  1775. da = pos
  1776. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1777. cfa = CFrame.new(Thing[4], pos)
  1778. tehCF = cfa:lerp(cf2, 0.2)
  1779. Thing[1] = tehCF.lookVector
  1780. end
  1781. local mag = (Thing[4] - pos).magnitude
  1782. 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)
  1783. if Thing[8] == 2 then
  1784. 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)
  1785. end
  1786. Thing[4] = Thing[4] + Look * move
  1787. Thing[3] = Thing[3] - 1
  1788. if 2 < Thing[5] then
  1789. Thing[5] = Thing[5] - 0.3
  1790. Thing[6] = Thing[6] - 0.3
  1791. end
  1792. if hit ~= nil then
  1793. Thing[3] = 0
  1794. if Thing[8] == 1 or Thing[8] == 3 then
  1795. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1796. elseif Thing[8] == 2 then
  1797. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1798. if hit.Parent:findFirstChild("Humanoid") ~= nil or hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  1799. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1800. ref.Anchored = true
  1801. ref.CFrame = CFrame.new(pos)
  1802. CFuncs.Sound.Create("161006093", ref, 1, 1.2)
  1803. game:GetService("Debris"):AddItem(ref, 0.2)
  1804. 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)
  1805. 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)
  1806. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1807. end
  1808. end
  1809. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1810. ref.Anchored = true
  1811. ref.CFrame = CFrame.new(pos)
  1812. Effects.Sphere.Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1813. game:GetService("Debris"):AddItem(ref, 1)
  1814. end
  1815. if Thing[3] <= 0 then
  1816. table.remove(Effects, e)
  1817. end
  1818. end
  1819. if Thing[2] == "FireWave" then
  1820. if Thing[3] <= Thing[4] then
  1821. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1822. Thing[3] = Thing[3] + 1
  1823. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1824. else
  1825. Part.Parent = nil
  1826. table.remove(Effects, e)
  1827. end
  1828. end
  1829. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1830. if Thing[1].Transparency <= 1 then
  1831. if Thing[2] == "Block1" then
  1832. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1833. Mesh = Thing[7]
  1834. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1835. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1836. elseif Thing[2] == "Block2" then
  1837. Thing[1].CFrame = Thing[1].CFrame
  1838. Mesh = Thing[7]
  1839. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1840. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1841. elseif Thing[2] == "Fire" then
  1842. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1843. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1844. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1845. elseif Thing[2] == "Cylinder" then
  1846. Mesh = Thing[7]
  1847. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1848. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1849. elseif Thing[2] == "Blood" then
  1850. Mesh = Thing[7]
  1851. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1852. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1853. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1854. elseif Thing[2] == "Elec" then
  1855. Mesh = Thing[10]
  1856. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1857. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1858. elseif Thing[2] == "Disappear" then
  1859. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1860. elseif Thing[2] == "Shatter" then
  1861. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1862. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1863. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1864. Thing[6] = Thing[6] + Thing[5]
  1865. end
  1866. else
  1867. Part.Parent = nil
  1868. table.remove(Effects, e)
  1869. end
  1870. end
  1871. end
  1872. end
  1873. end
  1874. end
  1875. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement