Advertisement
StarzoZero

jaage

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