Advertisement
Darkraiii7

Untitled

Jan 1st, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.14 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").owner
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. --[[
  84. req list
  85.  
  86. heart control (the force)
  87.  
  88. teleport
  89.  
  90. bone zone
  91.  
  92. throw bones
  93. --]]
  94.  
  95. local Level=1
  96. local function RiseLevel(hum,dmg)
  97. if tonumber(Level)then
  98. if hum.Health>0 and hum.Health-dmg<=0 then Level=Level+1
  99. local s=Instance.new("Sound")end--s. end
  100. else warn'String is not able to level up , or having issure to level.'end
  101. end
  102.  
  103. local Tired={n=0,m=10000,d=false}local DefAble=true
  104. local p = game:service'Players'.Owner
  105. local char = p.Character
  106. local larm = char["Left Arm"]
  107. local rarm = char["Right Arm"]
  108. local lleg = char["Left Leg"]
  109. local rleg = char["Right Leg"]
  110. local hed = char.Head
  111. local Torso = char.Torso
  112. local hum = char.Humanoid
  113. local cam = workspace.CurrentCamera
  114. local root = char.HumanoidRootPart
  115. local deb = false
  116. local shot = 0
  117. local potential = false
  118. local debris=game:service"Debris"
  119. local l = game:GetService("Lighting")
  120. local rs = game:GetService("RunService").RenderStepped
  121. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  122. math.randomseed(os.time())
  123. for i,v in pairs(char:children()) do
  124. if v:IsA("Accessory") then
  125. v:Destroy()
  126. end
  127. end
  128. for i,v in pairs (hed:GetChildren()) do
  129. if v:IsA("Sound") then
  130. v:Destroy()
  131. end
  132. end
  133. music = Instance.new("Sound",c)
  134. music2 = Instance.new("Sound",c)
  135. local pl = game:service'Players'.owner
  136. local chara = pl.Character
  137. local hum = chara:FindFirstChildOfClass("Humanoid")
  138. hum.MaxHealth = 10000000000000000000
  139. hum.Health = 10000000000000000000
  140. maincol = "White"
  141. increment = 20
  142. if 1 then
  143. local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
  144. local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
  145. Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0)
  146. local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0)
  147. idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new()
  148. idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1)
  149. idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end)
  150. local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0
  151. normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1)
  152. normal.TextXAlignment="Left"normal.TextYAlignment="Top"
  153. normal.Text=[[* Able to hold
  154. ! It changes function when sprint
  155. ----------------------------------
  156. K: Passive
  157. !*Q :Gaster Blaster (quick)
  158. ! E :Gaster Blaster (high damage)
  159. T :Teleport
  160. F :Bone Zone
  161. *G :Bone Throw
  162. *C :Heart Control
  163. Shift : Sprint
  164.  
  165.  
  166. ]]
  167. spawn(function()
  168. while game:service'RunService'.RenderStepped:wait()do
  169. Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1)
  170. end end)
  171. end
  172. --------------------------------------------------------
  173. hed.face.Texture = "rbxassetid://1222517815"
  174. chara:WaitForChild"Body Colors"
  175. char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  176. char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  177. char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  178. char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  179. char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  180. char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  181. ---------------------------------------
  182. ypcall(function()
  183. shirt = Instance.new("Shirt", char)
  184. shirt.Name = "Shirt"
  185. pants = Instance.new("Pants", char)
  186. pants.Name = "Pants"
  187. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=593975722"
  188. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=454906054"
  189. end)
  190. --------------------------------------------------------
  191. KG = Instance.new("Sound", game.Players.owner.Character)
  192. KG.Volume = 7
  193. KG.SoundId = "rbxassetid://940531164"
  194. KG.Looped = true
  195. KG:Play()
  196.  
  197. --------------------------------------------------------
  198. CV="Eggplant"
  199. p = game.Players.owner
  200. char = p.Character
  201. local txt = Instance.new("BillboardGui", char)
  202. txt.Adornee = char .Head
  203. txt.Name = "_status"
  204. txt.Size = UDim2.new(2, 0, 1.2, 0)
  205. txt.StudsOffset = Vector3.new(-9, 8, 0)
  206. local text = Instance.new("TextLabel", txt)
  207. text.Size = UDim2.new(10, 0, 7, 0)
  208. text.FontSize = "Size24"
  209. text.TextScaled = true
  210. text.TextTransparency = 0
  211. text.BackgroundTransparency = 1
  212. text.TextTransparency = 0
  213. text.TextStrokeTransparency = 0
  214. text.Font = "Arcade"
  215. text.TextStrokeColor3 = Color3.new(255,255,255)
  216.  
  217. v=Instance.new("Part")
  218. v.Name = "ColorBrick"
  219. v.Parent=p.Character
  220. v.FormFactor="Symmetric"
  221. v.Anchored=true
  222. v.CanCollide=false
  223. v.BottomSurface="Smooth"
  224. v.TopSurface="Smooth"
  225. v.Size=Vector3.new(10,5,3)
  226. v.Transparency=1
  227. v.CFrame=char.Torso.CFrame
  228. v.BrickColor=BrickColor.new(CV)
  229. v.Transparency=1
  230. text.TextColor3 = Color3.new(0,0,0)
  231. v.Shape="Block"
  232. wait()
  233. text.Text = "G E N O"
  234. wait(2)
  235. text.Text = "Yeah Im FINE...";
  236. wait(3)
  237. text.TextColor3 = Color3.new(0,0,0)
  238. spawn(function()while wait()do text.Text = "Geno Sans LV"..tostring(Level)end end)
  239. hed.face.Texture = "rbxassetid://1222517815"
  240. --------------------------------------------------------
  241. pls = game:GetService'Players'
  242. rs = game:GetService'RunService'
  243. uinps = game:GetService'UserInputService'
  244. lp = pls.owner
  245. c = lp.Character
  246. human = c.Humanoid
  247. human.MaxHealth = 1/0
  248. wait()
  249. human.Health = 0/0
  250. c.Health:Destroy()
  251. ------------
  252.  
  253. Debounces = {
  254. AnimationCycles = 0;
  255. FPS = 0;
  256. scalingDamage = false;
  257. damageLevel = 0;
  258. attackNumber = 0;
  259. isAttacking = false;
  260. isMoving = false;
  261. isSprinting = false;
  262. isBoosting = false;
  263. isPassive = false;
  264. isTyping = false;
  265. }
  266.  
  267. --------------------------------------------------------
  268.  
  269. numLerp = function(start, goal, alpha)
  270. return(((goal - start) * alpha) + start)
  271. end
  272.  
  273. CFrameZero = function()
  274. return CFrame.new(Vector3.new())
  275. end
  276.  
  277. rad = function(value)
  278. return math.rad(value)
  279. end
  280.  
  281. CFAngles = function(Vector)
  282. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  283. end
  284.  
  285. --------------------------------------------------------
  286.  
  287. AnimStat = {
  288. lerpSpeed = .2;
  289. lerpSpeed2 = .35;
  290. lerpTween = 0;
  291. }
  292.  
  293. Joints = {
  294. c.HumanoidRootPart.RootJoint;
  295. c.Torso.Neck;
  296. c.Torso['Left Shoulder'];
  297. c.Torso['Right Shoulder'];
  298. c.Torso['Left Hip'];
  299. c.Torso['Right Hip'];
  300. }
  301.  
  302. JointTargets = {
  303. CFrameZero();
  304. CFrameZero();
  305. CFrameZero();
  306. CFrameZero();
  307. CFrameZero();
  308. CFrameZero();
  309. }
  310.  
  311. --------------------------------------------------------
  312.  
  313. BodyColors = {
  314. HeadColor = BrickColor.new("Institutional white");
  315. LeftArmColor = BrickColor.new("Institutional white");
  316. RightArmColor = BrickColor.new("Institutional white");
  317. LeftLegColor = BrickColor.new("Institutional white");
  318. RightLegColor = BrickColor.new("Institutional white");
  319. TorsoColor = BrickColor.new("Mid gray");
  320. }
  321.  
  322. Customs = {
  323. Face = "http://www.roblox.com/asset/?id=871052201";
  324. Shirt = "http://www.roblox.com/asset/?id=357134155";
  325. Pants = "http://www.roblox.com/asset/?id=343128366";
  326. }
  327.  
  328. --------------------------------------------------------
  329.  
  330. prepareCharacter = function()
  331. local transPoints = {
  332. NumberSequenceKeypoint.new(0,.819,.0375),
  333. NumberSequenceKeypoint.new(.207,.594,.0187),
  334. NumberSequenceKeypoint.new(.4,.55,.031),
  335. NumberSequenceKeypoint.new(.57,.619,.05),
  336. NumberSequenceKeypoint.new(.76,.8,.0375),
  337. NumberSequenceKeypoint.new(1,1,0),
  338. }
  339. local sizePoints = {
  340. NumberSequenceKeypoint.new(0,.687,0),
  341. NumberSequenceKeypoint.new(.111,.875,0),
  342. NumberSequenceKeypoint.new(.327,1.19,0),
  343. NumberSequenceKeypoint.new(.646,1.56,0),
  344. NumberSequenceKeypoint.new(.805,1.37,0),
  345. NumberSequenceKeypoint.new(.905,1.06,0),
  346. NumberSequenceKeypoint.new(.968,.938,0),
  347. NumberSequenceKeypoint.new(.984,1.13,0),
  348. NumberSequenceKeypoint.new(1,1.62,0),
  349. }
  350. local Size = NumberSequence.new(sizePoints)
  351. local Transparency = NumberSequence.new(transPoints)
  352. rayModel = Instance.new("Model",c)
  353. efcModel = Instance.new("Model",c)
  354. efxBlock = Instance.new("Part",c)
  355. efxBlock.BrickColor = BrickColor.new("Bright violet")
  356. efxBlock.Material = "Neon"
  357. efxBlock.FormFactor = "Custom"
  358. efxBlock.Transparency = .3
  359. efxBlock.Size = Vector3.new(.0,.0,.0)
  360. local mesh = Instance.new("SpecialMesh",efxBlock)
  361. mesh.MeshType = Enum.MeshType.Sphere
  362. mesh.Scale = Vector3.new(1,1,1)
  363. light = Instance.new("PointLight",c.Head)
  364. light.Range = 10
  365. light.Color = Color3.new(0,200/255,1)
  366. light.Shadows = false
  367. local particles = Instance.new("ParticleEmitter",efxBlock)
  368. particles.Color = ColorSequence.new(Color3.new(10,0,0/1000),Color3.new(0/2000,0/0,1000/0))
  369. particles.Size = Size
  370. particles.Name = "Fire"
  371. particles.Transparency = Transparency
  372. particles.LockedToPart = true
  373. particles.VelocityInheritance = .5
  374. particles.LockedToPart = true
  375. particles.Rate = 70
  376. particles.Texture = "rbxassetid://224413104"
  377. particles.Lifetime = NumberRange.new(2,2)
  378. particles.RotSpeed = NumberRange.new(100,100)
  379. particles.Speed = NumberRange.new(7,7)
  380. script.Parent = efxBlock
  381. fire = particles
  382. local offset = Vector3.new(-0.11, .23, -0.5)
  383. local weld = Instance.new("Weld",c.Head)
  384. weld.Part0 = c.Head
  385. weld.Part1 = efxBlock
  386. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  387. efxBlock.Parent = c
  388. music.SoundId = "rbxassetid://316012176"
  389. music.Looped = true
  390. music.Volume = 0
  391. fight = music
  392. music2.SoundId = "rbxassetid://316014309"
  393. music2.Looped = true
  394. music2.Volume = 0
  395. sans = music2
  396. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  397. pointGyro.P = 1e7
  398. pointGyro.D = 1e3
  399. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  400. animator = c.Humanoid:FindFirstChild("Animator")
  401. if animator then
  402. animator:Destroy()
  403. end
  404. c.Torso.roblox:Destroy()
  405. for i,v in pairs (c.Head:children()) do
  406. if v.ClassName == "Sound" then
  407. v:Destroy()
  408. end
  409. end
  410. for i = 1,#Joints do
  411. Joints[i].C1 = CFrame.new(Vector3.new())
  412. end
  413. human.WalkSpeed = 0
  414. human.JumpPower = 0
  415. end
  416.  
  417. uinps.InputBegan:connect(function(InputObject)
  418. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  419. Debounces.isPassive = not Debounces.isPassive
  420. end
  421. end)
  422.  
  423. setJointCFrames = function(table)
  424. for i = 1,#table do
  425. JointTargets[i] = table[i]
  426. end
  427. AnimationCycles = 0
  428. end
  429.  
  430. setLerp = function(speed)
  431. AnimStat.lerpSpeed = speed
  432. end
  433.  
  434. setTween = function(tween)
  435. AnimStat.lerpTween = tween
  436. end
  437.  
  438. takeDamage = function(position,damage,distance,platformStand)
  439. for i,v in pairs (pls:children()) do
  440. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  441. local torso = v.Character:FindFirstChild("Torso")
  442. if torso and (torso.Position - position).magnitude < distance then
  443. RiseLevel(v.Character.Humanoid,damage)
  444. v.Character.Humanoid:TakeDamage(damage)
  445. if platformStand == true then
  446. v.Character.PlatformStand = platformStand
  447. end
  448. end
  449. end
  450. end
  451. end
  452.  
  453. --------------------------------------------------------
  454.  
  455. prepareCharacter()
  456.  
  457. --------------------------------------------------------
  458. hldng={}Player=p
  459. function chatfunc(text)
  460. spawn(function()local function lerp(a,b,t)return a*(1-t)+(b*t)end
  461. local rs=game:service'RunService'.RenderStepped
  462. local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  463. local Character=game:service'Players'.owner.Character local RootPart=Character.HumanoidRootPart
  464. local se=Instance.new("Sound",root)se.Volume=5 se.SoundId="rbxassetid://417445954"
  465. if Character:FindFirstChild("cht")then Character.cht:Destroy()end
  466. local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffsetWorldSpace=Vector3.new(0,4,0)b.Name="cht"
  467. local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
  468. local texts={}
  469. for i=1,snum do
  470. texts[i]=Instance.new("TextButton",b)
  471. texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
  472. texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0)
  473. texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1)
  474. texts[i].TextStrokeTransparency=1 texts[i].Font="Cartoon"texts[i].TextScaled=1 texts[i].TextTransparency=1
  475. end
  476. local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then
  477. if typeof(texts[i][Set])=="UDim2"then texts[i][Set]=texts[i][Set]:lerp(Val,LerpB)else texts[i][Set]=lerp(texts[i][Set],Val,LerpB)end
  478. else texts[i][Set]=Val end end end end
  479. for i=1,#texts do
  480. if texts[i].Parent then
  481. texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=0
  482. end
  483. if texts[i].Text~=" "then se.TimePosition=.06 se:Play()end
  484. sw(3)
  485. end
  486. sw(180)
  487. for i=1,0,-.025 do
  488. DoOpt("TextTransparency",1-i)--DoOpt("TextStrokeTransparency",1-i)
  489. sw()
  490. end
  491. b:Destroy()
  492. end)
  493. end Player.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,Player,Player))end)
  494. mouse.KeyUp:connect(function(k)
  495. hldng[k]=nil
  496. end)
  497.  
  498. local function doit()
  499. if DefAble then
  500. return
  501. else
  502. if human.Health~=human.MaxHealth then
  503. DefAble=false
  504. human:Destroy()
  505. human=Instance.new("Humanoid",chara)Instance.new("Model",human).Name="Status"
  506. human.MaxHealth=1 human.Health=1
  507. human.HealthChanged:connect(doit)
  508. root.CFrame=root.CFrame*CFrame.new(0,0,10)
  509. hldng.r=nil warn"Dodged"
  510. Tired.n=Tired.n+10
  511. end
  512. end
  513. end
  514. dodge=human.HealthChanged:connect(doit)
  515. local sw=function(n)if n then for i=1,n do rs.RenderStepped:wait()end else rs.RenderStepped:wait()end end
  516. spawn(function()
  517. local sine = 0
  518. local idk=Instance.new("ScreenGui",p:FindFirstChildOfClass'PlayerGui')
  519. local frm=Instance.new("Frame",idk)frm.BorderSizePixel=0
  520. frm.BackgroundTransparency=.5 frm.Size=UDim2.new(.4,0,.03,0)
  521. frm.Position=UDim2.new(.3,0,.7,0)
  522.  
  523. local t=Instance.new("TextLabel",frm)t.Text="wait"t.BorderSizePixel=0
  524. t.TextColor3=Color3.new(1,1,1)t.TextStrokeTransparency=0-- t.TextScaled=1
  525. t.BackgroundTransparency=0 t.TextXAlignment="Left" t.BackgroundColor3=Color3.new(1)
  526. while wait()do
  527. t.Size=UDim2.new(Tired.n/Tired.m,0,1,0)
  528. if Tired.n>=Tired.m then
  529. Tired.n=Tired.m
  530. Tired.d=true
  531. end
  532. if Tired.d then
  533. Tired.n=Tired.n-5 DefAble=true hldng.r=nil
  534. end t.Text=tostring(math.floor(Tired.n*10)/10).."/"..tostring(Tired.m)
  535. if Tired.n<=0 then Tired.n=0 Tired.d=false end
  536. if DefAble then human.MaxHealth=1 human.Health=1 human.Name="Humanoid"else
  537. dodge:disconnect()human.MaxHealth=1 human.Health=1 dodge=human.HealthChanged:connect(doit)
  538.  
  539. end
  540.  
  541. if hldng.r then DefAble=false else DefAble=1 end
  542.  
  543. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  544. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  545. setLerp(.1)
  546. if Debounces.isPassive == true then --walk
  547. setJointCFrames({
  548. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  549. CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
  550. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  551. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  552. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  553. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  554. })
  555. else
  556. setJointCFrames({
  557. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  558. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
  559. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  560. CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  561. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  562. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  563. })
  564. end
  565. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  566. sine = sine + math.rad(12) --else jump
  567. human.WalkSpeed = 25
  568. setLerp(.15)
  569. setJointCFrames({
  570. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  571. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  572. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
  573. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
  574. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  575. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  576. })
  577. end
  578. if Debounces.scalingDamage == true then
  579. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  580. end
  581. end
  582. end)
  583. human.Changed:connect(function(prop)
  584. if prop == "MoveDirection" then
  585. if human.MoveDirection.magnitude > .02 then
  586. Debounces.isMoving = true
  587. else
  588. Debounces.isMoving = false
  589. end
  590. end
  591. end)
  592. local dunkedon=false
  593. mouse.KeyDown:connect(function(k)
  594. hldng[k]=true
  595. if not Debounces.isAttacking then
  596. if k=="c"and not Tired.d and Debounces.isPassive then
  597. local GrabObj=mouse.Target
  598. local hum=nil
  599. if GrabObj then
  600. if not GrabObj.Anchored then
  601. if GrabObj.Parent then
  602. if GrabObj.Parent:FindFirstChild'Humanoid'then
  603. hum=GrabObj.Parent.Humanoid
  604. end
  605. end
  606. local jet=Instance.new("BodyPosition",GrabObj)
  607. if not hum then jet.D=2000 jet.P=2000 end
  608. while hldng.c and not Tired.d do
  609. jet.MaxForce=Vector3.new(10,10,10)*10000000
  610. jet.Position=mouse.Target~=nil and mouse.Hit.p or jet.Position
  611. Tired.n=Tired.n+((not hum or hum.Health==0) and 1 or 2)
  612. local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z
  613. if hum and vel>20 then RiseLevel(hum,vel/400)hum.Health=hum.Health-vel/400 end
  614. sw()
  615. end
  616. jet:Destroy()
  617. else
  618. warn'The object is anchored!'
  619. end
  620. end
  621. end
  622. if k=="t"and not Tired.d then -- TELEPORT
  623. if mouse.Target then Debounces.isAttacking=true
  624. local pos=mouse.Hit KG:Pause()
  625. root.Anchored=1 root.CFrame=CFrame.new(9999,9999,109999)
  626. local jam=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
  627. jam.DisplayOrder=12 local j=Instance.new("Frame",jam)j.BackgroundColor3=Color3.new()
  628. j.BorderSizePixel=0 j.Size=UDim2.new(1,0,1,0)
  629. wait(1)Debounces.isAttacking=false KG:Resume()
  630. root.CFrame=pos+Vector3.new(0,3,0)
  631. jam:Destroy()root.Anchored=false
  632. end
  633. Tired.n=Tired.n+50
  634. end
  635. if k=="f"and not Tired.d and not dunkedon and Debounces.isPassive then
  636. dunkedon=true local pos=mouse.Hit.p
  637. Tired.n=Tired.n+100
  638. local idk=Instance.new("Part",efcModel)
  639. idk.Size=Vector3.new(2,80,80)local sp=Instance.new("SpecialMesh",idk)idk.Anchored=1 idk.CanCollide=nil
  640. sp.Scale=idk.Size*20 idk.Size=Vector3.new()idk.Color=Color3.new(1,.1,.1)sp.MeshType="Cylinder"
  641. idk.Transparency=.5 idk.CFrame=CFrame.new(pos)*CFrame.Angles(0,0,math.rad(90))
  642. idk.Material="SmoothPlastic"
  643. idk.Transparency=.5 sw(20)idk:Destroy()
  644. spawn(function()for i=1,300 do
  645. local pos=CFrame.new(pos)*CFrame.Angles(0,math.rad(math.random(360)),0)*CFrame.new(0,0,math.random(380)/10)*CFrame.Angles(0,math.rad(math.random(180)),0)+Vector3.new(0,-6,0)
  646. spawn(function()
  647. local p=Instance.new("Part",efcModel)
  648. p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end)
  649. p.Color=Color3.new(1,1,1)p.Size=Vector3.new(10,1,10)p.CFrame=pos
  650. local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
  651. local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937"
  652. m.Scale=Vector3.new(.05,.08,.05)/1.2
  653. spawn(function()
  654. for i=0,1,.05 do p.CFrame=p.CFrame+Vector3.new(0,.6,0)sw()end
  655. sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
  656. end)
  657. end)
  658. sw()
  659. end
  660. end)
  661. wait(5)
  662.  
  663. dunkedon=false
  664. end
  665. end
  666. if Debounces.isPassive and k=="g"then
  667. while hldng.g and not Tired.d do
  668. sw(10)
  669. Tired.n=Tired.n+1
  670. local pos=CFrame.new((root.CFrame+Vector3.new(0,4,0))*CFrame.new(math.random(-70,70)/10,math.random(-10,10)/10,math.random(-70,70)/10).p,mouse.Hit.p)
  671. spawn(function()
  672. local p=Instance.new("Part",efcModel)
  673. p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end)
  674. p.Color=Color3.new(1,1,1)p.Size=Vector3.new(4,4,4)p.CFrame=pos
  675. local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
  676. local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937"
  677. m.Scale=Vector3.new(.05,.08,.05)/2.5
  678. spawn(function()
  679. for i=0,1,.005 do p.CFrame=pos*CFrame.new(0,0,-i*300)*CFrame.Angles(math.rad(90),0,0)sw()end
  680. sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
  681. end)
  682. end)
  683. end
  684. end
  685.  
  686. end)
  687. uinps.InputBegan:connect(function(InputObject)
  688. if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  689. Debounces.isBoosting = true
  690. Debounces.damageLevel = 10
  691. Debounces.scalingDamage = true
  692. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  693. setLerp(.15)
  694. setJointCFrames({
  695. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  696. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  697. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  698. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  699. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  700. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  701. })
  702. local boostSpeed = 350
  703. local efx = Instance.new("Sound",c.Head)
  704. efx.SoundId = "rbxassetid://200632875"
  705. efx.Pitch = math.random(1100,1300)/1000
  706. efx.Volume = .5
  707. efx:Play()
  708. spawn(function()
  709. wait(5)
  710. efx:Destroy()
  711. end)
  712. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  713. vel.P = 1e3
  714. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  715. wait(.15)
  716. vel.P = 1000
  717. vel.MaxForce = Vector3.new(3000,0,3000)
  718. vel.Velocity = Vector3.new()
  719. wait(.3)
  720. setLerp(.3)
  721. setJointCFrames({
  722. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  723. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  724. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  725. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  726. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  727. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  728. })
  729. wait(.2)
  730. vel:Destroy()
  731. Debounces.damageLevel = 0
  732. Debounces.scalingDamage = false
  733. Debounces.isBoosting = false
  734. end
  735. end)
  736.  
  737. uinps.InputBegan:connect(function(InputObject)
  738. if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  739. Debounces.isBoosting = true
  740. Debounces.damageLevel = 10
  741. Debounces.scalingDamage = true
  742. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  743. setLerp(.15)
  744. setJointCFrames({
  745. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  746. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  747. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  748. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  749. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  750. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  751. })
  752. local boostSpeed = 250
  753. local efx = Instance.new("Sound",c.Head)
  754. efx.SoundId = "rbxassetid://200632875"
  755. efx.Pitch = math.random(1100,1300)/1000
  756. efx.Volume = .5
  757. efx:Play()
  758. spawn(function()
  759. wait(5)
  760. efx:Destroy()
  761. end)
  762. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  763. vel.P = 1e3
  764. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  765. wait(.15)
  766. vel.P = 1000
  767. vel.MaxForce = Vector3.new(3000,0,3000)
  768. vel.Velocity = Vector3.new()
  769. wait(.3)
  770. setLerp(.3)
  771. setJointCFrames({
  772. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  773. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  774. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  775. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  776. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  777. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  778. })
  779. wait(.2)
  780. vel:Destroy()
  781. Debounces.damageLevel = 0
  782. Debounces.scalingDamage = false
  783. Debounces.isBoosting = false
  784. end
  785. end)
  786.  
  787. uinps.InputBegan:connect(function(InputObject)
  788. if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  789. Debounces.isBoosting = true
  790. Debounces.damageLevel = 10
  791. Debounces.scalingDamage = true
  792. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  793. setLerp(.15)
  794. setJointCFrames({
  795. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  796. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  797. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  798. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  799. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  800. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  801. })
  802. local boostSpeed = 350
  803. local efx = Instance.new("Sound",c.Head)
  804. efx.SoundId = "rbxassetid://200632875"
  805. efx.Pitch = math.random(1100,1300)/1000
  806. efx.Volume = .5
  807. efx:Play()
  808. spawn(function()
  809. wait(5)
  810. efx:Destroy()
  811. end)
  812. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  813. vel.P = 1e3
  814. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  815. wait(.15)
  816. vel.P = 1000
  817. vel.MaxForce = Vector3.new(3000,0,3000)
  818. vel.Velocity = Vector3.new()
  819. wait(.3)
  820. setLerp(.3)
  821. setJointCFrames({
  822. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  823. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  824. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  825. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  826. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  827. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  828. })
  829. wait(.2)
  830. vel:Destroy()
  831. Debounces.damageLevel = 0
  832. Debounces.scalingDamage = false
  833. Debounces.isBoosting = false
  834. end
  835. end)
  836.  
  837. uinps.InputBegan:connect(function(InputObject)
  838. if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  839. Debounces.isBoosting = true
  840. Debounces.damageLevel = 30
  841. Debounces.scalingDamage = true
  842. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  843. setLerp(.15)
  844. setJointCFrames({
  845. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  846. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  847. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  848. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  849. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  850. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  851. })
  852. local boostSpeed = 350
  853. local boostSpeed = 350
  854. local efx = Instance.new("Sound",c.Head)
  855. efx.SoundId = "rbxassetid://200632875"
  856. efx.Pitch = math.random(1100,1300)/1000
  857. efx.Volume = .5
  858. efx:Play()
  859. spawn(function()
  860. wait(5)
  861. efx:Destroy()
  862. end)
  863. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  864. vel.P = 1e3
  865. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  866. wait(.15)
  867. vel.P = 1000
  868. vel.MaxForce = Vector3.new(3000,0,3000)
  869. vel.Velocity = Vector3.new()
  870. wait(.3)
  871. setLerp(.3)
  872. setJointCFrames({
  873. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  874. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  875. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  876. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  877. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  878. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  879. })
  880. wait(.2)
  881. vel:Destroy()
  882. Debounces.damageLevel = 0
  883. Debounces.scalingDamage = false
  884. Debounces.isBoosting = false
  885. end
  886. end)
  887.  
  888. uinps.InputBegan:connect(function(InputObject)
  889. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false and not Tired.d then
  890. local isLooping = true
  891. uinps.InputEnded:connect(function(InputObject2)
  892. if InputObject2.KeyCode == Enum.KeyCode.Q then
  893. isLooping = false
  894. end
  895. end)
  896. while not Tired.d do
  897. if isLooping == false then
  898. break
  899. end
  900. Debounces.attackNumber = Debounces.attackNumber + 1
  901. local aimPos = mouse.Hit.p
  902. local head = Instance.new("Part",c)
  903. head.Size = Vector3.new(12,.2,12)
  904. head.CanCollide = false
  905. head.Anchored = true
  906. head.Transparency = 1
  907. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  908. mesh.Scale=Vector3.new(.05,.05,.05)
  909. local decal = Instance.new("Decal",head)
  910. decal.Texture = "rbxassetid://441975828"
  911. if Debounces.attackNumber%2 == 1 then
  912. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  913. else
  914. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  915. end head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  916. spawn(function()
  917. local timer = 0
  918. while rs.RenderStepped:wait() do
  919. if timer >= 1.55 then
  920. break
  921. end
  922. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  923. timer = timer + 1/30/(Debounces.FPS/60)
  924. end
  925. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  926. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  927. local hit, pos = workspace:FindPartOnRay(ray,c)
  928. local dis = (head.CFrame.p - pos).magnitude
  929. local rayPart = Instance.new("Part",rayModel)
  930. rayPart.Material = "Neon"
  931. rayPart.FormFactor = "Custom"
  932. rayPart.BrickColor = BrickColor.new"Lily white"
  933. rayPart.Anchored = true
  934. rayPart.CanCollide = false
  935. rayPart.Size = Vector3.new(7,7,dis + 400)
  936. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  937. rayPart.CFrame = rayCFrame
  938. head:Destroy()
  939. end)
  940. wait()
  941. local s = Instance.new("Sound",head)
  942. s.Volume = 1
  943. s.SoundId = "rbxassetid://332223043"
  944. s:Play()
  945. wait(.04)
  946. Tired.n=Tired.n+2
  947. end
  948. end
  949. end)
  950.  
  951. uinps.InputBegan:connect(function(InputObj)
  952. if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and not Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
  953. Debounces.isAttacking = true
  954. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  955. local head = Instance.new("Part",c)
  956. head.Size = Vector3.new(18,.2,18)
  957. head.CanCollide = false
  958. head.Anchored = true
  959. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  960. head.Transparency = 1 head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  961. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  962. mesh.Scale=Vector3.new(.1,.1,.1)
  963. local decal = Instance.new("Decal",head)
  964. decal.Texture = "rbxassetid://441975828"
  965. setLerp(.1)
  966. setJointCFrames({
  967. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  968. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  969. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  970. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  971. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  972. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  973. })
  974. spawn(function()
  975. local timer = 0
  976. while rs.RenderStepped:wait() do
  977. if timer >= 1.55/.8 then
  978. break
  979. end
  980. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  981. timer = timer + 1/30/(Debounces.FPS/60)
  982. end
  983. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  984. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  985. local hit, pos = workspace:FindPartOnRay(ray,c)
  986. local dis = (head.CFrame.p - pos).magnitude
  987. local rayPart = Instance.new("Part",rayModel)
  988. rayPart.Material = "Neon"
  989. rayPart.FormFactor = "Custom"
  990. rayPart.Name = "Punch"
  991. rayPart.BrickColor = BrickColor.new"Lily white"
  992. rayPart.Anchored = true
  993. rayPart.CanCollide = false
  994. rayPart.Size = Vector3.new(28,28,dis + 400)
  995. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  996. rayPart.CFrame = rayCFrame
  997. head:Destroy()
  998. end)
  999. wait()
  1000. local s = Instance.new("Sound",head)
  1001. s.Volume = 1
  1002. s.SoundId = "rbxassetid://332223043"
  1003. s.Pitch = .8
  1004. s:Play()
  1005. wait(.75)
  1006. setLerp(.17)
  1007. setJointCFrames({
  1008. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1009. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1010. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1011. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1012. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1013. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1014. })
  1015. Tired.n=Tired.n+15
  1016. wait(.5)
  1017. Debounces.isAttacking = false
  1018. end
  1019. end)
  1020.  
  1021. reflect = function(d,n)
  1022. local i, n = -1 * d.unit, n.unit
  1023. local dot = n:Dot(i)
  1024. return 2*dot*n - i
  1025. end
  1026.  
  1027. makeReflectionBeam = function(pos,look,isCrit)
  1028. local ray = Ray.new(pos,look)
  1029. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  1030. local e = Instance.new("Part",rayModel)
  1031. e.Anchored = true
  1032. e.CanCollide = false
  1033. e.BrickColor = BrickColor.new("Cyan")
  1034. e.Material = "Neon"
  1035. e.FormFactor = "Custom"
  1036. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  1037. if isCrit == true then
  1038. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  1039. e.Name = "Punch"
  1040. end
  1041. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  1042. local e = Instance.new("Sound",c)
  1043. if isCrit == true then
  1044. e.Volume = .5
  1045. else
  1046. e.Volume = .3
  1047. e.Pitch = 1.5
  1048. end
  1049. e.SoundId = "rbxassetid://200632875"
  1050. e:Play()
  1051. spawn(function()
  1052. wait(6)
  1053. e:Destroy()
  1054. end)
  1055. wait(.05)
  1056. if hit ~= nil then
  1057. newDir = reflect(look.unit,norm,isCrit)
  1058. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  1059. end
  1060. end
  1061.  
  1062. uinps.InputBegan:connect(function(InputObject)
  1063. if InputObject.KeyCode == Enum.KeyCode.Q and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
  1064. local isLooping = true
  1065. uinps.InputEnded:connect(function(InputObject2)
  1066. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1067. isLooping = false
  1068. end
  1069. end)
  1070. while not Tired.d do
  1071. if isLooping == false then
  1072. break
  1073. end
  1074. Debounces.attackNumber = Debounces.attackNumber + 1
  1075. local aimPos = mouse.Hit.p
  1076. local head = Instance.new("Part",c)
  1077. head.Size = Vector3.new(12,.2,12)
  1078. head.CanCollide = false
  1079. head.Anchored = true
  1080. head.Transparency=1
  1081. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1082. mesh.Scale=Vector3.new(.05,.05,.05)
  1083. local decal = Instance.new("Decal",head)
  1084. decal.Texture = "rbxassetid://441975828"
  1085.  
  1086. if Debounces.attackNumber%2 == 1 then
  1087. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1088. else
  1089. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1090. end
  1091. head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1092. spawn(function()
  1093. local timer = 0
  1094. while rs.RenderStepped:wait() do
  1095. if timer >= 1.55 then
  1096. break
  1097. end
  1098. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  1099. timer = timer + 1/30/(Debounces.FPS/60)
  1100. end
  1101. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1102. head:Destroy()
  1103. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  1104. end)
  1105.  
  1106. wait()
  1107. local s = Instance.new("Sound",head)
  1108. s.Volume = 1
  1109. s.SoundId = "rbxassetid://332223043"
  1110. s.Pitch = 1.02
  1111. s:Play()
  1112. Tired.n=Tired.n+15
  1113. wait(.2)
  1114. end
  1115. end
  1116. end)
  1117.  
  1118. uinps.InputBegan:connect(function(InputObj)
  1119. if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
  1120. Debounces.isAttacking = true
  1121. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1122. local head = Instance.new("Part",c)
  1123. head.Size = Vector3.new(18,.2,18)
  1124. head.CanCollide = false
  1125. head.Anchored = true
  1126. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1127. head.Transparency = 1
  1128. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1129. mesh.Scale=Vector3.new(.1,.1,.1)
  1130. local decal = Instance.new("Decal",head)
  1131. decal.Texture = "rbxassetid://441975828"
  1132. head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1133. setLerp(.1)
  1134. setJointCFrames({
  1135. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1136. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1137. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1138. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1139. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1140. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1141. })
  1142. spawn(function()
  1143. local timer = 0
  1144. while rs.RenderStepped:wait() do
  1145. if timer >= 1.55/.8 then
  1146. break
  1147. end
  1148. head.CFrame = head.CFrame --* CFrame.new(0,0,-timer/10)
  1149. timer = timer + 1/30/(Debounces.FPS/60)
  1150. end
  1151. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1152. head:Destroy()
  1153. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  1154. end)
  1155. wait()
  1156. local s = Instance.new("Sound",head)
  1157. s.Volume = 2
  1158. s.SoundId = "rbxassetid://332223043"
  1159. s.Pitch = .8
  1160. s:Play()
  1161. wait(.75)
  1162. setLerp(.17)
  1163. setJointCFrames({
  1164. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1165. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1166. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1167. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1168. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1169. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1170. })
  1171. Tired.n=Tired.n+30
  1172. wait(.5)
  1173. Debounces.isAttacking = false
  1174. end
  1175. end)
  1176.  
  1177. uinps.InputBegan:connect(function(InputObj)
  1178. if InputObj.KeyCode == Enum.KeyCode.Slash then
  1179. local finishEvent = nil
  1180. Debounces.isTyping = true
  1181. finishEvent = uinps.InputBegan:connect(function(InputObj)
  1182. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1183. Debounces.isTyping = false
  1184. finishEvent:disconnect()
  1185. end
  1186. end)
  1187. end
  1188. end)
  1189.  
  1190. uinps.InputBegan:connect(function(InputObj)
  1191. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1192. Debounces.isSprinting = true
  1193. end
  1194. end)
  1195.  
  1196. uinps.InputEnded:connect(function(InputObj)
  1197. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1198. Debounces.isSprinting = false
  1199. end
  1200. end)
  1201. uinps.InputBegan:connect(function(InputObj)
  1202.  
  1203. end)
  1204.  
  1205. rs.RenderStepped:connect(function()
  1206. Debounces.FPS = 1/rs.RenderStepped:wait()
  1207. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1208. if Debounces.isPassive == false then
  1209. fire.Enabled = false
  1210. light.Range = 0
  1211. fight:Pause()
  1212. sans:Resume()
  1213. efxBlock.Transparency = 1
  1214. else
  1215. fire.Enabled = true
  1216. light.Range = 10
  1217. fight:Resume()
  1218. sans:Pause()
  1219. efxBlock.Transparency = 0
  1220. end local tD=3
  1221. for i,v in pairs (rayModel:children()) do
  1222. if v.Transparency >= 1 then
  1223. v:Destroy()
  1224. else
  1225. v.CanCollide = true
  1226. local parts = v:GetTouchingParts()
  1227. v.CanCollide = false
  1228. for i = 1,#parts do
  1229. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  1230. RiseLevel(parts[i].Parent.Humanoid,.5/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  1231. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  1232. RiseLevel(parts[i].Parent.Humanoid,3.1/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  1233. end
  1234. end
  1235. v.Size = v.Size / Vector3.new(1+(v.Transparency/tD),1+(v.Transparency/tD),1)--- Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  1236. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1237. end
  1238. end
  1239. for i = 1,#Joints do
  1240. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1241. end
  1242. local sineval = math.sin(tick() * 2) * 3
  1243. fire.Acceleration = Vector3.new(sineval,1,sineval)
  1244. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  1245. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement