Advertisement
memberhero

Chara Script

May 26th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.21 KB | None | 0 0
  1. wait(0.016666666666667)
  2. plr = game.Players.LocalPlayer
  3. wait(1)
  4. for i,v in next, game.Players.LocalPlayer.Character:GetChildren() do
  5. if v:IsA("Accessory") then
  6. v:Remove()
  7. end
  8. end
  9. wait(0.2)
  10. Anim = nil
  11. cf = CFrame.new
  12. function c3(cz, cx, cc)
  13. return Color3.new(cz / 255, cx / 255, cc / 255)
  14. end
  15. angles = CFrame.Angles
  16. Player = game.Players.LocalPlayer
  17. Character = Player.Character
  18. Humanoid = Character.Humanoid
  19. mouse = Player:GetMouse()
  20. local LeftArm = Character["Left Arm"]
  21. RightArm = Character["Right Arm"]
  22. LeftLeg = Character["Left Leg"]
  23. RightLeg = Character["Right Leg"]
  24. Head = Character.Head
  25. Torso = Character.Torso
  26. RootPart = Character.HumanoidRootPart
  27. RootJoint = RootPart.RootJoint
  28. Humanoid.Animator:Destroy()
  29. Character:WaitForChild("Animate"):Destroy()
  30. NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  31. RootCF = angles(-1.57, 0, 3.14)
  32. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  34. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  35. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  36. RW = Instance.new("Weld")
  37. LW = Instance.new("Weld")
  38. RH = Torso["Right Hip"]
  39. LH = Torso["Left Hip"]
  40. Neck = Torso.Neck
  41. RSH = Torso["Right Shoulder"]
  42. LSH = Torso["Left Shoulder"]
  43. RSH.Parent = nil
  44. LSH.Parent = nil
  45. RW.Name = "Right Shoulder"
  46. RW.Part0 = Torso
  47. RW.C0 = cf(1.5, 0.5, 0)
  48. RW.C1 = cf(0, 0.5, 0)
  49. RW.Part1 = RightArm
  50. RW.Parent = Torso
  51. LW.Name = "Left Shoulder"
  52. LW.Part0 = Torso
  53. LW.C0 = cf(-1.5, 0.5, 0)
  54. LW.C1 = cf(0, 0.5, 0)
  55. LW.Part1 = LeftArm
  56. LW.Parent = Torso
  57. Effects = Instance.new("Folder", Character)
  58. Effects.Name = "Effects"
  59. Humanoid.WalkSpeed = 16
  60. partEffects, AttackHas, AttackNeeded, AttackCan = {}, {}, {}, {}
  61. AttackHas[1], AttackHas[2], AttackHas[3], AttackHas[4] = 1, 1, 1, 1
  62. AttackNeeded[1], AttackNeeded[2], AttackNeeded[3], AttackNeeded[4] = 1, 1, 1, 1
  63. AttackCan[1], AttackCan[2], AttackCan[3], AttackCan[4] = true, true, true, true
  64. sine = 0
  65. attackcounter = 1
  66. energyslashcounter = 1
  67. torvel = nil
  68. attacking = false
  69. hitfloor, posfloor = nil, nil
  70. tool = nil
  71. if script.Parent.ClassName == "HopperBin" then
  72. tool = script.Parent
  73. tool.Parent = Player.Backpack
  74. else
  75. tool = Instance.new("HopperBin", Player.Backpack)
  76. tool.Name = "Toy Knife"
  77. end
  78. hitbox = Instance.new("Part")
  79. hitbox.BrickColor = BrickColor.Black()
  80. hitbox.Transparency = 1
  81. hitbox.CanCollide = false
  82. hitbox.Anchored = false
  83. hitbox.Size = Vector3.new(3, 3, 4)
  84. meshes = {
  85. 3270017,
  86. 20329976,
  87. 448386996,
  88. 1095708,
  89. 1033714,
  90. 9756362
  91. }
  92. sounds = {
  93. {
  94. 320557413,
  95. 320557453,
  96. 320557487,
  97. 320557518,
  98. 320557537,
  99. 320557563,
  100. 233856146,
  101. 233856140
  102. },
  103. {
  104. 234365549,
  105. 234365573,
  106. 231917961,
  107. 231917950,
  108. 231917856,
  109. 231917863,
  110. 231917871
  111. },
  112. {
  113. 262562442,
  114. 231917806,
  115. 231917784
  116. },
  117. {
  118. 262562442,
  119. 233856048,
  120. 306247739
  121. }
  122. }
  123. Theme = Instance.new("Sound",Character)
  124. Theme.SoundId = "rbxassetid://935501955"
  125. Theme.Looped = true
  126. Theme:Play()
  127. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  128. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  129. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  130. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  131. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  132. local R3 = {N=Region3.new}
  133. local De = S.Debris
  134. local WS = workspace
  135. local Lght = S.Lighting
  136. local RepS = S.ReplicatedStorage
  137. local IN = Instance.new
  138. local CSK = ColorSequenceKeypoint.new
  139. local CS = ColorSequence.new
  140. local naeeym2 = IN("BillboardGui",Character)
  141. naeeym2.AlwaysOnTop = true
  142. naeeym2.Size = UDim2.new(5,35,2,15)
  143. naeeym2.StudsOffset = V3.N(0,2.5,0)
  144. naeeym2.Adornee = Character.Head
  145. naeeym2.Name = "Name"
  146. naeeym2.PlayerToHideFrom = Player
  147. local tecks2 = IN("TextLabel",naeeym2)
  148. tecks2.BackgroundTransparency = 1
  149. tecks2.TextScaled = true
  150. tecks2.BorderSizePixel = 0
  151. tecks2.Text = "Chara"
  152. tecks2.Font = Enum.Font.Bodoni
  153. tecks2.TextSize = 30
  154. tecks2.TextStrokeTransparency = 0
  155. tecks2.TextColor3 = C3.N(0,0,0)
  156. tecks2.TextStrokeColor3 = C3.N(.7,0,0)
  157. tecks2.Size = UDim2.new(1,0,0.5,0)
  158. tecks2.Parent = naeeym2
  159. Character.Shirt:Remove()
  160. Character.Pants:Remove()
  161. Hat = Instance.new("Hat",Character)
  162.  
  163. local Hair = Instance.new("Part",Hat)
  164. Hair.Name = "Handle"
  165. hatweld = Instance.new("Weld",Hair)
  166. hatweld.Part0 = Hair
  167. hatweld.Part1 = Character.Head
  168. local Mesh = Instance.new("FileMesh",Hair)
  169. Mesh.MeshId = "rbxassetid://250264520"
  170. Mesh.TextureId = "rbxassetid://75975464"
  171.  
  172. wait(0.2)
  173. v = Instance.new("Shirt",Character)
  174. v2 = Instance.new("Pants",Character)
  175. v.ShirtTemplate = "rbxassetid://344089667"
  176. v2.PantsTemplate = "rbxassetid://344084364"
  177. ArtificialHB = Instance.new("BindableEvent", script)
  178. ArtificialHB.Name = "Heartbeat"
  179. script:WaitForChild("Heartbeat")
  180. frame = 1 / 30
  181. tf = 0
  182. allowframeloss = true
  183. tossremainder = false
  184. lastframe = tick()
  185. script.Heartbeat:Fire()
  186. game:GetService("RunService").Heartbeat:connect(function(s, p)
  187.  
  188. tf = tf + s
  189. if frame <= tf then
  190. if allowframeloss then
  191. script.Heartbeat:Fire()
  192. lastframe = tick()
  193. else
  194. for i = 1, math.floor(tf / frame) do
  195. script.Heartbeat:Fire()
  196. end
  197. lastframe = tick()
  198. end
  199. if tossremainder then
  200. tf = 0
  201. else
  202. tf = tf - frame * math.floor(tf / frame)
  203. end
  204. end
  205. end
  206. )
  207. swait = function(num)
  208.  
  209. if num == 0 or num == nil then
  210. ArtificialHB.Event:wait()
  211. else
  212. for i = 0, num do
  213. ArtificialHB.Event:wait()
  214. end
  215. end
  216. end
  217. function thread(f)
  218. coroutine.resume(coroutine.create(f))
  219. end
  220. function clerp(a, b, t)
  221. local qa = {
  222. QuaternionFromCFrame(a)
  223. }
  224. local qb = {
  225. QuaternionFromCFrame(b)
  226. }
  227. local ax, ay, az = a.x, a.y, a.z
  228. local bx, by, bz = b.x, b.y, b.z
  229. local _t = 1 - t
  230. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  231. end
  232. function QuaternionFromCFrame(cf)
  233. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  234. local trace = m00 + m11 + m22
  235. if trace > 0 then
  236. local s = math.sqrt(1 + trace)
  237. local recip = 0.5 / s
  238. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  239. else
  240. local i = 0
  241. if m00 < m11 then
  242. i = 1
  243. end
  244. if m22 > (i == 0 and m00 or m11) then
  245. i = 2
  246. end
  247. if i == 0 then
  248. local s = math.sqrt(m00 - m11 - m22 + 1)
  249. local recip = 0.5 / s
  250. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  251. elseif i == 1 then
  252. local s = math.sqrt(m11 - m22 - m00 + 1)
  253. local recip = 0.5 / s
  254. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  255. elseif i == 2 then
  256. local s = math.sqrt(m22 - m00 - m11 + 1)
  257. local recip = 0.5 / s
  258. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  259. end
  260. end
  261. end
  262. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  263. local xs, ys, zs = x + x, y + y, z + z
  264. local wx, wy, wz = w * xs, w * ys, w * zs
  265. local xx = x * xs
  266. local xy = x * ys
  267. local xz = x * zs
  268. local yy = y * ys
  269. local yz = y * zs
  270. local zz = z * zs
  271. 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))
  272. end
  273. function QuaternionSlerp(a, b, t)
  274. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  275. local startInterp, finishInterp
  276. if cosTheta >= 1.0E-4 then
  277. if 1 - cosTheta > 1.0E-4 then
  278. local theta = math.acos(cosTheta)
  279. local invSinTheta = 1 / math.sin(theta)
  280. startInterp = math.sin((1 - t) * theta) * invSinTheta
  281. finishInterp = math.sin(t * theta) * invSinTheta
  282. else
  283. startInterp = 1 - t
  284. finishInterp = t
  285. end
  286. elseif 1 + cosTheta > 1.0E-4 then
  287. local theta = math.acos(-cosTheta)
  288. local invSinTheta = 1 / math.sin(theta)
  289. startInterp = math.sin((t - 1) * theta) * invSinTheta
  290. finishInterp = math.sin(t * theta) * invSinTheta
  291. else
  292. startInterp = t - 1
  293. finishInterp = t
  294. end
  295. 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
  296. end
  297. function rayCast(Pos, Dir, Max, Ignore)
  298. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  299. end
  300. function newPart(par, brick, transp, anch, canc, size, name, mat, ref)
  301. local p = Instance.new("Part")
  302. p.BrickColor = brick
  303. p.Transparency = transp
  304. p.Material = mat and mat or "SmoothPlastic"
  305. p.Reflectance = ref and ref or 0
  306. p.Anchored = anch
  307. p.CanCollide = canc
  308. p.Size = size
  309. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = 10, 10, 10, 10, 10, 10
  310. p.Name = name
  311. p.CFrame = RootPart.CFrame
  312. p.Parent = par
  313. return p
  314. end
  315. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  316. local mesh = Instance.new(Mesh)
  317. mesh.Parent = part
  318. if Mesh == "SpecialMesh" then
  319. mesh.MeshType = meshtype
  320. if meshid then
  321. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  322. end
  323. end
  324. if offset then
  325. mesh.Offset = offset
  326. end
  327. mesh.Scale = scale
  328. return mesh
  329. end
  330. function weld(parent, part0, part1, c0, c1)
  331. local weld = Instance.new("Weld")
  332. weld.Parent = parent
  333. weld.Part0 = part0
  334. weld.Part1 = part1
  335. weld.C0 = c0
  336. if c1 then
  337. weld.C1 = c1
  338. end
  339. return weld
  340. end
  341. function randomangles(r)
  342. local random = math.rad((math.random() - 0.5) * 180)
  343. local randomangles = CFrame.Angles(random, random, random)
  344. if r and r == 0 then
  345. return angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  346. elseif r and r == 1 then
  347. return math.rad((math.random() - 0.5) * 180)
  348. elseif r and r == 2 then
  349. return math.random(-50, 50)
  350. else
  351. return randomangles
  352. end
  353. end
  354. function round(num)
  355. local a, b = math.modf(num)
  356. if num % 1 ~= 0 then
  357. return math.floor(num) + math.floor(b * 10 + 0.5) / 10
  358. else
  359. return math.floor(num)
  360. end
  361. end
  362. function sound(id, par, vol, dur, pit)
  363. coroutine.resume(coroutine.create(function()
  364. local sou = Instance.new("Sound", par or workspace)
  365. sou.Volume = vol
  366. sou.Pitch = pit or 1
  367. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  368. swait()
  369. sou:play()
  370. wait(dur)
  371. sou:Destroy()
  372. end))
  373. end
  374. function findCloseHumanoid(centre, distance)
  375. local tab = {}
  376. for _, child in pairs(game.Workspace:GetChildren()) do
  377. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  378. local vtors = child.Torso
  379. local mag = math.abs((vtors.Position - centre).magnitude)
  380. if distance >= mag then
  381. table.insert(tab, child.Humanoid)
  382. end
  383. end
  384. end
  385. return tab
  386. end
  387. function basicDamage(vhum, damage, colour)
  388. if not vhum or not vhum.Parent:findFirstChild("Humanoid") or vhum.Health <= 0 then
  389. return
  390. end
  391. vhum.Health = vhum.Health - damage
  392. local damagepart = Instance.new("Part", Effects)
  393. damagepart.Transparency = 1
  394. damagepart.Anchored = true
  395. damagepart.CanCollide = false
  396. damagepart.Size = Vector3.new(1, 1, 1)
  397. damagepart.Name = "DamagePart"
  398. damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
  399. local g = Instance.new("BillboardGui", damagepart)
  400. g.Enabled = true
  401. g.Adornee = damagepart
  402. g.Size = UDim2.new(5, 0, 5, 0)
  403. g.ExtentsOffset = Vector3.new(0, 0, 0)
  404. g.StudsOffset = Vector3.new(0, 0, 0)
  405. local t = Instance.new("TextLabel", g)
  406. t.BackgroundTransparency = 1
  407. t.Font = "ArialBold"
  408. t.TextSize = 24
  409. t.Text = "-" .. round(damage)
  410. if round(damage) % 1 == 0 then
  411. t.Text = "-" .. round(damage) .. ".0"
  412. end
  413. t.Size = UDim2.new(1, 0, 1, 0)
  414. t.TextStrokeTransparency = 0
  415. t.TextTransparency = 0
  416. t.TextScaled = true
  417. t.TextWrapped = true
  418. t.TextXAlignment = "Center"
  419. t.TextYAlignment = "Center"
  420. t.TextColor3 = colour
  421. coroutine.resume(coroutine.create(function()
  422. for i = 1, 50 do
  423. game:GetService("RunService").Heartbeat:wait()
  424. local sinewave = math.sin(i / 500) * 4
  425. damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
  426. t.TextTransparency = t.TextTransparency + 0.02
  427. t.TextStrokeTransparency = t.TextTransparency + 0.02
  428. end
  429. damagepart:Destroy()
  430. end), t)
  431. end
  432. function magic(type, thing)
  433. local magicBlock = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay, t)
  434. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  435. prt.CFrame = cframe
  436. local msh = mesh("BlockMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  437. game:GetService("Debris"):AddItem(prt, 8)
  438. if t == 1 or t == nil then
  439. table.insert(partEffects, {
  440. prt,
  441. "Block1",
  442. delay,
  443. x3,
  444. y3,
  445. z3,
  446. msh
  447. })
  448. elseif t == 2 then
  449. table.insert(partEffects, {
  450. prt,
  451. "Block2",
  452. delay,
  453. x3,
  454. y3,
  455. z3,
  456. msh
  457. })
  458. end
  459. end
  460. local magicCylinder = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  461. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  462. local msh = mesh("CylinderMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  463. game:GetService("Debris"):AddItem(prt, 8)
  464. table.insert(partEffects, {
  465. prt,
  466. "Cylinder",
  467. delay,
  468. x3,
  469. y3,
  470. z3,
  471. msh
  472. })
  473. end
  474. local magicSphere = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  475. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  476. local msh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  477. game:GetService("Debris"):AddItem(prt, 8)
  478. table.insert(partEffects, {
  479. prt,
  480. "Cylinder",
  481. delay,
  482. x3,
  483. y3,
  484. z3,
  485. msh
  486. })
  487. end
  488. local magicRing = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  489. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  490. prt.Anchored = true
  491. prt.CFrame = cframe
  492. local msh = mesh("SpecialMesh", prt, "FileMesh", 3270017, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  493. game:GetService("Debris"):AddItem(prt, 2)
  494. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  495. for i = 0, 1, delay do
  496. swait()
  497. Part.Transparency = i
  498. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  499. end
  500. Part:Destroy()
  501. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  502. end
  503. local magicSlash = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  504. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", cframe)
  505. prt.Anchored = true
  506. prt.CFrame = cframe
  507. local msh = mesh("SpecialMesh", prt, "FileMesh", 20329976, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  508. game:GetService("Debris"):AddItem(prt, 2)
  509. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  510. for i = 0, 1, delay do
  511. swait()
  512. Part.Transparency = i
  513. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  514. end
  515. Part:Destroy()
  516. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  517. end
  518. local par = thing[1]
  519. local brick = thing[2]
  520. local cframe = thing[3]
  521. local x1 = thing[4]
  522. local y1 = thing[5]
  523. local z1 = thing[6]
  524. local x3 = thing[7]
  525. local y3 = thing[8]
  526. local z3 = thing[9]
  527. local delay = thing[10]
  528. local t = thing[11]
  529. if type == "Block" or type == 1 then
  530. magicBlock(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  531. elseif type == "Cylinder" or type == 2 then
  532. magicCylinder(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  533. elseif type == "Sphere" or type == 3 then
  534. magicSphere(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  535. elseif type == "Ring" or type == 4 then
  536. magicRing(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  537. elseif type == "Slash" or type == 5 then
  538. magicSlash(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  539. end
  540. end
  541. function newFrame(par, bg, transp, size, pos, name)
  542. local f = Instance.new("Frame", nil)
  543. f.BackgroundColor3 = bg
  544. f.BackgroundTransparency = transp
  545. f.BorderSizePixel = 0
  546. f.Position = pos
  547. f.Size = size
  548. f.Name = name
  549. f.Parent = par
  550. return f
  551. end
  552. function newLabel(par, size, pos, text, textsize, text3, textstroke3, scaled, name)
  553. local l = Instance.new("TextLabel", nil)
  554. l.BackgroundTransparency = 1
  555. l.Size = size
  556. l.Position = pos
  557. l.Text = text
  558. l.TextSize = textsize
  559. l.TextColor3 = text3
  560. l.TextStrokeColor3 = textstroke3
  561. if scaled then
  562. l.TextScaled = scaled
  563. else
  564. l.TextScaled = true
  565. end
  566. l.TextStrokeTransparency = 0
  567. l.Name = name
  568. l.Parent = par
  569. return l
  570. end
  571. a1t = "Slice Barrage"
  572. a2t = "Power"
  573. a3t = "Hate"
  574. a4t = "Determination"
  575. backc3 = c3(107, 107, 107)
  576. reloc3 = c3(62, 62, 62)
  577. g = Instance.new("ScreenGui")
  578. f1 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.85, 0), "")
  579. f2 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.76, 0), "")
  580. f3 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.67, 0), "")
  581. f4 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.58, 0), "")
  582. newFrame(f1, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  583. newFrame(f2, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  584. newFrame(f3, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  585. newFrame(f4, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  586. newLabel(f1, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(Z)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  587. newLabel(f2, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(X)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  588. newLabel(f3, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(C)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  589. newLabel(f4, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(V)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
  590. newLabel(f1, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a1t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  591. newLabel(f2, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a2t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  592. newLabel(f3, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a3t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  593. newLabel(f4, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a4t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
  594. g.Parent = Player.PlayerGui
  595. Reload = {}
  596. Reload[1] = f1.Reload
  597. Reload[2] = f2.Reload
  598. Reload[3] = f3.Reload
  599. Reload[4] = f4.Reload
  600. weapon = Instance.new("Model", Character)
  601. weapon.Name = "Toy Knife"
  602. p0 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
  603. mesh("BlockMesh", p0, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 2.39999986, 6.57500076))
  604. p1 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
  605. mesh("SpecialMesh", p1, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.425000012, 1.70000005))
  606. p1 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p1")
  607. mesh("SpecialMesh", p1, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.425000012, 1.70000005))
  608. p2 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
  609. mesh("BlockMesh", p2, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.999999881, 3.02500105))
  610. p2 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p2")
  611. mesh("BlockMesh", p2, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.999999881, 3.02500105))
  612. p3 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
  613. mesh("BlockMesh", p3, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.974999905, 1.70000064))
  614. p3 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p3")
  615. mesh("BlockMesh", p3, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.974999905, 1.70000064))
  616. p4 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
  617. mesh("SpecialMesh", p4, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 1.32500005))
  618. p4 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p4")
  619. mesh("SpecialMesh", p4, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 1.32500005))
  620. p5 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
  621. mesh("SpecialMesh", p5, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 0.350000083))
  622. p5 = newPart(weapon, BrickColor.new("Institutional white"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p5")
  623. mesh("SpecialMesh", p5, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 0.350000083))
  624. p6 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Handle")
  625. mesh("SpecialMesh", p6, Enum.MeshType.Cylinder, nil, Vector3.new(0, 0, 0), Vector3.new(5, 0.75, 0.800000012))
  626. p6 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p6")
  627. mesh("SpecialMesh", p6, Enum.MeshType.Cylinder, nil, Vector3.new(0, 0, 0), Vector3.new(5, 0.75, 0.800000012))
  628. weld(p0, p0, p1, CFrame.new(-0.400014997, -2.90028477, 2.71900272, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.400014997, 2.68303514, 3.62925434, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  629. weld(p1, p1, p2, CFrame.new(0.400014997, 2.68303514, 3.62925434, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(-0.400014997, -3.05428457, 3.77500391, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  630. weld(p2, p2, p3, CFrame.new(-0.400014997, -3.05428457, 3.77500391, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.400014997, -2.83703494, 3.62925434, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  631. weld(p3, p3, p4, CFrame.new(-0.400014997, -2.83703494, 3.62925434, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.400014997, 2.83703494, 3.96200418, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  632. weld(p4, p4, p5, CFrame.new(0.400014997, 2.83703494, 3.96200418, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(0.400014997, 3.05703473, 4.14625359, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  633. weld(p5, p5, p6, CFrame.new(0.400014997, 3.05703473, 4.14625359, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(1.48875475, 2.98278475, -0.400014997, 0, 4.37113883E-8, 1, 0, -1, 4.37113883E-8, 1, 0, 0))
  634. handleweld = Instance.new("Weld", RightArm)
  635. handleweld.Part1 = RightArm
  636. handleweld.Part0 = p6
  637. handlec0 = CFrame.new(0, -0.95, 0) * angles(0, math.pi / 2, math.pi)
  638. handleweld.C0 = handlec0
  639. function attackone()
  640. attacking = true
  641. for i = 0, 1, 0.1 do
  642. swait()
  643. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.4)
  644. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.4)
  645. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.4)
  646. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  647. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  648. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  649. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  650. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  651. end
  652. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  653. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  654. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(120), math.rad(0))
  655. delay(0.1, function()
  656. table.insert(partEffects, {
  657. smp,
  658. "Disappear",
  659. 0.05
  660. })
  661. end)
  662. sound(sounds[1][1], Character.Head, 1, 4, 1.5)
  663. local hitb = hitbox.Touched:connect(function(hit)
  664. if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
  665. if hit.Parent:findFirstChild("Hit" .. Player.Name) then
  666. return
  667. end
  668. local str = Instance.new("StringValue", hit.Parent)
  669. str.Name = "Hit" .. Player.Name
  670. game.Debris:AddItem(str, 0.3)
  671. basicDamage(hit.Parent.Humanoid, math.random(9, 13), Color3.fromRGB(243, 242, 242))
  672. end
  673. end)
  674. for i = 0, 1, 0.1 do
  675. swait()
  676. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.4)
  677. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.4)
  678. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.4)
  679. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  680. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  681. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  682. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  683. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  684. hitbox.Parent = weapon
  685. hitbox.Size = Vector3.new(2, 5, 8)
  686. if smp then
  687. hitbox.CFrame = smp.CFrame
  688. else
  689. hitbox.Parent = nil
  690. end
  691. end
  692. hitb:disconnect()
  693. hitbox.Parent = nil
  694. attacking = false
  695. end
  696. function attacktwo()
  697. attacking = true
  698. for i = 0, 1, 0.1 do
  699. swait()
  700. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
  701. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4)
  702. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4)
  703. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  704. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  705. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  706. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  707. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  708. end
  709. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  710. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  711. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(80), math.rad(0))
  712. delay(0.1, function()
  713. table.insert(partEffects, {
  714. smp,
  715. "Disappear",
  716. 0.05
  717. })
  718. end)
  719. sound(sounds[1][2], Character.Head, 1, 4, 1.5)
  720. local hitb = hitbox.Touched:connect(function(hit)
  721. if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
  722. if hit.Parent:findFirstChild("Hit" .. Player.Name) then
  723. return
  724. end
  725. local str = Instance.new("StringValue", hit.Parent)
  726. str.Name = "Hit" .. Player.Name
  727. game.Debris:AddItem(str, 0.3)
  728. basicDamage(hit.Parent.Humanoid, math.random(9, 13), Color3.fromRGB(243, 242, 242))
  729. end
  730. end)
  731. for i = 0, 1, 0.1 do
  732. swait()
  733. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  734. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
  735. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
  736. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  737. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  738. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  739. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  740. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  741. hitbox.Parent = weapon
  742. hitbox.Size = Vector3.new(2, 5, 8)
  743. if smp then
  744. hitbox.CFrame = smp.CFrame
  745. else
  746. hitbox.Parent = nil
  747. end
  748. end
  749. hitb:disconnect()
  750. hitbox.Parent = nil
  751. attacking = false
  752. end
  753. function attackthree()
  754. attacking = true
  755. for i = 0, 1, 0.1 do
  756. swait()
  757. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
  758. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.4)
  759. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 0.4)
  760. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  761. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  762. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  763. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  764. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  765. end
  766. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  767. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  768. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(-70), math.rad(0))
  769. delay(0.1, function()
  770. table.insert(partEffects, {
  771. smp,
  772. "Disappear",
  773. 0.05
  774. })
  775. end)
  776. sound(sounds[1][3], Character.Head, 1, 4, 1.5)
  777. local hitb = hitbox.Touched:connect(function(hit)
  778. if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
  779. if hit.Parent:findFirstChild("Hit" .. Player.Name) then
  780. return
  781. end
  782. local str = Instance.new("StringValue", hit.Parent)
  783. str.Name = "Hit" .. Player.Name
  784. game.Debris:AddItem(str, 0.3)
  785. basicDamage(hit.Parent.Humanoid, math.random(9, 13), Color3.fromRGB(243, 242, 242))
  786. end
  787. end)
  788. for i = 0, 1, 0.1 do
  789. swait()
  790. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  791. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
  792. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, 0.4) * angles(math.rad(0), math.rad(-40), math.rad(120)), 0.4)
  793. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  794. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  795. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  796. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  797. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  798. hitbox.Parent = weapon
  799. hitbox.Size = Vector3.new(2, 5, 8)
  800. if smp then
  801. hitbox.CFrame = smp.CFrame
  802. else
  803. hitbox.Parent = nil
  804. end
  805. end
  806. hitb:disconnect()
  807. hitbox.Parent = nil
  808. attacking = false
  809. end
  810. function rapidslash()
  811. attacking = true
  812. AttackHas[1] = 0
  813. AttackCan[1] = false
  814. for i = 1, 3 do
  815. swait()
  816. for i = 0, 1, 0.2 do
  817. swait()
  818. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.6)
  819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.6)
  820. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.6)
  821. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  822. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  823. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  824. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
  825. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
  826. end
  827. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  828. do
  829. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  830. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  831. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  832. delay(0.1, function()
  833. table.insert(partEffects, {
  834. smp,
  835. "Disappear",
  836. 0.05
  837. })
  838. end)
  839. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  840. basicDamage(v, 6, c3(243, 242, 242))
  841. end
  842. for i = 0, 1, 0.2 do
  843. swait()
  844. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.6)
  845. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.6)
  846. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.6)
  847. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  848. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  849. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  850. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6)
  851. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6)
  852. end
  853. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  854. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  855. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  856. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  857. delay(0.1, function()
  858. table.insert(partEffects, {
  859. smp,
  860. "Disappear",
  861. 0.05
  862. })
  863. end)
  864. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  865. basicDamage(v, 6, c3(243, 242, 242))
  866. end
  867. for i = 0, 1, 0.2 do
  868. swait()
  869. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6)
  870. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.6)
  871. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 1)
  872. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  873. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  874. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  875. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
  876. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
  877. end
  878. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  879. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  880. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  881. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  882. delay(0.1, function()
  883. table.insert(partEffects, {
  884. smp,
  885. "Disappear",
  886. 0.05
  887. })
  888. end)
  889. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  890. basicDamage(v, 6, c3(243, 242, 242))
  891. end
  892. for i = 0, 1, 0.2 do
  893. swait()
  894. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6)
  895. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.6)
  896. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.6)
  897. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
  898. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6)
  899. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6)
  900. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
  901. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
  902. end
  903. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  904. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  905. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  906. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  907. delay(0.1, function()
  908. table.insert(partEffects, {
  909. smp,
  910. "Disappear",
  911. 0.05
  912. })
  913. end)
  914. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  915. basicDamage(v, 6, c3(243, 242, 242))
  916. end
  917. for i = 0, 1, 0.2 do
  918. swait()
  919. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
  920. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.6)
  921. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.6)
  922. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.6)
  923. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  924. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
  925. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6)
  926. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6)
  927. end
  928. sound(sounds[1][1], Character.Head, 1, 7, 1.5)
  929. local smp = newPart(Effects, BrickColor.new("Lily white"), 0, true, false, Vector3.new(), "Slash")
  930. mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
  931. smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
  932. delay(0.1, function()
  933. table.insert(partEffects, {
  934. smp,
  935. "Disappear",
  936. 0.05
  937. })
  938. end)
  939. for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
  940. basicDamage(v, 6, c3(243, 242, 242))
  941. end
  942. end
  943. end
  944. AttackCan[1] = true
  945. attacking = false
  946. end
  947. function powerslash()
  948. attacking = true
  949. AttackCan[2] = false
  950. AttackHas[2] = AttackHas[2] - 0.2
  951. local orbs = {}
  952. if energyslashcounter == 1 then
  953. energyslashcounter = 2
  954. sound(367453005, Character.Head, 1, 4, 1)
  955. do
  956. local now = RootPart.CFrame * CFrame.new(0, 0, -10)
  957. local bo = {
  958. BrickColor.new("Bright orange"),
  959. BrickColor.new("Toothpaste")
  960. }
  961. local bon = bo[math.random(1, 2)]
  962. for i = 1, 5 do
  963. local orb = newPart(Effects, bon, 0, true, false, Vector3.new(), "Orange", "SmoothPlastic", RootPart.CFrame * CFrame.new(0, 0, -15))
  964. local omesh = mesh("SpecialMesh", orb, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  965. orb.CFrame = now * CFrame.new((math.random() - 0.5) * 20, 0, (math.random() - 0.5) * 20)
  966. table.insert(orbs, orb)
  967. end
  968. for i = 0, 1, 0.05 do
  969. swait()
  970. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.15)
  971. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(80)), 0.15)
  972. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2)
  973. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  974. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  975. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  976. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
  977. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
  978. end
  979. for i = 1, #orbs do
  980. do
  981. local orb = orbs[i]
  982. table.insert(partEffects, {
  983. orb,
  984. "Block2",
  985. 0.05,
  986. 10,
  987. 10,
  988. 10,
  989. orb.Mesh
  990. })
  991. thread(function()
  992. for i = 1, 3 do
  993. swait(5)
  994. for i, v in pairs(findCloseHumanoid(orb.Position, 10)) do
  995. if bon == BrickColor.new("Bright orange") then
  996. if (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude < 2 then
  997. basicDamage(v, 6, BrickColor.new("Bright orange").Color)
  998. end
  999. elseif bon == BrickColor.new("Toothpaste") and (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude > 2 then
  1000. basicDamage(v, 6, BrickColor.new("Toothpaste").Color)
  1001. end
  1002. end
  1003. end
  1004. end)
  1005. end
  1006. end
  1007. sound(sounds[1][2], Character.Head, 1, 4, 0.8)
  1008. for i = 0, 1, 0.1 do
  1009. swait()
  1010. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1011. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(-5)), 0.4)
  1012. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
  1013. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  1014. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1015. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1016. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1017. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1018. end
  1019. end
  1020. elseif energyslashcounter == 2 then
  1021. energyslashcounter = 3
  1022. sound(306247749, Character.Head, 1, 4, 1)
  1023. local gparts = {}
  1024. for i = 1, 9 do
  1025. local gpart = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Violet", "SmoothPlastic")
  1026. local gmesh = mesh("CylinderMesh", gpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(50, 10, 50))
  1027. gpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-20, 20), -3, -15 + math.random(-20, 20))
  1028. table.insert(gparts, gpart)
  1029. end
  1030. for i = 0, 1, 0.05 do
  1031. swait()
  1032. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15)
  1033. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15)
  1034. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.4) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(15)) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1035. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  1036. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1037. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1038. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
  1039. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
  1040. end
  1041. for i = 1, #gparts do
  1042. local gpart = gparts[i]
  1043. table.insert(partEffects, {
  1044. gpart,
  1045. "Block2",
  1046. 0.05,
  1047. -1,
  1048. 50,
  1049. -1,
  1050. gpart.Mesh
  1051. })
  1052. for i, v in pairs(findCloseHumanoid(gpart.Position, 10)) do
  1053. basicDamage(v, 15, BrickColor.new("Dark blue").Color)
  1054. local bv = Instance.new("BodyVelocity", v.Parent.Torso)
  1055. game.Debris:AddItem(bv, 1)
  1056. bv.Velocity = Vector3.new(0, 40, 0)
  1057. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1058. end
  1059. end
  1060. sound(sounds[1][3], Character.Head, 1, 4, 0.8)
  1061. for i = 0, 1, 0.1 do
  1062. swait()
  1063. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.4)
  1064. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(80)), 0.4)
  1065. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -0.4) * angles(math.rad(125), math.rad(-40), math.rad(60)), 0.4)
  1066. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  1067. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1068. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1069. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1070. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1071. end
  1072. elseif energyslashcounter == 3 then
  1073. energyslashcounter = 1
  1074. for i = 0, 1, 0.05 do
  1075. swait()
  1076. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15)
  1077. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15)
  1078. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2)
  1079. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  1080. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1081. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1082. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
  1083. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
  1084. end
  1085. sound(sounds[2][5], Character.Head, 1, 4, 0.8)
  1086. thread(function()
  1087. for i = 1, 6 do
  1088. swait()
  1089. sound(438149153, Character.Head, 1, 4, 0.8)
  1090. do
  1091. local prt = newPart(Effects, BrickColor.new("Bright yellow"), 0, false, false, Vector3.new(), "Yellow", "SmoothPlastic", RootPart.CFrame)
  1092. local mesh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 2.5))
  1093. prt.CFrame = RootPart.CFrame * CFrame.new(math.random(-3, 3), math.random(-1, 1), math.random(-3, 3))
  1094. local bv = Instance.new("BodyVelocity", prt)
  1095. bv.Velocity = RootPart.CFrame.lookVector * 150
  1096. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1097. game.Debris:AddItem(bv, 6)
  1098. local orlook = RootPart.CFrame.lookVector
  1099. thread(function()
  1100. while prt do
  1101. swait()
  1102. local hitpart, pospart = rayCast(prt.Position, orlook, 4, Character)
  1103. if hitpart and pospart then
  1104. prt:Destroy()
  1105. do
  1106. local ref = newPart(Effects, BrickColor.Black(), 1, true, false, Vector3.new(), "")
  1107. ref.CFrame = CFrame.new(pospart)
  1108. sound(142070127, ref, 1, 4, 1)
  1109. delay(4, function()
  1110. ref:Destroy()
  1111. end)
  1112. magic("Block", {
  1113. Effects,
  1114. BrickColor.new("Bright yellow"),
  1115. CFrame.new(pospart),
  1116. 0.2,
  1117. 0.2,
  1118. 0.2,
  1119. 0.9,
  1120. 0.9,
  1121. 0.9,
  1122. 0.05,
  1123. 1
  1124. })
  1125. magic("Block", {
  1126. Effects,
  1127. BrickColor.new("Bright yellow"),
  1128. CFrame.new(pospart),
  1129. 0.2,
  1130. 0.2,
  1131. 0.2,
  1132. 0.9,
  1133. 0.9,
  1134. 0.9,
  1135. 0.05,
  1136. 1
  1137. })
  1138. if hitpart.Parent:findFirstChild("Humanoid") then
  1139. basicDamage(hitpart.Parent.Humanoid, 12, BrickColor.new("Bright yellow").Color)
  1140. end
  1141. break
  1142. end
  1143. end
  1144. end
  1145. end)
  1146. end
  1147. end
  1148. end)
  1149. end
  1150. attacking = false
  1151. AttackCan[2] = true
  1152. end
  1153. function leftright()
  1154. attacking = true
  1155. AttackCan[3] = false
  1156. for i = 0, 1, 0.1 do
  1157. swait()
  1158. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
  1159. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4)
  1160. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4)
  1161. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
  1162. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1163. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1164. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
  1165. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
  1166. end
  1167. thread(function()
  1168. local laser = newPart(nil, BrickColor.new("Bright red"), 0.5, true, false, Vector3.new(), "Laser", "SmoothPlastic")
  1169. local lmsh = mesh("BlockMesh", nil, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  1170. local lasers = {}
  1171. local keypoints1, keypoints2, keypoints3, keypoints4, keypoints5, keypoints6 = {}, {}, {}, {}, {}, {}
  1172. local radius = 10
  1173. local num = 12
  1174. for i = 1, num do
  1175. table.insert(keypoints1, {
  1176. RootPart.CFrame.p,
  1177. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num) * i), 0, math.sin(math.rad(360 / num) * i))
  1178. })
  1179. table.insert(keypoints2, {
  1180. RootPart.CFrame.p,
  1181. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 45 * i) * i), 0, math.sin(math.rad(360 / num + 45 * i) * i))
  1182. })
  1183. table.insert(keypoints3, {
  1184. RootPart.CFrame.p,
  1185. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 90 * i) * i), 0, math.sin(math.rad(360 / num + 90 * i) * i))
  1186. })
  1187. table.insert(keypoints4, {
  1188. RootPart.CFrame.p,
  1189. RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 135 * i) * i), 0, math.sin(math.rad(360 / num + 135 * i) * i))
  1190. })
  1191. end
  1192. local keypointstotal = {
  1193. keypoints1,
  1194. keypoints2,
  1195. keypoints3,
  1196. keypoints4
  1197. }
  1198. for ii = 1, #keypointstotal do
  1199. swait(5)
  1200. do
  1201. local currpoint = keypointstotal[ii]
  1202. for i = 1, #currpoint do
  1203. do
  1204. local start = currpoint[i][1]
  1205. local look = currpoint[i][2]
  1206. local laserc = laser:Clone()
  1207. local lmshc = lmsh:Clone()
  1208. local hit, pos = rayCast(start, look, 100000, Character)
  1209. laserc.CFrame = CFrame.new((start + pos) / 2, pos) * angles(math.rad(90), 0, 0)
  1210. local mag = (laserc.Position - pos).magnitude * 2
  1211. lmshc.Scale = Vector3.new(2, mag * 5, 2)
  1212. laserc.Parent = Effects
  1213. lmshc.Parent = laserc
  1214. thread(function()
  1215. table.insert(partEffects, {
  1216. laserc,
  1217. "Block2",
  1218. 0.025,
  1219. -0.1,
  1220. 0,
  1221. -0.1,
  1222. lmshc
  1223. })
  1224. local start = currpoint[i][1]
  1225. local look = currpoint[i][2]
  1226. look = CFrame.new(start, start + look).lookVector
  1227. local hit, pos = rayCast(start, look, 100000, Character)
  1228. repeat
  1229. swait()
  1230. until laserc.Parent == nil
  1231. local lpart = newPart(Effects, BrickColor.new("Black"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
  1232. sound(406913243, Head, 0.6, 4, 1)
  1233. local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, mag * 5, 5))
  1234. lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0)
  1235. table.insert(partEffects, {
  1236. lpart,
  1237. "Block2",
  1238. 0.05,
  1239. 1,
  1240. 0,
  1241. 1,
  1242. lpartm
  1243. })
  1244. local lpart = newPart(Effects, BrickColor.new("Lily white"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
  1245. local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(8, mag * 5, 8))
  1246. lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0)
  1247. table.insert(partEffects, {
  1248. lpart,
  1249. "Block2",
  1250. 0.05,
  1251. 1,
  1252. 0,
  1253. 1,
  1254. lpartm
  1255. })
  1256. local hit, pos = rayCast(start, look, 100000, Character)
  1257. if hit ~= nil then
  1258. if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then
  1259. if hit.Parent.Parent:findFirstChild("Humanoid") then
  1260. basicDamage(hit.Parent.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
  1261. end
  1262. elseif hit.Parent:findFirstChild("Humanoid") then
  1263. basicDamage(hit.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
  1264. end
  1265. end
  1266. end)
  1267. end
  1268. end
  1269. end
  1270. end
  1271. end)
  1272. for i = 0, 1, 0.1 do
  1273. swait()
  1274. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1275. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
  1276. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
  1277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
  1278. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1279. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
  1280. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1281. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1282. end
  1283. AttackCan[3] = true
  1284. attacking = false
  1285. end
  1286. function mouse1d()
  1287. if tool.Active == false then
  1288. return
  1289. end
  1290. if attacking == false and attackcounter == 1 then
  1291. attackcounter = 2
  1292. attackone()
  1293. elseif attacking == false and attackcounter == 2 then
  1294. attackcounter = 3
  1295. attacktwo()
  1296. elseif attacking == false and attackcounter == 3 then
  1297. attackcounter = 1
  1298. attackthree()
  1299. end
  1300. end
  1301. function key(k)
  1302. if tool.Active == false then
  1303. return
  1304. end
  1305. k = k:lower()
  1306. if attacking == false and k == "z" and AttackHas[1] >= AttackNeeded[1] then
  1307. rapidslash()
  1308. elseif attacking == false and k == "x" and AttackHas[2] >= 0.2 then
  1309. powerslash()
  1310. elseif attacking == false and k == "c" and AttackHas[3] >= AttackNeeded[3] then
  1311. leftright()
  1312. elseif attacking ~= false or k ~= "v" or AttackHas[4] >= AttackNeeded[4] then
  1313. end
  1314. end
  1315. asdasd = mouse.Button1Down:connect(mouse1d)
  1316. asdasdf = mouse.KeyDown:connect(key)
  1317. Humanoid.Died:connect(function()
  1318. asdasd:disconnect()
  1319. asdasdf:disconnect()
  1320. end)
  1321. thread(function()
  1322. while true do
  1323. swait()
  1324. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1325. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1326. sine = sine + 1
  1327. if AttackHas[1] < AttackNeeded[1] and AttackCan[1] == true then
  1328. AttackHas[1] = AttackHas[1] + 0.005
  1329. end
  1330. if AttackHas[2] < AttackNeeded[2] and AttackCan[2] == true then
  1331. AttackHas[2] = AttackHas[2] + 0.005
  1332. end
  1333. if AttackHas[3] < AttackNeeded[3] and AttackCan[3] == true then
  1334. AttackHas[3] = AttackHas[3] + 0.005
  1335. end
  1336. if AttackHas[4] < AttackNeeded[4] and AttackCan[4] == true then
  1337. AttackHas[4] = AttackHas[4] + 0.005
  1338. end
  1339. Reload[1]:TweenSize(UDim2.new(AttackHas[1] / AttackNeeded[1], 0, 1, 0), nil, 1, 0.4)
  1340. Reload[2]:TweenSize(UDim2.new(AttackHas[2] / AttackNeeded[2], 0, 1, 0), nil, 1, 0.4)
  1341. Reload[3]:TweenSize(UDim2.new(AttackHas[3] / AttackNeeded[3], 0, 1, 0), nil, 1, 0.4)
  1342. Reload[4]:TweenSize(UDim2.new(AttackHas[4] / AttackNeeded[4], 0, 1, 0), nil, 1, 0.4)
  1343. if 1 < RootPart.Velocity.y and hitfloor == nil then
  1344. if attacking == false then
  1345. Anim = "Jump"
  1346. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.1)
  1347. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1348. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1349. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1350. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1351. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1352. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.2)
  1353. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.2)
  1354. end
  1355. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1356. if attacking == false then
  1357. Anim = "Fall"
  1358. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(23), 0, 0), 0.2)
  1359. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1360. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1361. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1362. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1363. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1364. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(24), math.rad(90), 0), 0.2)
  1365. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-12), -math.rad(90), 0), 0.2)
  1366. end
  1367. elseif torvel < 1 and hitfloor ~= nil then
  1368. if attacking == false then
  1369. Anim = "Idle"
  1370. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(15)), 0.1)
  1371. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(-15)), 0.1)
  1372. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2)
  1373. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2)
  1374. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1375. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1376. RH.C0 = clerp(RH.C0, CFrame.new(1, -1.1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), math.rad(105), math.rad(-5)) * CFrame.Angles(math.rad(-4), 0, math.rad(-5)), 0.2)
  1377. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), -math.rad(75), math.rad(-2)) * CFrame.Angles(math.rad(-13), 0, 0), 0.2)
  1378. end
  1379. elseif torvel > 2 and hitfloor ~= nil and attacking == false then
  1380. Anim = "Walk"
  1381. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.1)
  1382. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.1)
  1383. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2)
  1384. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2)
  1385. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1386. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1387. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.cos(sine * 1.2 / 8), math.rad(90), 0), 0.3)
  1388. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(-math.cos(sine * 1.2 / 8), -math.rad(90), 0), 0.3)
  1389. end
  1390. if 0 < #partEffects then
  1391. for e = 1, #partEffects do
  1392. if partEffects[e] ~= nil then
  1393. local Thing = partEffects[e]
  1394. if Thing ~= nil then
  1395. local Part = Thing[1]
  1396. local Mode = Thing[2]
  1397. local Delay = Thing[3]
  1398. local IncX = Thing[4]
  1399. local IncY = Thing[5]
  1400. local IncZ = Thing[6]
  1401. if 1 >= Thing[1].Transparency then
  1402. if Thing[2] == "Block1" then
  1403. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1404. local Mesh = Thing[1].Mesh
  1405. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1406. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1407. elseif Thing[2] == "Block2" then
  1408. Thing[1].CFrame = Thing[1].CFrame
  1409. local Mesh = Thing[7]
  1410. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1411. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1412. elseif Thing[2] == "Cylinder" then
  1413. local Mesh = Thing[1].Mesh
  1414. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1415. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1416. elseif Thing[2] == "Blood" then
  1417. local Mesh = Thing[7]
  1418. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1419. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1420. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1421. elseif Thing[2] == "Elec" then
  1422. local Mesh = Thing[1].Mesh
  1423. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1424. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1425. elseif Thing[2] == "Disappear" then
  1426. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1427. elseif Thing[2] == "Shatter" then
  1428. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1429. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1430. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1431. Thing[6] = Thing[6] + Thing[5]
  1432. end
  1433. else
  1434. Part:Destroy()
  1435. table.remove(partEffects, e)
  1436. end
  1437. end
  1438. end
  1439. end
  1440. end
  1441. end
  1442. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement