G_uy

Untitled

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