Advertisement
Fullgamer309

Untitled

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