Advertisement
epicboi

Untitled

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