Advertisement
StarzoZero

hereyougopal

Jan 26th, 2019
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.01 KB | None | 0 0
  1.  
  2.  
  3. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by StarzoZero");InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  7. local function NewFakeEvent()
  8. local Bind = Instance.new("BindableEvent")
  9. local Fake;Fake = {Connections = {},
  10. fakeEvent=true;
  11. Connect=function(self,Func)
  12. Bind.Event:connect(Func)
  13. self.Connections[Bind] = true
  14. return setmetatable({Connected = true},{
  15. __index = function (self,Index)
  16. if Index:lower() == "disconnect" then
  17. return function() Fake.Connections[Bind] = false;self.Connected = false end
  18. end
  19. return Fake[Index]
  20. end;
  21. __tostring = function() return "Connection" end;
  22. })
  23. end}
  24. Fake.connect = Fake.Connect;return Fake;
  25. end
  26. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  27. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  28. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  29. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  30. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  31. local function TriggerEvent(self,Event,...)
  32. local Trigger = Mouse[Event]
  33. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  34. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  35. end
  36. end
  37. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  38. Event.OnServerEvent:Connect(function(FiredBy,Input)
  39. if FiredBy.Name ~= owner.Name then return end
  40. if Input.MouseEvent then
  41. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  42. else
  43. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  44. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  45. for _,Action in pairs(ContextActionService.Actions) do
  46. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  47. end
  48. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  49. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  50. end
  51. end)
  52. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  53. Event.Parent = NLS([[
  54. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  55. local Input = function(Input,gameProcessedEvent)
  56. if gameProcessedEvent then return end
  57. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58. end
  59. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  64. end
  65. end
  66. ]],owner.Character)
  67. end
  68. RealGame = game;game = setmetatable({},{
  69. __index = function (self,Index)
  70. local Sandbox = function (Thing)
  71. if Thing:IsA("Player") then
  72. local RealPlayer = Thing
  73. return setmetatable({},{
  74. __index = function (self,Index)
  75. local Type = type(RealPlayer[Index])
  76. if Type == "function" then
  77. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  78. return function (self)return InternalData["Mouse"] end
  79. end
  80. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  81. end
  82. return RealPlayer[Index]
  83. end;
  84. __tostring = function(self) return RealPlayer.Name end
  85. })
  86. end
  87. end
  88. if RealGame[Index] then
  89. local Type = type(RealGame[Index])
  90. if Type == "function" then
  91. if Index:lower() == "getservice" or Index:lower() == "service" then
  92. return function (self,Service)
  93. local FakeServices = {
  94. ["players"] = function()
  95. return setmetatable({},{
  96. __index = function (self2,Index2)
  97. local RealService = RealGame:GetService(Service)
  98. local Type2 = type(Index2)
  99. if Type2 == "function" then
  100. return function (self,...) return RealService[Index2](RealService,...)end
  101. else
  102. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  103. return RealService[Index2]
  104. end
  105. end;
  106. __tostring = function(self) return RealGame:GetService(Service).Name end
  107. })
  108. end;
  109. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  110. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  111. ["runservice"] = function()
  112. return setmetatable({},{
  113. __index = function(self2,Index2)
  114. local RealService = RealGame:GetService(Service)
  115. local Type2 = type(Index2)
  116. if Type2 == "function" then
  117. return function (self,...) return RealService[Index2](RealService,...) end
  118. else
  119. local RunServices = {
  120. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  121. ["renderstepped"] = function() return RealService["Stepped"] end
  122. }
  123. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  124. return RealService[Index2]
  125. end
  126. end
  127. })
  128. end
  129. }
  130. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  131. return RealGame:GetService(Service)
  132. end
  133. end
  134. return function (self,...) return RealGame[Index](RealGame,...) end
  135. else
  136. if game:GetService(Index) then return game:GetService(Index) end
  137. return RealGame[Index]
  138. end
  139. end
  140. return nil
  141. end
  142. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Big boner down the lane")
  143.  
  144. --------------------------------------------------------
  145.  
  146. pls = game:GetService'Players'
  147. rs = game:GetService'RunService'
  148. uinps = game:GetService'UserInputService'
  149. lp = pls.LocalPlayer
  150. mouse = lp:GetMouse()
  151. c = lp.Character
  152. rayModel = Instance.new("Model",c)
  153. human = c.Humanoid
  154. Cone = nil
  155. human.MaxHealth = 99999999
  156. wait()
  157. human.Health = 99999999
  158. c.Health:Destroy()
  159.  
  160. --------------------------------------------------------
  161.  
  162. Debounces = {
  163. FPS = 0;
  164. isAttacking = false;
  165. isMoving = false;
  166. isSprinting = false;
  167. Debounce = false;
  168. isTyping = false;
  169. isJumping = false;
  170. isFlash = false;
  171. }
  172.  
  173. --------------------------------------------------------
  174.  
  175. numLerp = function(start, goal, alpha)
  176. return(((goal - start) * alpha) + start)
  177. end
  178.  
  179. CFrameZero = function()
  180. return CFrame.new(Vector3.new())
  181. end
  182. local function a()
  183. local t=tick();
  184. local l=t%1*3;
  185. local t=.5*math.pi*(l%1);
  186. if l<1 then
  187. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  188. elseif l<2 then
  189. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  190. else
  191. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  192. end;
  193. end;
  194. rad = function(value)
  195. return math.rad(value)
  196. end
  197.  
  198. CFAngles = function(Vector)
  199. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  200. end
  201.  
  202. --------------------------------------------------------
  203.  
  204. AnimStat = {
  205. lerpSpeed = .2;
  206. lerpSpeed2 = .35;
  207. lerpTween = 0;
  208. }
  209.  
  210. Joints = {
  211. c.HumanoidRootPart.RootJoint;
  212. c.Torso.Neck;
  213. c.Torso['Left Shoulder'];
  214. c.Torso['Right Shoulder'];
  215. c.Torso['Left Hip'];
  216. c.Torso['Right Hip'];
  217. }
  218.  
  219. JointTargets = {
  220. CFrameZero();
  221. CFrameZero();
  222. CFrameZero();
  223. CFrameZero();
  224. CFrameZero();
  225. CFrameZero();
  226. }
  227.  
  228.  
  229. --------------------------------------------------------
  230.  
  231. prepareCharacter = function()
  232. music = Instance.new("Sound",c.HumanoidRootPart)
  233. music.SoundId = "rbxassetid://394144904"
  234. music.Looped = true
  235. music.Volume = .6
  236. music2 = Instance.new("Sound",c)
  237. music2.SoundId = "rbxassetid://259613634"
  238. music2.Looped = true
  239. music2.Volume = 1
  240. music3 = Instance.new("Sound",c.HumanoidRootPart)
  241. music3.SoundId = "rbxassetid://266530326"
  242. music3.Looped = true
  243. music3.Volume = 1
  244. music4 = Instance.new("Sound",c.HumanoidRootPart)
  245. music4.SoundId = "rbxassetid://155738252"
  246. music4.Looped = true
  247. music4.Volume = 1
  248. music5 = Instance.new("Sound",c.HumanoidRootPart)
  249. music5.SoundId = "rbxassetid://215391212"
  250. music5.Looped = true
  251. music5.Volume = 1
  252. human.WalkSpeed = 0
  253. human.JumpPower = 0
  254. for i,v in pairs (c:children()) do
  255. if v:isA"Hat" then v:Destroy() end
  256. if v:FindFirstChild("roblox") then v.roblox:Destroy() end
  257. if v.Name == "Head" then v.Transparency = 1 for _,x in pairs (v:children()) do if x.ClassName == "Sound" then x:Destroy() end end end
  258. if v:FindFirstChild("face") then v.face:Destroy() end
  259. if v:isA"Part" then v.BrickColor = BrickColor.new("White") end
  260. end
  261. local shirt = c:FindFirstChild("Shirt") or Instance.new("Shirt",c)
  262. local pants = c:FindFirstChild("Pants") or Instance.new("Pants",c)
  263. shirt.ShirtTemplate = "rbxassetid://429009258"
  264. pants.PantsTemplate = "rbxassetid://429011265"
  265. local Head = Instance.new("Part",c)
  266. Head.Size = Vector3.new(2,2,1)
  267. Head.Transparency = 1
  268. Head:BreakJoints()
  269. local hw = Instance.new("Weld",c.Head)
  270. hw.Part0 = c.Head
  271. hw.Part1 = Head
  272. hw.C0 = CFrame.new(0,.3,0)
  273. faceDecal = Instance.new("Decal",Head)
  274. faceDecal.Face = Enum.NormalId.Front
  275. faceDecal.Texture = "rbxassetid://409451128"
  276. local backDecal = Instance.new("Decal",Head)
  277. backDecal.Face = Enum.NormalId.Back
  278. backDecal.Texture = "rbxassetid://409451128"
  279. local mes = Instance.new("BlockMesh",Head)
  280. mes.Scale = Vector3.new(1,1,.4)
  281. local Anim = human:FindFirstChild("Animator")
  282. if Anim then Anim:Destroy() end
  283. end
  284.  
  285. setJointCFrames = function(table)
  286. for i = 1,#table do
  287. JointTargets[i] = table[i]
  288. end
  289. end
  290.  
  291. triWave = function(x) --> triangular sine
  292. local pi2 = math.pi/2
  293. return math.abs((x/pi2)%4-2)-1
  294. end
  295.  
  296. setLerp = function(speed)
  297. AnimStat.lerpSpeed = speed
  298. end
  299.  
  300. setTween = function(tween)
  301. AnimStat.lerpTween = tween
  302. end
  303.  
  304. playSound = function(id,part,vol,pitch)
  305. local vol = vol or 1
  306. local pitch = pitch or 1
  307. local x = Instance.new("Sound",part)
  308. x.Volume = vol
  309. x.Pitch = pitch
  310. x.SoundId = "rbxassetid://"..id
  311. spawn(function()
  312. wait()
  313. x:Play()
  314. wait(x.TimeLength + .2)
  315. x:Destroy()
  316. end)
  317. end
  318.  
  319. lerpBoom = function()
  320. if Cone then
  321. Cone.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p + c.HumanoidRootPart.Velocity) * CFrame.Angles(-math.pi/2,0,0)
  322. cMesh.Scale = Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20)
  323. Cone.Transparency = 1-c.HumanoidRootPart.Velocity.magnitude/1000
  324. else
  325. Cone = Instance.new("Part",c)
  326. Cone.Anchored = true
  327. Cone.CanCollide = false
  328. Cone.Transparency = math.random(50,70)/100
  329. Cone.Size = Vector3.new(1,1,1)
  330. Cone.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p + c.HumanoidRootPart.Velocity) * CFrame.Angles(-math.pi/2,0,0)
  331. cMesh = Instance.new("SpecialMesh",Cone)
  332. cMesh.MeshId = "rbxassetid://1033714"
  333. cMesh.Scale = Vector3.new(20,50,20)
  334. end
  335. end
  336.  
  337. noBoom = function()
  338. if Cone then local x = Cone Cone = nil
  339. for i = 1,20 do
  340. wait()
  341. x.Mesh.Scale = x.Mesh.Scale + Vector3.new(-.5,1,-.5)
  342. x.Transparency = x.Transparency + 1/30
  343. end
  344. end
  345. end
  346.  
  347. gasterBlast = function(tCFrame,aimPos,charge)
  348. local aimTarget
  349. if aimPos then
  350. aimTarget = CFrame.new(tCFrame,aimPos)
  351. else
  352. aimTarget = tCFrame
  353. end
  354. local gast = Instance.new("Part",c)
  355. gast.Size = Vector3.new(12,.2,12)
  356. gast.CanCollide = false
  357. gast.Anchored = true
  358. gast.Transparency = 1
  359. if charge then
  360. playSound(130992510,gast,math.random(90,110)/100)
  361. end
  362. wait()
  363. for i = 1,2 do
  364. local decal = Instance.new("Decal",gast)
  365. decal.Texture = "rbxassetid://337889681"
  366. if i == 1 then
  367. decal.Face = Enum.NormalId.Top
  368. else
  369. decal.Face = Enum.NormalId.Bottom
  370. end
  371. end
  372. gast.CFrame = CFrame.new(aimTarget.p - Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10))
  373. spawn(function()
  374. local tarCFrame = gast.CFrame
  375. local isLooping = true
  376. spawn(function()
  377. while rs.RenderStepped:wait() and isLooping do
  378. gast.CFrame = gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60))
  379. end
  380. end)
  381. for i = 1,30 do
  382. wait()
  383. tarCFrame = gast.CFrame:lerp(aimTarget,.24)
  384. end
  385. --playSound(340722848,gast,math.random(90,110)/100)
  386. isLooping = false
  387. wait(.08)
  388. local ray = Ray.new(aimTarget.p,aimTarget.lookVector.unit * 999)
  389. local _, pos = workspace:FindPartOnRay(ray,c)
  390. local dis = (aimTarget.p - pos).magnitude
  391. 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)
  392. local rayPart = Instance.new("Part",rayModel)
  393. rayPart.Material = "Neon"
  394. rayPart.FormFactor = "Custom"
  395. rayPart.Color = a();
  396. rayPart.Anchored = true
  397. rayPart.CanCollide = false
  398. rayPart.Shape = "Cylinder"
  399. rayPart.Size = Vector3.new(dis + 400,8,8)
  400. rayPart.CFrame = rayCFrame
  401. gast:Destroy()
  402. end)
  403. end
  404.  
  405. largegasterBlast = function(tCFrame,aimPos)
  406. local aimTarget
  407. if aimPos then
  408. aimTarget = CFrame.new(tCFrame,aimPos)
  409. else
  410. aimTarget = tCFrame
  411. end
  412. local gast = Instance.new("Part",c)
  413. gast.Size = Vector3.new(25,.2,25)
  414. gast.CanCollide = false
  415. gast.Anchored = true
  416. gast.Transparency = 1
  417. playSound(130992510,gast,math.random(85,97)/100)
  418. wait()
  419. for i = 1,2 do
  420. local decal = Instance.new("Decal",gast)
  421. decal.Texture = "rbxassetid://337889681"
  422. if i == 1 then
  423. decal.Face = Enum.NormalId.Top
  424. else
  425. decal.Face = Enum.NormalId.Bottom
  426. end
  427. end
  428. gast.CFrame = CFrame.new(aimTarget.p - Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10))
  429. spawn(function()
  430. local tarCFrame = gast.CFrame
  431. local isLooping = true
  432. spawn(function()
  433. while rs.RenderStepped:wait() and isLooping do
  434. gast.CFrame = gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60))
  435. end
  436. end)
  437. for i = 1,40 do
  438. wait()
  439. tarCFrame = gast.CFrame:lerp(aimTarget,.18)
  440. end
  441. --playSound(340722848,gast,math.random(80,95)/100)
  442. isLooping = false
  443. wait(.08)
  444. local ray = Ray.new(aimTarget.p,aimTarget.lookVector.unit * 999)
  445. local _, pos = workspace:FindPartOnRay(ray,c)
  446. local dis = (aimTarget.p - pos).magnitude
  447. 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)
  448. local rayPart = Instance.new("Part",rayModel)
  449. rayPart.Material = "Neon"
  450. rayPart.FormFactor = "Custom"
  451. rayPart.Color = a();
  452. rayPart.Anchored = true
  453. rayPart.CanCollide = false
  454. rayPart.Shape = "Cylinder"
  455. rayPart.Size = Vector3.new(dis + 400,17,17)
  456. rayPart.CFrame = rayCFrame
  457. gast:Destroy()
  458. end)
  459. end
  460.  
  461. --------------------------------------------------------
  462.  
  463. prepareCharacter()
  464.  
  465. --------------------------------------------------------
  466.  
  467. spawn(function()
  468. local sine = 0
  469. while wait() do
  470. if Debounces.isFlash then
  471. if (tick()*8)%2 > 1 then
  472. faceDecal.Texture = "rbxassetid://409451128"
  473. else
  474. faceDecal.Texture = "rbxassetid://409451128"
  475. end
  476. else
  477. faceDecal.Texture = "rbxassetid://409451128"
  478. end
  479. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.Debounce == false and Debounces.isJumping == false then
  480. setLerp(.8)
  481. local spasm = math.abs(math.sin(tick()*20))*1.1
  482. local spasm2 = math.abs(math.sin(tick()*20-2))*1.1
  483. local spasm3 = math.abs(math.sin(tick()*20-2.3))*1.1
  484. setJointCFrames({
  485. CFrame.new(Vector3.new(0, 0-spasm, 0)) * CFAngles(Vector3.new(0, 0, 0));
  486. CFrame.new(Vector3.new(0, 1.5, 0)) * CFAngles(Vector3.new(-0.011, -0.502, -1.177));
  487. CFrame.new(Vector3.new(-1.5-spasm2^2/3, -0.001, 0)) * CFAngles(Vector3.new(-2.344, 7.899, -2.82+spasm3^2*-60));
  488. CFrame.new(Vector3.new(1.569+spasm2^2/3, 0, -0.1)) * CFAngles(Vector3.new(4.822, 1.123, 6.383+spasm3^2*60));
  489. CFrame.new(Vector3.new(-0.61, -2+spasm/1.01, -.15)) * CFAngles(Vector3.new(-2.206, 0.767, -0.582));
  490. CFrame.new(Vector3.new(0.55, -2+spasm/1.01, -.1)) * CFAngles(Vector3.new(-0.026, 0.463, 3.184));
  491. })
  492. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.Debounce == false and Debounces.isSprinting == false and Debounces.isJumping == false then
  493. sine = tick()*18
  494. human.WalkSpeed = 45
  495. setLerp(.35)
  496. setJointCFrames({
  497. CFrame.new(Vector3.new(0, math.sin(sine)/50-.3, 0)) * CFAngles(Vector3.new(-30-math.sin(sine*2)*3, math.sin(sine*2)*15, 0));
  498. CFrame.new(Vector3.new(0, 1.48, 0.099)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  499. CFrame.new(Vector3.new(-1.5, -0.001, 0.2+math.sin(sine*2+math.pi)*1.2)) * CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90, 0, -15));
  500. CFrame.new(Vector3.new(1.5, -0.001, 0.2+math.sin(sine*2)*1.2)) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-90, -0.001, 14.999));
  501. CFrame.new(Vector3.new(-0.501, -2+math.cos(sine*2+math.pi)/3, .3+math.sin(sine*2))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-70, 0, -0.001));
  502. CFrame.new(Vector3.new(0.499, -2+math.cos(sine*2)/3, .3+math.sin(sine*2+math.pi))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*70, 0, 0));
  503. })
  504. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.Debounce == false and Debounces.isSprinting == true and Debounces.isJumping == false then
  505. sine = tick()*28
  506. human.WalkSpeed = 30
  507. lerpBoom()
  508. setLerp(.65)
  509. setJointCFrames({
  510. CFrame.new(Vector3.new(0, math.sin(sine)/50-.3, 0)) * CFAngles(Vector3.new(-30-math.sin(sine*2)*3, math.sin(sine*2)*15, 0));
  511. CFrame.new(Vector3.new(0, 1.48, 0.099)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  512. CFrame.new(Vector3.new(-1.5, -0.001, 0.2+math.sin(sine*2+math.pi)*1.2)) * CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90, 0, -15));
  513. CFrame.new(Vector3.new(1.5, -0.001, 0.2+math.sin(sine*2)*1.2)) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-90, -0.001, 14.999));
  514. CFrame.new(Vector3.new(-0.501, -2+math.cos(sine*2+math.pi)/3, .3+math.sin(sine*2))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-70, 0, -0.001));
  515. CFrame.new(Vector3.new(0.499, -2+math.cos(sine*2)/3, .3+math.sin(sine*2+math.pi))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*70, 0, 0));
  516. })
  517. elseif Debounces.isJumping == true and Debounces.Debounce == false then
  518. setLerp(.14)
  519. human.WalkSpeed = 45
  520. setJointCFrames({
  521. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-8, 0, 0));
  522. CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-10.138, 3.687, 0.306));
  523. CFrame.new(Vector3.new(-1.23, 0.069, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 18.704));
  524. CFrame.new(Vector3.new(0.929, -0.031, -1.0912)) * CFAngles(Vector3.new(63.00, 13.85, -36.416));
  525. CFrame.new(Vector3.new(-0.63, -1.82, -0.74)) * CFAngles(Vector3.new(31.324, 3.424, -1.249));
  526. CFrame.new(Vector3.new(0.619, -1.331, 0.82)) * CFAngles(Vector3.new(-59.644, 0.998, 9.776));
  527. })
  528. end
  529. end
  530. end)
  531.  
  532. human.Changed:connect(function(prop)
  533. if prop == "MoveDirection" then
  534. if human.MoveDirection.magnitude > .02 then
  535. Debounces.isMoving = true
  536. else
  537. Debounces.isMoving = false
  538. end
  539. end
  540. end)
  541.  
  542. uinps.InputBegan:connect(function(InputObj)
  543. if InputObj.KeyCode == Enum.KeyCode.Slash then
  544. local finishEvent = nil
  545. Debounces.isTyping = true
  546. finishEvent = uinps.InputBegan:connect(function(InputObj)
  547. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  548. Debounces.isTyping = false
  549. finishEvent:disconnect()
  550. end
  551. end)
  552. end
  553. end)
  554.  
  555. mouse.KeyDown:connect(function(key)
  556. if key == "0" then
  557. Debounces.isSprinting = true
  558. playSound(160248522,c.Torso)
  559. for i = 1,3 do
  560. spawn(function()
  561. local e = Instance.new("Part",c)
  562. e.Size = Vector3.new(1,1,1)
  563. e.Material = "Neon"
  564. e.Color = a();
  565. e.Anchored = true
  566. e.CFrame = c.HumanoidRootPart.CFrame * CFrame.Angles(0,0,-math.pi/2)
  567. e.CanCollide = false
  568. local rm = Instance.new("SpecialMesh",e)
  569. rm.MeshType = "FileMesh"
  570. rm.MeshId = "rbxassetid://3270017"
  571. rm.Scale = Vector3.new(3.2,3.2,10)
  572. for x = 1,30 do
  573. wait()
  574. rm.Scale = rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1)
  575. e.Transparency = x/30+.5
  576. end
  577. end)
  578. end
  579. c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector * 200
  580. end
  581. end)
  582.  
  583. mouse.KeyUp:connect(function(key)
  584. if key == "0" then
  585. Debounces.isSprinting = false
  586. end
  587. end)
  588.  
  589. mouse.KeyDown:connect(function(key)
  590. if key == "v" then
  591. playSound(201858087,c.Torso,math.random(90,120)/100)
  592. local oldPos = c.HumanoidRootPart.CFrame.p
  593. local mHit = mouse.Hit.p
  594. for i = 1,2 do
  595. spawn(function()
  596. local pos
  597. if i == 1 then pos = oldPos else pos = mHit end
  598. local p = Instance.new("Part",workspace)
  599. p.Anchored = true
  600. p.CanCollide = false
  601. p.Color = a();
  602. p.FormFactor = "Custom"
  603. p.CFrame = CFrame.new(pos + Vector3.new(0,500,0))
  604. p.Transparency = .4
  605. p.Size = Vector3.new(20,1000,20)
  606. for i = 1,20 do
  607. wait()
  608. p.Transparency = .4 + (i/10)*.6
  609. p.Size = Vector3.new(20-i*1.5,1000,20-i*1.5)
  610. p.CFrame = CFrame.new(pos + Vector3.new(0,500,0))
  611. end
  612. p:Destroy()
  613. end)
  614. end
  615. if Debounces.isMoving then
  616. 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))
  617. else
  618. c.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p + Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z))
  619. end
  620. end
  621. end)
  622.  
  623. mouse.KeyDown:connect(function(key)
  624. if key == "r" then
  625. local pointTarget = mouse.Hit.p
  626. for i = 1,20 do
  627. wait()
  628. 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))
  629. end
  630. wait()
  631. largegasterBlast(CFrame.new(pointTarget + Vector3.new(0,35,0),pointTarget))
  632. end
  633. end)
  634.  
  635. mouse.KeyDown:connect(function(key)
  636. if key == "f" then
  637. local pointTarget = mouse.Hit.p
  638. for i = 1,20 do
  639. wait()
  640. gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p + Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i)))
  641. end
  642. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p + Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)))
  643. end
  644. end)
  645.  
  646. mouse.Button1Down:connect(function()
  647. Debounces.isFlash = true
  648. end)
  649.  
  650. mouse.Button1Up:connect(function()
  651. Debounces.isFlash = false
  652. end)
  653.  
  654. mouse.KeyDown:connect(function(key)
  655. if key == "k" then
  656. if music.isPlaying then music:Stop() else music:Play() end
  657. end
  658. end)
  659.  
  660. mouse.KeyDown:connect(function(key)
  661. if key == "j" then
  662. if music2.isPlaying then music2:Stop() else music2:Play() end
  663. end
  664. end)
  665.  
  666. mouse.KeyDown:connect(function(key)
  667. if key == "l" then
  668. if music3.isPlaying then music3:Stop() else music3:Play() end
  669. end
  670. end)
  671.  
  672. mouse.KeyDown:connect(function(key)
  673. if key == "p" then
  674. if music4.isPlaying then music4:Stop() else music4:Play() end
  675. end
  676. end)
  677.  
  678. mouse.KeyDown:connect(function(key)
  679. if key == "o" then
  680. if music5.isPlaying then music4:Stop() else music5:Play() end
  681. end
  682. end)
  683.  
  684. mouse.KeyDown:connect(function(key)
  685. if key == "e" then
  686. gasterBlast(c.Torso.CFrame.p + Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true)
  687. end
  688. end)
  689.  
  690. mouse.KeyDown:connect(function(key)
  691. if key == "c" then
  692. largegasterBlast(c.Torso.CFrame.p + Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p)
  693. end
  694. end)
  695.  
  696. mouse.KeyDown:connect(function(key)
  697. if key == "q" then
  698. for i = 1,5 do
  699. wait()
  700. gasterBlast(c.Torso.CFrame.p + Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p)
  701. end
  702. largegasterBlast(c.Torso.CFrame.p + Vector3.new(0,25,0),mouse.Hit.p)
  703. end
  704. end)
  705.  
  706. mouse.KeyDown:connect(function(key)
  707. if key == "t" then
  708. local pointTarget = mouse.Hit.p
  709. for i = 1,20 do
  710. 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)
  711. end
  712. wait(.2)
  713. for i = 1,10 do
  714. largegasterBlast(pointTarget + Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget)
  715. end
  716. end
  717. end)
  718.  
  719. human.StateChanged:connect(function(os,ns)
  720. if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then
  721. Debounces.isJumping = false
  722. end
  723. end)
  724.  
  725. for i = 1,#Joints do
  726. Joints[i].C1 = CFrameZero()
  727. end
  728.  
  729. rs.RenderStepped:connect(function()
  730. Debounces.FPS = 1/rs.RenderStepped:wait()
  731. if Debounces.FPS < 30 then
  732. Debounces.FPS = 30
  733. end
  734. if Debounces.isSprinting then
  735. lerpBoom()
  736. else
  737. noBoom()
  738. end
  739. for _,v in pairs (rayModel:children()) do
  740. v.Transparency = v.Transparency + .06/(Debounces.FPS/60)
  741. if v.Transparency > .99 then v:Destroy() return end
  742. v.CanCollide = true
  743. local tParts = v:GetTouchingParts()
  744. v.CanCollide = false
  745. local vCFrame = v.CFrame
  746. v.Size = v.Size + Vector3.new(0,1,1)/(Debounces.FPS/60)
  747. v.CFrame = vCFrame
  748. for _,x in pairs (tParts) do
  749. if x and x.Parent and x.Parent:FindFirstChild("Humanoid") and x.Parent.Humanoid:isA'Humanoid' and x.Parent ~= c then
  750. x.Parent.Humanoid:TakeDamage(1,2)
  751. end
  752. end
  753. end
  754. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  755. for i = 1,#Joints do
  756. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  757. end
  758. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement