Advertisement
Guest User

aaaaaaa

a guest
Nov 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.44 KB | None | 0 0
  1. --------------------------------------------------------
  2.  
  3. pls = game:GetService'Players'
  4. rs = game:GetService'RunService'
  5. uinps = game:GetService'UserInputService'
  6. lp = pls.LocalPlayer
  7. mouse = lp:GetMouse()
  8. c = lp.Character
  9. human = c.Humanoid
  10. critTime = .27
  11. hed = c.Head
  12. --------------------------------------------------------
  13. --[[for i,v in pairs(c:children()) do
  14. if v:IsA("Hat") then
  15. v:Destroy()
  16. end
  17. end ]]
  18. --------------------------------------------------------
  19. human.DisplayDistanceType="None"
  20. --------------------------------------------------------
  21. local f = Instance.new("TextLabel")
  22. local b = Instance.new("BillboardGui")
  23. f.Parent = b
  24. b.Name = "Nametag"
  25. b.Parent = c
  26. f.Size = UDim2.new(1, 0, 0.3, 0)
  27. b.Size = UDim2.new(5, 0, 5, 0)
  28. f.TextColor3 = Color3.new(100/255,0/255,0/255)
  29. b.StudsOffset = Vector3.new(0,0,0)
  30. b.Adornee = hed
  31. f.BackgroundTransparency = 1
  32. f.Font = "Legacy"
  33. f.FontSize = "Size14"
  34. f.Text = "Local prostatute that has 18567 stds"
  35. --------------------------------------------------------
  36. --hed.Face.TextureId = "http://www.roblox.com/asset/?id=381193106"
  37. hed.face.Texture = "rbxassetid://381193198"
  38. --------------------------------------------------------
  39. --[[h1 = Instance.new("Hat",workspace)
  40. m1 = Instance.new("Part",h1)
  41. --m1.Name="Hair1"
  42. m1.Name="Handle"
  43. m1.Transparency=0
  44. m1.Position= hed.Position
  45. hm1 = Instance.new("SpecialMesh",m1)
  46. hm1.MeshId = "http://www.roblox.com/asset/?id=74868480"
  47. hm1.TextureId = "http://www.roblox.com/asset/?id=75975464"
  48.  
  49. h2 = Instance.new("Hat",workspace)
  50. m2 = Instance.new("Part",h2)
  51. m2.Position= hed.Position
  52. --m2.Name="Hair2"
  53. m2.Name="Handle"
  54. m2.Transparency=0
  55. hm2 = Instance.new("SpecialMesh",m2)
  56. hm2.MeshId = "http://www.roblox.com/asset/?id=250264520"
  57. hm2.TextureId = "http://www.roblox.com/asset/?id=75975464"
  58. TI1 = Instance.new("TouchTransmitter",m1)
  59. TI2 = Instance.new("TouchTransmitter",m2)
  60. TI1.Name="TouchInterest"
  61. TI2.Name="TouchInterest" ]]
  62. --------------------------------------------------------
  63. c.Shirt:Destroy()
  64. c.Pants:Destroy()
  65.  
  66. s = Instance.new("Shirt",c)
  67. p = Instance.new("Pants",c)
  68. s.ShirtTemplate = "http://www.roblox.com/asset/?id=344089667"
  69. p.PantsTemplate = "http://www.roblox.com/asset/?id=344084364"
  70. s.Name="Shirt"
  71. p.Name="Pants"
  72. --------------------------------------------------------
  73.  
  74. local h = Instance.new("Part",c)
  75. h.Name = "Trident"
  76. h.BrickColor = BrickColor.new(1,0,0)
  77. h.Material = "Neon"
  78. h.Size = Vector3.new(1,1,1)
  79. --h.Size = Vector3.new(2,1,10)
  80. h.Locked = true
  81. h.CanCollide = false
  82. h.Name = "Handle"
  83. local m = Instance.new("SpecialMesh",h)
  84. m.MeshType = "FileMesh"
  85. m.VertexColor = Vector3.new(5,0,0)
  86. --m.Scale = Vector3.new(1.5,2.3,2.3)
  87. m.Scale = Vector3.new(1.2,1.2,1.2)
  88. m.MeshId = "http://www.roblox.com/asset/?id=24712232"
  89. m.TextureId = "http://www.roblox.com/asset/?id=24712222"
  90. local hw = Instance.new("Motor",c.Torso)
  91. hw.Name = "HandleWeld"
  92. hw.Part0 = c.Torso
  93. hw.Part1 = h
  94. local l = Instance.new("PointLight",h)
  95. l.Range = 15
  96. l.Brightness = .6
  97. l.Color = Color3.new(1,0,0)
  98.  
  99. --------------------------------------------------------
  100.  
  101. Debounces = {
  102. FPS = 0;
  103. Mode = "Still";
  104. Debounce = false;
  105. wasCrit = false;
  106. SwitchingModes = false;
  107. attackNumber = 0;
  108. isAttacking = false;
  109. isMoving = false;
  110. isSprinting = false;
  111. isJumping = false;
  112. isPassive = false;
  113. isTyping = false;
  114. isAgg = false;
  115. musicOn = false;
  116. isCombo = 0;
  117. }
  118.  
  119. --------------------------------------------------------
  120.  
  121. numLerp = function(start, goal, alpha)
  122. return(((goal - start) * alpha) + start)
  123. end
  124.  
  125. CFrameZero = function()
  126. return CFrame.new(Vector3.new())
  127. end
  128.  
  129. rad = function(value)
  130. return math.rad(value)
  131. end
  132.  
  133. CFAngles = function(Vector)
  134. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  135. end
  136.  
  137. --------------------------------------------------------
  138.  
  139. AnimStat = {
  140. lerpSpeed = .2;
  141. }
  142.  
  143. Joints = {
  144. c.HumanoidRootPart.RootJoint;
  145. c.Torso.Neck;
  146. c.Torso['Left Shoulder'];
  147. c.Torso['Right Shoulder'];
  148. c.Torso['Left Hip'];
  149. c.Torso['Right Hip'];
  150. hw;
  151. }
  152.  
  153. JointTargets = {
  154. CFrameZero();
  155. CFrameZero();
  156. CFrameZero();
  157. CFrameZero();
  158. CFrameZero();
  159. CFrameZero();
  160. CFrameZero();
  161. }
  162.  
  163.  
  164. --------------------------------------------------------
  165.  
  166. prepareCharacter = function()
  167. local music = Instance.new("Sound",c)
  168. music.SoundId = "rbxassetid://320355925"
  169. music.Looped = true
  170. music.Volume = 1
  171. fight = music
  172. --[[local music2 = Instance.new("Sound",c)
  173. music2.SoundId = "rbxassetid://311086498"
  174. music2.Looped = true
  175. music2.Volume = 1 ]]
  176. pass = music
  177. human.WalkSpeed = 0
  178. human.JumpPower = 0
  179. human.Animator:Destroy()
  180. human.MaxHealth = 5500
  181. c.Animate:Destroy()
  182. wait()
  183. human.Health = 5500
  184. c.Health:Destroy()
  185. end
  186.  
  187. local meme = Instance.new("Sound",c)
  188. meme.SoundId = "rbxassetid://399570826"
  189. meme.Volume = 1
  190.  
  191. local meme1 = Instance.new("Sound",c)
  192. meme1.SoundId = "rbxassetid://354742306"
  193. meme1.Volume = 1
  194.  
  195. local meme2 = Instance.new("Sound",c)
  196. meme2.SoundId = "rbxassetid://320355925"
  197. meme2.Volume = 1
  198.  
  199. uinps.InputBegan:connect(function(InputObject)
  200. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  201. Debounces.isPassive = not Debounces.isPassive
  202. end
  203. end)
  204.  
  205. uinps.InputBegan:connect(function(InputObject)
  206. if InputObject.KeyCode == Enum.KeyCode.J and Debounces.isTyping == false then
  207. Debounces.isAgg = not Debounces.isAgg
  208. end
  209. end)
  210.  
  211. uinps.InputBegan:connect(function(InputObject)
  212. if InputObject.KeyCode == Enum.KeyCode.L and Debounces.isTyping == false then
  213. Debounces.musicOn = not Debounces.musicOn
  214. end
  215. end)
  216.  
  217. uinps.InputBegan:connect(function(InputObject)
  218. if InputObject.KeyCode == Enum.KeyCode.F and Debounces.isTyping == false then
  219. meme:Stop()
  220. meme1:Stop()
  221. meme2:Stop()
  222. end
  223. end)
  224.  
  225. uinps.InputBegan:connect(function(InputObject)
  226. if InputObject.KeyCode == Enum.KeyCode.G and Debounces.isTyping == false then
  227. meme:Play()
  228. end
  229. end)
  230.  
  231. uinps.InputBegan:connect(function(InputObject)
  232. if InputObject.KeyCode == Enum.KeyCode.H and Debounces.isTyping == false then
  233. meme1:Play()
  234. end
  235. end)
  236.  
  237. uinps.InputBegan:connect(function(InputObject)
  238. if InputObject.KeyCode == Enum.KeyCode.J and Debounces.isTyping == false then
  239. meme2:Play()
  240. end
  241. end)
  242.  
  243. setJointCFrames = function(table)
  244. for i = 1,#table do
  245. JointTargets[i] = table[i]
  246. end
  247. end
  248.  
  249. setLerp = function(speed)
  250. AnimStat.lerpSpeed = speed
  251. end
  252.  
  253. --------------------------------------------------------
  254.  
  255. prepareCharacter()
  256.  
  257. --------------------------------------------------------
  258.  
  259. spawn(function()
  260. local sine = 0
  261. while wait() do
  262. Debounces.isCombo = Debounces.isCombo + 1/30
  263. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isJumping == false and Debounces.Debounce == false then
  264. setLerp(.2)
  265. if Debounces.isPassive == true then
  266. setJointCFrames({
  267. CFrame.new(Vector3.new(0, -1 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(-5, 0, 0));
  268. CFrame.new(Vector3.new(0, 1.57 + math.sin(tick() * 1.8)/40, -0.18)) * CFAngles(Vector3.new(-13.501 + math.sin(tick() * 1.8 - 1) * 4, 3.663, 0.523));
  269. CFrame.new(Vector3.new(-1.5, 0.069 + math.sin(tick() * 1.8 + 1)/37, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 3.289));
  270. CFrame.new(Vector3.new(1.599, 0.109 + math.sin(tick() * 1.8 + 1)/37, 0.229)) * CFAngles(Vector3.new(-21.149, -1.645, 14.912));
  271. CFrame.new(Vector3.new(-0.63, -1.141 - math.sin(tick() * 1.8)/40, -0.64)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
  272. CFrame.new(Vector3.new(0.619, -1.20 - math.sin(tick() * 1.8)/40, 0.78)) * CFAngles(Vector3.new(-61.93, 0.603, 9.809));
  273. CFrame.new(Vector3.new(-0.776, -1.416 + math.sin(tick() * 1.8 + 1)/37, 1.533)) * CFAngles(Vector3.new(11.916 + math.sin(tick() * 1.8) * .4, 15.785, -177.784));
  274. })
  275. else
  276. setJointCFrames({
  277. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(0, 0, 0));
  278. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * 1.8)/60, -0.1)) * CFAngles(Vector3.new(-14.0871 + math.sin(tick() * 1.8 - 1) * 2, -4.516, -0.001));
  279. CFrame.new(Vector3.new(-1.5, -0.001 + math.sin(tick() * 1.8 + 1)/37, -0.4)) * CFAngles(Vector3.new(44.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
  280. CFrame.new(Vector3.new(1.599, 0.349 + math.sin(tick() * 1.8 + 1)/37, -0.401)) * CFAngles(Vector3.new(74.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
  281. CFrame.new(Vector3.new(-0.63, -2.02 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
  282. CFrame.new(Vector3.new(0.569, -2 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(2.093, -9.162, 2.619));
  283. CFrame.new(Vector3.new(-1.586, -0.686 + math.sin(tick() * 1.8 - .3)/20, -1.387)) * CFAngles(Vector3.new(89.739, -74.514, -165.774));
  284. })
  285. end
  286. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isJumping == false and Debounces.Debounce == false then
  287. sine = sine + math.rad(15)
  288. human.WalkSpeed = 15
  289. setLerp(.25)
  290. setJointCFrames({
  291. CFrame.new(Vector3.new(0, math.sin(sine * 2)/17, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  292. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * -1, -0.001));
  293. 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,math.sin(sine - 2) * 2 - 5));
  294. 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, math.sin(sine - 2) * 2 + 5));
  295. 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));
  296. 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));
  297. CFrame.new(Vector3.new(-1.176, -.516 + math.sin(-sine)/2.2, 1.133 + math.sin(-sine)/1.6)) * CFAngles(Vector3.new(-22.916 + math.sin(sine) * 23, 11.785, -177.784));
  298. })
  299. elseif Debounces.isJumping == true and Debounces.Debounce == false then
  300. setLerp(.14)
  301. setJointCFrames({
  302. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-8, 0, 0));
  303. CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-10.138, 3.687, 0.306));
  304. CFrame.new(Vector3.new(-1.23, 0.069, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 18.704));
  305. CFrame.new(Vector3.new(0.929, -0.031, -1.0912)) * CFAngles(Vector3.new(63.00, 13.85, -36.416));
  306. CFrame.new(Vector3.new(-0.63, -1.82, -0.74)) * CFAngles(Vector3.new(31.324, 3.424, -1.249));
  307. CFrame.new(Vector3.new(0.619, -1.331, 0.82)) * CFAngles(Vector3.new(-59.644, 0.998, 9.776));
  308. CFrame.new(Vector3.new(-1.466, -0.716, -1.287)) * CFAngles(Vector3.new(23.713, -68.012, 138.119));
  309. })
  310. end
  311. end
  312. end)
  313.  
  314. human.Changed:connect(function(prop)
  315. if prop == "MoveDirection" then
  316. if human.MoveDirection.magnitude > .02 then
  317. Debounces.isMoving = true
  318. else
  319. Debounces.isMoving = false
  320. end
  321. end
  322. end)
  323.  
  324. changeColor = function(mode)
  325. Debounces.SwitchingModes = true
  326. local color = Color3.new(0,0,0)
  327. if mode == "Still" then
  328. color = Color3.new(1,0,0)
  329. elseif mode == "Blue" then
  330. color = Color3.new(0,1,1)
  331. elseif mode == "Orange" then
  332. color = Color3.new(1,.5,1/5)
  333. elseif mode == "Heal" then
  334. color = Color3.new(.1,1,.1)
  335. end
  336. local s = Instance.new("Sound",h)
  337. s.SoundId = "rbxassetid://262249260"
  338. s.Volume = .5
  339. s.Pitch = math.random(95,105)/100
  340. s:Play()
  341. h.BrickColor = BrickColor.new(color)
  342. local e = Instance.new("Part",h)
  343. e.Size = Vector3.new(1,1,1)
  344. e.BrickColor = BrickColor.new(color)
  345. e.Anchored = false
  346. e.CanCollide = false
  347. local rm = Instance.new("SpecialMesh",e)
  348. rm.MeshType = "FileMesh"
  349. rm.MeshId = "rbxassetid://3270017"
  350. rm.Scale = Vector3.new(3.2,3.2,10)
  351. local ew = Instance.new("Weld",e)
  352. ew.Part0 = h
  353. ew.Part1 = e
  354. ew.C0 = CFrame.new(0,0,-5)
  355. l.Color = color
  356. local timer = 0
  357. while rs.RenderStepped:wait() do
  358. timer = timer + (1/60)/(Debounces.FPS/60)
  359. ew.C0 = ew.C0:lerp(CFrame.new(0,0,5),.08/(Debounces.FPS/60))
  360. e.Transparency = math.sin(ew.C0.p.z/2.5)
  361. if e.Transparency >= .95 then break end
  362. end
  363. e:Destroy()
  364. Debounces.Mode = mode
  365. Debounces.SwitchingModes = false
  366. wait(6)
  367. s:Destroy()
  368. end
  369.  
  370. uinps.InputBegan:connect(function(InputObj)
  371. if InputObj.KeyCode == Enum.KeyCode.Slash then
  372. local finishEvent = nil
  373. Debounces.isTyping = true
  374. finishEvent = uinps.InputBegan:connect(function(InputObj)
  375. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  376. Debounces.isTyping = false
  377. finishEvent:disconnect()
  378. end
  379. end)
  380. end
  381. end)
  382.  
  383. uinps.InputBegan:connect(function(InputObj)
  384. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  385. Debounces.isSprinting = true
  386. end
  387. end)
  388.  
  389. uinps.InputEnded:connect(function(InputObj)
  390. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  391. Debounces.isSprinting = false
  392. end
  393. end)
  394.  
  395. uinps.InputBegan:connect(function(InputObj)
  396. local e = nil
  397. local e2 = nil
  398. if InputObj.UserInputType == Enum.UserInputType.MouseButton1 and Debounces.isJumping == false and Debounces.isAttacking == false then
  399. if Debounces.isCombo <= critTime then
  400. Debounces.wasCrit = true
  401. else
  402. Debounces.wasCrit = false
  403. end
  404. Debounces.attackNumber = Debounces.attackNumber + 1
  405. Debounces.isCombo = 0
  406. Debounces.isAttacking = true
  407. setLerp(.23)
  408. local playAnim = (Debounces.attackNumber)%3 + 1
  409. local frame1 = {
  410. {
  411. CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  412. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-5.914, -13.989, -1.015));
  413. CFrame.new(Vector3.new(-1.021, 0.329, -0.75)) * CFAngles(Vector3.new(82.382, 11.798, 41.905));
  414. CFrame.new(Vector3.new(1.649, 0.169, 0.749)) * CFAngles(Vector3.new(-77.626, 16.244, 21.328));
  415. CFrame.new(Vector3.new(-0.63, -1.871, -0.38)) * CFAngles(Vector3.new(-0.91, 3.562, 0.768));
  416. CFrame.new(Vector3.new(0.619, -2.011, 0.31)) * CFAngles(Vector3.new(-26.804, -12.884, -1.817));
  417. CFrame.new(Vector3.new(-0.666, 0.294, -1.807)) * CFAngles(Vector3.new(-28.48, 70.346, -83.191));
  418. };
  419. {
  420. CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  421. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-14.957, 9.347, 1.86));
  422. CFrame.new(Vector3.new(-1.471, 0.239, -0.98)) * CFAngles(Vector3.new(50.874, -38.983, 14.74));
  423. CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-39.301, 20.922, 22.363));
  424. CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, 0.679));
  425. CFrame.new(Vector3.new(0.62, -2.011, 0.31)) * CFAngles(Vector3.new(-32.649, -15.017, 6.958));
  426. CFrame.new(Vector3.new(-0.646, -0.576, -1.597)) * CFAngles(Vector3.new(-73.07, 86.04, -17.928));
  427. };
  428. {
  429. CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  430. CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.767, 9.322, 0.967));
  431. CFrame.new(Vector3.new(-1.711, -0.051, -0.28)) * CFAngles(Vector3.new(26.633, -15.091, -28.888));
  432. CFrame.new(Vector3.new(1.789, 0.049, 0.109)) * CFAngles(Vector3.new(-10.529, 11.255, 19.434));
  433. CFrame.new(Vector3.new(-0.59, -2.02, -0.14)) * CFAngles(Vector3.new(1.445, 18.442, -3.585));
  434. CFrame.new(Vector3.new(0.799, -2.031, -0.04)) * CFAngles(Vector3.new(1.339, -21.187, 15.748));
  435. CFrame.new(Vector3.new(-1.966, -0.756, -1.117)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
  436. };
  437. }
  438. local frame2 = {
  439. {
  440. CFrame.new(Vector3.new(0, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  441. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-8.241, 17.447, -0.169));
  442. CFrame.new(Vector3.new(-1.581, -0.151, -0.17)) * CFAngles(Vector3.new(69.448, 37.134, -78.032));
  443. CFrame.new(Vector3.new(1.789, 0.049, 0.609)) * CFAngles(Vector3.new(-54.033, 14.452, 26.869));
  444. CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(-18.859, 3.152, 1.828));
  445. CFrame.new(Vector3.new(0.799, -2.011, 0.31)) * CFAngles(Vector3.new(-19.054, -13.009, 10.266));
  446. CFrame.new(Vector3.new(-2.386, -0.986, -2.477)) * CFAngles(Vector3.new(174.048, -0.303, 72.496));
  447. };
  448. {
  449. CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  450. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-9.096, 26.968, -0.885));
  451. CFrame.new(Vector3.new(-1.851, 0.239, -0.98)) * CFAngles(Vector3.new(46.523, -35.77, -44.203));
  452. CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-20.556, 7.594, 51.7));
  453. CFrame.new(Vector3.new(-0.9, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, -17.2));
  454. CFrame.new(Vector3.new(0.889, -2.071, 0.19)) * CFAngles(Vector3.new(-4.831, -22.678, 13.441));
  455. CFrame.new(Vector3.new(-3.286, -0.016, -3.167)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
  456. };
  457. {
  458. CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  459. CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.104, -7.695, 0.899));
  460. CFrame.new(Vector3.new(-1.191, 0.109, -0.86)) * CFAngles(Vector3.new(103.661, -62.452, 30.966));
  461. CFrame.new(Vector3.new(1.789, 0.049, 0.269)) * CFAngles(Vector3.new(-41.475, -0.825, 22.337));
  462. CFrame.new(Vector3.new(-0.69, -2.02, -0.14)) * CFAngles(Vector3.new(-6.435, 20.198, -11.958));
  463. CFrame.new(Vector3.new(0.71, -2.031, 0.25)) * CFAngles(Vector3.new(-31.549, -26.093, 2.237));
  464. CFrame.new(Vector3.new(0.504, -0.346, -2.117)) * CFAngles(Vector3.new(147.39, 81.207, 135.492));
  465. };
  466. }
  467. if Debounces.wasCrit == false then
  468. local e = Instance.new("Sound",c.Head)
  469. e.Volume = .5
  470. e.SoundId = "rbxassetid://145486992"
  471. e.Pitch = math.random(110,130)/100
  472. e:Play()
  473. setJointCFrames(frame1[playAnim])
  474. setLerp(.35)
  475. wait(.07)
  476. setJointCFrames(frame2[playAnim])
  477. wait(.05)
  478. else
  479. local e = Instance.new("Sound",c.Head)
  480. e.Volume = .5
  481. e.SoundId = "rbxassetid://181894961"
  482. e.Pitch = math.random(130,160)/100
  483. e:Play()
  484. local e2 = Instance.new("Sound",c.Head)
  485. e2.Volume = .6
  486. e2.Pitch = math.random(110,130)/100
  487. e2.SoundId = "rbxassetid://200632875"
  488. e2:Play()
  489. setLerp(.6)
  490. setJointCFrames(frame1[playAnim])
  491. setLerp(.7)
  492. wait(.02)
  493. setJointCFrames(frame2[playAnim])
  494. wait(.01)
  495. end
  496. Debounces.isAttacking = false
  497. end
  498. wait(5)
  499. if e then
  500. e:Destroy()
  501. e2:Destroy()
  502. end
  503. end)
  504.  
  505. uinps.InputBegan:connect(function(InputObj)
  506. if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isJumping == false and Debounces.Debounce == false then
  507. Debounces.Debounce = true
  508. human.WalkSpeed = 0
  509. setLerp(.2)
  510. setJointCFrames({
  511. CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
  512. CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
  513. CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
  514. CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
  515. CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
  516. CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
  517. CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
  518. })
  519. wait(.25)
  520. human.JumpPower = 60
  521. human.Jump = true
  522. Debounces.Debounce = false
  523. human.WalkSpeed = 35
  524. Debounces.isJumping = true
  525. wait()
  526. human.JumpPower = 0
  527. end
  528. end)
  529.  
  530. uinps.InputBegan:connect(function(InputObj)
  531. if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isSprinting == true and Debounces.isJumping == false and Debounces.Debounce == false then
  532. Debounces.Debounce = true
  533. human.WalkSpeed = 0
  534. setLerp(.2)
  535. setJointCFrames({
  536. CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
  537. CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
  538. CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
  539. CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
  540. CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
  541. CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
  542. CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
  543. })
  544. wait(.25)
  545. human.JumpPower = 150
  546. local e = Instance.new("Sound",c.Head)
  547. e.SoundId = "rbxassetid://180204603"
  548. e.Pitch = math.random(90,110)/100
  549. e.Volume = 1
  550. e:Play()
  551. local e2 = Instance.new("Part",h)
  552. e2.Size = Vector3.new(1,1,1)
  553. e2.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p - Vector3.new(0,3,0)) * CFrame.Angles(math.pi/2,0,0)
  554. e2.BrickColor = h.BrickColor
  555. e2.Anchored = true
  556. e2.CanCollide = false
  557. local rm = Instance.new("SpecialMesh",e2)
  558. rm.MeshType = "FileMesh"
  559. rm.MeshId = "rbxassetid://3270017"
  560. rm.Scale = Vector3.new(1,1,6)
  561. human.Jump = true
  562. Debounces.Debounce = false
  563. Debounces.isJumping = true
  564. human.WalkSpeed = 75
  565. wait()
  566. human.JumpPower = 0
  567. while rs.RenderStepped:wait() do
  568. rm.Scale = rm.Scale:lerp(Vector3.new(35,35,6),.15/(Debounces.FPS/60))
  569. e2.Transparency = numLerp(e2.Transparency,1,.15/(Debounces.FPS/60))
  570. if e2.Transparency >= .98 then
  571. break
  572. end
  573. end
  574. e2:Destroy()
  575. end
  576. end)
  577.  
  578. uinps.InputBegan:connect(function(InputObj)
  579. if Debounces.isTyping == false then
  580. if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.SwitchingModes == false then
  581. hed.face.Texture = "http://www.roblox.com/asset/?id=381193198"
  582. changeColor("Still")
  583. elseif InputObj.KeyCode == Enum.KeyCode.X and Debounces.SwitchingModes == false then
  584. hed.face.Texture = "http://www.roblox.com/asset/?id=381193138"
  585. changeColor("Blue")
  586. elseif InputObj.KeyCode == Enum.KeyCode.C and Debounces.SwitchingModes == false then
  587. hed.face.Texture = "http://www.roblox.com/asset/?id=381193138"
  588. changeColor("Orange")
  589. elseif InputObj.KeyCode == Enum.KeyCode.V and Debounces.SwitchingModes == false then
  590. hed.face.Texture = "http://www.roblox.com/asset/?id=381193106"
  591. changeColor("Heal")
  592. end
  593. end
  594. end)
  595.  
  596. h.Touched:connect(function(part)
  597. local h2 = part.Parent:FindFirstChild("Humanoid")
  598. if h2 then
  599. canAttack = "false"
  600. if Debounces.Mode == "Still" then canAttack = "true" end
  601. if Debounces.Mode == "Blue" and part.Velocity.magnitude > 2 then canAttack = "true" end
  602. if Debounces.Mode == "Orange" and part.Velocity.magnitude < 2 then canAttack = "true" end
  603. if Debounces.Mode == "Heal" then canAttack = "heal" end
  604. if canAttack == "true" then
  605. if Debounces.isCombo <= critTime then
  606. h2:TakeDamage(math.random(3,7))
  607. else
  608. h2:TakeDamage(math.random(1,4))
  609. end
  610. elseif canAttack == "heal" then
  611. h2:TakeDamage(math.random(-4,-1))
  612. end
  613. end
  614. end)
  615.  
  616. human.StateChanged:connect(function(os,ns)
  617. if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then
  618. Debounces.isJumping = false
  619. end
  620. end)
  621.  
  622. rs.RenderStepped:connect(function()
  623. Debounces.FPS = 1/rs.RenderStepped:wait()
  624. if Debounces.isAgg == true then
  625. fight:Resume()
  626. pass:Pause()
  627. else
  628. fight:Pause()
  629. pass:Resume()
  630. end
  631. if Debounces.musicOn == true then
  632. pass.Volume = 1
  633. fight.Volume = 1
  634. else
  635. pass.Volume = 0
  636. fight.Volume = 0
  637. end
  638. l.Range = math.sin(tick() * 1.8) * 8 + 5
  639. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  640. for i = 1,#Joints do
  641. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  642. Joints[i].C1 = CFrameZero()
  643. end
  644. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement