Advertisement
StarzoZero

Roblox Dust!Sans Script [FE]

Mar 16th, 2019
16,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.28 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.Text = "Dust!Sans"
  311. --------------------------------------------------------
  312. pls = game:GetService'Players'
  313. rs = game:GetService'RunService'
  314. uinps = game:GetService'UserInputService'
  315. lp = pls.LocalPlayer
  316. mouse = lp:GetMouse()
  317. c = lp.Character
  318. human = c.Humanoid
  319. human.MaxHealth = 1/0
  320. wait()
  321. human.Health = 0/0
  322. c.Health:Destroy()
  323. --------------------------------------------------------
  324. Hulmet = Instance.new("Part")
  325. Hulmet.Position = Hulmet.Position + Vector3.new(0,10,0)
  326. Hulmet.Parent = game.Players.LocalPlayer.Character
  327. Hulmet.Name = "Helmet"
  328. Hulmet.Size = Vector3.new(1.643, 1.157, 1.696)
  329. Hulmet.Material = Enum.Material.Metal
  330. Hulmet.BrickColor = BrickColor.new("Grey")
  331. MSHE = Instance.new("SpecialMesh")
  332. MSHE.Parent = Hulmet
  333. MSHE.MeshId = "rbxassetid://101203373"
  334. WULD = Instance.new("Weld")
  335. WULD.Parent = Hulmet
  336. WULD.Part0 = Hulmet
  337. WULD.Part1 = game.Players.LocalPlayer.Character.Head
  338. WULD.C1 = CFrame.Angles(0,0,0)
  339. WULD.C0 = CFrame.new(0,0,0)
  340. --------------------------------------------------------
  341.  
  342. Debounces = {
  343. AnimationCycles = 0;
  344. FPS = 0;
  345. scalingDamage = false;
  346. damageLevel = 0;
  347. attackNumber = 0;
  348. isAttacking = false;
  349. isMoving = false;
  350. isSprinting = false;
  351. isBoosting = false;
  352. isPassive = false;
  353. isTyping = false;
  354. }
  355.  
  356. --------------------------------------------------------
  357.  
  358. numLerp = function(start, goal, alpha)
  359. return(((goal - start) * alpha) + start)
  360. end
  361.  
  362. CFrameZero = function()
  363. return CFrame.new(Vector3.new())
  364. end
  365.  
  366. rad = function(value)
  367. return math.rad(value)
  368. end
  369.  
  370. CFAngles = function(Vector)
  371. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  372. end
  373.  
  374. --------------------------------------------------------
  375.  
  376. AnimStat = {
  377. lerpSpeed = .2;
  378. lerpSpeed2 = .35;
  379. lerpTween = 0;
  380. }
  381.  
  382. Joints = {
  383. c.HumanoidRootPart.RootJoint;
  384. c.Torso.Neck;
  385. c.Torso['Left Shoulder'];
  386. c.Torso['Right Shoulder'];
  387. c.Torso['Left Hip'];
  388. c.Torso['Right Hip'];
  389. }
  390.  
  391. JointTargets = {
  392. CFrameZero();
  393. CFrameZero();
  394. CFrameZero();
  395. CFrameZero();
  396. CFrameZero();
  397. CFrameZero();
  398. }
  399.  
  400. --------------------------------------------------------
  401.  
  402. BodyColors = {
  403. HeadColor = BrickColor.new("Institutional white");
  404. LeftArmColor = BrickColor.new("Institutional white");
  405. RightArmColor = BrickColor.new("Institutional white");
  406. LeftLegColor = BrickColor.new("Institutional white");
  407. RightLegColor = BrickColor.new("Institutional white");
  408. TorsoColor = BrickColor.new("Mid gray");
  409. }
  410.  
  411. Customs = {
  412. Face = "http://www.roblox.com/asset/?id=871052201";
  413. Shirt = "http://www.roblox.com/asset/?id=357134155";
  414. Pants = "http://www.roblox.com/asset/?id=343128366";
  415. }
  416.  
  417. --------------------------------------------------------
  418.  
  419. prepareCharacter = function()
  420. local transPoints = {
  421. NumberSequenceKeypoint.new(0,.819,.0375),
  422. NumberSequenceKeypoint.new(.207,.594,.0187),
  423. NumberSequenceKeypoint.new(.4,.55,.031),
  424. NumberSequenceKeypoint.new(.57,.619,.05),
  425. NumberSequenceKeypoint.new(.76,.8,.0375),
  426. NumberSequenceKeypoint.new(1,1,0),
  427. }
  428. local sizePoints = {
  429. NumberSequenceKeypoint.new(0,.687,0),
  430. NumberSequenceKeypoint.new(.111,.875,0),
  431. NumberSequenceKeypoint.new(.327,1.19,0),
  432. NumberSequenceKeypoint.new(.646,1.56,0),
  433. NumberSequenceKeypoint.new(.805,1.37,0),
  434. NumberSequenceKeypoint.new(.905,1.06,0),
  435. NumberSequenceKeypoint.new(.968,.938,0),
  436. NumberSequenceKeypoint.new(.984,1.13,0),
  437. NumberSequenceKeypoint.new(1,1.62,0),
  438. }
  439. local Size = NumberSequence.new(sizePoints)
  440. local Transparency = NumberSequence.new(transPoints)
  441. rayModel = Instance.new("Model",c)
  442. efcModel = Instance.new("Model",c)
  443. efxBlock = Instance.new("Part",c)
  444. efxBlock.BrickColor = BrickColor.new("Bright violet")
  445. efxBlock.Material = "Neon"
  446. efxBlock.FormFactor = "Custom"
  447. efxBlock.Transparency = .3
  448. efxBlock.Size = Vector3.new(.3,.3,.3)
  449. local mesh = Instance.new("SpecialMesh",efxBlock)
  450. mesh.MeshType = Enum.MeshType.Sphere
  451. mesh.Scale = Vector3.new(1,1,1)
  452. light = Instance.new("PointLight",c.Head)
  453. light.Range = 10
  454. light.Color = Color3.new(0,200/255,1)
  455. light.Shadows = false
  456. local particles = Instance.new("ParticleEmitter",efxBlock)
  457. particles.Color = ColorSequence.new(Color3.fromRGB(48,17,109))
  458. particles.LightEmission = .5
  459. particles.Size = Size
  460. particles.Name = "Fire"
  461. particles.Transparency = Transparency
  462. particles.LockedToPart = true
  463. particles.VelocityInheritance = .5
  464. particles.LockedToPart = true
  465. particles.Rate = 70
  466. particles.Texture = "rbxassetid://170478388"
  467. particles.Lifetime = NumberRange.new(2,2)
  468. particles.RotSpeed = NumberRange.new(100,100)
  469. particles.Speed = NumberRange.new(7,7)
  470. script.Parent = efxBlock
  471. fire = particles
  472. local offset = Vector3.new(-0.11, .23, -0.5)
  473. local weld = Instance.new("Weld",c.Head)
  474. weld.Part0 = c.Head
  475. weld.Part1 = efxBlock
  476. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  477. efxBlock.Parent = c
  478. music.SoundId = "rbxassetid://316012176"
  479. music.Looped = true
  480. music.Volume = 0
  481. fight = music
  482. music2.SoundId = "rbxassetid://316014309"
  483. music2.Looped = true
  484. music2.Volume = 0
  485. sans = music2
  486. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  487. pointGyro.P = 1e7
  488. pointGyro.D = 1e3
  489. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  490. animator = c.Humanoid:FindFirstChild("Animator")
  491. if animator then
  492. animator:Destroy()
  493. end
  494. c.Torso.roblox:Destroy()
  495. for i,v in pairs (c.Head:children()) do
  496. if v.ClassName == "Sound" then
  497. v:Destroy()
  498. end
  499. end
  500. for i = 1,#Joints do
  501. Joints[i].C1 = CFrame.new(Vector3.new())
  502. end
  503. human.WalkSpeed = 0
  504. human.JumpPower = 0
  505. end
  506.  
  507. uinps.InputBegan:connect(function(InputObject)
  508. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  509. Debounces.isPassive = not Debounces.isPassive
  510. end
  511. end)
  512.  
  513. setJointCFrames = function(table)
  514. for i = 1,#table do
  515. JointTargets[i] = table[i]
  516. end
  517. AnimationCycles = 0
  518. end
  519.  
  520. setLerp = function(speed)
  521. AnimStat.lerpSpeed = speed
  522. end
  523.  
  524. setTween = function(tween)
  525. AnimStat.lerpTween = tween
  526. end
  527.  
  528. takeDamage = function(position,damage,distance,platformStand)
  529. for i,v in pairs (pls:children()) do
  530. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  531. local torso = v.Character:FindFirstChild("Torso")
  532. if torso and (torso.Position - position).magnitude < distance then
  533. RiseLevel(v.Character.Humanoid,damage)
  534. v.Character.Humanoid:TakeDamage(damage)
  535. if platformStand == true then
  536. v.Character.PlatformStand = platformStand
  537. end
  538. end
  539. end
  540. end
  541. end
  542.  
  543. --------------------------------------------------------
  544.  
  545. prepareCharacter()
  546.  
  547. --------------------------------------------------------
  548. hldng={}Player=p
  549. function chatfunc(text)
  550. spawn(function()local function lerp(a,b,t)return a*(1-t)+(b*t)end
  551. local rs=game:service'RunService'.RenderStepped
  552. local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  553. local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
  554. local se=Instance.new("Sound",root)se.Volume=5 se.SoundId="rbxassetid://417445954"
  555. if Character:FindFirstChild("cht")then Character.cht:Destroy()end
  556. local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffsetWorldSpace=Vector3.new(0,4,0)b.Name="cht"
  557. local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
  558. local texts={}
  559. for i=1,snum do
  560. texts[i]=Instance.new("TextButton",b)
  561. texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
  562. texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0)
  563. texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1)
  564. texts[i].TextStrokeTransparency=1 texts[i].Font="Cartoon"texts[i].TextScaled=1 texts[i].TextTransparency=1
  565. end
  566. local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then
  567. 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
  568. else texts[i][Set]=Val end end end end
  569. for i=1,#texts do
  570. if texts[i].Parent then
  571. texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=0
  572. end
  573. if texts[i].Text~=" "then se.TimePosition=.06 se:Play()end
  574. sw(3)
  575. end
  576. sw(180)
  577. for i=1,0,-.025 do
  578. DoOpt("TextTransparency",1-i)--DoOpt("TextStrokeTransparency",1-i)
  579. sw()
  580. end
  581. b:Destroy()
  582. end)
  583. end Player.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,Player,Player))end)
  584. mouse.KeyUp:connect(function(k)
  585. hldng[k]=nil
  586. end)
  587.  
  588. local function doit()
  589. if DefAble then
  590. return
  591. else
  592. if human.Health~=human.MaxHealth then
  593. DefAble=false
  594. human:Destroy()
  595. human=Instance.new("Humanoid",chara)Instance.new("Model",human).Name="Status"
  596. human.MaxHealth=1 human.Health=1
  597. human.HealthChanged:connect(doit)
  598. root.CFrame=root.CFrame*CFrame.new(0,0,10)
  599. hldng.r=nil warn"Dodged"
  600. Tired.n=Tired.n+10
  601. end
  602. end
  603. end
  604. dodge=human.HealthChanged:connect(doit)
  605. local sw=function(n)if n then for i=1,n do rs.RenderStepped:wait()end else rs.RenderStepped:wait()end end
  606. spawn(function()
  607. local sine = 0
  608. local idk=Instance.new("ScreenGui",p:FindFirstChildOfClass'PlayerGui')
  609. local frm=Instance.new("Frame",idk)frm.BorderSizePixel=0
  610. frm.BackgroundTransparency=.5 frm.Size=UDim2.new(.4,0,.03,0)
  611. frm.Position=UDim2.new(.3,0,.7,0)
  612.  
  613. local t=Instance.new("TextLabel",frm)t.Text="wait"t.BorderSizePixel=0
  614. t.TextColor3=Color3.new(1,1,1)t.TextStrokeTransparency=0-- t.TextScaled=1
  615. t.BackgroundTransparency=0 t.TextXAlignment="Left" t.BackgroundColor3=Color3.new(1)
  616. while wait()do
  617. t.Size=UDim2.new(Tired.n/Tired.m,0,1,0)
  618. if Tired.n>=Tired.m then
  619. Tired.n=Tired.m
  620. Tired.d=true
  621. end
  622. if Tired.d then
  623. Tired.n=Tired.n-5 DefAble=true hldng.r=nil
  624. end t.Text=tostring(math.floor(Tired.n*10)/10).."/"..tostring(Tired.m)
  625. if Tired.n<=0 then Tired.n=0 Tired.d=false end
  626. if DefAble then human.MaxHealth=1 human.Health=1 human.Name="Humanoid"else
  627. dodge:disconnect()human.MaxHealth=1 human.Health=1 dodge=human.HealthChanged:connect(doit)
  628.  
  629. end
  630.  
  631. if hldng.r then DefAble=false else DefAble=1 end
  632.  
  633. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  634. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  635. setLerp(.1)
  636. if Debounces.isPassive == true then --walk
  637. setJointCFrames({
  638. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  639. 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));
  640. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  641. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  642. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  643. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  644. })
  645. else
  646. setJointCFrames({
  647. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  648. 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));
  649. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  650. 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));
  651. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  652. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  653. })
  654. end
  655. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  656. sine = sine + math.rad(12) --else jump
  657. human.WalkSpeed = 15
  658. setLerp(.15)
  659. setJointCFrames({
  660. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  661. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  662. 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));
  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(-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));
  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. })
  667. end
  668. if Debounces.scalingDamage == true then
  669. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  670. end
  671. end
  672. end)
  673. human.Changed:connect(function(prop)
  674. if prop == "MoveDirection" then
  675. if human.MoveDirection.magnitude > .02 then
  676. Debounces.isMoving = true
  677. else
  678. Debounces.isMoving = false
  679. end
  680. end
  681. end)
  682. local dunkedon=false
  683. mouse.KeyDown:connect(function(k)
  684. hldng[k]=true
  685. if not Debounces.isAttacking then
  686. if k=="c"and not Tired.d and Debounces.isPassive then
  687. local GrabObj=mouse.Target
  688. local hum=nil
  689. if GrabObj then
  690. if not GrabObj.Anchored then
  691. if GrabObj.Parent then
  692. if GrabObj.Parent:FindFirstChild'Humanoid'then
  693. hum=GrabObj.Parent.Humanoid
  694. end
  695. end
  696. local jet=Instance.new("BodyPosition",GrabObj)
  697. if not hum then jet.D=2000 jet.P=2000 end
  698. while hldng.c and not Tired.d do
  699. jet.MaxForce=Vector3.new(10,10,10)*10000000
  700. jet.Position=mouse.Target~=nil and mouse.Hit.p or jet.Position
  701. Tired.n=Tired.n+((not hum or hum.Health==0) and 1 or 2)
  702. local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z
  703. if hum and vel>20 then RiseLevel(hum,vel/400)hum.Health=hum.Health-vel/400 end
  704. sw()
  705. end
  706. jet:Destroy()
  707. else
  708. warn'The object is anchored!'
  709. end
  710. end
  711. end
  712. if k=="t"and not Tired.d then -- TELEPORT
  713. if mouse.Target then Debounces.isAttacking=true
  714. local pos=mouse.Hit KG:Pause()
  715. root.Anchored=1 root.CFrame=CFrame.new(9999,9999,109999)
  716. local jam=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
  717. jam.DisplayOrder=12 local j=Instance.new("Frame",jam)j.BackgroundColor3=Color3.new()
  718. j.BorderSizePixel=0 j.Size=UDim2.new(1,0,1,0)
  719. wait(1)Debounces.isAttacking=false KG:Resume()
  720. root.CFrame=pos+Vector3.new(0,3,0)
  721. jam:Destroy()root.Anchored=false
  722. end
  723. Tired.n=Tired.n+50
  724. end
  725. if k=="f"and not Tired.d and not dunkedon and Debounces.isPassive then
  726. dunkedon=true local pos=mouse.Hit.p
  727. Tired.n=Tired.n+100
  728. local idk=Instance.new("Part",efcModel)
  729. idk.Size=Vector3.new(2,80,80)local sp=Instance.new("SpecialMesh",idk)idk.Anchored=1 idk.CanCollide=nil
  730. sp.Scale=idk.Size*20 idk.Size=Vector3.new()idk.Color=Color3.new(1,.1,.1)sp.MeshType="Cylinder"
  731. idk.Transparency=.5 idk.CFrame=CFrame.new(pos)*CFrame.Angles(0,0,math.rad(90))
  732. idk.Material="SmoothPlastic"
  733. idk.Transparency=.5 sw(20)idk:Destroy()
  734. spawn(function()for i=1,300 do
  735. 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)
  736. spawn(function()
  737. local p=Instance.new("Part",efcModel)
  738. 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)
  739. p.Color=Color3.new(1,1,1)p.Size=Vector3.new(10,1,10)p.CFrame=pos
  740. local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
  741. local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937"
  742. m.Scale=Vector3.new(.05,.08,.05)/1.2
  743. spawn(function()
  744. for i=0,1,.05 do p.CFrame=p.CFrame+Vector3.new(0,.6,0)sw()end
  745. sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
  746. end)
  747. end)
  748. sw()
  749. end
  750. end)
  751. wait(5)
  752.  
  753. dunkedon=false
  754. end
  755. end
  756. if Debounces.isPassive and k=="g"then
  757. while hldng.g and not Tired.d do
  758. sw(10)
  759. Tired.n=Tired.n+1
  760. 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)
  761. spawn(function()
  762. local p=Instance.new("Part",efcModel)
  763. 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)
  764. p.Color=Color3.new(1,1,1)p.Size=Vector3.new(4,4,4)p.CFrame=pos
  765. local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
  766. local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937"
  767. m.Scale=Vector3.new(.05,.08,.05)/2.5
  768. spawn(function()
  769. for i=0,1,.005 do p.CFrame=pos*CFrame.new(0,0,-i*300)*CFrame.Angles(math.rad(90),0,0)sw()end
  770. sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
  771. end)
  772. end)
  773. end
  774. end
  775.  
  776. end)
  777. uinps.InputBegan:connect(function(InputObject)
  778. 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
  779. Debounces.isBoosting = true
  780. Debounces.damageLevel = 10
  781. Debounces.scalingDamage = true
  782. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  783. setLerp(.15)
  784. setJointCFrames({
  785. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  786. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  787. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  788. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  789. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  790. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  791. })
  792. local boostSpeed = 250
  793. local efx = Instance.new("Sound",c.Head)
  794. efx.SoundId = "rbxassetid://200632875"
  795. efx.Pitch = math.random(1100,1300)/1000
  796. efx.Volume = .5
  797. efx:Play()
  798. spawn(function()
  799. wait(5)
  800. efx:Destroy()
  801. end)
  802. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  803. vel.P = 1e3
  804. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  805. wait(.15)
  806. vel.P = 1000
  807. vel.MaxForce = Vector3.new(3000,0,3000)
  808. vel.Velocity = Vector3.new()
  809. wait(.3)
  810. setLerp(.3)
  811. setJointCFrames({
  812. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  813. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  814. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  815. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  816. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  817. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  818. })
  819. wait(.2)
  820. vel:Destroy()
  821. Debounces.damageLevel = 0
  822. Debounces.scalingDamage = false
  823. Debounces.isBoosting = false
  824. end
  825. end)
  826.  
  827. uinps.InputBegan:connect(function(InputObject)
  828. 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
  829. Debounces.isBoosting = true
  830. Debounces.damageLevel = 10
  831. Debounces.scalingDamage = true
  832. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  833. setLerp(.15)
  834. setJointCFrames({
  835. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  836. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  837. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  838. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  839. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  840. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  841. })
  842. local boostSpeed = 250
  843. local efx = Instance.new("Sound",c.Head)
  844. efx.SoundId = "rbxassetid://200632875"
  845. efx.Pitch = math.random(1100,1300)/1000
  846. efx.Volume = .5
  847. efx:Play()
  848. spawn(function()
  849. wait(5)
  850. efx:Destroy()
  851. end)
  852. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  853. vel.P = 1e3
  854. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  855. wait(.15)
  856. vel.P = 1000
  857. vel.MaxForce = Vector3.new(3000,0,3000)
  858. vel.Velocity = Vector3.new()
  859. wait(.3)
  860. setLerp(.3)
  861. setJointCFrames({
  862. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  863. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  864. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  865. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  866. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  867. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  868. })
  869. wait(.2)
  870. vel:Destroy()
  871. Debounces.damageLevel = 0
  872. Debounces.scalingDamage = false
  873. Debounces.isBoosting = false
  874. end
  875. end)
  876.  
  877. uinps.InputBegan:connect(function(InputObject)
  878. 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
  879. Debounces.isBoosting = true
  880. Debounces.damageLevel = 10
  881. Debounces.scalingDamage = true
  882. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  883. setLerp(.15)
  884. setJointCFrames({
  885. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  886. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  887. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  888. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  889. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  890. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  891. })
  892. local boostSpeed = 250
  893. local efx = Instance.new("Sound",c.Head)
  894. efx.SoundId = "rbxassetid://200632875"
  895. efx.Pitch = math.random(1100,1300)/1000
  896. efx.Volume = .5
  897. efx:Play()
  898. spawn(function()
  899. wait(5)
  900. efx:Destroy()
  901. end)
  902. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  903. vel.P = 1e3
  904. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  905. wait(.15)
  906. vel.P = 1000
  907. vel.MaxForce = Vector3.new(3000,0,3000)
  908. vel.Velocity = Vector3.new()
  909. wait(.3)
  910. setLerp(.3)
  911. setJointCFrames({
  912. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  913. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  914. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  915. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  916. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  917. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  918. })
  919. wait(.2)
  920. vel:Destroy()
  921. Debounces.damageLevel = 0
  922. Debounces.scalingDamage = false
  923. Debounces.isBoosting = false
  924. end
  925. end)
  926.  
  927. uinps.InputBegan:connect(function(InputObject)
  928. 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
  929. Debounces.isBoosting = true
  930. Debounces.damageLevel = 10
  931. Debounces.scalingDamage = true
  932. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  933. setLerp(.15)
  934. setJointCFrames({
  935. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  936. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  937. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  938. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  939. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  940. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  941. })
  942. local boostSpeed = 150
  943. local boostSpeed = 250
  944. local efx = Instance.new("Sound",c.Head)
  945. efx.SoundId = "rbxassetid://200632875"
  946. efx.Pitch = math.random(1100,1300)/1000
  947. efx.Volume = .5
  948. efx:Play()
  949. spawn(function()
  950. wait(5)
  951. efx:Destroy()
  952. end)
  953. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  954. vel.P = 1e3
  955. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  956. wait(.15)
  957. vel.P = 1000
  958. vel.MaxForce = Vector3.new(3000,0,3000)
  959. vel.Velocity = Vector3.new()
  960. wait(.3)
  961. setLerp(.3)
  962. setJointCFrames({
  963. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  964. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  965. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  966. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  967. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  968. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  969. })
  970. wait(.2)
  971. vel:Destroy()
  972. Debounces.damageLevel = 0
  973. Debounces.scalingDamage = false
  974. Debounces.isBoosting = false
  975. end
  976. end)
  977.  
  978. uinps.InputBegan:connect(function(InputObject)
  979. 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
  980. local isLooping = true
  981. uinps.InputEnded:connect(function(InputObject2)
  982. if InputObject2.KeyCode == Enum.KeyCode.Q then
  983. isLooping = false
  984. end
  985. end)
  986. while not Tired.d do
  987. if isLooping == false then
  988. break
  989. end
  990. Debounces.attackNumber = Debounces.attackNumber + 1
  991. local aimPos = mouse.Hit.p
  992. local head = Instance.new("Part",c)
  993. head.Size = Vector3.new(12,.2,12)
  994. head.CanCollide = false
  995. head.Anchored = true
  996. head.Transparency = 1
  997. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  998. mesh.Scale=Vector3.new(.05,.05,.05)
  999. local decal = Instance.new("Decal",head)
  1000. decal.Texture = "rbxassetid://441975828"
  1001. if Debounces.attackNumber%2 == 1 then
  1002. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1003. else
  1004. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1005. end head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1006. spawn(function()
  1007. local timer = 0
  1008. while rs.RenderStepped:wait() do
  1009. if timer >= 1.55 then
  1010. break
  1011. end
  1012. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  1013. timer = timer + 1/30/(Debounces.FPS/60)
  1014. end
  1015. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1016. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  1017. local hit, pos = workspace:FindPartOnRay(ray,c)
  1018. local dis = (head.CFrame.p - pos).magnitude
  1019. local rayPart = Instance.new("Part",rayModel)
  1020. rayPart.Material = "Neon"
  1021. rayPart.FormFactor = "Custom"
  1022. rayPart.BrickColor = BrickColor.new"Royal purple"
  1023. rayPart.Anchored = true
  1024. rayPart.CanCollide = false
  1025. rayPart.Size = Vector3.new(7,7,dis + 400)
  1026. 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)
  1027. rayPart.CFrame = rayCFrame
  1028. head:Destroy()
  1029. end)
  1030. wait()
  1031. local s = Instance.new("Sound",head)
  1032. s.Volume = 1
  1033. s.SoundId = "rbxassetid://332223043"
  1034. s:Play()
  1035. wait(.04)
  1036. Tired.n=Tired.n+2
  1037. end
  1038. end
  1039. end)
  1040.  
  1041. uinps.InputBegan:connect(function(InputObj)
  1042. 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
  1043. Debounces.isAttacking = true
  1044. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1045. local head = Instance.new("Part",c)
  1046. head.Size = Vector3.new(18,.2,18)
  1047. head.CanCollide = false
  1048. head.Anchored = true
  1049. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1050. head.Transparency = 1 head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1051. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1052. mesh.Scale=Vector3.new(.1,.1,.1)
  1053. local decal = Instance.new("Decal",head)
  1054. decal.Texture = "rbxassetid://441975828"
  1055. setLerp(.1)
  1056. setJointCFrames({
  1057. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1058. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1059. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1060. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1061. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1062. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1063. })
  1064. spawn(function()
  1065. local timer = 0
  1066. while rs.RenderStepped:wait() do
  1067. if timer >= 1.55/.8 then
  1068. break
  1069. end
  1070. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  1071. timer = timer + 1/30/(Debounces.FPS/60)
  1072. end
  1073. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1074. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  1075. local hit, pos = workspace:FindPartOnRay(ray,c)
  1076. local dis = (head.CFrame.p - pos).magnitude
  1077. local rayPart = Instance.new("Part",rayModel)
  1078. rayPart.Material = "Neon"
  1079. rayPart.FormFactor = "Custom"
  1080. rayPart.Name = "Punch"
  1081. rayPart.BrickColor = BrickColor.new"Royal purple"
  1082. rayPart.Anchored = true
  1083. rayPart.CanCollide = false
  1084. rayPart.Size = Vector3.new(28,28,dis + 400)
  1085. 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)
  1086. rayPart.CFrame = rayCFrame
  1087. head:Destroy()
  1088. end)
  1089. wait()
  1090. local s = Instance.new("Sound",head)
  1091. s.Volume = 1
  1092. s.SoundId = "rbxassetid://332223043"
  1093. s.Pitch = .8
  1094. s:Play()
  1095. wait(.75)
  1096. setLerp(.17)
  1097. setJointCFrames({
  1098. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1099. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1100. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1101. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1102. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1103. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1104. })
  1105. Tired.n=Tired.n+15
  1106. wait(.5)
  1107. Debounces.isAttacking = false
  1108. end
  1109. end)
  1110.  
  1111. reflect = function(d,n)
  1112. local i, n = -1 * d.unit, n.unit
  1113. local dot = n:Dot(i)
  1114. return 2*dot*n - i
  1115. end
  1116.  
  1117. makeReflectionBeam = function(pos,look,isCrit)
  1118. local ray = Ray.new(pos,look)
  1119. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  1120. local e = Instance.new("Part",rayModel)
  1121. e.Anchored = true
  1122. e.CanCollide = false
  1123. e.BrickColor = BrickColor.new("Bright violet")
  1124. e.Material = "Neon"
  1125. e.FormFactor = "Custom"
  1126. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  1127. if isCrit == true then
  1128. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  1129. e.Name = "Punch"
  1130. end
  1131. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  1132. local e = Instance.new("Sound",c)
  1133. if isCrit == true then
  1134. e.Volume = .5
  1135. else
  1136. e.Volume = .3
  1137. e.Pitch = 1.5
  1138. end
  1139. e.SoundId = "rbxassetid://200632875"
  1140. e:Play()
  1141. spawn(function()
  1142. wait(6)
  1143. e:Destroy()
  1144. end)
  1145. wait(.05)
  1146. if hit ~= nil then
  1147. newDir = reflect(look.unit,norm,isCrit)
  1148. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  1149. end
  1150. end
  1151.  
  1152. uinps.InputBegan:connect(function(InputObject)
  1153. 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
  1154. local isLooping = true
  1155. uinps.InputEnded:connect(function(InputObject2)
  1156. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1157. isLooping = false
  1158. end
  1159. end)
  1160. while not Tired.d do
  1161. if isLooping == false then
  1162. break
  1163. end
  1164. Debounces.attackNumber = Debounces.attackNumber + 1
  1165. local aimPos = mouse.Hit.p
  1166. local head = Instance.new("Part",c)
  1167. head.Size = Vector3.new(12,.2,12)
  1168. head.CanCollide = false
  1169. head.Anchored = true
  1170. head.Transparency=1
  1171. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1172. mesh.Scale=Vector3.new(.05,.05,.05)
  1173. local decal = Instance.new("Decal",head)
  1174. decal.Texture = "rbxassetid://441975828"
  1175.  
  1176. if Debounces.attackNumber%2 == 1 then
  1177. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1178. else
  1179. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1180. end
  1181. head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1182. spawn(function()
  1183. local timer = 0
  1184. while rs.RenderStepped:wait() do
  1185. if timer >= 1.55 then
  1186. break
  1187. end
  1188. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  1189. timer = timer + 1/30/(Debounces.FPS/60)
  1190. end
  1191. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1192. head:Destroy()
  1193. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  1194. end)
  1195.  
  1196. wait()
  1197. local s = Instance.new("Sound",head)
  1198. s.Volume = 1
  1199. s.SoundId = "rbxassetid://332223043"
  1200. s.Pitch = 1.02
  1201. s:Play()
  1202. Tired.n=Tired.n+15
  1203. wait(.2)
  1204. end
  1205. end
  1206. end)
  1207.  
  1208. uinps.InputBegan:connect(function(InputObj)
  1209. 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
  1210. Debounces.isAttacking = true
  1211. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1212. local head = Instance.new("Part",c)
  1213. head.Size = Vector3.new(18,.2,18)
  1214. head.CanCollide = false
  1215. head.Anchored = true
  1216. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1217. head.Transparency = 1
  1218. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1219. mesh.Scale=Vector3.new(.1,.1,.1)
  1220. local decal = Instance.new("Decal",head)
  1221. decal.Texture = "rbxassetid://441975828"
  1222. head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1223. setLerp(.1)
  1224. setJointCFrames({
  1225. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1226. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1227. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1228. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1229. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1230. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1231. })
  1232. spawn(function()
  1233. local timer = 0
  1234. while rs.RenderStepped:wait() do
  1235. if timer >= 1.55/.8 then
  1236. break
  1237. end
  1238. head.CFrame = head.CFrame --* CFrame.new(0,0,-timer/10)
  1239. timer = timer + 1/30/(Debounces.FPS/60)
  1240. end
  1241. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1242. head:Destroy()
  1243. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  1244. end)
  1245. wait()
  1246. local s = Instance.new("Sound",head)
  1247. s.Volume = 2
  1248. s.SoundId = "rbxassetid://332223043"
  1249. s.Pitch = .8
  1250. s:Play()
  1251. wait(.75)
  1252. setLerp(.17)
  1253. setJointCFrames({
  1254. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1255. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1256. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1257. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1258. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1259. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1260. })
  1261. Tired.n=Tired.n+30
  1262. wait(.5)
  1263. Debounces.isAttacking = false
  1264. end
  1265. end)
  1266.  
  1267. uinps.InputBegan:connect(function(InputObj)
  1268. if InputObj.KeyCode == Enum.KeyCode.Slash then
  1269. local finishEvent = nil
  1270. Debounces.isTyping = true
  1271. finishEvent = uinps.InputBegan:connect(function(InputObj)
  1272. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1273. Debounces.isTyping = false
  1274. finishEvent:disconnect()
  1275. end
  1276. end)
  1277. end
  1278. end)
  1279.  
  1280. uinps.InputBegan:connect(function(InputObj)
  1281. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1282. Debounces.isSprinting = true
  1283. end
  1284. end)
  1285.  
  1286. uinps.InputEnded:connect(function(InputObj)
  1287. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1288. Debounces.isSprinting = false
  1289. end
  1290. end)
  1291. uinps.InputBegan:connect(function(InputObj)
  1292.  
  1293. end)
  1294.  
  1295. rs.RenderStepped:connect(function()
  1296. Debounces.FPS = 1/rs.RenderStepped:wait()
  1297. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1298. if Debounces.isPassive == false then
  1299. fire.Enabled = false
  1300. light.Range = 0
  1301. fight:Pause()
  1302. sans:Resume()
  1303. efxBlock.Transparency = 1
  1304. else
  1305. fire.Enabled = true
  1306. light.Range = 10
  1307. fight:Resume()
  1308. sans:Pause()
  1309. efxBlock.Transparency = 0
  1310. end local tD=3
  1311. for i,v in pairs (rayModel:children()) do
  1312. if v.Transparency >= 1 then
  1313. v:Destroy()
  1314. else
  1315. v.CanCollide = true
  1316. local parts = v:GetTouchingParts()
  1317. v.CanCollide = false
  1318. for i = 1,#parts do
  1319. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  1320. RiseLevel(parts[i].Parent.Humanoid,.5/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  1321. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  1322. RiseLevel(parts[i].Parent.Humanoid,3.1/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  1323. end
  1324. end
  1325. 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)
  1326. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1327. end
  1328. end
  1329. for i = 1,#Joints do
  1330. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1331. end
  1332. local sineval = math.sin(tick() * 2) * 3
  1333. fire.Acceleration = Vector3.new(sineval,1,sineval)
  1334. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  1335. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement