sawgamer1

Untitled

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