Advertisement
Fullgamer309

Untitled

Jul 13th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.74 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. wait(0.016666666666667)
  174. Anim = nil
  175. cf = CFrame.new
  176. function c3(cz, cx, cc)
  177. return Color3.new(cz / 255, cx / 255, cc / 255)
  178. end
  179. angles = CFrame.Angles
  180. Character = Player.Character
  181. Humanoid = Character.Humanoid
  182. local LeftArm = Character["Left Arm"]
  183. RightArm = Character["Right Arm"]
  184. LeftLeg = Character["Left Leg"]
  185. RightLeg = Character["Right Leg"]
  186. Head = Character.Head
  187. Torso = Character.Torso
  188. RootPart = Character.HumanoidRootPart
  189. RootJoint = RootPart.RootJoint
  190. Humanoid.Animator:Destroy()
  191. Character.Animate:Destroy()
  192. NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  193. RootCF = angles(-1.57, 0, 3.14)
  194. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  195. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  196. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  197. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  198. RW = Instance.new("Weld")
  199. LW = Instance.new("Weld")
  200. RH = Torso["Right Hip"]
  201. LH = Torso["Left Hip"]
  202. Neck = Torso.Neck
  203. RSH = Torso["Right Shoulder"]
  204. LSH = Torso["Left Shoulder"]
  205. RSH.Parent = nil
  206. LSH.Parent = nil
  207. RW.Name = "Right Shoulder"
  208. RW.Part0 = Torso
  209. RW.C0 = cf(1.5, 0.5, 0)
  210. RW.C1 = cf(0, 0.5, 0)
  211. RW.Part1 = RightArm
  212. RW.Parent = Torso
  213. LW.Name = "Left Shoulder"
  214. LW.Part0 = Torso
  215. LW.C0 = cf(-1.5, 0.5, 0)
  216. LW.C1 = cf(0, 0.5, 0)
  217. LW.Part1 = LeftArm
  218. LW.Parent = Torso
  219. Effects = Instance.new("Model", Character)
  220. Effects.Name = "Effects"
  221. Humanoid.WalkSpeed = 16
  222. partEffects, AttackHas, AttackNeeded, AttackCan = {}, {}, {}, {}
  223. AttackHas[1], AttackHas[2], AttackHas[3], AttackHas[4] = 1, 1, 1, 1
  224. AttackNeeded[1], AttackNeeded[2], AttackNeeded[3], AttackNeeded[4] = 1, 1, 1, 1
  225. AttackCan[1], AttackCan[2], AttackCan[3], AttackCan[4] = true, true, true, true
  226. sine = 0
  227. attackcounter = 1
  228. torvel = nil
  229. attacking = false
  230. hitfloor, posfloor = nil, nil
  231. meshes = {
  232. 3270017,
  233. 20329976,
  234. 448386996,
  235. 1095708,
  236. 1033714,
  237. 9756362
  238. }
  239. sounds = {
  240. {
  241. 320557413,
  242. 320557453,
  243. 320557487,
  244. 320557518,
  245. 320557537,
  246. 320557563,
  247. 233856146,
  248. 233856140
  249. },
  250. {
  251. 234365549,
  252. 234365573,
  253. 231917961,
  254. 231917950,
  255. 231917856,
  256. 231917863,
  257. 231917871
  258. },
  259. {
  260. 262562442,
  261. 231917806,
  262. 231917784
  263. },
  264. {
  265. 262562442,
  266. 233856048,
  267. 306247739
  268. }
  269. }
  270. ArtificialHB = Instance.new("BindableEvent", script)
  271. ArtificialHB.Name = "Heartbeat"
  272. script:WaitForChild("Heartbeat")
  273. frame = 0.025
  274. tf = 0
  275. allowframeloss = true
  276. tossremainder = false
  277. lastframe = tick()
  278. script.Heartbeat:Fire()
  279. game:GetService("RunService").Heartbeat:connect(function(s, p)
  280. tf = tf + s
  281. if tf >= frame then
  282. if allowframeloss then
  283. script.Heartbeat:Fire()
  284. lastframe = tick()
  285. else
  286. for i = 1, math.floor(tf / frame) do
  287. script.Heartbeat:Fire()
  288. end
  289. lastframe = tick()
  290. end
  291. if tossremainder then
  292. tf = 0
  293. else
  294. tf = tf - frame * math.floor(tf / frame)
  295. end
  296. end
  297. end)
  298. function swait(num)
  299. if num == 0 or num == nil then
  300. ArtificialHB.Event:wait()
  301. else
  302. for i = 0, num do
  303. ArtificialHB.Event:wait()
  304. end
  305. end
  306. end
  307. function thread(f)
  308. coroutine.resume(coroutine.create(f))
  309. end
  310. function clerp(a, b, t)
  311. local qa = {
  312. QuaternionFromCFrame(a)
  313. }
  314. local qb = {
  315. QuaternionFromCFrame(b)
  316. }
  317. local ax, ay, az = a.x, a.y, a.z
  318. local bx, by, bz = b.x, b.y, b.z
  319. local _t = 1 - t
  320. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  321. end
  322. function QuaternionFromCFrame(cf)
  323. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  324. local trace = m00 + m11 + m22
  325. if trace > 0 then
  326. local s = math.sqrt(1 + trace)
  327. local recip = 0.5 / s
  328. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  329. else
  330. local i = 0
  331. if m00 < m11 then
  332. i = 1
  333. end
  334. if m22 > (i == 0 and m00 or m11) then
  335. i = 2
  336. end
  337. if i == 0 then
  338. local s = math.sqrt(m00 - m11 - m22 + 1)
  339. local recip = 0.5 / s
  340. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  341. elseif i == 1 then
  342. local s = math.sqrt(m11 - m22 - m00 + 1)
  343. local recip = 0.5 / s
  344. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  345. elseif i == 2 then
  346. local s = math.sqrt(m22 - m00 - m11 + 1)
  347. local recip = 0.5 / s
  348. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  349. end
  350. end
  351. end
  352. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  353. local xs, ys, zs = x + x, y + y, z + z
  354. local wx, wy, wz = w * xs, w * ys, w * zs
  355. local xx = x * xs
  356. local xy = x * ys
  357. local xz = x * zs
  358. local yy = y * ys
  359. local yz = y * zs
  360. local zz = z * zs
  361. 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))
  362. end
  363. function QuaternionSlerp(a, b, t)
  364. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  365. local startInterp, finishInterp
  366. if cosTheta >= 1.0E-4 then
  367. if 1 - cosTheta > 1.0E-4 then
  368. local theta = math.acos(cosTheta)
  369. local invSinTheta = 1 / math.sin(theta)
  370. startInterp = math.sin((1 - t) * theta) * invSinTheta
  371. finishInterp = math.sin(t * theta) * invSinTheta
  372. else
  373. startInterp = 1 - t
  374. finishInterp = t
  375. end
  376. elseif 1 + cosTheta > 1.0E-4 then
  377. local theta = math.acos(-cosTheta)
  378. local invSinTheta = 1 / math.sin(theta)
  379. startInterp = math.sin((t - 1) * theta) * invSinTheta
  380. finishInterp = math.sin(t * theta) * invSinTheta
  381. else
  382. startInterp = t - 1
  383. finishInterp = t
  384. end
  385. 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
  386. end
  387. function rayCast(Pos, Dir, Max, Ignore)
  388. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  389. end
  390. function newPart(par, brick, transp, anch, canc, size, name, mat, cfra)
  391. local p = Instance.new("Part")
  392. p.BrickColor = brick
  393. p.Transparency = transp
  394. p.Material = mat and mat or "SmoothPlastic"
  395. p.Anchored = anch
  396. p.CanCollide = canc
  397. p.Size = size
  398. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = 10, 10, 10, 10, 10, 10
  399. p.Name = name
  400. p.CFrame = cfra or RootPart.CFrame
  401. p.Parent = par
  402. return p
  403. end
  404. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  405. local mesh = Instance.new(Mesh)
  406. mesh.Parent = part
  407. if Mesh == "SpecialMesh" then
  408. mesh.MeshType = meshtype
  409. if meshid then
  410. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  411. end
  412. end
  413. if offset then
  414. mesh.Offset = offset
  415. end
  416. mesh.Scale = scale
  417. return mesh
  418. end
  419. function weld(parent, part0, part1, c0, c1)
  420. local weld = Instance.new("Weld")
  421. weld.Parent = parent
  422. weld.Part0 = part0
  423. weld.Part1 = part1
  424. weld.C0 = c0
  425. if c1 then
  426. weld.C1 = c1
  427. end
  428. return weld
  429. end
  430. function sound(id, par, vol, dur, pit)
  431. coroutine.resume(coroutine.create(function()
  432. local sou = Instance.new("Sound", par or workspace)
  433. sou.Volume = vol
  434. sou.Pitch = pit or 1
  435. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  436. swait()
  437. sou:play()
  438. wait(dur)
  439. sou:Destroy()
  440. end))
  441. end
  442. function round(num)
  443. local a, b = math.modf(num)
  444. if num % 1 ~= 0 then
  445. return math.floor(num) + math.floor(b * 10 + 0.5) / 10
  446. else
  447. return math.floor(num)
  448. end
  449. end
  450. function findCloseHumanoid(centre, distance)
  451. local tab = {}
  452. for _, child in pairs(game.Workspace:GetChildren()) do
  453. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  454. local vtors = child.Torso
  455. local mag = math.abs((vtors.Position - centre).magnitude)
  456. if distance >= mag then
  457. table.insert(tab, child.Humanoid)
  458. end
  459. end
  460. end
  461. return tab
  462. end
  463. function basicDamage(vhum, damage, colour)
  464. if not vhum or not vhum.Parent:findFirstChild("Humanoid") or vhum.Health <= 0 then
  465. return
  466. end
  467. vhum.Health = vhum.Health - damage
  468. local damagepart = Instance.new("Part", Effects)
  469. damagepart.Transparency = 1
  470. damagepart.Anchored = true
  471. damagepart.CanCollide = false
  472. damagepart.Size = Vector3.new(1, 1, 1)
  473. damagepart.Name = "DamagePart"
  474. damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
  475. local g = Instance.new("BillboardGui", damagepart)
  476. g.Enabled = true
  477. g.Adornee = damagepart
  478. g.Size = UDim2.new(5, 0, 5, 0)
  479. g.ExtentsOffset = Vector3.new(0, 0, 0)
  480. g.StudsOffset = Vector3.new(0, 0, 0)
  481. local t = Instance.new("TextLabel", g)
  482. t.BackgroundTransparency = 1
  483. t.Font = "ArialBold"
  484. t.TextSize = 24
  485. t.Text = "-" .. round(damage)
  486. if round(damage) % 1 == 0 then
  487. t.Text = "-" .. round(damage) .. ".0"
  488. end
  489. t.Size = UDim2.new(1, 0, 1, 0)
  490. t.TextStrokeTransparency = 0
  491. t.TextTransparency = 0
  492. t.TextScaled = true
  493. t.TextWrapped = true
  494. t.TextXAlignment = "Center"
  495. t.TextYAlignment = "Center"
  496. t.TextColor3 = colour
  497. coroutine.resume(coroutine.create(function()
  498. for i = 1, 50 do
  499. game:GetService("RunService").Heartbeat:wait()
  500. local sinewave = math.sin(i / 500) * 4
  501. damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
  502. t.TextTransparency = t.TextTransparency + 0.02
  503. t.TextStrokeTransparency = t.TextTransparency + 0.02
  504. end
  505. damagepart:Destroy()
  506. end), t)
  507. end
  508. function createBodyTrail()
  509. local nPart = function(parent, brickcolor, transparency, anchored, cancollide, size, name)
  510. local fp = Instance.new("Part")
  511. fp.Parent = parent
  512. fp.Transparency = transparency
  513. fp.Anchored = anchored
  514. fp.CanCollide = cancollide
  515. fp.Locked = true
  516. fp.BrickColor = BrickColor.new(brickcolor)
  517. fp.Name = name
  518. fp.Size = size
  519. fp.Position = RootPart.Position
  520. fp.TopSurface, fp.BottomSurface, fp.LeftSurface, fp.RightSurface, fp.FrontSurface, fp.BackSurface = 10, 10, 10, 10, 10, 10
  521. fp.Material = "SmoothPlastic"
  522. fp:BreakJoints()
  523. return fp
  524. end
  525. local faketab = {}
  526. local fakel = nPart(Effects, Character["Right Arm"].BrickColor.Color, 0, true, false, Character["Right Arm"].Size, "")
  527. local faker = nPart(Effects, Character["Left Arm"].BrickColor.Color, 0, true, false, Character["Left Arm"].Size, "")
  528. local fakell = nPart(Effects, Character["Left Leg"].BrickColor.Color, 0, true, false, Character["Left Leg"].Size, "")
  529. local fakerl = nPart(Effects, Character["Right Leg"].BrickColor.Color, 0, true, false, Character["Right Leg"].Size, "")
  530. local faketors = nPart(Effects, Character.Torso.BrickColor.Color, 0, true, false, Character.Torso.Size, "")
  531. local fakehead = nPart(Effects, Character.Head.BrickColor.Color, 0, true, false, Character.Head.Size, "")
  532. fakel.BrickColor = BrickColor.new("Fog")
  533. faker.BrickColor = BrickColor.new("Fog")
  534. fakell.BrickColor = BrickColor.new("Fog")
  535. fakerl.BrickColor = BrickColor.new("Fog")
  536. faketors.BrickColor = BrickColor.new("Fog")
  537. fakehead.BrickColor = BrickColor.new("Fog")
  538. if Character.Head:findFirstChild("Mesh") then
  539. Character.Head.Mesh:Clone().Parent = fakehead
  540. end
  541. fakel.Name = "FakeLeft"
  542. faker.Name = "FakeRight"
  543. fakell.Name = "FakeLeftL"
  544. fakerl.Name = "FakeRightL"
  545. faketors.Name = "FakeTorso"
  546. fakehead.Name = "FakeHead"
  547. table.insert(faketab, fakel)
  548. table.insert(faketab, faker)
  549. table.insert(faketab, fakell)
  550. table.insert(faketab, fakerl)
  551. table.insert(faketab, faketors)
  552. table.insert(faketab, fakehead)
  553. for _, v in pairs(faketab) do
  554. v.Archivable = true
  555. v.CanCollide = false
  556. v.Anchored = true
  557. v.Material = "SmoothPlastic"
  558. v.Transparency = 0.2
  559. v.Locked = true
  560. game.Debris:AddItem(v, 3)
  561. end
  562. fakel.CFrame = Character["Left Arm"].CFrame
  563. faker.CFrame = Character["Right Arm"].CFrame
  564. fakell.CFrame = Character["Left Leg"].CFrame
  565. fakerl.CFrame = Character["Right Leg"].CFrame
  566. faketors.CFrame = Character.Torso.CFrame
  567. fakehead.CFrame = Character.Head.CFrame
  568. local hats = {}
  569. for _, v in pairs(hats) do
  570. if v:findFirstChild("Handle") then
  571. do
  572. local vc = v.Handle:Clone()
  573. vc.Parent = Effects
  574. vc.CFrame = v.Handle.CFrame
  575. vc.Anchored = true
  576. vc.CanCollide = false
  577. thread(function()
  578. for i = 1, 15 do
  579. swait()
  580. vc.Transparency = vc.Transparency + 0.06666666666666667
  581. end
  582. vc:Destroy()
  583. end)
  584. end
  585. end
  586. end
  587. return faketors, fakehead, faker, fakel, fakerl, fakell
  588. end
  589. function magic(type, thing)
  590. local magicBlock = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay, t)
  591. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  592. prt.CFrame = cframe
  593. local msh = mesh("BlockMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  594. game:GetService("Debris"):AddItem(prt, 8)
  595. if t == 1 or t == nil then
  596. table.insert(partEffects, {
  597. prt,
  598. "Block1",
  599. delay,
  600. x3,
  601. y3,
  602. z3,
  603. msh
  604. })
  605. elseif t == 2 then
  606. table.insert(partEffects, {
  607. prt,
  608. "Block2",
  609. delay,
  610. x3,
  611. y3,
  612. z3,
  613. msh
  614. })
  615. end
  616. end
  617. local magicCylinder = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  618. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  619. local msh = mesh("CylinderMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  620. game:GetService("Debris"):AddItem(prt, 8)
  621. table.insert(partEffects, {
  622. prt,
  623. "Cylinder",
  624. delay,
  625. x3,
  626. y3,
  627. z3,
  628. msh
  629. })
  630. end
  631. local magicSphere = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  632. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  633. local msh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 8)
  635. table.insert(partEffects, {
  636. prt,
  637. "Cylinder",
  638. delay,
  639. x3,
  640. y3,
  641. z3,
  642. msh
  643. })
  644. end
  645. local magicRing = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  646. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
  647. prt.Anchored = true
  648. prt.CFrame = cframe
  649. local msh = mesh("SpecialMesh", prt, "FileMesh", 3270017, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  650. game:GetService("Debris"):AddItem(prt, 2)
  651. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  652. for i = 0, 1, delay do
  653. swait()
  654. Part.Transparency = i
  655. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  656. end
  657. Part:Destroy()
  658. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  659. end
  660. local magicSlash = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
  661. local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", cframe)
  662. prt.Anchored = true
  663. prt.CFrame = cframe
  664. local msh = mesh("SpecialMesh", prt, "FileMesh", 20329976, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  665. game:GetService("Debris"):AddItem(prt, 2)
  666. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  667. for i = 0, 1, delay do
  668. swait()
  669. Part.Transparency = i
  670. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  671. end
  672. Part:Destroy()
  673. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  674. end
  675. local par = thing[1]
  676. local brick = thing[2]
  677. local cframe = thing[3]
  678. local x1 = thing[4]
  679. local y1 = thing[5]
  680. local z1 = thing[6]
  681. local x3 = thing[7]
  682. local y3 = thing[8]
  683. local z3 = thing[9]
  684. local delay = thing[10]
  685. local t = thing[11]
  686. if type == "Block" or type == 1 then
  687. magicBlock(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  688. elseif type == "Cylinder" or type == 2 then
  689. magicCylinder(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  690. elseif type == "Sphere" or type == 3 then
  691. magicSphere(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  692. elseif type == "Ring" or type == 4 then
  693. magicRing(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  694. elseif type == "Slash" or type == 5 then
  695. magicSlash(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
  696. end
  697. end
  698. function newFrame(par, bg, transp, size, pos, name)
  699. local f = Instance.new("Frame", nil)
  700. f.BackgroundColor3 = bg
  701. f.BackgroundTransparency = transp
  702. f.BorderSizePixel = 0
  703. f.Position = pos
  704. f.Size = size
  705. f.Name = name
  706. f.Parent = par
  707. return f
  708. end
  709. function newLabel(par, size, pos, text, textsize, text3, textstroke3, scaled, name)
  710. local l = Instance.new("TextLabel", nil)
  711. l.BackgroundTransparency = 1
  712. l.Size = size
  713. l.Position = pos
  714. l.Text = text
  715. l.TextSize = textsize
  716. l.TextColor3 = text3
  717. l.TextStrokeColor3 = textstroke3
  718. if scaled then
  719. l.TextScaled = scaled
  720. else
  721. l.TextScaled = true
  722. end
  723. l.TextStrokeTransparency = 0
  724. l.Name = name
  725. l.Parent = par
  726. return l
  727. end
  728. a1t = "Misdirection"
  729. a2t = "Marionette"
  730. a3t = "Luna Clock"
  731. a4t = "Clock Corpse"
  732. backc3 = c3(210, 210, 255)
  733. reloc3 = c3(107, 107, 210)
  734. g = Instance.new("ScreenGui")
  735. f1 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.85, 0), "")
  736. f2 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.76, 0), "")
  737. f3 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.67, 0), "")
  738. f4 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.58, 0), "")
  739. newFrame(f1, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  740. newFrame(f2, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  741. newFrame(f3, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  742. newFrame(f4, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
  743. 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")
  744. 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")
  745. 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")
  746. 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")
  747. 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")
  748. 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")
  749. 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")
  750. 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")
  751. g.Parent = Player.PlayerGui
  752. Reload = {}
  753. Reload[1] = f1.Reload
  754. Reload[2] = f2.Reload
  755. Reload[3] = f3.Reload
  756. Reload[4] = f4.Reload
  757. function newKnife()
  758. local weapon = Instance.new("Model", Character)
  759. weapon.Name = "Izayoi"
  760. local p0 = newPart(weapon, BrickColor.new("Black"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Wedge")
  761. mesh("SpecialMesh", p0, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.550000012, 1.29999995))
  762. local p1 = newPart(weapon, BrickColor.new("Black"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Block")
  763. mesh("BlockMesh", p1, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.400000095, 0.749999881, 0.699999988))
  764. local p2 = newPart(weapon, BrickColor.new("Black"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Block")
  765. mesh("BlockMesh", p2, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.400000095, 0.749999881, 0.699999869))
  766. local p3 = newPart(weapon, BrickColor.new("Lily white"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Blade")
  767. mesh("BlockMesh", p3, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.349999994, 5.45000029, 0.999999881))
  768. local p4 = newPart(weapon, BrickColor.new("Lily white"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Wedge")
  769. mesh("SpecialMesh", p4, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.350000024, 3.9000001, 1.05000007))
  770. local p5 = newPart(weapon, BrickColor.new("Black"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Wedge")
  771. mesh("SpecialMesh", p5, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.400000066, 0.550000012, 1.29999995))
  772. local p6 = newPart(weapon, BrickColor.new("Black"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Handle")
  773. mesh("BlockMesh", p6, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.400000036, 3.5999999, 0.699999928))
  774. local p7 = newPart(weapon, BrickColor.new("Black"), 0, false, false, Vector3.new(0.200000003, 0.200000003, 0.200000003), "Block")
  775. mesh("BlockMesh", p7, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.449999988, 0.349999994, 2.29999971))
  776. weld(p0, p0, p1, CFrame.new(-30.2999763, 2.48997641, 28.180027, 1, 0, 0, 0, 1, -4.37113883E-8, 0, 4.37113883E-8, 1), CFrame.new(30.2999763, 16.1993866, -23.0049038, -1, 0, 0, 0, 0.866025388, 0.49999997, 0, 0.49999997, -0.866025388))
  777. weld(p1, p1, p2, CFrame.new(30.2999763, 16.1993866, -23.0049038, -1, 0, 0, 0, 0.866025388, 0.49999997, 0, 0.49999997, -0.866025388), CFrame.new(30.2999763, 11.7913561, 25.5498791, -1, 0, 0, 0, -0.866025269, 0.49999997, 0, 0.49999997, 0.866025269))
  778. weld(p2, p2, p3, CFrame.new(30.2999763, 11.7913561, 25.5498791, -1, 0, 0, 0, -0.866025269, 0.49999997, 0, 0.49999997, 0.866025269), CFrame.new(30.2999763, 26.6550255, 2.5449779, -1, 0, 0, 0, 0, 1, 0, 1, 0))
  779. weld(p3, p3, p4, CFrame.new(30.2999763, 26.6550255, 2.5449779, -1, 0, 0, 0, 0, 1, 0, 1, 0), CFrame.new(30.2999763, 25.7200241, 2.5449779, -1, 0, 0, 0, 0, 1, 0, 1, 0))
  780. weld(p4, p4, p5, CFrame.new(30.2999763, 25.7200241, 2.5449779, -1, 0, 0, 0, 0, 1, 0, 1, 0), CFrame.new(30.2999763, -2.59997678, 28.180027, -1, 8.74227766E-8, 0, -8.74227766E-8, -1, -4.37113883E-8, -3.82137093E-15, -4.37113883E-8, 1))
  781. weld(p5, p5, p6, CFrame.new(30.2999763, -2.59997678, 28.180027, -1, 8.74227766E-8, 0, -8.74227766E-8, -1, -4.37113883E-8, -3.82137093E-15, -4.37113883E-8, 1), CFrame.new(30.2999763, 27.6200256, 2.5449779, -1, 0, 0, 0, 0, 1, 0, 1, 0))
  782. weld(p6, p6, p7, CFrame.new(30.2999763, 27.6200256, 2.5449779, -1, 0, 0, 0, 0, 1, 0, 1, 0), CFrame.new(30.2999763, 27.2300262, 2.5449779, -1, 0, 0, 0, 0, 1, 0, 1, 0))
  783. return weapon, p6, p3
  784. end
  785. knife1, blade1, handle1 = newKnife()
  786. handleweld1 = Instance.new("Weld", RightArm)
  787. handleweld1.Part1 = RightArm
  788. handleweld1.Part0 = handle1
  789. handle1c0 = CFrame.new(0.2, 0.95, 0) * CFrame.Angles(math.rad(85), math.rad(180), 0)
  790. handle1c1 = CFrame.new(0, -0.95, 0)
  791. handleweld1.C0 = handle1c0
  792. handleweld1.C1 = handle1c1
  793. knife2, blade2, handle2 = newKnife()
  794. handleweld2 = Instance.new("Weld", RightArm)
  795. handleweld2.Part1 = RightArm
  796. handleweld2.Part0 = handle2
  797. handle2c0 = CFrame.new(0, 0.9, 0.15) * CFrame.Angles(math.rad(55), math.rad(180), 0)
  798. handle2c1 = CFrame.new(0, -0.9, 0)
  799. handleweld2.C0 = handle2c0
  800. handleweld2.C1 = handle2c1
  801. knife3, blade3, handle3 = newKnife()
  802. handleweld3 = Instance.new("Weld", RightArm)
  803. handleweld3.Part1 = RightArm
  804. handleweld3.Part0 = handle3
  805. handle3c0 = CFrame.new(-0.2, 0.9, 0.3) * CFrame.Angles(math.rad(25), math.rad(180), 0)
  806. handle3c1 = CFrame.new(0, -0.9, 0)
  807. handleweld3.C0 = handle3c0
  808. handleweld3.C1 = handle3c1
  809. function teleport(k)
  810. local a, b, c, d, e, f = createBodyTrail()
  811. table.insert(partEffects, {
  812. a,
  813. "Disappear",
  814. 0.05
  815. })
  816. table.insert(partEffects, {
  817. b,
  818. "Disappear",
  819. 0.05
  820. })
  821. table.insert(partEffects, {
  822. c,
  823. "Disappear",
  824. 0.05
  825. })
  826. table.insert(partEffects, {
  827. d,
  828. "Disappear",
  829. 0.05
  830. })
  831. table.insert(partEffects, {
  832. e,
  833. "Disappear",
  834. 0.05
  835. })
  836. table.insert(partEffects, {
  837. f,
  838. "Disappear",
  839. 0.05
  840. })
  841. local unit = (RootPart.Velocity * Vector3.new(1, 0, 1)).unit
  842. if k == "e" then
  843. elseif k == "q" then
  844. unit = -unit
  845. end
  846. local velocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  847. local hit, pos = rayCast(RootPart.Position, unit, 15, Character)
  848. if velocity <= 2 then
  849. unit = RootPart.CFrame.lookVector
  850. if k == "q" then
  851. unit = RootPart.CFrame.lookVector * -1
  852. end
  853. end
  854. if pos then
  855. if hit then
  856. if hit.Parent:findFirstChild("Humanoid") then
  857. RootPart.CFrame = CFrame.new(RootPart.CFrame.p + unit * 20)
  858. else
  859. if hit.Parent:IsA("Model") and hit.Parent.Parent:findFirstChild("Humanoid") then
  860. RootPart.CFrame = CFrame.new(RootPart.CFrame.p + unit * 20)
  861. end
  862. RootPart.CFrame = CFrame.new(pos)
  863. end
  864. else
  865. RootPart.CFrame = CFrame.new(RootPart.CFrame.p + unit * 20)
  866. end
  867. end
  868. end
  869. function attackone()
  870. attacking = true
  871. cloak("Uncloak")
  872. for i = 0, 1, 0.1 do
  873. swait()
  874. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(8), 0, math.rad(-70)), 0.3)
  875. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.1 * math.cos(sine / 25)) * CFrame.Angles(0, 0, math.rad(70)), 0.3)
  876. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3 - 0.1 * math.cos(sine / 15), -0.6) * CFrame.Angles(math.rad(80), 0, math.rad(-50)), 0.3)
  877. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 15), 0.2) * CFrame.Angles(math.rad(15), math.rad(10), math.rad(-10)), 0.3)
  878. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  879. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.3)
  880. RH.C0 = clerp(RH.C0, CFrame.new(1, -1 - 0.1 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(0), math.rad(90) - math.rad(10), math.rad(5)), 0.3)
  881. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - 0.1 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(0), -math.rad(90) - math.rad(10), math.rad(5)), 0.3)
  882. handleweld1.C0 = clerp(handleweld1.C0, handle1c0, 0.3)
  883. handleweld2.C0 = clerp(handleweld2.C0, handle2c0, 0.3)
  884. handleweld3.C0 = clerp(handleweld3.C0, handle3c0, 0.3)
  885. end
  886. local dir1 = (RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(45)), 0, math.sin(math.rad(45)))).unit
  887. local dir2 = RootPart.CFrame.lookVector
  888. local dir3 = (RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(-45)), 0, math.sin(math.rad(-45)))).unit
  889. local throwknife1 = newKnife()
  890. throwknife1.Handle.CFrame = CFrame.new(RootPart.CFrame.p, RootPart.CFrame.p + dir1) * CFrame.Angles(math.rad(-90), 0, 0)
  891. local bv1 = Instance.new("BodyVelocity", throwknife1.Handle)
  892. bv1.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  893. bv1.Velocity = dir1 * 30
  894. local throwknife2 = newKnife()
  895. throwknife2.Handle.CFrame = CFrame.new(RootPart.CFrame.p, RootPart.CFrame.p + dir2) * CFrame.Angles(math.rad(-90), 0, 0)
  896. local bv2 = Instance.new("BodyVelocity", throwknife2.Handle)
  897. bv2.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  898. bv2.Velocity = dir2 * 30
  899. local throwknife3 = newKnife()
  900. throwknife3.Handle.CFrame = CFrame.new(RootPart.CFrame.p, RootPart.CFrame.p + dir3) * CFrame.Angles(math.rad(-90), 0, 0)
  901. local bv3 = Instance.new("BodyVelocity", throwknife3.Handle)
  902. bv3.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  903. bv3.Velocity = dir3 * 30
  904. thread(function()
  905. while throwknife1.Parent ~= Effects do
  906. swait()
  907. local hit1, pos1
  908. if throwknife1:findFirstChild("Blade") then
  909. hit1, pos1 = rayCast(throwknife1.Blade.Position, dir1, 1, Character)
  910. end
  911. if hit1 and pos1 then
  912. local w = weld(hit1, throwknife1.Blade, hit1, throwknife1.Blade.CFrame:toObjectSpace(hit1.CFrame))
  913. bv1:Destroy()
  914. if hit1.Parent:findFirstChild("Humanoid") then
  915. basicDamage(hit1.Parent.Humanoid, 5, BrickColor.new("Fog").Color)
  916. end
  917. break
  918. end
  919. end
  920. end)
  921. thread(function()
  922. while throwknife2.Parent ~= Effects do
  923. swait()
  924. local hit1, pos1
  925. if throwknife2:findFirstChild("Blade") then
  926. hit1, pos1 = rayCast(throwknife2.Blade.Position, dir2, 1, Character)
  927. end
  928. if hit1 and pos1 then
  929. local w = weld(hit1, throwknife2.Blade, hit1, throwknife2.Blade.CFrame:toObjectSpace(hit1.CFrame))
  930. bv2:Destroy()
  931. if hit1.Parent:findFirstChild("Humanoid") then
  932. basicDamage(hit1.Parent.Humanoid, 5, BrickColor.new("Fog").Color)
  933. end
  934. break
  935. end
  936. end
  937. end)
  938. thread(function()
  939. while throwknife3.Parent ~= Effects do
  940. swait()
  941. local hit1, pos1
  942. if throwknife3:findFirstChild("Blade") then
  943. hit1, pos1 = rayCast(throwknife3.Blade.Position, dir3, 1, Character)
  944. end
  945. if hit1 and pos1 then
  946. local w = weld(hit1, throwknife3.Blade, hit1, throwknife3.Blade.CFrame:toObjectSpace(hit1.CFrame))
  947. bv3:Destroy()
  948. if hit1.Parent:findFirstChild("Humanoid") then
  949. basicDamage(hit1.Parent.Humanoid, 5, BrickColor.new("Fog").Color)
  950. end
  951. break
  952. end
  953. end
  954. end)
  955. delay(10, function()
  956. if throwknife1 then
  957. throwknife1:Destroy()
  958. end
  959. if throwknife2 then
  960. throwknife2:Destroy()
  961. end
  962. if throwknife3 then
  963. throwknife3:Destroy()
  964. end
  965. end)
  966. cloak("Cloak")
  967. for i = 0, 1, 0.1 do
  968. swait()
  969. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(8), math.rad(0), math.rad(0)), 0.3)
  970. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0.2, math.rad(0), math.rad(0)), 0.3)
  971. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(90)), 0.3)
  972. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.3)
  973. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.3)
  974. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.3)
  975. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  976. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.3)
  977. end
  978. attacking = false
  979. end
  980. function attacktwo()
  981. attackone()
  982. end
  983. function attackthree()
  984. attackone()
  985. end
  986. function mouse1d()
  987.  
  988. if attacking == false and attackcounter == 1 then
  989. attackcounter = 2
  990. attackone()
  991. elseif attacking == false and attackcounter == 2 then
  992. attackcounter = 3
  993. attacktwo()
  994. elseif attacking == false and attackcounter == 3 then
  995. attackcounter = 1
  996. attackthree()
  997. end
  998. end
  999. function key(k)
  1000. k = k:lower()
  1001. if attacking == false and k == "z" and AttackHas[1] >= AttackNeeded[1] then
  1002. elseif attacking == false and k == "x" and AttackHas[2] >= AttackNeeded[2] then
  1003. elseif attacking == false and k == "c" and AttackHas[3] >= AttackNeeded[3] then
  1004. elseif attacking == false and k == "v" and AttackHas[4] >= AttackNeeded[4] then
  1005. elseif k == "e" then
  1006. teleport("e")
  1007. elseif k == "q" then
  1008. teleport("q")
  1009. end
  1010. end
  1011. mouse.Button1Down:connect(mouse1d)
  1012. mouse.KeyDown:connect(key)
  1013. cloaked = false
  1014. function cloak(t)
  1015. if t == "Cloak" then
  1016. if cloaked == true then
  1017. return
  1018. end
  1019. cloaked = true
  1020. magic("Sphere", {
  1021. Effects,
  1022. BrickColor.new("Fog"),
  1023. handle1.CFrame,
  1024. 0.5,
  1025. 0.5,
  1026. 0.5,
  1027. 1,
  1028. 2,
  1029. 1,
  1030. 0.1
  1031. })
  1032. magic("Sphere", {
  1033. Effects,
  1034. BrickColor.new("Fog"),
  1035. handle2.CFrame,
  1036. 0.5,
  1037. 0.5,
  1038. 0.5,
  1039. 1,
  1040. 2,
  1041. 1,
  1042. 0.1
  1043. })
  1044. magic("Sphere", {
  1045. Effects,
  1046. BrickColor.new("Fog"),
  1047. handle3.CFrame,
  1048. 0.5,
  1049. 0.5,
  1050. 0.5,
  1051. 1,
  1052. 2,
  1053. 1,
  1054. 0.1
  1055. })
  1056. for i, v in pairs(knife1:GetChildren()) do
  1057. v.Transparency = 1
  1058. end
  1059. for i, v in pairs(knife2:GetChildren()) do
  1060. v.Transparency = 1
  1061. end
  1062. for i, v in pairs(knife3:GetChildren()) do
  1063. v.Transparency = 1
  1064. end
  1065. handleweld1.C0 = CFrame.new(0, -0.9, 0)
  1066. handleweld2.C0 = CFrame.new(0, -0.9, 0)
  1067. handleweld3.C0 = CFrame.new(0, -0.9, 0)
  1068. elseif t == "Uncloak" then
  1069. if cloaked == false then
  1070. return
  1071. end
  1072. cloaked = false
  1073. for i, v in pairs(knife1:GetChildren()) do
  1074. v.Transparency = 0
  1075. end
  1076. for i, v in pairs(knife2:GetChildren()) do
  1077. v.Transparency = 0
  1078. end
  1079. for i, v in pairs(knife3:GetChildren()) do
  1080. v.Transparency = 0
  1081. end
  1082. end
  1083. end
  1084. thread(function()
  1085. while true do
  1086. swait()
  1087. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1088. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1089. sine = sine + 1
  1090. if AttackHas[1] < AttackNeeded[1] and AttackCan[1] == true then
  1091. AttackHas[1] = AttackHas[1] + 0.03
  1092. end
  1093. if AttackHas[2] < AttackNeeded[2] and AttackCan[2] == true then
  1094. AttackHas[2] = AttackHas[2] + 0.03
  1095. end
  1096. if AttackHas[3] < AttackNeeded[3] and AttackCan[3] == true then
  1097. AttackHas[3] = AttackHas[3] + 0.03
  1098. end
  1099. if AttackHas[4] < AttackNeeded[4] and AttackCan[4] == true then
  1100. AttackHas[4] = AttackHas[4] + 0.03
  1101. end
  1102. Reload[1]:TweenSize(UDim2.new(AttackHas[1] / AttackNeeded[1], 0, 1, 0), nil, 1, 0.4)
  1103. Reload[2]:TweenSize(UDim2.new(AttackHas[2] / AttackNeeded[2], 0, 1, 0), nil, 1, 0.4)
  1104. Reload[3]:TweenSize(UDim2.new(AttackHas[3] / AttackNeeded[3], 0, 1, 0), nil, 1, 0.4)
  1105. Reload[4]:TweenSize(UDim2.new(AttackHas[4] / AttackNeeded[4], 0, 1, 0), nil, 1, 0.4)
  1106. if 1 < RootPart.Velocity.y and hitfloor == nil then
  1107. if attacking == false then
  1108. Anim = "Jump"
  1109. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.1)
  1110. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1111. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1112. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1113. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1114. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1115. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.2)
  1116. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.2)
  1117. cloak("Cloak")
  1118. end
  1119. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1120. if attacking == false then
  1121. Anim = "Fall"
  1122. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(23), 0, 0), 0.2)
  1123. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
  1124. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
  1125. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1126. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
  1127. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1128. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(24), math.rad(90), 0), 0.2)
  1129. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-12), -math.rad(90), 0), 0.2)
  1130. end
  1131. elseif torvel < 1 and hitfloor ~= nil then
  1132. if attacking == false then
  1133. Anim = "Idle"
  1134. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(8), 0, math.rad(-25)), 0.1)
  1135. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.1 * math.cos(sine / 25)) * CFrame.Angles(0, 0, math.rad(25)), 0.1)
  1136. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3 - 0.1 * math.cos(sine / 15), -0.6) * CFrame.Angles(math.rad(70), 0, math.rad(-45)), 0.2)
  1137. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 15), 0.2) * CFrame.Angles(math.rad(15), math.rad(10), math.rad(-10)), 0.2)
  1138. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1139. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1140. RH.C0 = clerp(RH.C0, CFrame.new(1, -1 - 0.1 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(0), math.rad(90) - math.rad(10), math.rad(5)), 0.2)
  1141. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - 0.1 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(0), -math.rad(90) - math.rad(10), math.rad(5)), 0.2)
  1142. cloak("Uncloak")
  1143. handleweld1.C0 = clerp(handleweld1.C0, handle1c0, 0.2)
  1144. handleweld2.C0 = clerp(handleweld2.C0, handle2c0, 0.2)
  1145. handleweld3.C0 = clerp(handleweld3.C0, handle3c0, 0.2)
  1146. end
  1147. elseif torvel > 2 and hitfloor ~= nil and attacking == false then
  1148. Anim = "Walk"
  1149. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(8), 0, math.rad(-25)), 0.1)
  1150. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.1 * math.cos(sine / 25)) * CFrame.Angles(0.1, 0, math.rad(25)), 0.1)
  1151. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.3 - 0.1 * math.cos(sine / 15), -0.6) * CFrame.Angles(math.rad(90), 0, math.rad(-50)), 0.2)
  1152. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 15), 0.2) * CFrame.Angles(math.rad(15), math.rad(10), math.rad(-10)), 0.2)
  1153. RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1154. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
  1155. RH.C0 = clerp(RH.C0, CFrame.new(1, -1 - 0.1 * math.cos(sine / 25), 0) * CFrame.Angles(math.cos(sine * 1.2 / 8), math.rad(90) - math.rad(10), math.rad(5)), 0.2)
  1156. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - 0.1 * math.cos(sine / 25), 0) * CFrame.Angles(-math.cos(sine * 1.2 / 8), -math.rad(90) - math.rad(10), math.rad(5)), 0.2)
  1157. cloak("Uncloak")
  1158. handleweld1.C0 = clerp(handleweld1.C0, CFrame.new(0.2, 0.95, 0) * CFrame.Angles(math.rad(80), math.rad(180), 0), 0.2)
  1159. handleweld2.C0 = clerp(handleweld2.C0, CFrame.new(0, 0.95, 0.15) * CFrame.Angles(math.rad(50), math.rad(180), 0), 0.2)
  1160. handleweld3.C0 = clerp(handleweld3.C0, CFrame.new(-0.2, 0.9, 0.3) * CFrame.Angles(math.rad(20), math.rad(180), 0), 0.2)
  1161. end
  1162. if 0 < #partEffects then
  1163. for e = 1, #partEffects do
  1164. if partEffects[e] ~= nil then
  1165. local Thing = partEffects[e]
  1166. if Thing ~= nil then
  1167. local Part = Thing[1]
  1168. local Mode = Thing[2]
  1169. local Delay = Thing[3]
  1170. local IncX = Thing[4]
  1171. local IncY = Thing[5]
  1172. local IncZ = Thing[6]
  1173. if 1 >= Thing[1].Transparency then
  1174. if Thing[2] == "Block1" then
  1175. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1176. local Mesh = Thing[1].Mesh
  1177. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1178. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1179. elseif Thing[2] == "Block2" then
  1180. Thing[1].CFrame = Thing[1].CFrame
  1181. local Mesh = Thing[7]
  1182. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1183. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1184. elseif Thing[2] == "Cylinder" then
  1185. local Mesh = Thing[1].Mesh
  1186. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1187. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1188. elseif Thing[2] == "Blood" then
  1189. local Mesh = Thing[7]
  1190. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1191. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1192. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1193. elseif Thing[2] == "Elec" then
  1194. local Mesh = Thing[1].Mesh
  1195. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1196. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1197. elseif Thing[2] == "Disappear" then
  1198. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1199. elseif Thing[2] == "Shatter" then
  1200. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1201. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1202. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1203. Thing[6] = Thing[6] + Thing[5]
  1204. end
  1205. else
  1206. Part:Destroy()
  1207. table.remove(partEffects, e)
  1208. end
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement