Advertisement
StarzoZero

Untitled

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