Advertisement
sawgamer1

Untitled

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