G_uy

Untitled

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