Advertisement
TheVampireXD

Untitled

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