Advertisement
PasterXIV

Untitled

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