reset234567890

storyshift chara that actually work

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