G_uy

Untitled

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