Advertisement
jasonskg1234

Dust sans

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