Advertisement
jasonskg1234

genos sans

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