Advertisement
epicboi

Untitled

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