Advertisement
epicboi

Untitled

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