Advertisement
-----------------

asriel dreemur maybe fe

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