Advertisement
GojiGaming1337

Untitled

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