Dark_EccentricYT

Untitled

Feb 14th, 2021 (edited)
7,364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.00 KB | None | 0 0
  1. HumanDied = false
  2. local CountSCIFIMOVIELOL = 1
  3. function SCIFIMOVIELOL(Part0,Part1,Position,Angle)
  4. local AlignPos = Instance.new('AlignPosition', Part1); AlignPos.Name = "AliP_"..CountSCIFIMOVIELOL
  5. AlignPos.ApplyAtCenterOfMass = true;
  6. AlignPos.MaxForce = 5772000--67752;
  7. AlignPos.MaxVelocity = math.huge/9e110;
  8. AlignPos.ReactionForceEnabled = false;
  9. AlignPos.Responsiveness = 200;
  10. AlignPos.RigidityEnabled = false;
  11. local AlignOri = Instance.new('AlignOrientation', Part1); AlignOri.Name = "AliO_"..CountSCIFIMOVIELOL
  12. AlignOri.MaxAngularVelocity = math.huge/9e110;
  13. AlignOri.MaxTorque = 5772000
  14. AlignOri.PrimaryAxisOnly = false;
  15. AlignOri.ReactionTorqueEnabled = false;
  16. AlignOri.Responsiveness = 200;
  17. AlignOri.RigidityEnabled = false;
  18. local AttachmentA=Instance.new('Attachment',Part1); AttachmentA.Name = "Ath_"..CountSCIFIMOVIELOL
  19. local AttachmentB=Instance.new('Attachment',Part0); AttachmentB.Name = "Ath_"..CountSCIFIMOVIELOL
  20. AttachmentA.Orientation = Angle or Vector3.new(0,0,0)
  21. AttachmentA.Position = Position or Vector3.new(0,0,0)
  22. AlignPos.Attachment1 = AttachmentA;
  23. AlignPos.Attachment0 = AttachmentB;
  24. AlignOri.Attachment1 = AttachmentA;
  25. AlignOri.Attachment0 = AttachmentB;
  26. CountSCIFIMOVIELOL = CountSCIFIMOVIELOL + 1
  27. return {AlignPos,AlignOri,AttachmentA,AttachmentB}
  28. end
  29.  
  30. game:FindFirstChildOfClass("Players").LocalPlayer["Character"].Archivable = true
  31. local hatnameclone = {}
  32. for _,v in next, game:FindFirstChildOfClass("Players").LocalPlayer["Character"]:GetChildren() do
  33. if v:IsA("Accessory") then
  34. if hatnameclone[v.Name] then
  35. if hatnameclone[v.Name] == "s" then
  36. hatnameclone[v.Name] = {}
  37. end
  38. table.insert(hatnameclone[v.Name],v)
  39. else
  40. hatnameclone[v.Name] = "s"
  41. end
  42. end
  43. end
  44. for _,v in pairs(hatnameclone) do
  45. if type(v) == "table" then
  46. local num = 1
  47. for _,w in pairs(v) do
  48. w.Name = w.Name..num
  49. num = num + 1
  50. end
  51. end
  52. end
  53. hatnameclone = nil
  54.  
  55. local DeadChar = game:FindFirstChildOfClass("Players").LocalPlayer.Character
  56.  
  57. local fldr = Instance.new("Folder",game:FindFirstChildOfClass("Players").LocalPlayer["Character"])
  58. fldr.Name = "DMYF"
  59. local CloneChar = DeadChar:Clone()
  60. local ANIMATIONHERE
  61. if CloneChar:FindFirstChild("Animate") then
  62. ANIMATIONHERE = CloneChar:FindFirstChild("Animate"):Clone()
  63. CloneChar:FindFirstChild("Animate"):Destroy()
  64. end
  65. if CloneChar:FindFirstChildOfClass("Folder") then CloneChar:FindFirstChildOfClass("Folder"):Destroy() end
  66. if CloneChar.Torso:FindFirstChild("Neck") then
  67. local Clonessss = CloneChar.Torso:FindFirstChild("Neck"):Clone()
  68. Clonessss.Part0 = nil
  69. Clonessss.Part1 = DeadChar.Head
  70. Clonessss.Parent = DeadChar.Torso
  71. end
  72. CloneChar.Parent = fldr
  73. CloneChar.HumanoidRootPart.CFrame = DeadChar.HumanoidRootPart.CFrame
  74. CloneChar.Humanoid.BreakJointsOnDeath = false
  75. CloneChar.Name = "non"
  76. CloneChar.Humanoid.DisplayDistanceType = "None"
  77.  
  78. for _,v in next, DeadChar:GetChildren() do
  79. if v:IsA("Accessory") then
  80. local topacc = false
  81. if v.Handle:FindFirstChildOfClass("Weld") then v.Handle:FindFirstChildOfClass("Weld"):Destroy() end
  82. v.Handle.Massless = true
  83. v.Handle.CanCollide = false
  84. if v.Handle:FindFirstChildOfClass("Attachment") then
  85. local ath__ = v.Handle:FindFirstChildOfClass("Attachment")
  86. if ath__.Name == "HatAttachment" or ath__.Name == "HairAttachment" or ath__.Name == "FaceFrontAttachment" or ath__.Name == "FaceCenterAttachment" then
  87. topacc = ath__.Name
  88. end
  89. end
  90. local bv = Instance.new("BodyVelocity",v.Handle)
  91. bv.Velocity = Vector3.new(0,0,0)
  92. coroutine.wrap(function()
  93. if topacc then
  94. local allthings = SCIFIMOVIELOL(v.Handle,DeadChar.Torso,Vector3.new(0,1.5,0)+ (DeadChar.Head[topacc].Position + (v.Handle[topacc].Position*-1)),Vector3.new(0,0,0))
  95. local normaltop = allthings[1].Attachment1
  96. local alipos = allthings[1]
  97. local alirot = allthings[2]
  98. local p0 = v.Handle
  99. local p1 = DeadChar.Head
  100. alipos.Parent = CloneChar:FindFirstChild(v.Name).Handle
  101. alirot.Parent = CloneChar:FindFirstChild(v.Name).Handle
  102. while true do
  103. game:GetService("RunService").RenderStepped:wait()
  104. if HumanDied then break end
  105. coroutine.wrap(function()
  106. if alipos.Attachment1 == normaltop then
  107. p0.CFrame = p0.CFrame:lerp((((DeadChar.Torso.CFrame * CFrame.new(0,1.5,0)) * p1[topacc].CFrame) * p0[topacc].CFrame:inverse()),1)
  108. else
  109. v.Handle.CFrame = v.Handle.CFrame:lerp(alipos.Attachment1.Parent.CFrame * CFrame.new(alipos.Attachment1.Position) * CFrame.Angles(math.rad(alipos.Attachment1.Rotation.X),math.rad(alipos.Attachment1.Rotation.Y),math.rad(alipos.Attachment1.Rotation.Z)),1)
  110. end
  111. end)()
  112. end
  113. else
  114. SCIFIMOVIELOL(v.Handle,CloneChar[v.Name].Handle,Vector3.new(0,0,0),Vector3.new(0,0,0))
  115. end
  116. end)()
  117. end
  118. end
  119.  
  120. local a = DeadChar.Torso
  121. local b = DeadChar.HumanoidRootPart
  122. local c = DeadChar.Humanoid
  123. a.Parent = game:FindFirstChildOfClass("Workspace")
  124. c.Parent = game:FindFirstChildOfClass("Workspace")
  125. local told = a:Clone()
  126. local told1 = c:Clone()
  127. b["RootJoint"].Part0 = told
  128. b["RootJoint"].Part1 = DeadChar.Head
  129. a.Name = "torso"
  130. a.Neck:Destroy()
  131. c.Name = "Mizt Hub Best"
  132. told.Parent = DeadChar
  133. told1.Parent = DeadChar
  134. DeadChar.PrimaryPart = told
  135. told1.Health = 0
  136. b:Destroy()
  137. a.Parent = DeadChar
  138. c.Parent = DeadChar
  139. told:Destroy()
  140. told1:Destroy()
  141. a.Name = "Torso"
  142.  
  143. if CloneChar.Head:FindFirstChildOfClass("Decal") then CloneChar.Head:FindFirstChildOfClass("Decal").Transparency = 1 end
  144. if DeadChar:FindFirstChild("Animate") then DeadChar:FindFirstChild("Animate"):Destroy() end
  145.  
  146. local Collider
  147. function UnCollide()
  148. if HumanDied then Collider:Disconnect(); return end
  149. for _,Parts in next, CloneChar:GetChildren() do
  150. if Parts:IsA("BasePart") then
  151. Parts.CanCollide = false
  152. end
  153. end
  154. for _,Parts in next, DeadChar:GetChildren() do
  155. if Parts:IsA("BasePart") then
  156. Parts.CanCollide = false
  157. end
  158. end
  159. end
  160. Collider = game:GetService("RunService").Stepped:Connect(UnCollide)
  161.  
  162. local resetBindable = Instance.new("BindableEvent")
  163. resetBindable.Event:connect(function()
  164. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  165. resetBindable:Destroy()
  166. HumanDied = true
  167. pcall(function()
  168. game:FindFirstChildOfClass("Players").LocalPlayer.Character = DeadChar
  169. DeadChar.Head:Destroy()
  170. DeadChar:FindFirstChildOfClass("Humanoid"):Destroy()
  171. game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  172. if DeadChar:FindFirstChildOfClass("Folder") then DeadChar:FindFirstChildOfClass("Folder"):Destroy() end
  173. end)
  174. end)
  175. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  176.  
  177. coroutine.wrap(function()
  178. while true do
  179. game:GetService("RunService").RenderStepped:wait()
  180. if not CloneChar or not CloneChar:FindFirstChild("Head") or not CloneChar:FindFirstChildOfClass("Humanoid") or CloneChar:FindFirstChildOfClass("Humanoid").Health <= 0 and not DeadChar or not DeadChar:FindFirstChild("Head") or not DeadChar:FindFirstChildOfClass("Humanoid") or DeadChar:FindFirstChildOfClass("Humanoid").Health <= 0 then
  181. HumanDied = true
  182. pcall(function()
  183. game:FindFirstChildOfClass("Players").LocalPlayer.Character = DeadChar
  184. DeadChar.Head:Destroy()
  185. DeadChar:FindFirstChildOfClass("Humanoid"):Destroy()
  186. game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  187. if DeadChar:FindFirstChildOfClass("Folder") then DeadChar:FindFirstChildOfClass("Folder"):Destroy() end
  188. end)
  189. if resetBindable then
  190. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  191. resetBindable:Destroy()
  192. end
  193. break
  194. end
  195. end
  196. end)()
  197.  
  198.  
  199. SCIFIMOVIELOL(DeadChar["Head"],CloneChar["Head"])
  200. SCIFIMOVIELOL(DeadChar["Torso"],CloneChar["Torso"])
  201. SCIFIMOVIELOL(DeadChar["Left Arm"],CloneChar["Left Arm"])
  202. SCIFIMOVIELOL(DeadChar["Right Arm"],CloneChar["Right Arm"])
  203. SCIFIMOVIELOL(DeadChar["Left Leg"],CloneChar["Left Leg"])
  204. SCIFIMOVIELOL(DeadChar["Right Leg"],CloneChar["Right Leg"])
  205.  
  206. for _,v in pairs(DeadChar:GetChildren()) do
  207. if v:IsA("BasePart") and v.Name ~= "Head" then
  208. --[[local bv = Instance.new("BodyVelocity",v)
  209. bv.Velocity = Vector3.new(0,0,0)
  210. coroutine.wrap(function()
  211. while true do
  212. game:GetService("RunService").RenderStepped:wait()
  213. if HumanDied then break end
  214. v.CFrame = CloneChar[v.Name].CFrame
  215. end
  216. end)()]]
  217. elseif v:IsA("BasePart") and v.Name == "Head" then
  218. local bv = Instance.new("BodyVelocity",v)
  219. bv.Velocity = Vector3.new(0,0,0)
  220. coroutine.wrap(function()
  221. while true do
  222. game:GetService("RunService").RenderStepped:wait()
  223. if HumanDied then break end
  224. v.CFrame = DeadChar.Torso.CFrame * CFrame.new(0,1.5,0)
  225. end
  226. end)()
  227. end
  228. end
  229.  
  230. for _,BodyParts in next, CloneChar:GetDescendants() do
  231. if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
  232. BodyParts.Transparency = 1 end end
  233. game:GetService("RunService").RenderStepped:wait()
  234. game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  235. game:FindFirstChildOfClass("Workspace"):FindFirstChildOfClass("Camera").CameraSubject = CloneChar.Humanoid
  236.  
  237. for _,v in next, DeadChar:GetChildren() do
  238. if v:IsA("Accessory") then
  239. if v.Handle:FindFirstChildOfClass("Weld") then v.Handle:FindFirstChildOfClass("Weld"):Destroy() end
  240. end
  241. end
  242. if ANIMATIONHERE then ANIMATIONHERE.Parent = CloneChar end
  243. s = Instance.new("Sound",Workspace)
  244. s.Pitch = 1
  245. s.Volume = 1
  246. s.SoundId = "rbxassetid://400786493"
  247. s.Looped = true
  248. s:Play()
  249. pls=game:GetService'Players';
  250. rs=game:GetService'RunService';
  251. uinps=game:GetService'UserInputService';
  252. lp=pls.LocalPlayer;
  253. mouse=lp:GetMouse();
  254. c=lp.Character;
  255. rayModel=Instance.new('Model',c);
  256. human=c.Humanoid;
  257. Cone=nil;
  258. human.MaxHealth=5000;
  259. wait();
  260. human.Health=5000;
  261. c.Health:Destroy();
  262. Debounces={
  263. FPS=0;
  264. isAttacking=false;
  265. isMoving=false;
  266. isSprinting=false;
  267. Debounce=false;
  268. isTyping=false;
  269. isJumping=false;
  270. isFlash=false;
  271. print("FE By Ice & Fire3021")
  272. };
  273. numLerp=function(start,goal,alpha)
  274. return(((goal-start)*alpha)+start);
  275. end;
  276. CFrameZero=function()
  277. return CFrame.new(Vector3.new());
  278. end;
  279. local function a()
  280. local t=tick();
  281. local l=t%1*3;
  282. local t=.5*math.pi*(l%1);
  283. if l<1 then
  284. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  285. elseif l<2 then
  286. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  287. else
  288. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  289. end;
  290. end;
  291. rad=function(value)
  292. return math.rad(value);
  293. end;
  294. CFAngles=function(Vector)
  295. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  296. end;
  297. AnimStat={
  298. lerpSpeed=.2;
  299. lerpSpeed2=.35;
  300. lerpTween=0;
  301. };
  302. Joints={
  303. c.HumanoidRootPart.RootJoint;
  304. c.Torso.Neck;
  305. c.Torso['Left Shoulder'];
  306. c.Torso['Right Shoulder'];
  307. c.Torso['Left Hip'];
  308. c.Torso['Right Hip'];
  309. };
  310. JointTargets={
  311. CFrameZero();
  312. CFrameZero();
  313. CFrameZero();
  314. CFrameZero();
  315. CFrameZero();
  316. CFrameZero();
  317. };
  318. prepareCharacter=function()
  319. music=Instance.new('Sound',c.HumanoidRootPart);
  320. music.SoundId='rbxassetid://394144904';
  321. music.Looped=true;
  322. music.Volume=.6;
  323. music2=Instance.new('Sound',c);
  324. music2.SoundId='rbxassetid://259613634';
  325. music2.Looped=true;
  326. music2.Volume=1;
  327. music3=Instance.new('Sound',c.HumanoidRootPart);
  328. music3.SoundId='rbxassetid://266530326';
  329. music3.Looped=true;
  330. music3.Volume=1;
  331. music4=Instance.new('Sound',c.HumanoidRootPart);
  332. music4.SoundId='rbxassetid://155738252';
  333. music4.Looped=true;
  334. music4.Volume=1;
  335. music5=Instance.new('Sound',c.HumanoidRootPart);
  336. music5.SoundId='rbxassetid://215391212';
  337. music5.Looped=true;
  338. music5.Volume=1;
  339. human.WalkSpeed=0;
  340. human.JumpPower=0;
  341. for i,v in pairs(c:children())do
  342. if v:isA'Hat'then v:Destroy();end;
  343. if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
  344. if v.Name=='Head'then v.Transparency=1 for _,x in pairs(v:children())do if x.ClassName=='Sound'then x:Destroy();end;end;end;
  345. if v:FindFirstChild'face'then v.face:Destroy();end;
  346. if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
  347. end
  348. local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
  349. local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
  350. shirt.ShirtTemplate='rbxassetid://334755544';
  351. pants.PantsTemplate='rbxassetid://315964941';
  352. local Head=Instance.new('Part',c);
  353. Head.Size=Vector3.new(2.5,2.5,1);
  354. Head.Transparency=1;
  355. Head:BreakJoints();
  356. local hw=Instance.new('Weld',c.Head);
  357. hw.Part0=c.Head;
  358. hw.Part1=Head;
  359. hw.C0=CFrame.new(0,.3,0);
  360. faceDecal=Instance.new('Decal',Head);
  361. faceDecal.Face=Enum.NormalId.Front;
  362. faceDecal.Texture='rbxassetid://400387868';
  363. local backDecal=Instance.new('Decal',Head);
  364. backDecal.Face=Enum.NormalId.Back;
  365. backDecal.Texture='rbxassetid://400377807';
  366. local mes=Instance.new('BlockMesh',Head);
  367. mes.Scale=Vector3.new(1,1,.4);
  368. local Anim=human:FindFirstChild'Animator'
  369. if Anim then Anim:Destroy();end;
  370. end;
  371. setJointCFrames=function(table)
  372. for i=1,#table do
  373. JointTargets[i]=table[i];
  374. end;
  375. end;
  376. triWave=function(x)
  377. local pi2=math.pi/2;
  378. return math.abs((x/pi2)%4-2)-1;
  379. end;
  380. setLerp=function(speed)
  381. AnimStat.lerpSpeed=speed;
  382. end;
  383. setTween=function(tween)
  384. AnimStat.lerpTween=tween;
  385. end;
  386. playSound=function(id,part,vol,pitch)
  387. local vol=vol or 1;
  388. local pitch=pitch or 1;
  389. local x=Instance.new('Sound',part);
  390. x.Volume=vol;
  391. x.Pitch=pitch;
  392. x.SoundId='rbxassetid://'..id;
  393. spawn(function()
  394. wait();
  395. x:Play();
  396. wait(x.TimeLength+.2);
  397. x:Destroy();
  398. end);
  399. end;
  400. lerpBoom=function()
  401. if Cone then
  402. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  403. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  404. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  405. else
  406. Cone=Instance.new('Part',c);
  407. Cone.Anchored=true;
  408. Cone.CanCollide=false;
  409. Cone.Transparency=math.random(50,70)/100;
  410. Cone.Size=Vector3.new(1,1,1);
  411. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  412. cMesh=Instance.new('SpecialMesh',Cone);
  413. cMesh.MeshId='rbxassetid://1033714';
  414. cMesh.Scale=Vector3.new(20,50,20);
  415. end;
  416. end;
  417. noBoom=function()
  418. if Cone then local x=Cone Cone=nil;
  419. for i=1,20 do
  420. wait();
  421. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  422. x.Transparency=x.Transparency+1/30;
  423. end;
  424. end;
  425. end;
  426. gasterBlast=function(tCFrame,aimPos,charge)
  427. local aimTarget;
  428. if aimPos then
  429. aimTarget=CFrame.new(tCFrame,aimPos);
  430. else
  431. aimTarget=tCFrame;
  432. end;
  433. local gast=Instance.new('Part',c);
  434. gast.Size=Vector3.new(12,.2,12);
  435. gast.CanCollide=false;
  436. gast.Anchored=true;
  437. gast.Transparency=1;
  438. if charge then
  439. playSound(400523331,gast,math.random(90,110)/100);
  440. end;
  441. wait();
  442. for i=1,2 do
  443. local decal=Instance.new('Decal',gast);
  444. decal.Texture='rbxassetid://323497117';
  445. if i==1 then
  446. decal.Face=Enum.NormalId.Top;
  447. else
  448. decal.Face=Enum.NormalId.Bottom;
  449. function k()
  450. print("FE By Ice & Fire#3021")
  451. end
  452. end;
  453. end;
  454. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  455. spawn(function()
  456. local tarCFrame=gast.CFrame;
  457. local isLooping=true;
  458. spawn(function()
  459. while rs.RenderStepped:wait()and isLooping do
  460. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  461. end;
  462. end);
  463. for i=1,30 do
  464. wait();
  465. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  466. end;
  467. playSound(340722848,gast,math.random(90,110)/100);
  468. isLooping=false;
  469. wait(.08);
  470. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  471. local _,pos=workspace:FindPartOnRay(ray,c);
  472. local dis=(aimTarget.p-pos).magnitude;
  473. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  474. local rayPart=Instance.new('Part',rayModel);
  475. rayPart.Material='Neon';
  476. rayPart.FormFactor='Custom';
  477. rayPart.Color=a();
  478. rayPart.Anchored=true;
  479. rayPart.CanCollide=false;
  480. rayPart.Shape='Cylinder';
  481. rayPart.Size=Vector3.new(dis+400,8,8);
  482. rayPart.CFrame=rayCFrame;
  483. gast:Destroy();
  484. end);
  485. end;
  486. largegasterBlast=function(tCFrame,aimPos)
  487. local aimTarget;
  488. if aimPos then
  489. aimTarget=CFrame.new(tCFrame,aimPos);
  490. else
  491. aimTarget=tCFrame;
  492. end;
  493. local gast=Instance.new('Part',c);
  494. gast.Size=Vector3.new(25,.2,25);
  495. gast.CanCollide=false;
  496. gast.Anchored=true;
  497. gast.Transparency=1;
  498. playSound(400523331,gast,math.random(85,97)/100);
  499. wait();
  500. for i=1,2 do
  501. local decal=Instance.new('Decal',gast);
  502. decal.Texture='rbxassetid://323497117';
  503. if i==1 then
  504. decal.Face=Enum.NormalId.Top;
  505. else
  506. decal.Face=Enum.NormalId.Bottom;
  507. end;
  508. end;
  509. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  510. spawn(function()
  511. local tarCFrame=gast.CFrame;
  512. local isLooping=true;
  513. spawn(function()
  514. while rs.RenderStepped:wait()and isLooping do
  515. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  516. end;
  517. end);
  518. for i=1,40 do
  519. wait();
  520. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  521. end;
  522. playSound(340722848,gast,math.random(80,95)/100);
  523. isLooping=false;
  524. wait(.08);
  525. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  526. local _,pos=workspace:FindPartOnRay(ray,c);
  527. local dis=(aimTarget.p-pos).magnitude;
  528. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  529. local rayPart=Instance.new('Part',rayModel);
  530. rayPart.Material='Neon';
  531. rayPart.FormFactor='Custom';
  532. rayPart.Color=a();
  533. rayPart.Anchored=true;
  534. rayPart.CanCollide=false;
  535. rayPart.Shape='Cylinder';
  536. rayPart.Size=Vector3.new(dis+400,17,17);
  537. rayPart.CFrame=rayCFrame;
  538. gast:Destroy();
  539. end);
  540. end;
  541. prepareCharacter();
  542. spawn(function()
  543. local sine=0;
  544. while wait()do
  545. if Debounces.isFlash then
  546. if(tick()*8)%2>1 then
  547. faceDecal.Texture='rbxassetid://400377503';
  548. else
  549. faceDecal.Texture='rbxassetid://400387868';
  550. end;
  551. else
  552. faceDecal.Texture='rbxassetid://400387868';
  553. end;
  554. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  555. setLerp(.8);
  556. local spasm=math.abs(math.sin(tick()*20))*1.1;
  557. local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
  558. local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
  559. setJointCFrames({
  560. CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
  561. CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
  562. CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
  563. CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
  564. CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
  565. CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
  566. });
  567. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
  568. sine=tick()*18;
  569. human.WalkSpeed=120;
  570. setLerp(.35);
  571. setJointCFrames({
  572. CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
  573. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  574. CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
  575. CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
  576. CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
  577. CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
  578. });
  579. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  580. sine=tick()*28;
  581. human.WalkSpeed=400;
  582. lerpBoom();
  583. setLerp(.65);
  584. setJointCFrames({
  585. CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
  586. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  587. CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
  588. CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
  589. CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
  590. CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
  591. });
  592. elseif Debounces.isJumping==true and Debounces.Debounce==false then
  593. setLerp(.14);
  594. human.WalkSpeed=45;
  595. setJointCFrames({
  596. CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
  597. CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
  598. CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
  599. CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
  600. CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
  601. CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
  602. });
  603. end;
  604. end;
  605. end);
  606. human.Changed:connect(function(prop)
  607. if prop=='MoveDirection'then
  608. if human.MoveDirection.magnitude>.02 then
  609. Debounces.isMoving=true;
  610. else
  611. Debounces.isMoving=false;
  612. end;
  613. end;
  614. end);
  615. uinps.InputBegan:connect(function(InputObj)
  616. if InputObj.KeyCode==Enum.KeyCode.Slash then
  617. local finishEvent=nil;
  618. Debounces.isTyping=true
  619. finishEvent=uinps.InputBegan:connect(function(InputObj)
  620. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  621. Debounces.isTyping=false;
  622. finishEvent:disconnect();
  623. end;
  624. end);
  625. end;
  626. end);
  627. mouse.KeyDown:connect(function(key)
  628. if key=='0'then
  629. Debounces.isSprinting=true;
  630. playSound(160248522,c.Torso);
  631. for i=1,3 do
  632. spawn(function()
  633. local e=Instance.new('Part',c);
  634. e.Size=Vector3.new(1,1,1);
  635. e.Material='Neon';
  636. e.Color=a();
  637. e.Anchored=true;
  638. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  639. e.CanCollide=false;
  640. local rm=Instance.new('SpecialMesh',e);
  641. rm.MeshType='FileMesh';
  642. rm.MeshId='rbxassetid://3270017';
  643. rm.Scale=Vector3.new(3.2,3.2,10);
  644. for x=1,30 do
  645. wait();
  646. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  647. e.Transparency=x/30+.5;
  648. end;
  649. end);
  650. end;
  651. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  652. end;
  653. end);
  654. mouse.KeyUp:connect(function(key)
  655. if key==''then
  656. Debounces.isSprinting=false;
  657. end;
  658. end);
  659. mouse.KeyDown:connect(function(key)
  660. if key==''then
  661. playSound(201858087,c.Torso,math.random(90,120)/100);
  662. local oldPos=c.HumanoidRootPart.CFrame.p;
  663. local mHit=mouse.Hit.p;
  664. for i=1,2 do
  665. spawn(function()
  666. local pos
  667. if i==1 then pos=oldPos else pos=mHit end
  668. local p=Instance.new('Part',workspace);
  669. p.Anchored=true;
  670. p.CanCollide=false;
  671. p.Color=a();
  672. p.FormFactor='Custom';
  673. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  674. p.Transparency=.4;
  675. p.Size=Vector3.new(20,1000,20);
  676. for i=1,20 do
  677. wait();
  678. p.Transparency=.4+(i/10)*.6;
  679. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  680. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  681. end;
  682. p:Destroy();
  683. end);
  684. end;
  685. if Debounces.isMoving then
  686. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z));
  687. else
  688. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  689. end;
  690. end;
  691. end);
  692. mouse.KeyDown:connect(function(key)
  693. if key==''then
  694. local pointTarget=mouse.Hit.p;
  695. for i=1,20 do
  696. wait();
  697. gasterBlast(CFrame.new(pointTarget+Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget));
  698. end;
  699. wait();
  700. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  701. end;
  702. end);
  703. mouse.KeyDown:connect(function(key)
  704. if key==''then
  705. local pointTarget=mouse.Hit.p;
  706. for i=1,20 do
  707. wait();
  708. gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i)));
  709. end;
  710. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  711. end;
  712. end);
  713. mouse.Button1Down:connect(function()
  714. Debounces.isFlash=true;
  715. end);
  716. mouse.Button1Up:connect(function()
  717. Debounces.isFlash=false;
  718. end);
  719. mouse.KeyDown:connect(function(key)
  720. if key==''then
  721. if music.isPlaying then music:Stop();else music:Play();end;
  722. end;
  723. end);
  724. mouse.KeyDown:connect(function(key)
  725. if key==''then
  726. if music2.isPlaying then music2:Stop();else music2:Play();end;
  727. end;
  728. end);
  729. mouse.KeyDown:connect(function(key)
  730. if key==''then
  731. if music3.isPlaying then music3:Stop();else music3:Play();end;
  732. end;
  733. end);
  734. mouse.KeyDown:connect(function(key)
  735. if key==''then
  736. if music4.isPlaying then music4:Stop();else music4:Play();end;
  737. end;
  738. end);
  739. mouse.KeyDown:connect(function(key)
  740. if key==''then
  741. if music5.isPlaying then music4:Stop();else music5:Play();end;
  742. end;
  743. end);
  744. mouse.KeyDown:connect(function(key)
  745. if key==''then
  746. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  747. end;
  748. end);
  749. mouse.KeyDown:connect(function(key)
  750. if key==''then
  751. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  752. end;
  753. end);
  754. mouse.KeyDown:connect(function(key)
  755. if key==''then
  756. for i=1,5 do
  757. wait();
  758. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  759. end;
  760. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  761. end;
  762. end);
  763. mouse.KeyDown:connect(function(key)
  764. if key==''then
  765. local pointTarget=mouse.Hit.p;
  766. for i=1,20 do
  767. gasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget);
  768. end;
  769. wait(.2);
  770. for i=1,10 do
  771. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  772. end;
  773. end;
  774. end);
  775. human.StateChanged:connect(function(os,ns)
  776. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  777. Debounces.isJumping=false;
  778. end;
  779. end);
  780. for i=1,#Joints do
  781. Joints[i].C1=CFrameZero();
  782. end;
  783. rs.RenderStepped:connect(function()
  784. Debounces.FPS=1/rs.RenderStepped:wait();
  785. if Debounces.FPS<30 then
  786. Debounces.FPS=30;
  787. end;
  788. if Debounces.isSprinting then
  789. lerpBoom();
  790. else
  791. noBoom();
  792. end;
  793. for _,v in pairs(rayModel:children())do
  794. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  795. if v.Transparency>.99 then v:Destroy();return;end;
  796. v.CanCollide=true;
  797. local tParts=v:GetTouchingParts();
  798. v.CanCollide=false;
  799. local vCFrame=v.CFrame;
  800. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  801. v.CFrame=vCFrame;
  802. for _,x in pairs(tParts)do
  803. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  804. x.Parent.Humanoid:TakeDamage(1,2);
  805. end;
  806. end;
  807. end;
  808. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  809. for i=1,#Joints do
  810. Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
  811. end;
  812. end)
  813. k()
Add Comment
Please, Sign In to add comment