Advertisement
Vladha

Untitled

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