Advertisement
WagnerJunio07

Trash Ink Sans

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