Advertisement
StarzoZero

g

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