Advertisement
13242

Untitled

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