Advertisement
Ilkailka

Roblox asriel

Apr 25th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.20 KB | None | 0 0
  1.  
  2.  
  3. dot = false
  4. des = false
  5. local ChatService = game:GetService("Chat")
  6. local player = game.Players.LocalPlayer
  7. char = player.Character
  8. hum = char.Humanoid
  9. torso = hum.Torso
  10. m=player:GetMouse()
  11. bb = Instance.new("BillboardGui",player.Character.Head)
  12. bb.Enabled = true
  13. bb.AlwaysOnTop = true
  14. bb.Size = UDim2.new(0,200,0,50)
  15. bb.StudsOffset = Vector3.new(0,1,0)
  16. gui=Instance.new("TextBox",bb)
  17. gui.Text = "* "
  18. gui.Size = UDim2.new(0,133,0,45)
  19. gui.Position=UDim2.new(0,57,0,-40)
  20. gui.TextColor3 = Color3.new(255,255,255)
  21. gui.BackgroundColor3=Color3.new(0,0,0)
  22. gui.TextWrapped = true
  23. gui.TextScaled = true
  24. gui.TextXAlignment = "Left"
  25. gui.TextYAlignment = "Top"
  26. gui.Visible = false
  27. gui.BorderColor3 = Color3.new(0,0,0)
  28.  
  29. gui1=Instance.new("TextButton",bb)
  30. gui1.Position=UDim2.new(0,5,0,-43)
  31. gui1.Size = UDim2.new(0,190,0,51)
  32.  
  33. gui1.TextColor3 = Color3.new(255,255,255)
  34. gui1.BackgroundColor3=Color3.new(255,255,255)
  35.  
  36. gui1.Visible = false
  37. img = Instance.new("ImageLabel",bb)
  38. img.Size = UDim2.new(0,46,0,47)
  39. img.Position = UDim2.new(0,10,0,-41)
  40. img.Image = "rbxassetid://419852216"
  41. img.BorderColor3 = Color3.new(0,0,0)
  42. img.Visible = false
  43. asd = Instance.new("Sound",player.Character.Torso)
  44. asd.SoundId = "http://www.roblox.com/asset/?id = 419874833"
  45.  
  46. asd1 = Instance.new("Sound",player.Character.Torso)
  47. asd1.SoundId = "http://www.roblox.com/asset/?id = 419874833"
  48. EpicText = Instance.new("Sound",player.Character.Torso)
  49. EpicText.SoundId = "http://www.roblox.com/asset/?id = 454824301"
  50.  
  51. asd2 = Instance.new("Sound",player.Character.Torso)
  52. asd2.SoundId = "http://www.roblox.com/asset/?id = 441352248"
  53. asd2.Looped = true
  54. asd3 = Instance.new("Sound",player.Character.Torso)
  55. asd3.SoundId = "http://www.roblox.com/asset/?id = 440709051"
  56. asd3.Looped = true
  57. asd4 = Instance.new("Sound",player.Character.Torso)
  58. asd4.SoundId = "http://www.roblox.com/asset/?id = 304222305"
  59. asd4.Looped = false
  60. asd5 = Instance.new("Sound",player.Character.Torso)
  61. asd5.SoundId = "http://www.roblox.com/asset/?id = 428665016"
  62. asd5.Looped = true
  63. dunkd = Instance.new("Sound",player.Character.Torso)
  64. dunkd.SoundId = "http://www.roblox.com/asset/?id = 318502757"
  65. dunkd.Looped = false
  66. function play(play)
  67. asd:Play()
  68. asd1:Play()
  69. end
  70. eye = Instance.new("Part",player.Character)
  71. eye.BrickColor = BrickColor.new("Black")
  72. eye.Material = "Neon"
  73. eye.FormFactor = 3
  74. eye.Shape = "Ball"
  75. eye.Size = Vector3.new(0.37,0.37,0.1)
  76. weld = Instance.new("Weld",eye)
  77. weld.Part0 = eye
  78. weld.Part1 = player.Character.Head
  79. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  80. eye.Transparency = 1
  81. -- listen for their chatting
  82. player.Chatted:connect(function(message)
  83. a = string.len(message)
  84. gui.Text = "* "
  85. gui.Visible = true
  86. gui1.Visible = true
  87. des = false
  88. img.Visible = true
  89. print(a)
  90. if dot == false then
  91. for i = 1,string.len(message) do wait(0.07)
  92. gui.Text =gui.Text..message:sub(i,i)
  93.  
  94. play()
  95. end
  96. end
  97.  
  98. des = true
  99. end)
  100. m.KeyDown:connect(function(k)
  101. if k == "l" then
  102. asd2:Play()
  103.  
  104.  
  105. end
  106. end)
  107. m.KeyDown:connect(function(k)
  108. if k == "k" then
  109.  
  110. asd3:Play()
  111. end
  112. end)
  113. m.KeyDown:connect(function(k)
  114. if k == "j" then
  115. asd4:Play()
  116. end
  117. end)
  118. m.KeyDown:connect(function(k)
  119. if k == "p" then
  120.  
  121. asd5:Play()
  122. end
  123. end)
  124. m.KeyDown:connect(function(k)
  125. if k == "z" then
  126. asd1 = Instance.new("Sound",player.Character.Torso)
  127. asd1.SoundId = "http://www.roblox.com/asset/?id = 454824301"
  128.  
  129. img.Image = "rbxassetid://460973235"
  130. asd2:Play()
  131.  
  132. EpicText:Play()
  133. EpicText:Play()
  134. end
  135. end)
  136.  
  137. m.KeyDown:connect(function(k)
  138. if k == "n" then
  139. img.Image = "rbxassetid://419852168"
  140. end
  141. end)
  142. m.KeyDown:connect(function(k)
  143. if k == "b" then
  144. img.Image = "rbxassetid://419852186"
  145. end
  146. end)
  147. m.KeyDown:connect(function(k)
  148. if k == "m" then
  149. img.Image = "rbxassetid://419852203"
  150. end
  151. end)
  152. m.KeyDown:connect(function(k)
  153. if k == "h" then
  154. img.Image = "rbxassetid://419852243"
  155. end
  156. end)
  157. m.KeyDown:connect(function(k)
  158. if k == "x" then
  159. if des == true then
  160. gui.Visible = false
  161. gui.Text = "! "
  162. gui1.Visible = false
  163. img.Visible = false
  164. end
  165. end
  166. end)
  167. m.KeyDown:connect(function(k)
  168. if k == ";" then
  169. asd3:Stop()
  170. asd2:Stop()
  171. asd4:Stop()
  172. dunkd:Stop()
  173. eye.Transparency = 1
  174. asd5:Stop()
  175. end
  176. end)
  177. m.KeyDown:connect(function(k)
  178. if k == "y" then
  179. img.Image = "rbxassetid://419852216"
  180. end
  181. end)
  182. -- my god...
  183. -- Suck_HiyaThere moves to arizona
  184.  
  185. pls=game:GetService'Players';
  186. rs=game:GetService'RunService';
  187. uinps=game:GetService'UserInputService';
  188. lp=pls.LocalPlayer;
  189. mouse=lp:GetMouse();
  190. c=lp.Character;
  191. rayModel=Instance.new('Model',c);
  192. human=c.Humanoid;
  193. Cone=nil;
  194. human.MaxHealth=1000000;
  195. wait();
  196. human.Health=1000000;
  197. c.Health:Destroy();
  198. Debounces={
  199. FPS=0;
  200. isAttacking=false;
  201. isMoving=false;
  202. isSprinting=false;
  203. Debounce=false;
  204. isTyping=false;
  205. isJumping=false;
  206. isFlash=false;
  207. };
  208. numLerp=function(start,goal,alpha)
  209. return(((goal-start)*alpha)+start);
  210. end;
  211. CFrameZero=function()
  212. return CFrame.new(Vector3.new());
  213. end;
  214. local function a()
  215. local t=tick();
  216. local l=t%1*3;
  217. local t=.5*math.pi*(l%1);
  218. if l<1 then
  219. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  220. elseif l<2 then
  221. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  222. else
  223. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  224. end;
  225. end;
  226. rad=function(value)
  227. return math.rad(value);
  228. end;
  229. CFAngles=function(Vector)
  230. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  231. end;
  232. AnimStat={
  233. lerpSpeed=.2;
  234. lerpSpeed2=.35;
  235. lerpTween=0;
  236. };
  237. Joints={
  238. c.HumanoidRootPart.RootJoint;
  239. c.Torso.Neck;
  240. c.Torso['Left Shoulder'];
  241. c.Torso['Right Shoulder'];
  242. c.Torso['Left Hip'];
  243. c.Torso['Right Hip'];
  244. };
  245. prepareCharacter=function()
  246. music=Instance.new('Sound',c.HumanoidRootPart);
  247. music.SoundId='rbxassetid://306154368';
  248. music.Looped=true;
  249. music.Volume=.6;
  250. music2=Instance.new('Sound',c);
  251. music2.SoundId='rbxassetid://320842828';
  252. music2.Looped=true;
  253. music2.Volume=1;
  254. music3=Instance.new('Sound',c.HumanoidRootPart);
  255. music3.SoundId='rbxassetid://304222305';
  256. music3.Looped=true;
  257. music3.Volume=1;
  258. music4=Instance.new('Sound',c.HumanoidRootPart);
  259. music4.SoundId='rbxassetid://428665016';
  260. music4.Looped=true;
  261. music4.Volume=1;
  262. music5=Instance.new('Sound',c.HumanoidRootPart);
  263. music5.SoundId='rbxassetid://318502757';
  264. music5.Looped=true;
  265. music5.Volume=1;
  266. human.WalkSpeed=0;
  267. human.JumpPower=0;
  268. end;
  269. triWave=function(x)
  270. local pi2=math.pi/2;
  271. return math.abs((x/pi2)%4-2)-1;
  272. end;
  273. setLerp=function(speed)
  274. AnimStat.lerpSpeed=speed;
  275. end;
  276. setTween=function(tween)
  277. AnimStat.lerpTween=tween;
  278. end;
  279. playSound=function(id,part,vol,pitch)
  280. local vol=vol or 1;
  281. local pitch=pitch or 1;
  282. local x=Instance.new('Sound',part);
  283. x.Volume=vol;
  284. x.Pitch=pitch;
  285. x.SoundId='rbxassetid://'..id;
  286. spawn(function()
  287. wait();
  288. x:Play();
  289. wait(x.TimeLength+.2);
  290. x:Destroy();
  291. end);
  292. end;
  293. lerpBoom=function()
  294. if Cone then
  295. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  296. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  297. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  298. else
  299. Cone=Instance.new('Part',c);
  300. Cone.Anchored=true;
  301. Cone.CanCollide=false;
  302. Cone.Transparency=math.random(50,70)/100;
  303. Cone.Size=Vector3.new(1,1,1);
  304. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  305. cMesh=Instance.new('SpecialMesh',Cone);
  306. cMesh.MeshId='rbxassetid://1033714';
  307. cMesh.Scale=Vector3.new(20,50,20);
  308. end;
  309. end;
  310. noBoom=function()
  311. if Cone then local x=Cone Cone=nil;
  312. for i=1,20 do
  313. wait();
  314. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  315. x.Transparency=x.Transparency+1/30;
  316. end;
  317. end;
  318. end;
  319. gasterBlast=function(tCFrame,aimPos,charge)
  320. local aimTarget;
  321. if aimPos then
  322. aimTarget=CFrame.new(tCFrame,aimPos);
  323. else
  324. aimTarget=tCFrame;
  325. end;
  326. local gast=Instance.new('Part',c);
  327. gast.Size=Vector3.new(12,.2,12);
  328. gast.CanCollide=false;
  329. gast.Anchored=true;
  330. gast.Transparency=1;
  331. if charge then
  332. playSound(400523331,gast,math.random(90,110)/100);
  333. end;
  334. wait();
  335. for i=1,2 do
  336. local decal=Instance.new('Decal',gast);
  337. decal.Texture='rbxassetid://401564454';
  338. if i==1 then
  339. decal.Face=Enum.NormalId.Top;
  340. else
  341. decal.Face=Enum.NormalId.Bottom;
  342. end;
  343. end;
  344. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  345. spawn(function()
  346. local tarCFrame=gast.CFrame;
  347. local isLooping=true;
  348. spawn(function()
  349. while rs.RenderStepped:wait()and isLooping do
  350. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  351. end;
  352. end);
  353. for i=1,30 do
  354. wait();
  355. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  356. end;
  357. playSound(340722848,gast,math.random(90,110)/100);
  358. isLooping=false;
  359. wait(.08);
  360. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  361. local _,pos=workspace:FindPartOnRay(ray,c);
  362. local dis=(aimTarget.p-pos).magnitude;
  363. 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);
  364. local rayPart=Instance.new('Part',rayModel);
  365. rayPart.Material='Neon';
  366. rayPart.FormFactor='Custom';
  367. rayPart.Anchored=true;
  368. rayPart.CanCollide=false;
  369. rayPart.Color=a();
  370. rayPart.Shape='Cylinder';
  371. rayPart.Size=Vector3.new(dis+400,8,8);
  372. rayPart.CFrame=rayCFrame;
  373. gast:Destroy();
  374. end);
  375. end;
  376. largegasterBlast=function(tCFrame,aimPos)
  377. local aimTarget;
  378. if aimPos then
  379. aimTarget=CFrame.new(tCFrame,aimPos);
  380. else
  381. aimTarget=tCFrame;
  382. end;
  383. local gast=Instance.new('Part',c);
  384. gast.Size=Vector3.new(25,.2,25);
  385. gast.CanCollide=false;
  386. gast.Anchored=true;
  387. gast.Transparency=1;
  388. playSound(400523331,gast,math.random(85,97)/100);
  389. wait();
  390. for i=1,2 do
  391. local decal=Instance.new('Decal',gast);
  392. decal.Texture='rbxassetid://401564690';
  393. if i==1 then
  394. decal.Face=Enum.NormalId.Top;
  395. else
  396. decal.Face=Enum.NormalId.Bottom;
  397. end;
  398. end;
  399. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  400. spawn(function()
  401. local tarCFrame=gast.CFrame;
  402. local isLooping=true;
  403. spawn(function()
  404. while rs.RenderStepped:wait()and isLooping do
  405. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  406. end;
  407. end);
  408. for i=1,40 do
  409. wait();
  410. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  411. end;
  412. playSound(340722848,gast,math.random(80,95)/100);
  413. isLooping=false;
  414. wait(.08);
  415. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  416. local _,pos=workspace:FindPartOnRay(ray,c);
  417. local dis=(aimTarget.p-pos).magnitude;
  418. 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);
  419. local rayPart=Instance.new('Part',rayModel);
  420. rayPart.Material='Neon';
  421. rayPart.FormFactor='Custom';
  422. rayPart.Anchored=true;
  423. rayPart.CanCollide=false;
  424. rayPart.Shape='Cylinder';
  425. rayPart.Size=Vector3.new(dis+400,17,17);
  426. rayPart.CFrame=rayCFrame;
  427. gast:Destroy();
  428. end);
  429. end;
  430.  
  431. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  432. setLerp(.8);
  433. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  434. sine=tick()*28;
  435. human.WalkSpeed=400;
  436. lerpBoom();
  437. setLerp(.65);
  438. end;
  439. human.Changed:connect(function(prop)
  440. if prop=='MoveDirection'then
  441. if human.MoveDirection.magnitude>.02 then
  442. Debounces.isMoving=true;
  443. else
  444. Debounces.isMoving=false;
  445. end;
  446. end;
  447. end);
  448. uinps.InputBegan:connect(function(InputObj)
  449. if InputObj.KeyCode==Enum.KeyCode.Slash then
  450. local finishEvent=nil;
  451. Debounces.isTyping=true
  452. finishEvent=uinps.InputBegan:connect(function(InputObj)
  453. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  454. Debounces.isTyping=false;
  455. finishEvent:disconnect();
  456. end;
  457. end);
  458. end;
  459. end);
  460. mouse.KeyDown:connect(function(key)
  461. if key=='0'then
  462. Debounces.isSprinting=true;
  463. playSound(160248522,c.Torso);
  464. for i=1,3 do
  465. spawn(function()
  466. local e=Instance.new('Part',c);
  467. e.Size=Vector3.new(1,1,1);
  468. e.Material='Neon';
  469. e.Color=a();
  470. e.Anchored=true;
  471. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  472. e.CanCollide=false;
  473. local rm=Instance.new('SpecialMesh',e);
  474. rm.MeshType='FileMesh';
  475. rm.MeshId='rbxassetid://3270017';
  476. rm.Scale=Vector3.new(3.2,3.2,10);
  477. for x=1,30 do
  478. wait();
  479. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  480. e.Transparency=x/30+.5;
  481. end;
  482. end);
  483. end;
  484. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  485. end;
  486. end);
  487. mouse.KeyUp:connect(function(key)
  488. if key=='0'then
  489. Debounces.isSprinting=false;
  490. end;
  491. end);
  492. mouse.KeyDown:connect(function(key)
  493. if key=='v'then
  494. playSound(201858087,c.Torso,math.random(90,120)/100);
  495. local oldPos=c.HumanoidRootPart.CFrame.p;
  496. local mHit=mouse.Hit.p;
  497. for i=1,2 do
  498. spawn(function()
  499. local pos
  500. if i==1 then pos=oldPos else pos=mHit end
  501. local p=Instance.new('Part',workspace);
  502. p.Anchored=true;
  503. p.CanCollide=false;
  504. p.Color=a();
  505. p.FormFactor='Custom';
  506. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  507. p.Transparency=.4;
  508. p.Size=Vector3.new(20,1000,20);
  509. for i=1,20 do
  510. wait();
  511. p.Transparency=.4+(i/10)*.6;
  512. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  513. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  514. end;
  515. p:Destroy();
  516. end);
  517. end;
  518. if Debounces.isMoving then
  519. 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));
  520. else
  521. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  522. end;
  523. end;
  524. end);
  525. mouse.KeyDown:connect(function(key)
  526. if key=='r'then
  527. local pointTarget=mouse.Hit.p;
  528. for i=1,20 do
  529. wait();
  530. 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));
  531. end;
  532. wait();
  533. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  534. end;
  535. end);
  536. mouse.KeyDown:connect(function(key)
  537. if key=='k'then
  538. if music.isPlaying then music:Stop();else music:Play();end;
  539. end;
  540. end);
  541. mouse.KeyDown:connect(function(key)
  542. if key=='j'then
  543. if music2.isPlaying then music2:Stop();else music2:Play();end;
  544. end;
  545. end);
  546. mouse.KeyDown:connect(function(key)
  547. if key=='l'then
  548. if music3.isPlaying then music3:Stop();else music3:Play();end;
  549. end;
  550. end);
  551. mouse.KeyDown:connect(function(key)
  552. if key=='p'then
  553. if music4.isPlaying then music4:Stop();else music4:Play();end;
  554. end;
  555. end);
  556. mouse.KeyDown:connect(function(key)
  557. if key=='o'then
  558. if music5.isPlaying then music4:Stop();else music5:Play();end;
  559. end;
  560. end);
  561. mouse.KeyDown:connect(function(key)
  562. if key=='e'then
  563. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  564. end;
  565. end);
  566. mouse.KeyDown:connect(function(key)
  567. if key=='c'then
  568. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  569. end;
  570. end);
  571. mouse.KeyDown:connect(function(key)
  572. if key=='q'then
  573. for i=1,5 do
  574. wait();
  575. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  576. end;
  577. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  578. end;
  579. end);
  580. mouse.KeyDown:connect(function(key)
  581. if key=='t'then
  582. local pointTarget=mouse.Hit.p;
  583. for i=1,20 do
  584. 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);
  585. end;
  586. wait(.2);
  587. for i=1,10 do
  588. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  589. end;
  590. end;
  591. end);
  592. human.StateChanged:connect(function(os,ns)
  593. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  594. Debounces.isJumping=false;
  595. end;
  596. end);
  597. rs.RenderStepped:connect(function()
  598. Debounces.FPS=1/rs.RenderStepped:wait();
  599. if Debounces.FPS<30 then
  600. Debounces.FPS=30;
  601. end;
  602. if Debounces.isSprinting then
  603. lerpBoom();
  604. else
  605. noBoom();
  606. end;
  607. for _,v in pairs(rayModel:children())do
  608. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  609. if v.Transparency>.99 then v:Destroy();return;end;
  610. v.CanCollide=true;
  611. local tParts=v:GetTouchingParts();
  612. v.CanCollide=false;
  613. local vCFrame=v.CFrame;
  614. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  615. v.CFrame=vCFrame;
  616. for _,x in pairs(tParts)do
  617. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  618. x.Parent.Humanoid:TakeDamage(1000000,2000000);
  619. end;
  620. end;
  621. end;
  622. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  623. end);
  624.  
  625. local verlet = {}
  626. verlet.step_time = 1 / 50
  627. verlet.gravity = Vector3.new(0, -10, 0)
  628.  
  629. local char = game.Players.LocalPlayer.Character
  630. local torso = char:WaitForChild("Torso")
  631. local parts = {}
  632. local render = game:GetService("RunService").RenderStepped
  633.  
  634. wait(2)
  635.  
  636. local point = {}
  637. local link = {}
  638. local rope = {}
  639.  
  640. local function ccw(A,B,C)
  641. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  642. end
  643.  
  644. local function intersect(A,B,C,D)
  645. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  646. end
  647.  
  648. local function vec2(v)
  649. return Vector2.new(v.x, v.z)
  650. end
  651.  
  652. function point:step()
  653. if not self.fixed then
  654. local derivative = (self.position - self.last_position) * 0.95
  655. self.last_position = self.position
  656. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  657. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  658. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  659. local pointE = self.position + torso.CFrame.lookVector * 100
  660. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  661. if not doIntersect then
  662. self.postition = self.position - torso.CFrame.lookVector * 10
  663. end]]
  664. end
  665. end
  666.  
  667. function link:step()
  668. for i = 1, 1 do
  669. local distance = self.point1.position - self.point2.position
  670. local magnitude = distance.magnitude
  671. local differance = (self.length - magnitude) / magnitude
  672. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  673. if not self.point1.fixed then
  674. self.point1.position = self.point1.position + translation
  675. end
  676. if not self.point2.fixed then
  677. self.point2.position = self.point2.position - translation
  678. end
  679. end
  680. end
  681.  
  682. function verlet.new(class, a, b, c)
  683. if class == "Point" then
  684. local new = {}
  685. setmetatable(new, {__index = point})
  686. new.class = class
  687. new.position = a or Vector3.new()
  688. new.last_position = new.position
  689. new.velocity = verlet.gravity
  690. new.fixed = false
  691. return new
  692. elseif class == "Link" then
  693. local new = {}
  694. setmetatable(new, {__index = link})
  695. new.class = class
  696. new.point1 = a
  697. new.point2 = b
  698. new.length = c or (a.position - b.position).magnitude
  699. return new
  700. elseif class == "Rope" then
  701. local new = {}
  702. setmetatable(new, {__index = link})
  703. new.class = class
  704. new.start_point = a
  705. new.finish_point = b
  706. new.points = {}
  707. new.links = {}
  708. local inc = (b - a) / 10
  709. for i = 0, 10 do
  710. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  711. end
  712. for i = 2, #new.points do
  713. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  714. end
  715. return new
  716. end
  717. end
  718.  
  719. local tris = {}
  720. local triParts = {}
  721.  
  722. local function GetDiscoColor(hue)
  723. local section = hue % 1 * 3
  724. local secondary = 0.5 * math.pi * (section % 1)
  725. if section < 1 then
  726. return Color3.new(0, 0, 0)
  727. elseif section < 2 then
  728. return Color3.new(0, 0, 0)
  729. else
  730. return Color3.new(0, 0, 0)
  731. end
  732. end
  733.  
  734. local function setupPart(part)
  735. part.Anchored = true
  736. part.FormFactor = 3
  737. part.CanCollide = false
  738. part.TopSurface = 10
  739. part.BottomSurface = 10
  740. part.LeftSurface = 10
  741. part.RightSurface = 10
  742. part.FrontSurface = 10
  743. part.BackSurface = 10
  744. part.Material = "Neon"
  745. local m = Instance.new("SpecialMesh", part)
  746. m.MeshType = "Wedge"
  747. m.Scale = Vector3.new(0.2, 1, 1)
  748. return part
  749. end
  750.  
  751. local function CFrameFromTopBack(at, top, back)
  752. local right = top:Cross(back)
  753. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  754. end
  755.  
  756. local function drawTri(parent, a, b, c)
  757. local this = {}
  758. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  759. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  760. function this:Set(a, b, c)
  761. local ab, bc, ca = b-a, c-b, a-c
  762. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  763. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  764. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  765. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  766. if edg1 < edg2 then
  767. if edg1 >= edg3 then
  768. a, b, c = c, a, b
  769. ab, bc, ca = ca, ab, bc
  770. abm = cam
  771. end
  772. else
  773. if edg2 < edg3 then
  774. a, b, c = b, c, a
  775. ab, bc, ca = bc, ca, ab
  776. abm = bcm
  777. else
  778. a, b, c = c, a, b
  779. ab, bc, ca = ca, ab, bc
  780. abm = cam
  781. end
  782. end
  783.  
  784. local len1 = -ca:Dot(ab)/abm
  785. local len2 = abm - len1
  786. local width = (ca + ab.unit*len1).magnitude
  787.  
  788. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  789.  
  790. if len1 > 0.2 then
  791. mPart1.Parent = parent
  792. mPart1.Size = Vector3.new(0.2, width, len1)
  793. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  794. else
  795. mPart1.Parent = nil
  796. end
  797.  
  798. if len2 > 0.2 then
  799. mPart2.Parent = parent
  800. mPart2.Size = Vector3.new(0.2, width, len2)
  801. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  802. else
  803. mPart2.Parent = nil
  804. end
  805. end
  806. function this:SetProperty(prop, value)
  807. mPart1[prop] = value
  808. mPart2[prop] = value
  809. end
  810. this:Set(a, b, c)
  811. function this:Destroy()
  812. mPart1:Destroy()
  813. mPart2:Destroy()
  814. end
  815. this.p1 = mPart1
  816. this.p2 = mPart2
  817. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  818. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  819. return this
  820. end
  821.  
  822. function verlet.draw(object, id)
  823. if object.class == "Point" then
  824. local part = parts[id]
  825. part.BrickColor = BrickColor.new(107, 0, 107)
  826. part.Transparency = 0
  827. part.formFactor = 3
  828. part.Anchored = true
  829. part.CanCollide = false
  830. part.TopSurface = 0
  831. part.BottomSurface = 0
  832. part.Size = Vector3.new(0.35, 0.35, 0.35)
  833. part.Material = "Neon"
  834. part.CFrame = CFrame.new(object.position)
  835. part.Parent = torso
  836. return part
  837. elseif object.class == "Link" then
  838. local part = parts[id]
  839. local dist = (object.point1.position - object.point2.position).magnitude
  840. part.Size = Vector3.new(0.2, 0.2, dist)
  841. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  842. part.Parent = torso
  843. return part
  844. end
  845. end
  846.  
  847. function verlet.clear()
  848. for _, v in pairs(workspace:GetChildren()) do
  849. if v.Name == "Part" then
  850. v:Destroy()
  851. end
  852. end
  853. end
  854.  
  855. local points = {}
  856. local links = {}
  857.  
  858. for x = 0, 2 do
  859. points[x] = {}
  860. for y = 0, 3 do
  861. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  862. points[x][y].fixed = y == 0
  863. end
  864. end
  865.  
  866. for x = 1, 2 do
  867. for y = 0, 3 do
  868. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  869. end
  870. end
  871.  
  872. for x = 0, 2 do
  873. for y = 1, 3 do
  874. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  875. end
  876. end
  877.  
  878. render:connect(function()
  879. for x = 0, 2 do
  880. for y = 0, 3 do
  881. if y == 0 then
  882. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  883. else
  884. points[x][y]:step()
  885. end
  886. end
  887. end
  888. for i = 1, #links do
  889. links[i]:step()
  890. end
  891. for i = 1, #tris do
  892. triParts[#triParts + 1] = tris[i].p1
  893. triParts[#triParts + 1] = tris[i].p2
  894. end
  895. tris = {}
  896. for x = 1, 2 do
  897. for y = 1, 3 do
  898. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  899. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  900. end
  901. end
  902. end)
  903.  
  904.  
  905.  
  906.  
  907.  
  908. wait(0.016666666666667)
  909. Player = game:GetService("Players").LocalPlayer
  910. Character = Player.Character
  911. PlayerGui = Player.PlayerGui
  912. Backpack = Player.Backpack
  913. Torso = Character.Torso
  914. Head = Character.Head
  915. Humanoid = Character.Humanoid
  916. LeftArm = Character["Left Arm"]
  917. LeftLeg = Character["Left Leg"]
  918. RightArm = Character["Right Arm"]
  919. RightLeg = Character["Right Leg"]
  920. LS = Torso["Left Shoulder"]
  921. LH = Torso["Left Hip"]
  922. RS = Torso["Right Shoulder"]
  923. RH = Torso["Right Hip"]
  924. Face = Head.face
  925. Neck = Torso.Neck
  926. it = Instance.new
  927. attacktype = 1
  928. vt = Vector3.new
  929. cf = CFrame.new
  930. euler = CFrame.fromEulerAnglesXYZ
  931. angles = CFrame.Angles
  932. cloaked = false
  933. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  934. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  935. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  936. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  937. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  938. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  939. RootPart = Character.HumanoidRootPart
  940. RootJoint = RootPart.RootJoint
  941. RootCF = euler(-1.57, 0, 3.14)
  942. attack = false
  943. attackdebounce = false
  944. deb = false
  945. equipped = false
  946. hand = false
  947. MMouse = nil
  948. combo = 0
  949. mana = 100
  950. trispeed = 0.2
  951. attackmode = "none"
  952. local idle = 0
  953. local Anim = "Idle"
  954. local gun = false
  955. local shoot = false
  956. player = nil
  957. mana = 100
  958. mouse = Player:GetMouse()
  959. RSH = nil
  960. RW = Instance.new("Weld")
  961. LW = Instance.new("Weld")
  962. RW.Name = "Right Shoulder"
  963. LW.Name = "Left Shoulder"
  964. LH = Torso["Left Hip"]
  965. RH = Torso["Right Hip"]
  966. TorsoColor = Torso.BrickColor
  967. NoOutline = function(Part)
  968. Part.TopSurface = 10
  969. end
  970.  
  971. player = Player
  972. ch = Character
  973. RSH = ch.Torso["Right Shoulder"]
  974. LSH = ch.Torso["Left Shoulder"]
  975. RSH.Parent = player.Character.Torso
  976. LSH.Parent = player.Character.Torso
  977. RW.Name = "Right Shoulder"
  978. RW.Part0 = ch.Torso
  979. RW.C0 = cf(1.5, 0.5, 0)
  980. RW.C1 = cf(0, 0.5, 0)
  981. RW.Part1 = ch["Right Arm"]
  982. RW.Parent = nil
  983. LW.Name = "Left Shoulder"
  984. LW.Part0 = ch.Torso
  985. LW.C0 = cf(-1.5, 0.5, 0)
  986. LW.C1 = cf(0, 0.5, 0)
  987. LW.Part1 = ch["Left Arm"]
  988. LW.Parent = nil
  989. Player = game:GetService("Players").LocalPlayer
  990. Character = Player.Character
  991. Mouse = Player:GetMouse()
  992. m = Instance.new("Model", Character)
  993. local Player = game.Players.localPlayer
  994. local Character = Player.Character
  995. local Humanoid = Character.Humanoid
  996. local mouse = Player:GetMouse()
  997. local LeftArm = Character["Left Arm"]
  998. local RightArm = Character["Right Arm"]
  999. local LeftLeg = Character["Left Leg"]
  1000. local RightLeg = Character["Right Leg"]
  1001. local Head = Character.Head
  1002. local Torso = Character.Torso
  1003. local cam = game.Workspace.CurrentCamera
  1004. local RootPart = Character.HumanoidRootPart
  1005. local equipped = false
  1006. local attack = false
  1007. local Anim = "Idle"
  1008. local idle = 0
  1009. local sprint = false
  1010. local battlestance = false
  1011. local attacktype = 1
  1012. local state = "none"
  1013. local torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1014. local velocity = RootPart.Velocity.y
  1015. local sine = 0
  1016. local change = 1
  1017. local on = false
  1018. local grabbed = false
  1019. local skill1 = false
  1020. local skill2 = false
  1021. local skill3 = false
  1022. local skill4 = false
  1023. local cooldown1 = 0
  1024. local cooldown2 = 0
  1025. local cooldown3 = 0
  1026. local cooldown4 = 0
  1027. local co1 = 0
  1028. local co2 = 0
  1029. local co3 = 0
  1030. local co4 = 0
  1031. local inputserv = game:GetService("UserInputService")
  1032. local typing = false
  1033. local crit = false
  1034. local critchance = 2
  1035. local critdamageaddmin = 3
  1036. local critdamageaddmax = 7
  1037. local maxstamina = 100
  1038. local stamina = 0
  1039. local skill1stam = 0
  1040. local skill2stam = 0
  1041. local skill3stam = 0
  1042. local skill4stam = 0
  1043. local recovermana = 3
  1044. local mindamage = 5
  1045. local maxdamage = 10
  1046. local cf = CFrame.new
  1047. local mr = math.rad
  1048. local angles = CFrame.Angles
  1049. local ud = UDim2.new
  1050. local c3 = Color3.new
  1051. local skillcolorscheme = c3(1, 1, 1)
  1052. local defensevalue = 1
  1053. local speedvalue = 1
  1054. local damagevalue = 1
  1055. local cf = CFrame.new
  1056. local mr = math.rad
  1057. local angles = CFrame.Angles
  1058. local ud = UDim2.new
  1059. local c3 = Color3.new
  1060. local skillcolorscheme = c3(1, 1, 1)
  1061. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  1062. makeframe = function(par, trans, pos, size, color)
  1063. local frame = Instance.new("Frame", par)
  1064. frame.BackgroundTransparency = trans
  1065. frame.BorderSizePixel = 0
  1066. frame.Position = pos
  1067. frame.Size = size
  1068. frame.BackgroundColor3 = color
  1069. return frame
  1070. end
  1071.  
  1072. makelabel = function(par, text)
  1073. local label = Instance.new("TextLabel", par)
  1074. label.BackgroundTransparency = 1
  1075. label.Size = ud(1, 0, 1, 0)
  1076. label.Position = ud(0, 0, 0, 0)
  1077. label.TextColor3 = c3(255, 255, 255)
  1078. label.TextStrokeTransparency = 0
  1079. label.FontSize = Enum.FontSize.Size32
  1080. label.Font = Enum.Font.SourceSansBold
  1081. label.BorderSizePixel = 0
  1082. label.TextScaled = true
  1083. label.Text = text
  1084. end
  1085.  
  1086. local stats = Instance.new("Folder", Character)
  1087. stats.Name = "Stats"
  1088. local block = Instance.new("BoolValue", stats)
  1089. block.Name = "Block"
  1090. block.Value = false
  1091. local stun = Instance.new("BoolValue", stats)
  1092. stun.Name = "Stun"
  1093. stun.Value = false
  1094. local defense = Instance.new("NumberValue", stats)
  1095. defense.Name = "Defence"
  1096. defense.Value = defensevalue
  1097. local speed = Instance.new("NumberValue", stats)
  1098. speed.Name = "Speed"
  1099. speed.Value = speedvalue
  1100. local damagea = Instance.new("NumberValue", stats)
  1101. damagea.Name = "Damage"
  1102. damagea.Value = damagevalue
  1103. framesk1 = makeframe(scrn, 0.5, ud(0.13, 0, 0.56, 0), ud(0.08, 0, 0.06, 0), c3(1, 1, 0.5))
  1104. bar1 = makeframe(framesk1, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 1, 0.5))
  1105. ammolabel = Instance.new("TextLabel", framesk1)
  1106. ammolabel.BackgroundTransparency = 1
  1107. ammolabel.Size = ud(1, 0, 1, 0)
  1108. ammolabel.Position = ud(0, 0, 0, 0)
  1109. ammolabel.TextColor3 = c3(255, 255, 255)
  1110. ammolabel.TextStrokeTransparency = 0
  1111. ammolabel.FontSize = Enum.FontSize.Size8
  1112. ammolabel.Font = Enum.Font.SourceSans
  1113. ammolabel.BorderSizePixel = 0
  1114. ammolabel.TextScaled = true
  1115. ammolabel.Text = "Speed [" .. speed.Value .. "]"
  1116. framesk2 = makeframe(scrn, 0.5, ud(0.13, 0, 0.63, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1))
  1117. bar2 = makeframe(framesk2, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.5, 0.25, 0.25))
  1118. ammolabel2 = Instance.new("TextLabel", framesk2)
  1119. ammolabel2.BackgroundTransparency = 1
  1120. ammolabel2.Size = ud(1, 0, 1, 0)
  1121. ammolabel2.Position = ud(0, 0, 0, 0)
  1122. ammolabel2.TextColor3 = c3(255, 255, 255)
  1123. ammolabel2.TextStrokeTransparency = 0
  1124. ammolabel2.FontSize = Enum.FontSize.Size8
  1125. ammolabel2.Font = Enum.Font.SourceSans
  1126. ammolabel2.BorderSizePixel = 0
  1127. ammolabel2.TextScaled = true
  1128. ammolabel2.Text = "Damage [" .. damagea.Value .. "]"
  1129. framesk3 = makeframe(scrn, 0.5, ud(0.13, 0, 0.7, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1))
  1130. bar3 = makeframe(framesk3, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.25, 0.25, 0.5))
  1131. ammolabel3 = Instance.new("TextLabel", framesk3)
  1132. ammolabel3.BackgroundTransparency = 1
  1133. ammolabel3.Size = ud(1, 0, 1, 0)
  1134. ammolabel3.Position = ud(0, 0, 0, 0)
  1135. ammolabel3.TextColor3 = c3(255, 255, 255)
  1136. ammolabel3.TextStrokeTransparency = 0
  1137. ammolabel3.FontSize = Enum.FontSize.Size8
  1138. ammolabel3.Font = Enum.Font.SourceSans
  1139. ammolabel3.BorderSizePixel = 0
  1140. ammolabel3.TextScaled = true
  1141. ammolabel3.Text = "Defense [" .. defense.Value .. "]"
  1142. animate = Character:findFirstChild("Animate")
  1143. animate.Disabled = false
  1144. CustomColor = BrickColor.new("Cool yellow")
  1145. Colorpart1 = Torso.BrickColor.r
  1146. Colorpart2 = Torso.BrickColor.g
  1147. Colorpart3 = Torso.BrickColor.b
  1148. local weldBetween = function(a, b)
  1149. local weldd = Instance.new("ManualWeld")
  1150. weldd.Part0 = a
  1151. weldd.Part1 = b
  1152. weldd.C0 = CFrame.new()
  1153. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1154. weldd.Parent = a
  1155. return weldd
  1156. end
  1157.  
  1158. swait = function(num)
  1159. if num == 0 or num == nil then
  1160. game:service("RunService").Stepped:wait(0)
  1161. else
  1162. for i = 0, num do
  1163. game:service("RunService").Stepped:wait(0)
  1164. end
  1165. end
  1166. end
  1167.  
  1168. nooutline = function(part)
  1169. part.TopSurface = 10
  1170. end
  1171.  
  1172. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  1173. local fp = it("Part")
  1174. fp.formFactor = formfactor
  1175. fp.Parent = parent
  1176. fp.Reflectance = reflectance
  1177. fp.Transparency = transparency
  1178. fp.CanCollide = false
  1179. fp.Locked = true
  1180. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  1181. fp.Name = name
  1182. fp.Size = size
  1183. fp.Position = Character.Torso.Position
  1184. nooutline(fp)
  1185. fp.Material = material
  1186. fp:BreakJoints()
  1187. return fp
  1188. end
  1189.  
  1190. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  1191. local mesh = it(Mesh)
  1192. mesh.Parent = part
  1193. if Mesh == "SpecialMesh" then
  1194. mesh.MeshType = meshtype
  1195. mesh.MeshId = meshid
  1196. end
  1197. mesh.Offset = offset
  1198. mesh.Scale = scale
  1199. return mesh
  1200. end
  1201.  
  1202. weld = function(parent, part0, part1, c0, c1)
  1203. local weld = it("Weld")
  1204. weld.Parent = parent
  1205. weld.Part0 = part0
  1206. weld.Part1 = part1
  1207. weld.C0 = c0
  1208. weld.C1 = c1
  1209. return weld
  1210. end
  1211.  
  1212. fat = Instance.new("BindableEvent", script)
  1213. fat.Name = "Heartbeat"
  1214. script:WaitForChild("Heartbeat")
  1215. frame = 0.033333333333333
  1216. tf = 0
  1217. allowframeloss = false
  1218. tossremainder = false
  1219. lastframe = tick()
  1220. script.Heartbeat:Fire()
  1221. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1222. tf = tf + s
  1223. if frame <= tf then
  1224. if allowframeloss then
  1225. script.Heartbeat:Fire()
  1226. lastframe = tick()
  1227. else
  1228. for i = 1, math.floor(tf / frame) do
  1229. script.Heartbeat:Fire()
  1230. end
  1231. lastframe = tick()
  1232. end
  1233. if tossremainder then
  1234. tf = 0
  1235. else
  1236. tf = tf - frame * math.floor(tf / frame)
  1237. end
  1238. end
  1239. end
  1240. )
  1241. if script.Parent.className ~= "HopperBin" then
  1242. Tool = Instance.new("HopperBin")
  1243. Tool.Parent = Backpack
  1244. Tool.Name = "Flying"
  1245. script.Parent = Tool
  1246. end
  1247. Bin = script.Parent
  1248. so = function(id, par, vol, pit)
  1249. coroutine.resume(coroutine.create(function()
  1250. local sou = Instance.new("Sound", par or workspace)
  1251. sou.Volume = vol
  1252. sou.Pitch = pit or 1
  1253. sou.SoundId = id
  1254. swait()
  1255. sou:play()
  1256. game:GetService("Debris"):AddItem(sou, 6)
  1257. end
  1258. ))
  1259. end
  1260.  
  1261. local CFrameFromTopBack = function(at, top, back)
  1262. local right = top:Cross(back)
  1263. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1264. end
  1265.  
  1266. Triangle = function(a, b, c)
  1267. local edg1 = c - a:Dot(b - a.unit)
  1268. local edg2 = a - b:Dot(c - b.unit)
  1269. local edg3 = b - c:Dot(a - c.unit)
  1270. if edg1 <= b - a.magnitude and edg1 >= 0 then
  1271. a = a
  1272. else
  1273. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  1274.  
  1275. if edg2 <= c - b.magnitude and edg2 >= 0 then
  1276. a = b
  1277. else
  1278. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  1279.  
  1280. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  1281.  
  1282. if edg3 <= a - c.magnitude and edg3 >= 0 then
  1283. a = c
  1284. else
  1285. assert(false, "unreachable")
  1286. end
  1287. end
  1288. end
  1289. local len1 = c - a:Dot(b - a.unit)
  1290. local len2 = b - a.magnitude - len1
  1291. local width = a + b - a.unit * len1 - c.magnitude
  1292. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  1293. local list = {}
  1294. local TrailColor = "Dark grey"
  1295. if len1 > 0.01 then
  1296. local w1 = Instance.new("WedgePart", m)
  1297. game:GetService("Debris"):AddItem(w1, 5)
  1298. w1.Material = "SmoothPlastic"
  1299. w1.FormFactor = "Custom"
  1300. w1.BrickColor = BrickColor.new(TrailColor)
  1301. w1.Transparency = 0
  1302. w1.Reflectance = 0
  1303. w1.Material = "SmoothPlastic"
  1304. w1.CanCollide = false
  1305. NoOutline(w1)
  1306. local sz = Vector3.new(0.2, width, len1)
  1307. w1.Size = sz
  1308. local sp = Instance.new("SpecialMesh", w1)
  1309. sp.MeshType = "Wedge"
  1310. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  1311. w1:BreakJoints()
  1312. w1.Anchored = true
  1313. w1.Parent = workspace
  1314. w1.Transparency = 0.7
  1315. table.insert(Effects, {w1, "Disappear", 0.01})
  1316. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1317. table.insert(list, w1)
  1318. end
  1319. do
  1320. if len2 > 0.01 then
  1321. local w2 = Instance.new("WedgePart", m)
  1322. game:GetService("Debris"):AddItem(w2, 5)
  1323. w2.Material = "SmoothPlastic"
  1324. w2.FormFactor = "Custom"
  1325. w2.BrickColor = BrickColor.new(TrailColor)
  1326. w2.Transparency = 0
  1327. w2.Reflectance = 0
  1328. w2.Material = "SmoothPlastic"
  1329. w2.CanCollide = false
  1330. NoOutline(w2)
  1331. local sz = Vector3.new(0.2, width, len2)
  1332. w2.Size = sz
  1333. local sp = Instance.new("SpecialMesh", w2)
  1334. sp.MeshType = "Wedge"
  1335. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  1336. w2:BreakJoints()
  1337. w2.Anchored = true
  1338. w2.Parent = workspace
  1339. w2.Transparency = 0.7
  1340. table.insert(Effects, {w2, "Disappear", 0.01})
  1341. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1342. table.insert(list, w2)
  1343. end
  1344. do
  1345. return unpack(list)
  1346. end
  1347. end
  1348. end
  1349.  
  1350. rayCast = function(Pos, Dir, Max, Ignore)
  1351. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1352. end
  1353.  
  1354. function clerp(a,b,t)
  1355. local qa = {QuaternionFromCFrame(a)}
  1356. local qb = {QuaternionFromCFrame(b)}
  1357. local ax, ay, az = a.x, a.y, a.z
  1358. local bx, by, bz = b.x, b.y, b.z
  1359. local _t = 1-t
  1360. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1361. end
  1362.  
  1363. function QuaternionFromCFrame(cf)
  1364. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1365. local trace = m00 + m11 + m22
  1366. if trace > 0 then
  1367. local s = math.sqrt(1 + trace)
  1368. local recip = 0.5/s
  1369. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1370. else
  1371. local i = 0
  1372. if m11 > m00 then
  1373. i = 1
  1374. end
  1375. if m22 > (i == 0 and m00 or m11) then
  1376. i = 2
  1377. end
  1378. if i == 0 then
  1379. local s = math.sqrt(m00-m11-m22+1)
  1380. local recip = 0.5/s
  1381. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1382. elseif i == 1 then
  1383. local s = math.sqrt(m11-m22-m00+1)
  1384. local recip = 0.5/s
  1385. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1386. elseif i == 2 then
  1387. local s = math.sqrt(m22-m00-m11+1)
  1388. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1389. end
  1390. end
  1391. end
  1392.  
  1393. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1394. local xs, ys, zs = x + x, y + y, z + z
  1395. local wx, wy, wz = w*xs, w*ys, w*zs
  1396. local xx = x*xs
  1397. local xy = x*ys
  1398. local xz = x*zs
  1399. local yy = y*ys
  1400. local yz = y*zs
  1401. local zz = z*zs
  1402. 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))
  1403. end
  1404.  
  1405. function QuaternionSlerp(a, b, t)
  1406. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1407. local startInterp, finishInterp;
  1408. if cosTheta >= 0.0001 then
  1409. if (1 - cosTheta) > 0.0001 then
  1410. local theta = math.acos(cosTheta)
  1411. local invSinTheta = 1/math.sin(theta)
  1412. startInterp = math.sin((1-t)*theta)*invSinTheta
  1413. finishInterp = math.sin(t*theta)*invSinTheta
  1414. else
  1415. startInterp = 1-t
  1416. finishInterp = t
  1417. end
  1418. else
  1419. if (1+cosTheta) > 0.0001 then
  1420. local theta = math.acos(-cosTheta)
  1421. local invSinTheta = 1/math.sin(theta)
  1422. startInterp = math.sin((t-1)*theta)*invSinTheta
  1423. finishInterp = math.sin(t*theta)*invSinTheta
  1424. else
  1425. startInterp = t-1
  1426. finishInterp = t
  1427. end
  1428. end
  1429. 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
  1430. end
  1431. rayCast = function(Pos, Dir, Max, Ignore)
  1432. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1433. end
  1434.  
  1435. makegui = function(cframe, text)
  1436. local a = math.random(-10, 10) / 100
  1437. local c = Instance.new("Part")
  1438. c.Transparency = 1
  1439. Instance.new("BodyGyro").Parent = c
  1440. c.Parent = workspace
  1441. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  1442. local f = Instance.new("BodyPosition")
  1443. f.P = 2000
  1444. f.D = 100
  1445. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1446. f.position = c.Position + Vector3.new(0, 3, 0)
  1447. f.Parent = c
  1448. game:GetService("Debris"):AddItem(c, 6.5)
  1449. c.CanCollide = false
  1450. c.Parent = workspace
  1451. c.CanCollide = false
  1452. local bg = Instance.new("BillboardGui", c)
  1453. bg.Adornee = c
  1454. bg.Size = UDim2.new(1, 0, 1, 0)
  1455. bg.StudsOffset = Vector3.new(0, 0, 0)
  1456. bg.AlwaysOnTop = false
  1457. local tl = Instance.new("TextLabel", bg)
  1458. tl.BackgroundTransparency = 1
  1459. tl.Size = UDim2.new(1, 0, 1, 0)
  1460. tl.Text = text
  1461. tl.Font = "SourceSansBold"
  1462. tl.FontSize = "Size42"
  1463. if crit == true then
  1464. tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
  1465. else
  1466. tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
  1467. end
  1468. tl.TextStrokeTransparency = 0
  1469. tl.TextScaled = true
  1470. tl.TextWrapped = true
  1471. coroutine.wrap(function()
  1472. wait(2)
  1473. for i = 1, 10 do
  1474. fat.Event:wait()
  1475. c.Transparency = 1
  1476. tl.TextTransparency = tl.TextTransparency + 0.1
  1477. end
  1478. end
  1479. )()
  1480. end
  1481.  
  1482. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  1483. if hit.Parent == nil then
  1484. return
  1485. end
  1486. h = hit.Parent:FindFirstChild("Humanoid")
  1487. for _,v in pairs(hit.Parent:children()) do
  1488. if v:IsA("Humanoid") then
  1489. h = v
  1490. end
  1491. end
  1492. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  1493. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1494. end
  1495. if hit.Parent.className == "Hat" then
  1496. hit = hit.Parent.Parent:findFirstChild("Head")
  1497. end
  1498. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1499. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1500. return
  1501. end
  1502. blocked = false
  1503. block = hit.Parent:findFirstChild("Block")
  1504. if block ~= nil then
  1505. print(block.className)
  1506. if block.className == "NumberValue" and block.Value > 0 then
  1507. blocked = true
  1508. if decreaseblock == nil then
  1509. block.Value = block.Value - 1
  1510. end
  1511. end
  1512. if block.className == "IntValue" and block.Value > 0 then
  1513. blocked = true
  1514. if decreaseblock ~= nil then
  1515. block.Value = block.Value - 1
  1516. end
  1517. end
  1518. end
  1519. if blocked == false then
  1520. local D = math.random(minim, maxim) * damagea.Value
  1521. if h.Parent:FindFirstChild("Stats") then
  1522. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  1523. else
  1524. end
  1525. if not h.Parent:FindFirstChild("Stats") then
  1526. do
  1527. h.Health = h.Health - D
  1528. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  1529. local D = math.random(minim, maxim) * damagea.Value
  1530. if h.Parent:FindFirstChild("Stats") then
  1531. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  1532. else
  1533. end
  1534. if not h.Parent:FindFirstChild("Stats") then
  1535. do
  1536. h.Health = h.Health - D / 2
  1537. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  1538. if Type == "Knockdown" then
  1539. humanoid = hit.Parent.Humanoid
  1540. humanoid.PlatformStand = true
  1541. coroutine.resume(coroutine.create(function(Humanoid)
  1542. fat.Event:wait()
  1543. Humanoid.PlatformStand = false
  1544. end
  1545. ), humanoid)
  1546. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1547. local bodvol = Instance.new("BodyVelocity")
  1548. bodvol.velocity = angle * knockback
  1549. bodvol.P = 5000
  1550. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  1551. bodvol.Parent = hit
  1552. rl = Instance.new("BodyAngularVelocity")
  1553. rl.P = 3000
  1554. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  1555. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1556. rl.Parent = hit
  1557. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1558. game:GetService("Debris"):AddItem(rl, 0.5)
  1559. else
  1560. do
  1561. if Type == "Normal" then
  1562. so("http://roblox.com/asset/?id=392592460", hit, 1, math.random(80, 120) / 100)
  1563. vp = Instance.new("BodyVelocity")
  1564. vp.P = 500
  1565. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1566. if KnockbackType == 1 then
  1567. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1568. else
  1569. if KnockbackType == 2 then
  1570. vp.velocity = Property.CFrame.lookVector * knockback
  1571. end
  1572. end
  1573. if knockback > 0 then
  1574. vp.Parent = hit.Parent.Torso
  1575. end
  1576. game:GetService("Debris"):AddItem(vp, 0.5)
  1577. else
  1578. if Type == "MovementDebuff" then
  1579. coroutine.resume(coroutine.create(function()
  1580. hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed - 0.2
  1581. speed.Value = speed.Value + 0.2
  1582. Humanoid.WalkSpeed = 16 * speed.Value
  1583. wait(1)
  1584. hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed + 0.2
  1585. speed.Value = speed.Value - 0.2
  1586. Humanoid.WalkSpeed = 16 * speed.Value
  1587. end
  1588. ))
  1589. vp = Instance.new("BodyVelocity")
  1590. vp.P = 500
  1591. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1592. if KnockbackType == 1 then
  1593. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1594. else
  1595. if KnockbackType == 2 then
  1596. vp.velocity = Property.CFrame.lookVector * knockback
  1597. end
  1598. end
  1599. if knockback > 0 then
  1600. vp.Parent = hit.Parent.Torso
  1601. end
  1602. game:GetService("Debris"):AddItem(vp, 0.5)
  1603. else
  1604. if Type == "CurseAura" then
  1605. coroutine.resume(coroutine.create(function()
  1606. savethewalkspeed = hit.Parent.Humanoid.WalkSpeed
  1607. hit.Parent.Humanoid.WalkSpeed = 0
  1608. wait(0.25)
  1609. hit.Parent.Humanoid.WalkSpeed = savethewalkspeed
  1610. end
  1611. ))
  1612. vp = Instance.new("BodyVelocity")
  1613. vp.P = 500
  1614. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1615. if KnockbackType == 1 then
  1616. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1617. else
  1618. if KnockbackType == 2 then
  1619. vp.velocity = Property.CFrame.lookVector * knockback
  1620. end
  1621. end
  1622. if knockback > 0 then
  1623. vp.Parent = hit.Parent.Torso
  1624. end
  1625. game:GetService("Debris"):AddItem(vp, 0.5)
  1626. else
  1627. if Type == "SlashLifeSteal2" then
  1628. so("http://www.roblox.com/asset/?id=344936315", hit, 1, math.random(100, 200) / 100)
  1629. Humanoid.Health = Humanoid.Health + math.random(2, 3) / 2.5
  1630. vp = Instance.new("BodyVelocity")
  1631. vp.P = 500
  1632. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1633. if KnockbackType == 1 then
  1634. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1635. else
  1636. if KnockbackType == 2 then
  1637. vp.velocity = Property.CFrame.lookVector * knockback
  1638. end
  1639. end
  1640. if knockback > 0 then
  1641. vp.Parent = hit.Parent.Torso
  1642. end
  1643. game:GetService("Debris"):AddItem(vp, 0.5)
  1644. else
  1645. if Type == "BlackHoleDamage" then
  1646. Humanoid.Health = Humanoid.Health + math.random(2, 4) / 5
  1647. floatingvelocity = Instance.new("BodyVelocity")
  1648. floatingvelocity.Parent = hit.Parent.Torso
  1649. floatingvelocity.Velocity = Vector3.new(0, math.random(2.5, 5), 0)
  1650. game:GetService("Debris"):AddItem(floatingvelocity, 1)
  1651. else
  1652. if Type == "BlackHoleDamage2" then
  1653. vp = Instance.new("BodyVelocity")
  1654. vp.P = 500
  1655. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1656. if KnockbackType == 1 then
  1657. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1658. else
  1659. if KnockbackType == 2 then
  1660. vp.velocity = Property.CFrame.lookVector * knockback
  1661. end
  1662. end
  1663. if knockback > 0 then
  1664. vp.Parent = hit.Parent.Torso
  1665. end
  1666. game:GetService("Debris"):AddItem(vp, 0.5)
  1667. else
  1668. if Type == "Up" then
  1669. local bodyVelocity = Instance.new("BodyVelocity")
  1670. bodyVelocity.velocity = vt(0, 60, 0)
  1671. bodyVelocity.P = 5000
  1672. bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  1673. bodyVelocity.Parent = hit
  1674. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1675. rl = Instance.new("BodyAngularVelocity")
  1676. rl.P = 3000
  1677. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  1678. rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  1679. rl.Parent = hit
  1680. game:GetService("Debris"):AddItem(rl, 0.5)
  1681. else
  1682. do
  1683. if Type == "Snare" then
  1684. wait()
  1685. bp = Instance.new("BodyPosition")
  1686. bp.P = 2000
  1687. bp.D = 100
  1688. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1689. bp.position = hit.Parent.Torso.Position
  1690. bp.Parent = hit.Parent.Torso
  1691. game:GetService("Debris"):AddItem(bp, 1)
  1692. else
  1693. if Type == "Target" then
  1694. so("http://www.roblox.com/asset/?id=199144144", hit, 1, math.random(150, 200) / 100)
  1695. vp = Instance.new("BodyVelocity")
  1696. vp.P = 500
  1697. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1698. if KnockbackType == 1 then
  1699. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1700. else
  1701. if KnockbackType == 2 then
  1702. vp.velocity = Property.CFrame.lookVector * knockback
  1703. end
  1704. end
  1705. if knockback > 0 then
  1706. vp.Parent = hit.Parent.Torso
  1707. end
  1708. game:GetService("Debris"):AddItem(vp, 0.5)
  1709. end
  1710. end
  1711. debounce = Instance.new("BoolValue")
  1712. debounce.Name = "DebounceHit"
  1713. debounce.Parent = hit.Parent
  1714. debounce.Value = true
  1715. game:GetService("Debris"):AddItem(debounce, Delay)
  1716. c = Instance.new("ObjectValue")
  1717. c.Name = "creator"
  1718. c.Value = Player
  1719. c.Parent = h
  1720. game:GetService("Debris"):AddItem(c, 0.5)
  1721. CRIT = false
  1722. hitDeb = true
  1723. AttackPos = 6
  1724. end
  1725. end
  1726. end
  1727. end
  1728. end
  1729. end
  1730. end
  1731. end
  1732. end
  1733. end
  1734. end
  1735. end
  1736. end
  1737. end
  1738. end
  1739. end
  1740. end
  1741.  
  1742. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1743. for _,c in pairs(workspace:children()) do
  1744. local hum = c:findFirstChild("Humanoid")
  1745. if hum ~= nil then
  1746. local head = c:findFirstChild("Torso")
  1747. if head ~= nil then
  1748. local targ = head.Position - Part.Position
  1749. local mag = targ.magnitude
  1750. if mag <= magni and c.Name ~= Player.Name then
  1751. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, 0.2, 1, 3, 1)
  1752. end
  1753. end
  1754. end
  1755. end
  1756. end
  1757.  
  1758. Lightning = function(p0, p1, tym, ofs, brickcolor, th, tra, last)
  1759. local magz = p0 - p1.magnitude
  1760. local curpos = p0
  1761. local trz = {-ofs, ofs}
  1762. for i = 1, tym do
  1763. local li = Instance.new("Part", workspace)
  1764. do
  1765. li.TopSurface = 0
  1766. li.BottomSurface = 0
  1767. li.Anchored = true
  1768. li.Transparency = tra or 0.4
  1769. li.BrickColor = brickcolor
  1770. li.formFactor = "Custom"
  1771. li.CanCollide = false
  1772. li.Size = Vector3.new(th, th, magz / tym)
  1773. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1774. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1775. if tym == i then
  1776. local magz2 = curpos - p1.magnitude
  1777. li.Size = Vector3.new(th, th, magz2)
  1778. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1779. else
  1780. do
  1781. do
  1782. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1783. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1784. game.Debris:AddItem(li, last)
  1785. coroutine.resume(coroutine.create(function()
  1786. while li.Transparency ~= 1 do
  1787. for i = 0, 1, last do
  1788. fat.Event:wait()
  1789. li.Transparency = li.Transparency + 0.1 / last
  1790. end
  1791. end
  1792. end
  1793. ))
  1794. end
  1795. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1796.  
  1797. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_STMT
  1798.  
  1799. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out DO_STMT
  1800.  
  1801. end
  1802. end
  1803. end
  1804. end
  1805. end
  1806.  
  1807. RainbowLightning = function(p0, p1, tym, ofs, th, tra, last)
  1808. local rainbowcolor = BrickColor.new(0)
  1809. local magz = p0 - p1.magnitude
  1810. local curpos = p0
  1811. local trz = {-ofs, ofs}
  1812. for i = 1, tym do
  1813. local li = Instance.new("Part", workspace)
  1814. do
  1815. li.TopSurface = 0
  1816. li.BottomSurface = 0
  1817. li.Anchored = true
  1818. li.Transparency = tra or 0.4
  1819. li.BrickColor = rainbowcolor
  1820. li.Material = "Neon"
  1821. li.formFactor = "Custom"
  1822. li.CanCollide = false
  1823. li.Size = Vector3.new(th, th, magz / tym)
  1824. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1825. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1826. if tym == i then
  1827. local magz2 = curpos - p1.magnitude
  1828. li.Size = Vector3.new(th, th, magz2)
  1829. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(-1.57, 0, -magz2 / 2)
  1830. else
  1831. do
  1832. do
  1833. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(-1.57, 0, magz / tym / 2)
  1834. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1835. game.Debris:AddItem(li, last)
  1836. coroutine.resume(coroutine.create(function()
  1837. while li.Parent ~= nil do
  1838. wait()
  1839. rainbowcolor = BrickColor.new(23)
  1840. wait()
  1841. rainbowcolor = BrickColor.new(107)
  1842. wait()
  1843. rainbowcolor = BrickColor.new(37)
  1844. wait()
  1845. rainbowcolor = BrickColor.new(119)
  1846. wait()
  1847. rainbowcolor = BrickColor.new(24)
  1848. wait()
  1849. rainbowcolor = BrickColor.new(106)
  1850. wait()
  1851. rainbowcolor = BrickColor.new(21)
  1852. wait()
  1853. rainbowcolor = BrickColor.new(104)
  1854. end
  1855. end
  1856. ))
  1857. coroutine.resume(coroutine.create(function()
  1858. while li.Transparency ~= 1 do
  1859. for i = 0, 1, last do
  1860. fat.Event:wait()
  1861. li.Transparency = li.Transparency + 0.1 / last
  1862. li.BrickColor = rainbowcolor
  1863. end
  1864. end
  1865. do
  1866. li.Parent = nil
  1867. end
  1868. end
  1869. ))
  1870. end
  1871. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1872.  
  1873. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out IF_STMT
  1874.  
  1875. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out DO_STMT
  1876.  
  1877. end
  1878. end
  1879. end
  1880. end
  1881. end
  1882.  
  1883. JumpEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1884. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1885. prt.Anchored = true
  1886. prt.CanCollide = false
  1887. prt.CFrame = cframe * angles(math.rad(90), 0, 0)
  1888. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1889. game:GetService("Debris"):AddItem(prt, 10)
  1890. coroutine.resume(coroutine.create(function(Part, Mesh)
  1891. for i = 0, 1, delay do
  1892. fat.Event:wait()
  1893. Part.CFrame = Part.CFrame
  1894. Part.Transparency = i
  1895. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1896. end
  1897. Part:Destroy()
  1898. end
  1899. ), prt, msh)
  1900. end
  1901.  
  1902. Shockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1903. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1904. prt.Anchored = true
  1905. prt.CFrame = cframe
  1906. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1907. game:GetService("Debris"):AddItem(prt, 4)
  1908. coroutine.resume(coroutine.create(function(Part, Mesh)
  1909. for i = 0, 1, delay do
  1910. fat.Event:wait()
  1911. Part.CFrame = Part.CFrame
  1912. Part.Transparency = i
  1913. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1914. end
  1915. Part:Destroy()
  1916. end
  1917. ), prt, msh)
  1918. end
  1919.  
  1920. OrbEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1921. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1922. prt.Anchored = true
  1923. prt.CanCollide = false
  1924. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1925. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1926. game:GetService("Debris"):AddItem(prt, 10)
  1927. coroutine.resume(coroutine.create(function(Part, Mesh)
  1928. for i = 0, 1, delay do
  1929. fat.Event:wait()
  1930. Part.CFrame = Part.CFrame
  1931. Part.Transparency = i
  1932. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1933. end
  1934. Part:Destroy()
  1935. end
  1936. ), prt, msh)
  1937. end
  1938.  
  1939. BlockShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1940. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1941. prt.Anchored = true
  1942. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1943. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1944. game:GetService("Debris"):AddItem(prt, 10)
  1945. coroutine.resume(coroutine.create(function(Part, Mesh)
  1946. for i = 0, 1, delay do
  1947. fat.Event:wait()
  1948. Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1949. Part.Transparency = i
  1950. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1951. end
  1952. Part:Destroy()
  1953. end
  1954. ), prt, msh)
  1955. end
  1956.  
  1957. RainbowBlockShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  1958. local rainbowcolor = BrickColor.new(0)
  1959. local prt = part(3, workspace, "SmoothPlastic", 0, 0, rainbowcolor, "Effect", vt(0.5, 0.5, 0.5))
  1960. prt.Anchored = true
  1961. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1962. prt.Material = "Neon"
  1963. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1964. game:GetService("Debris"):AddItem(prt, 5)
  1965. coroutine.resume(coroutine.create(function()
  1966. while prt.Parent ~= nil do
  1967. wait()
  1968. rainbowcolor = BrickColor.new(23)
  1969. wait()
  1970. rainbowcolor = BrickColor.new(107)
  1971. wait()
  1972. rainbowcolor = BrickColor.new(37)
  1973. wait()
  1974. rainbowcolor = BrickColor.new(119)
  1975. wait()
  1976. rainbowcolor = BrickColor.new(24)
  1977. wait()
  1978. rainbowcolor = BrickColor.new(106)
  1979. wait()
  1980. rainbowcolor = BrickColor.new(21)
  1981. wait()
  1982. rainbowcolor = BrickColor.new(104)
  1983. end
  1984. end
  1985. ))
  1986. coroutine.resume(coroutine.create(function(Part, Mesh)
  1987. for i = 0, 1, delay do
  1988. fat.Event:wait()
  1989. Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1990. Part.Transparency = i
  1991. Part.BrickColor = rainbowcolor
  1992. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1993. end
  1994. Part:Destroy()
  1995. end
  1996. ), prt, msh)
  1997. end
  1998.  
  1999. RainbowCylinderShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  2000. local rainbowcolor = BrickColor.new(0)
  2001. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2002. prt.Anchored = true
  2003. prt.CFrame = cframe
  2004. prt.Material = "Neon"
  2005. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2006. game:GetService("Debris"):AddItem(prt, 5)
  2007. coroutine.resume(coroutine.create(function()
  2008. while prt.Parent ~= nil do
  2009. wait()
  2010. rainbowcolor = BrickColor.new(23)
  2011. wait()
  2012. rainbowcolor = BrickColor.new(107)
  2013. wait()
  2014. rainbowcolor = BrickColor.new(37)
  2015. wait()
  2016. rainbowcolor = BrickColor.new(119)
  2017. wait()
  2018. rainbowcolor = BrickColor.new(24)
  2019. wait()
  2020. rainbowcolor = BrickColor.new(106)
  2021. wait()
  2022. rainbowcolor = BrickColor.new(21)
  2023. wait()
  2024. rainbowcolor = BrickColor.new(104)
  2025. end
  2026. end
  2027. ))
  2028. coroutine.resume(coroutine.create(function(Part, Mesh)
  2029. for i = 0, 1, delay do
  2030. fat.Event:wait()
  2031. Part.BrickColor = rainbowcolor
  2032. Part.Transparency = i
  2033. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2034. end
  2035. Part:Destroy()
  2036. end
  2037. ), prt, msh)
  2038. end
  2039.  
  2040. RainbowOrbEffect = function(cframe, x1, y1, z1, x2, y2, z2, delay)
  2041. local rainbowcolor = BrickColor.new(0)
  2042. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2043. prt.Anchored = true
  2044. prt.CanCollide = false
  2045. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2046. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2047. game:GetService("Debris"):AddItem(prt, 5)
  2048. coroutine.resume(coroutine.create(function()
  2049. while prt.Parent ~= nil do
  2050. wait()
  2051. rainbowcolor = BrickColor.new(23)
  2052. wait()
  2053. rainbowcolor = BrickColor.new(107)
  2054. wait()
  2055. rainbowcolor = BrickColor.new(37)
  2056. wait()
  2057. rainbowcolor = BrickColor.new(119)
  2058. wait()
  2059. rainbowcolor = BrickColor.new(24)
  2060. wait()
  2061. rainbowcolor = BrickColor.new(106)
  2062. wait()
  2063. rainbowcolor = BrickColor.new(21)
  2064. wait()
  2065. rainbowcolor = BrickColor.new(104)
  2066. end
  2067. end
  2068. ))
  2069. coroutine.resume(coroutine.create(function(Part, Mesh)
  2070. for i = 0, 1, delay do
  2071. fat.Event:wait()
  2072. Part.CFrame = Part.CFrame
  2073. Part.BrickColor = rainbowcolor
  2074. Part.Transparency = i
  2075. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  2076. end
  2077. Part:Destroy()
  2078. end
  2079. ), prt, msh)
  2080. end
  2081.  
  2082. RainbowStar = function(cframe, x1, y1, z1, x2, y2, z2, delay)
  2083. local rainbowcolor = BrickColor.new(23)
  2084. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2085. prt.Anchored = true
  2086. prt.CanCollide = false
  2087. prt.CFrame = cframe
  2088. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=120647846", vt(0, 0, 0), vt(x1, y1, z1))
  2089. game:GetService("Debris"):AddItem(prt, 5)
  2090. coroutine.resume(coroutine.create(function()
  2091. while prt.Parent ~= nil do
  2092. wait()
  2093. rainbowcolor = BrickColor.new(23)
  2094. wait()
  2095. rainbowcolor = BrickColor.new(107)
  2096. wait()
  2097. rainbowcolor = BrickColor.new(37)
  2098. wait()
  2099. rainbowcolor = BrickColor.new(119)
  2100. wait()
  2101. rainbowcolor = BrickColor.new(24)
  2102. wait()
  2103. rainbowcolor = BrickColor.new(106)
  2104. wait()
  2105. rainbowcolor = BrickColor.new(21)
  2106. wait()
  2107. rainbowcolor = BrickColor.new(104)
  2108. end
  2109. end
  2110. ))
  2111. coroutine.resume(coroutine.create(function(Part, Mesh)
  2112. for i = 0, 1, delay do
  2113. fat.Event:wait()
  2114. Part.CFrame = Part.CFrame
  2115. Part.BrickColor = rainbowcolor
  2116. Part.Transparency = i
  2117. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  2118. end
  2119. Part:Destroy()
  2120. end
  2121. ), prt, msh)
  2122. end
  2123.  
  2124. RainbowSphereShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  2125. local rainbowcolor = BrickColor.new(0)
  2126. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2127. prt.Anchored = true
  2128. prt.CFrame = cframe
  2129. prt.Material = "Neon"
  2130. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2131. game:GetService("Debris"):AddItem(prt, 5)
  2132. coroutine.resume(coroutine.create(function()
  2133. while prt.Parent ~= nil do
  2134. wait()
  2135. rainbowcolor = BrickColor.new(23)
  2136. wait()
  2137. rainbowcolor = BrickColor.new(107)
  2138. wait()
  2139. rainbowcolor = BrickColor.new(37)
  2140. wait()
  2141. rainbowcolor = BrickColor.new(119)
  2142. wait()
  2143. rainbowcolor = BrickColor.new(24)
  2144. wait()
  2145. rainbowcolor = BrickColor.new(106)
  2146. wait()
  2147. rainbowcolor = BrickColor.new(21)
  2148. wait()
  2149. rainbowcolor = BrickColor.new(104)
  2150. end
  2151. end
  2152. ))
  2153. coroutine.resume(coroutine.create(function(Part, Mesh)
  2154. for i = 0, 1, delay do
  2155. fat.Event:wait()
  2156. Part.BrickColor = rainbowcolor
  2157. Part.Transparency = i
  2158. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2159. end
  2160. Part:Destroy()
  2161. end
  2162. ), prt, msh)
  2163. end
  2164.  
  2165. CylinderShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2166. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2167. prt.Anchored = true
  2168. prt.CFrame = cframe
  2169. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2170. game:GetService("Debris"):AddItem(prt, 10)
  2171. coroutine.resume(coroutine.create(function(Part, Mesh)
  2172. for i = 0, 1, delay do
  2173. fat.Event:wait()
  2174. Part.Transparency = i
  2175. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2176. end
  2177. Part:Destroy()
  2178. end
  2179. ), prt, msh)
  2180. end
  2181.  
  2182. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2183. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2184. prt.Anchored = true
  2185. prt.CFrame = cframe
  2186. prt.Material = "Neon"
  2187. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2188. game:GetService("Debris"):AddItem(prt, 10)
  2189. coroutine.resume(coroutine.create(function(Part, Mesh)
  2190. for i = 0, 1, delay do
  2191. fat.Event:wait()
  2192. Part.Transparency = i
  2193. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2194. end
  2195. Part:Destroy()
  2196. end
  2197. ), prt, msh)
  2198. end
  2199.  
  2200. Laser2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2201. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2202. prt.Anchored = true
  2203. prt.CFrame = cframe
  2204. prt.Material = "Neon"
  2205. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2206. game:GetService("Debris"):AddItem(prt, 10)
  2207. coroutine.resume(coroutine.create(function(Part, Mesh)
  2208. for i = 0, 1, delay do
  2209. fat.Event:wait()
  2210. Part.Transparency = i
  2211. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2212. end
  2213. Part:Destroy()
  2214. end
  2215. ), prt, msh)
  2216. end
  2217.  
  2218. Laser3 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2219. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2220. prt.Anchored = true
  2221. prt.CFrame = cframe
  2222. prt.Material = "Neon"
  2223. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2224. game:GetService("Debris"):AddItem(prt, 10)
  2225. coroutine.resume(coroutine.create(function(Part, Mesh)
  2226. for i = 0, 1, delay do
  2227. fat.Event:wait()
  2228. Part.Transparency = i
  2229. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2230. end
  2231. Part:Destroy()
  2232. end
  2233. ), prt, msh)
  2234. end
  2235.  
  2236. SphereShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2237. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2238. prt.Anchored = true
  2239. prt.CFrame = cframe
  2240. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2241. game:GetService("Debris"):AddItem(prt, 10)
  2242. coroutine.resume(coroutine.create(function(Part, Mesh)
  2243. for i = 0, 1, delay do
  2244. fat.Event:wait()
  2245. Part.Transparency = i
  2246. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2247. end
  2248. Part:Destroy()
  2249. end
  2250. ), prt, msh)
  2251. end
  2252.  
  2253. SphereShockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2254. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2255. prt.Anchored = true
  2256. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2257. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2258. game:GetService("Debris"):AddItem(prt, 10)
  2259. coroutine.resume(coroutine.create(function(Part, Mesh)
  2260. for i = 0, 1, delay do
  2261. fat.Event:wait()
  2262. Part.Transparency = i
  2263. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2264. end
  2265. Part:Destroy()
  2266. end
  2267. ), prt, msh)
  2268. end
  2269.  
  2270. Shockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2271. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2272. prt.Anchored = true
  2273. prt.CFrame = cframe
  2274. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2275. game:GetService("Debris"):AddItem(prt, 10)
  2276. coroutine.resume(coroutine.create(function(Part, Mesh)
  2277. for i = 0, 1, delay do
  2278. fat.Event:wait()
  2279. Part.CFrame = Part.CFrame
  2280. Part.Transparency = i
  2281. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2282. end
  2283. Part:Destroy()
  2284. end
  2285. ), prt, msh)
  2286. end
  2287.  
  2288. leftlegangle = 0
  2289. leftlegcframe = 0
  2290. leftlegcframe2 = 0
  2291. leftlegcframe3 = 0
  2292. rightlegangle = 0
  2293. rightlegcframe = 0
  2294. rightlegcframe2 = 0
  2295. rightlegcframe3 = 0
  2296. leftarmangle = 0
  2297. rightarmangle = 0
  2298. rightlegangle2 = 0
  2299. leftlegangle2 = 0
  2300. MMouse = mouse
  2301. canidle = true
  2302. canwalk = true
  2303. holdz = false
  2304. zshooting = false
  2305. gyroenabled = false
  2306. ShotTarget = RootPart
  2307. runningsound = Head.Running
  2308. local robloxidleanimation = Instance.new("Animation", Torso)
  2309. robloxidleanimation.Name = "robloxidleanimation"
  2310. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  2311. local floatingaura = Instance.new("Sound", Torso)
  2312. floatingaura.SoundId = "http://www.roblox.com/asset/?id=343063967"
  2313. floatingaura.Volume = 0.25
  2314. floatingaura.Pitch = 0.75
  2315. floatingaura.Looped = true
  2316. gyro = Instance.new("BodyGyro")
  2317. gyro.Parent = nil
  2318. gyro.P = 10000000
  2319. gyro.D = 1000
  2320. gyro.MaxTorque = Vector3.new(0, 10000000, 0)
  2321. Clone = function()
  2322. for _,v in pairs(Torso.Parent:children()) do
  2323. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2324. local rainbowcolor = BrickColor.new(0)
  2325. do
  2326. n = v:clone()
  2327. n:BreakJoints()
  2328. n.archivable = true
  2329. n.Anchored = true
  2330. n.CanCollide = false
  2331. n.TopSurface = "SmoothNoOutlines"
  2332. n.BottomSurface = "SmoothNoOutlines"
  2333. n.LeftSurface = "SmoothNoOutlines"
  2334. n.RightSurface = "SmoothNoOutlines"
  2335. n.FrontSurface = "SmoothNoOutlines"
  2336. n.BackSurface = "SmoothNoOutlines"
  2337. n.Name = "Trail"
  2338. n.BrickColor = rainbowcolor
  2339. n.Parent = workspace
  2340. n.CFrame = v.CFrame
  2341. for _,v in pairs(n:children()) do
  2342. if v.Name == "face" then
  2343. v:Destroy()
  2344. end
  2345. end
  2346. game:GetService("Debris"):AddItem(n, 2)
  2347. coroutine.resume(coroutine.create(function()
  2348. while n.Parent ~= nil do
  2349. wait()
  2350. rainbowcolor = BrickColor.new(23)
  2351. wait()
  2352. rainbowcolor = BrickColor.new(107)
  2353. wait()
  2354. rainbowcolor = BrickColor.new(37)
  2355. wait()
  2356. rainbowcolor = BrickColor.new(119)
  2357. wait()
  2358. rainbowcolor = BrickColor.new(24)
  2359. wait()
  2360. rainbowcolor = BrickColor.new(106)
  2361. wait()
  2362. rainbowcolor = BrickColor.new(21)
  2363. wait()
  2364. rainbowcolor = BrickColor.new(104)
  2365. end
  2366. end
  2367. ))
  2368. coroutine.resume(coroutine.create(function(ne)
  2369. for i = 1, 80 do
  2370. ne:BreakJoints()
  2371. ne.Transparency = i / 80
  2372. ne.BrickColor = rainbowcolor
  2373. fat.Event:wait()
  2374. end
  2375. ne.Parent = nil
  2376. end
  2377. ), n)
  2378. end
  2379. end
  2380. end
  2381. end
  2382.  
  2383. equipanim = function()
  2384. attack = true
  2385. so("http://roblox.com/asset/?id=367850772", Torso, 1, 0.75)
  2386. speed.Value = speed.Value - 0.4
  2387. Humanoid.WalkSpeed = 16 * speed.Value
  2388. runningsound.Volume = 0
  2389. for i = 0, 1, 0.12 do
  2390. fat.Event:wait()
  2391. Humanoid.CameraOffset = Vector3.new(0, 0 + 3 * i, 0)
  2392. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2393. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2394. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2395. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2396. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * i)), 0.3)
  2397. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  2398. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(45)), 0.3)
  2399. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(-45)), 0.3)
  2400. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2401. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2402. end
  2403. Humanoid.CameraOffset = Vector3.new(0, 3, 0)
  2404. for i = 0, 1, 0.12 do
  2405. fat.Event:wait()
  2406. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2407. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2408. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2409. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2410. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2411. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  2412. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(135 - 45 * i), math.rad(0), math.rad(45)), 0.3)
  2413. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(135 - 45 * i), math.rad(0), math.rad(-45)), 0.3)
  2414. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2415. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2416. end
  2417. for i = 0, 1, 0.18 do
  2418. fat.Event:wait()
  2419. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2420. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2421. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2422. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2423. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  2424. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
  2425. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2426. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2427. end
  2428. so("http://roblox.com/asset/?id=340722848", Torso, 0.5, 2)
  2429. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1.75)
  2430. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 1, 1, 1, 0.05)
  2431. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 1, 1, 1, 0.05)
  2432. for i = 0, 1, 0.06 do
  2433. fat.Event:wait()
  2434. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2435. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2436. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2437. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2438. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  2439. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
  2440. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2441. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2442. end
  2443. speed.Value = speed.Value + 0.3
  2444. Humanoid.WalkSpeed = 16 * speed.Value
  2445. floatingaura:Play()
  2446. attack = false
  2447. end
  2448.  
  2449. unequipanim = function()
  2450. attack = true
  2451. gyro.Parent = nil
  2452. gyroenabled = false
  2453. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, 1.25)
  2454. speed.Value = speed.Value - 0.3
  2455. Humanoid.WalkSpeed = 16 * speed.Value
  2456. for i = 0, 1, 0.08 do
  2457. fat.Event:wait()
  2458. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2459. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2460. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2461. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2462. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2463. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  2464. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(90)), 0.3)
  2465. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90)), 0.3)
  2466. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2467. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2468. end
  2469. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 0.75)
  2470. for i = 0, 1, 0.06 do
  2471. fat.Event:wait()
  2472. Humanoid.CameraOffset = Vector3.new(0, 3 - 3 * i, 0)
  2473. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2474. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2475. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2476. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2477. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 3 * i) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  2478. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  2479. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(90 - 70 * i)), 0.3)
  2480. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90 + 70 * i)), 0.3)
  2481. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2482. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2483. end
  2484. floatingaura:Stop()
  2485. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  2486. for i = 0, 1, 0.06 do
  2487. fat.Event:wait()
  2488. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2489. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2490. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2491. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2492. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2493. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2494. end
  2495. runningsound.Volume = 0.5
  2496. speed.Value = speed.Value + 0.4
  2497. Humanoid.WalkSpeed = 16 * speed.Value
  2498. attack = false
  2499. end
  2500.  
  2501. attackone = function()
  2502. attack = true
  2503. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1)
  2504. for i = 0, 1, 0.2 do
  2505. fat.Event:wait()
  2506. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2507. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  2508. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-60)), 0.3)
  2509. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(-45)), 0.3)
  2510. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  2511. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2512. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2513. end
  2514. so("http://roblox.com/asset/?id=340722848", Torso, 0.75, 1.75)
  2515. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.05, 0.05, 0.05, 0.05)
  2516. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2517. startingrefpart.Anchored = true
  2518. startingrefpart.CFrame = RootPart.CFrame * cf(0, 3, -15)
  2519. game:GetService("Debris"):AddItem(startingrefpart, 3)
  2520. RainbowBlockShockwave(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.05)
  2521. MagniDamage(startingrefpart, 20, 10, 15, 10, "Normal")
  2522. for i = 1, math.random(2, 4) do
  2523. RainbowOrbEffect(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.04)
  2524. end
  2525. for i = 0, 1, 0.2 do
  2526. fat.Event:wait()
  2527. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  2528. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  2529. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(45)), 0.3)
  2530. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  2531. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2532. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2533. end
  2534. attack = false
  2535. end
  2536.  
  2537. attacktwo = function()
  2538. attack = true
  2539. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1.25)
  2540. for i = 0, 1, 0.2 do
  2541. fat.Event:wait()
  2542. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2543. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  2544. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  2545. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
  2546. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(45)), 0.3)
  2547. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2548. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2549. end
  2550. so("http://roblox.com/asset/?id=340722848", Torso, 0.75, 1.5)
  2551. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.05, 0.05, 0.05, 0.05)
  2552. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2553. startingrefpart.Anchored = true
  2554. startingrefpart.CFrame = RootPart.CFrame * cf(0, 3, -15)
  2555. game:GetService("Debris"):AddItem(startingrefpart, 3)
  2556. RainbowBlockShockwave(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.05)
  2557. MagniDamage(startingrefpart, 20, 10, 15, 10, "Normal")
  2558. for i = 1, math.random(2, 4) do
  2559. RainbowOrbEffect(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.04)
  2560. end
  2561. for i = 0, 1, 0.2 do
  2562. fat.Event:wait()
  2563. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  2564. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3)
  2565. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  2566. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-45)), 0.3)
  2567. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2568. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2569. end
  2570. attack = false
  2571. end
  2572.  
  2573. attackthree = function()
  2574. attack = true
  2575. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 0.75)
  2576. for i = 0, 1, 0.2 do
  2577. fat.Event:wait()
  2578. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2579. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2580. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2581. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(15)), 0.3)
  2582. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  2583. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2584. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2585. end
  2586. for i = 0, 1, 0.2 do
  2587. fat.Event:wait()
  2588. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2589. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2590. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2591. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(5)), 0.3)
  2592. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  2593. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2594. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2595. end
  2596. for i = 1, 2 do
  2597. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2598. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2599. startingrefpart.Anchored = true
  2600. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-10, 10), 400, -20 + math.random(-10, 10))
  2601. game:GetService("Debris"):AddItem(startingrefpart, 3)
  2602. local hit, pos = rayCast(startingrefpart.Position, CFrame.new(startingrefpart.Position, startingrefpart.Position - Vector3.new(0, 1, 0)).lookVector, 500, Character)
  2603. if hit ~= nil then
  2604. floor = true
  2605. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2606. refpart.Anchored = true
  2607. refpart.CFrame = cf(pos)
  2608. game:GetService("Debris"):AddItem(refpart, 3)
  2609. MagniDamage(refpart, 10, 10, 15, 0, "Normal")
  2610. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, 1)
  2611. RainbowCylinderShockwave(cf(refpart.Position), 0.1, 0.01, 0.1, 3, 0.01, 3, 0.05)
  2612. for i = 1, math.random(5, 10) do
  2613. RainbowLightning(startingrefpart.Position, refpart.Position, 5, math.random(5, 10), 0.5, 0.5, 2)
  2614. end
  2615. end
  2616. do
  2617. for i = 0, 1, 0.08 do
  2618. fat.Event:wait()
  2619. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  2620. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  2621. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2622. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(5)), 0.3)
  2623. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  2624. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2625. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2626. end
  2627. -- DECOMPILER ERROR at PC846: LeaveBlock: unexpected jumping out DO_STMT
  2628.  
  2629. end
  2630. end
  2631. attack = false
  2632. end
  2633.  
  2634. ChangeMode = function()
  2635. attack = true
  2636. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, math.random(80, 120) / 100)
  2637. for i = 0, 1, 0.06 do
  2638. fat.Event:wait()
  2639. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2640. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2641. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2642. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2643. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(75)), 0.3)
  2644. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-75)), 0.3)
  2645. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2646. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2647. end
  2648. attack = false
  2649. end
  2650.  
  2651. canlaser = true
  2652. canrainstar = true
  2653. LaserShot = function()
  2654. canlaser = false
  2655. local theactualstartingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2656. theactualstartingrefpart.Anchored = true
  2657. theactualstartingrefpart.CFrame = RootPart.CFrame * cf(0, 1000, 0)
  2658. game:GetService("Debris"):AddItem(theactualstartingrefpart, 0.1)
  2659. local spread = Vector3.new(math.random(-10, 10), 0, math.random(-10, 10))
  2660. local MainPos = theactualstartingrefpart.Position
  2661. local MainPos2 = MMouse.Hit.p + spread
  2662. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2663. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10000, ShotTarget.Parent)
  2664. if hit ~= nil then
  2665. local actualstartingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2666. actualstartingrefpart.Anchored = true
  2667. actualstartingrefpart.CFrame = cf(pos)
  2668. game:GetService("Debris"):AddItem(actualstartingrefpart, 0.1)
  2669. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2670. startingrefpart.Anchored = true
  2671. startingrefpart.CFrame = actualstartingrefpart.CFrame * cf(0, 400, 0)
  2672. game:GetService("Debris"):AddItem(startingrefpart, 0.1)
  2673. local hit, pos = rayCast(startingrefpart.Position, CFrame.new(startingrefpart.Position, startingrefpart.Position - Vector3.new(0, 1, 0)).lookVector, 500, Character)
  2674. if hit ~= nil then
  2675. floor = true
  2676. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2677. refpart.Anchored = true
  2678. refpart.CFrame = cf(pos)
  2679. game:GetService("Debris"):AddItem(refpart, 0.1)
  2680. MagniDamage(refpart, 10, 20, 30, 0, "Normal")
  2681. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, math.random(80, 120) / 100)
  2682. RainbowCylinderShockwave(cf(refpart.Position), 18, 0.01, 18, 1, 0.01, 1, 0.05)
  2683. RainbowLightning(startingrefpart.Position, refpart.Position, 5, math.random(5, 10), 6, 0.5, 10)
  2684. end
  2685. end
  2686. do
  2687. wait(0.25)
  2688. canlaser = true
  2689. end
  2690. end
  2691.  
  2692. starcount = 0
  2693. StarRain = function()
  2694. canrainstar = false
  2695. starcount = math.random(1, 8)
  2696. if starcount == 1 or starcount == 2 or starcount == 3 or starcount == 4 or starcount == 5 or starcount == 6 or starcount == 7 then
  2697. startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2698. startingrefpart.Anchored = true
  2699. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-20, 20), math.random(30, 40), math.random(-20, 20))
  2700. game:GetService("Debris"):AddItem(startingrefpart, 2)
  2701. so("http://roblox.com/asset/?id=367850840", startingrefpart, 0.75, math.random(75, 125) / 100)
  2702. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  2703. do
  2704. local MainPos = startingrefpart.Position
  2705. local MainPos2 = MMouse.Hit.p + spread
  2706. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2707. local speed = 0.01
  2708. local num = 300
  2709. local rotation = 0
  2710. coroutine.resume(coroutine.create(function()
  2711. repeat
  2712. swait(1)
  2713. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  2714. local mag = MainPos - pos.magnitude
  2715. RainbowStar(CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, math.rad(-90), math.rad(rotation)), 10, 10, 10, 0.01, 0.01, 0.01, 0.125)
  2716. MainPos = MainPos + MouseLook.lookVector * speed
  2717. num = num - 1
  2718. rotation = rotation - 5
  2719. coroutine.resume(coroutine.create(function()
  2720. wait(0.25)
  2721. speed = 2
  2722. end
  2723. ))
  2724. if hit ~= nil then
  2725. num = 0
  2726. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2727. refpart.Anchored = true
  2728. refpart.CFrame = cf(pos)
  2729. game:GetService("Debris"):AddItem(refpart, 2)
  2730. RainbowSphereShockwave(cf(refpart.Position), 50, 50, 50, 0.1, 0.1, 0.1, 0.075)
  2731. MagniDamage(refpart, 15, 20, 30, 0, "Normal")
  2732. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(100, 150) / 100)
  2733. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(100, 150) / 100)
  2734. end
  2735. if num <= 0 then
  2736. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2737. refpart.Anchored = true
  2738. refpart.CFrame = cf(pos)
  2739. game:GetService("Debris"):AddItem(refpart, 2)
  2740. RainbowSphereShockwave(cf(refpart.Position), 50, 50, 50, 0.1, 0.1, 0.1, 0.075)
  2741. MagniDamage(refpart, 15, 20, 30, 0, "Normal")
  2742. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(100, 150) / 100)
  2743. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(100, 150) / 100)
  2744. end
  2745. until num <= 0
  2746. end
  2747. ))
  2748. end
  2749. else
  2750. do
  2751. if starcount == 8 then
  2752. startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2753. startingrefpart.Anchored = true
  2754. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-20, 20), math.random(30, 40), math.random(-20, 20))
  2755. game:GetService("Debris"):AddItem(startingrefpart, 2)
  2756. so("http://roblox.com/asset/?id=367850840", startingrefpart, 0.75, math.random(45, 55) / 100)
  2757. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  2758. local MainPos = startingrefpart.Position
  2759. local MainPos2 = MMouse.Hit.p + spread
  2760. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2761. local speed = 0.01
  2762. local num = 300
  2763. local rotation = 0
  2764. coroutine.resume(coroutine.create(function()
  2765. repeat
  2766. swait(1)
  2767. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  2768. local mag = MainPos - pos.magnitude
  2769. RainbowStar(CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, math.rad(-90), math.rad(rotation)), 20, 20, 20, 0.01, 0.01, 0.01, 0.125)
  2770. MainPos = MainPos + MouseLook.lookVector * speed
  2771. num = num - 1
  2772. rotation = rotation - 5
  2773. coroutine.resume(coroutine.create(function()
  2774. wait(0.25)
  2775. speed = 1
  2776. end
  2777. ))
  2778. if hit ~= nil then
  2779. num = 0
  2780. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2781. refpart.Anchored = true
  2782. refpart.CFrame = cf(pos)
  2783. game:GetService("Debris"):AddItem(refpart, 2)
  2784. RainbowSphereShockwave(cf(refpart.Position), 100, 100, 100, 0.1, 0.1, 0.1, 0.075)
  2785. MagniDamage(refpart, 27.5, 40, 60, 0, "Normal")
  2786. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(50, 100) / 100)
  2787. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(50, 100) / 100)
  2788. end
  2789. if num <= 0 then
  2790. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2791. refpart.Anchored = true
  2792. refpart.CFrame = cf(pos)
  2793. game:GetService("Debris"):AddItem(refpart, 2)
  2794. RainbowSphereShockwave(cf(refpart.Position), 100, 100, 100, 0.1, 0.1, 0.1, 0.075)
  2795. MagniDamage(refpart, 27.5, 40, 60, 0, "Normal")
  2796. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(50, 100) / 100)
  2797. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(50, 100) / 100)
  2798. end
  2799. until num <= 0
  2800. end
  2801. ))
  2802. end
  2803. do
  2804. wait(math.random(80, 140) / 100)
  2805. canrainstar = true
  2806. end
  2807. end
  2808. end
  2809. end
  2810.  
  2811. LasersandStars = function()
  2812. holdz = true
  2813. attack = true
  2814. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, math.random(80, 120) / 100)
  2815. speed.Value = speed.Value - 0.5
  2816. Humanoid.WalkSpeed = 16 * speed.Value
  2817. for i = 0, 1, 0.06 do
  2818. fat.Event:wait()
  2819. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2820. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2821. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2822. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2823. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.3)
  2824. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  2825. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2826. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2827. end
  2828. do
  2829. while holdz == true do
  2830. for i = 0, 1, 0.5 do
  2831. fat.Event:wait()
  2832. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  2833. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  2834. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2835. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.3)
  2836. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  2837. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2838. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2839. end
  2840. if holdz == false then
  2841. speed.Value = speed.Value + 0.5
  2842. Humanoid.WalkSpeed = 16 * speed.Value
  2843. break
  2844. end
  2845. end
  2846. attack = false
  2847. end
  2848. end
  2849.  
  2850. Teleport = function()
  2851. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2852. refpart.Anchored = true
  2853. refpart.CFrame = Torso.CFrame
  2854. game:GetService("Debris"):AddItem(refpart, 1)
  2855. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, 0.75)
  2856. RainbowBlockShockwave(refpart.CFrame, 2, 2, 2, 2, 2, 2, 0.1)
  2857. Character:MoveTo(MMouse.Hit.p)
  2858. wait()
  2859. so("http://roblox.com/asset/?id=367932544", Torso, 0.5, 1.25)
  2860. RainbowBlockShockwave(Torso.CFrame, 2, 2, 2, 2, 2, 2, 0.1)
  2861. end
  2862.  
  2863. hold = false
  2864. holdx = false
  2865. laserhold = false
  2866. ob1d = function(mouse)
  2867. if attack == false and equipped == true and gyroenabled == true then
  2868. if attack == false and attacktype == 1 then
  2869. attacktype = 2
  2870. attackone()
  2871. else
  2872. if attack == false and attacktype == 2 then
  2873. attacktype = 3
  2874. attacktwo()
  2875. else
  2876. if attack == false and attacktype == 3 then
  2877. attacktype = 1
  2878. attackthree()
  2879. end
  2880. end
  2881. end
  2882. end
  2883. if holdz == true and equipped == true and gyroenabled == true and canlaser == true then
  2884. laserhold = true
  2885. while laserhold == true do
  2886. LaserShot()
  2887. end
  2888. end
  2889. end
  2890.  
  2891. ob1u = function(mouse)
  2892. if laserhold == true then
  2893. laserhold = false
  2894. end
  2895. end
  2896.  
  2897. k = function(k)
  2898. if k == "f" and attack == false then
  2899. if equipped == false then
  2900. equipped = true
  2901. RSH.Parent = nil
  2902. LSH.Parent = nil
  2903. RW.Parent = ch.Torso
  2904. LW.Parent = ch.Torso
  2905. animate.Disabled = true
  2906. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2907. idleanimation:Play()
  2908. equipanim()
  2909. coroutine.resume(coroutine.create(function()
  2910. while equipped == true do
  2911. wait(0.1)
  2912. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2913. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2914. end
  2915. end
  2916. ))
  2917. else
  2918. do
  2919. if equipped == true then
  2920. equipped = false
  2921. unequipanim()
  2922. swait(0)
  2923. animate.Disabled = false
  2924. RW.Parent = nil
  2925. LW.Parent = nil
  2926. RSH.Parent = player.Character.Torso
  2927. LSH.Parent = player.Character.Torso
  2928. end
  2929. if k == "e" and attack == false and equipped == true then
  2930. if gyro.Parent == RootPart then
  2931. ChangeMode()
  2932. gyro.Parent = nil
  2933. gyroenabled = false
  2934. else
  2935. if gyro.Parent == nil then
  2936. ChangeMode()
  2937. gyro.Parent = RootPart
  2938. gyroenabled = true
  2939. coroutine.resume(coroutine.create(function()
  2940. while gyroenabled == true do
  2941. wait(0.1)
  2942. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2943. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2944. end
  2945. end
  2946. ))
  2947. end
  2948. end
  2949. end
  2950. if k == "z" and attack == false and gyroenabled == true then
  2951. LasersandStars()
  2952. end
  2953. if k == "z" and holdz == true and gyroenabled == true then
  2954. holdz = false
  2955. end
  2956. if k == "x" and holdz == true and canrainstar == true then
  2957. holdx = true
  2958. while holdx == true do
  2959. StarRain()
  2960. end
  2961. end
  2962. if k == "c" and attack == false and gyroenabled == true and holdz == false then
  2963. Teleport()
  2964. end
  2965. end
  2966. end
  2967. end
  2968. end
  2969.  
  2970. k2 = function(k)
  2971. if k == "x" and equipped == true then
  2972. holdx = false
  2973. end
  2974. end
  2975.  
  2976. s = function(mouse)
  2977. mouse.Button1Down:connect(function()
  2978. ob1d(mouse)
  2979. end
  2980. )
  2981. mouse.Button1Up:connect(function()
  2982. ob1u(mouse)
  2983. end
  2984. )
  2985. mouse.KeyDown:connect(k)
  2986. mouse.KeyUp:connect(k2)
  2987. player = Player
  2988. ch = Character
  2989. MMouse = mouse
  2990. end
  2991.  
  2992. ds = function(mouse)
  2993. end
  2994.  
  2995. Bin.Selected:connect(s)
  2996. Bin.Deselected:connect(ds)
  2997. local donum = 0
  2998. local sine = 0
  2999. local change = 1
  3000. local val = 0
  3001. fat.Event:connect(function()
  3002. ammolabel.Text = "Speed [" .. speed.Value .. "]"
  3003. ammolabel2.Text = "Damage [" .. damagea.Value .. "]"
  3004. ammolabel3.Text = "Defense [" .. defense.Value .. "]"
  3005. gyro.CFrame = CFrame.new(Vector3.new(1, 0, 1), cam.CoordinateFrame.p - RootPart.CFrame.p.unit * -100)
  3006. sine = sine + change
  3007. local torvel = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  3008. local velderp = RootPart.Velocity.y
  3009. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3010. if donum >= 0.5 then
  3011. handidle = true
  3012. else
  3013. if donum <= 0 then
  3014. handidle = false
  3015. end
  3016. end
  3017. if handidle == false then
  3018. donum = donum + 0.003
  3019. else
  3020. donum = donum - 0.003
  3021. end
  3022. if equipped == true or equipped == false then
  3023. if attack == false then
  3024. idle = idle + 1
  3025. else
  3026. idle = 0
  3027. end
  3028. if ((idle >= 500 and attack ~= false) or RootPart.Velocity.y > 1) and hitfloor == nil then
  3029. Anim = "Jump"
  3030. if attack == false and equipped == true and gyroenabled == false then
  3031. fat.Event:wait()
  3032. Humanoid.WalkSpeed = 16 * speed.Value
  3033. else
  3034. if attack == false and equipped == true and gyroenabled == true then
  3035. fat.Event:wait()
  3036. Humanoid.WalkSpeed = 16 * speed.Value
  3037. end
  3038. end
  3039. else
  3040. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3041. Anim = "Fall"
  3042. if attack == false and equipped == true and gyroenabled == false then
  3043. fat.Event:wait()
  3044. Humanoid.WalkSpeed = 16 * speed.Value
  3045. else
  3046. if attack == false and equipped == true and gyroenabled == true then
  3047. fat.Event:wait()
  3048. Humanoid.WalkSpeed = 16 * speed.Value
  3049. end
  3050. end
  3051. else
  3052. if torvel.x < 1 and torvel.z < 1 and hit ~= nil then
  3053. Anim = "Idle"
  3054. if attack == false and equipped == true and gyroenabled == false then
  3055. fat.Event:wait()
  3056. Humanoid.WalkSpeed = 16 * speed.Value
  3057. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3058. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3059. RW.C0 = clerp(RW.C0, CFrame.new(0.75, 0.5 - 0.1 * math.cos(sine / 20), -0.35) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(70), math.rad(80)), 0.3)
  3060. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos(sine / 20), -0.45) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(-60), math.rad(-90)), 0.3)
  3061. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3062. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3063. else
  3064. if attack == false and equipped == true and gyroenabled == true then
  3065. fat.Event:wait()
  3066. Humanoid.WalkSpeed = 16 * speed.Value
  3067. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3068. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3069. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15 + 5 * math.cos(sine / 20)), math.rad(-15), math.rad(30 + 5 * math.cos(sine / 20))), 0.3)
  3070. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15 + 5 * math.cos(sine / 20)), math.rad(15), math.rad(-30 - 5 * math.cos(sine / 20))), 0.3)
  3071. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3072. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3073. end
  3074. end
  3075. else
  3076. if torvel.x < 2 and torvel.z < 2 and hit ~= nil then
  3077. Anim = "Walk"
  3078. if attack == false and equipped == true and gyroenabled == false then
  3079. fat.Event:wait()
  3080. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  3081. Humanoid.WalkSpeed = 16 * speed.Value
  3082. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(20 * speed.Value), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(0)), 0.3)
  3083. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0) + Head.RotVelocity.Y / 15), 0.3)
  3084. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20 * speed.Value), math.rad(0), math.rad(20)), 0.3)
  3085. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20 * speed.Value), math.rad(0), math.rad(-20)), 0.3)
  3086. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20 * speed.Value), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  3087. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20 * speed.Value), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  3088. else
  3089. do
  3090. if attack == false and equipped == true and gyroenabled == true then
  3091. fat.Event:wait()
  3092. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  3093. Humanoid.WalkSpeed = 16 * speed.Value
  3094. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  3095. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(lv.z / 1), math.rad(lv.x / 1), math.rad(0)), 0.3)
  3096. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(lv.z / 1), math.rad(0), math.rad(10 + -lv.x / 1)), 0.3)
  3097. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(lv.z / 1), math.rad(0), math.rad(-10 + -lv.x / 1)), 0.3)
  3098. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(lv.z / 1), math.rad(90), math.rad(0)) * angles(math.rad(-5 + lv.x / 1), math.rad(0), math.rad(0)), 0.3)
  3099. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(lv.z / 1), math.rad(-90), math.rad(0)) * angles(math.rad(-5 + -lv.x / 1), math.rad(0), math.rad(0)), 0.3)
  3100. end
  3101. end
  3102. end
  3103. end
  3104. end
  3105. end
  3106. end
  3107. end
  3108. end
  3109. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement