Advertisement
Guest User

Untitled

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