Advertisement
epicboi

Untitled

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