Advertisement
sneakydodge123

sans

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