Advertisement
SCP-682-A

FE REAL SANS XD

Jan 12th, 2019
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.42 KB | None | 0 0
  1. print("Original script made by someone else, i just edited it with actual Sonic sounds. -- Velo")
  2. wait()
  3. thing = 0
  4. LoudVolume = false
  5. Submerged = false
  6. Music = true
  7. script.Name = "SANIIIIC"
  8. Player = game.Players.LocalPlayer
  9. c = game.Players.LocalPlayer.Character
  10. Head = c.Head
  11. Humanoid = c.Humanoid
  12. anim = c.Humanoid.Animator
  13. rage = false
  14. p = game.Players.LocalPlayer
  15. Music = false
  16. anim = Humanoid.Animator
  17. local Effects = {}
  18. attack = false
  19. local attacking = false
  20. vt = Vector3.new
  21. bc = BrickColor.new
  22. br = BrickColor.random
  23. it = Instance.new
  24. cf = CFrame.new
  25. euler = CFrame.fromEulerAnglesXYZ
  26. angles = CFrame.Angles
  27. matr = math.random
  28. mouse = Player:GetMouse()
  29.  
  30. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  31. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  32. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  34. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  35. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  36. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  37. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  38. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  39. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  40. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  41. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  42. RS = c.Torso:FindFirstChild("Right Shoulder")
  43. LS = c.Torso:FindFirstChild("Left Shoulder")
  44. RH = c.Torso:FindFirstChild("Right Hip")
  45. LH = c.Torso:FindFirstChild("Left Hip")
  46. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  47. N = c.Torso:FindFirstChild("Neck")
  48. cf = CFrame.new
  49. ang = CFrame.Angles
  50. rd = math.rad
  51. rd2 = math.random
  52.  
  53. --[[mainShirt = c.Shirt
  54. mainPants = c.Pants
  55. mainBColors = c["Body Colors"]
  56. mainShirt.ShirtTemplate = "rbxassetid://769869277"
  57. mainPants.PantsTemplate = "rbxassetid://805486769"
  58. mainBColors.HeadColor = BrickColor.new("Pastel brown")
  59. mainBColors.LeftArmColor = BrickColor.new("Pastel brown")
  60. mainBColors.LeftLegColor = BrickColor.new("Pastel brown")
  61. mainBColors.RightArmColor = BrickColor.new("Pastel brown")
  62. mainBColors.RightLegColor = BrickColor.new("Pastel brown")
  63. mainBColors.TorsoColor = BrickColor.new("Pastel brown")]]
  64. function swait(num)
  65. if num==0 or num==nil then
  66. game:service'RunService'.Heartbeat:wait(0)
  67. else
  68. for i=0,num do
  69. game:service'RunService'.Heartbeat:wait(0)
  70. end
  71. end
  72. end
  73.  
  74. function lerpz(joint, prop, cfrmz, alp)
  75. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  76. end
  77. function resetlerp()
  78. RJ.C0 = RJC0
  79. RJ.C1 = RJC1
  80. N.C0 = NC0
  81. N.C1 = NC1
  82. RS.C0 = RSC0
  83. RS.C1 = RSC1
  84. LS.C0 = LSC0
  85. LS.C1 = LSC1
  86. RH.C0 = RHC0
  87. RH.C1 = RHC1
  88. LH.C0 = LHC0
  89. LH.C1 = LHC1
  90. end
  91.  
  92. local S2 = Instance.new("Sound",c.HumanoidRootPart)S2.SoundId = "rbxassetid://" S2.Volume = 0 S2.PlaybackSpeed = 0 S2.Looped = true S2:Play()
  93. c.Head.face:remove()
  94.  
  95. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
  96. local att1 = Instance.new("Attachment", c["Right Leg"])
  97. att1.Name = "att1"
  98. att1.Position = Vector3.new(0.5, 1, 0.5)
  99. local att2 = Instance.new("Attachment", c["Right Leg"])
  100. att2.Name = "att2"
  101. att2.Position = Vector3.new(-0.5, 1, 0.5)
  102. local att3 = Instance.new("Attachment", c["Right Leg"])
  103. att3.Name = "att3"
  104. att3.Position = Vector3.new(0.5, -1, 0.5)
  105. local att4 = Instance.new("Attachment", c["Right Leg"])
  106. att4.Name = "att4"
  107. att4.Position = Vector3.new(-0.5, -1, 0.5)
  108.  
  109. local attt1 = Instance.new("Attachment", c["Left Leg"])
  110. attt1.Name = "att1"
  111. attt1.Position = Vector3.new(0.5, 1, 0.5)
  112. local attt2 = Instance.new("Attachment", c["Left Leg"])
  113. attt2.Name = "att2"
  114. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  115. local attt3 = Instance.new("Attachment", c["Left Leg"])
  116. attt3.Name = "att3"
  117. attt3.Position = Vector3.new(0.5, -1, 0.5)
  118. local attt4 = Instance.new("Attachment", c["Left Leg"])
  119. attt4.Name = "att4"
  120. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  121.  
  122. local trailtop1 = Instance.new("Trail", c["Right Leg"])
  123. trailtop1.Enabled = true
  124. trailtop1.Texture = "rbxassetid://16607923"
  125. trailtop1.Name = "toptrail"
  126. trailtop1.MinLength = 0
  127. trailtop1.Lifetime = 0.1
  128.  
  129. trailtop1.Color = ColorSequence.new(ColorArray)
  130.  
  131. trailtop1.Attachment0 = att1
  132. trailtop1.Attachment1 = att2
  133. trailtop1.Transparency = NumberSequence.new({
  134. NumberSequenceKeypoint.new(0, 0.5, 0),
  135. NumberSequenceKeypoint.new(1, 1, 0)
  136. })
  137.  
  138. local trailbot1 = Instance.new("Trail", c["Right Leg"])
  139. trailbot1.Enabled = true
  140. trailbot1.Texture = "rbxassetid://16607923"
  141. trailbot1.Name = "bottrail"
  142. trailbot1.MinLength = 0
  143. trailbot1.Lifetime = 0.1
  144.  
  145. trailbot1.Color = ColorSequence.new(ColorArray)
  146.  
  147. trailbot1.Attachment0 = att3
  148. trailbot1.Attachment1 = att4
  149. trailbot1.Transparency = NumberSequence.new({
  150. NumberSequenceKeypoint.new(0, 0.5, 0),
  151. NumberSequenceKeypoint.new(1, 1, 0)
  152. })
  153.  
  154. local trailside1 = Instance.new("Trail", c["Right Leg"])
  155. trailside1.Enabled = true
  156. trailside1.Texture = "rbxassetid://16607923"
  157. trailside1.Name = "sidetrail1"
  158. trailside1.MinLength = 0
  159. trailside1.Lifetime = 0.1
  160.  
  161. trailside1.Color = ColorSequence.new(ColorArray)
  162.  
  163. trailside1.Attachment0 = att1
  164. trailside1.Attachment1 = att3
  165. trailside1.Transparency = NumberSequence.new({
  166. NumberSequenceKeypoint.new(0, 0.5, 0),
  167. NumberSequenceKeypoint.new(1, 1, 0)
  168. })
  169.  
  170. local trailside2 = Instance.new("Trail", c["Right Leg"])
  171. trailside2.Enabled = true
  172. trailside2.Texture = "rbxassetid://16607923"
  173. trailside2.Name = "sidetrail2"
  174. trailside2.MinLength = 0
  175. trailside2.Lifetime = 0.1
  176. spawn(function()
  177. while true do wait()
  178. trailside2.Color = ColorSequence.new(ColorArray)
  179. end
  180. end)
  181. trailside2.Attachment0 = att2
  182. trailside2.Attachment1 = att4
  183. trailside2.Transparency = NumberSequence.new({
  184. NumberSequenceKeypoint.new(0, 0.5, 0),
  185. NumberSequenceKeypoint.new(1, 1, 0)
  186. })
  187.  
  188.  
  189. local trailtop12 = Instance.new("Trail", c["Left Leg"])
  190. trailtop12.Enabled = true
  191. trailtop12.Texture = "rbxassetid://16607923"
  192. trailtop12.Name = "toptrail"
  193. trailtop12.MinLength = 0
  194. trailtop12.Lifetime = 0.1
  195. spawn(function()
  196. while true do wait()
  197. trailtop12.Color = ColorSequence.new(ColorArray)
  198. end
  199. end)
  200. trailtop12.Attachment0 = attt1
  201. trailtop12.Attachment1 = attt2
  202. trailtop12.Transparency = NumberSequence.new({
  203. NumberSequenceKeypoint.new(0, 0.5, 0),
  204. NumberSequenceKeypoint.new(1, 1, 0)
  205. })
  206.  
  207. local trailbot2 = Instance.new("Trail", c["Left Leg"])
  208. trailbot2.Enabled = true
  209. trailbot2.Texture = "rbxassetid://16607923"
  210. trailbot2.Name = "bottrail"
  211. trailbot2.MinLength = 0
  212. trailbot2.Lifetime = 0.1
  213.  
  214. trailbot2.Color = ColorSequence.new(ColorArray)
  215.  
  216. trailbot2.Attachment0 = attt3
  217. trailbot2.Attachment1 = attt4
  218. trailbot2.Transparency = NumberSequence.new({
  219. NumberSequenceKeypoint.new(0, 0.5, 0),
  220. NumberSequenceKeypoint.new(1, 1, 0)
  221. })
  222.  
  223. local trailside12 = Instance.new("Trail", c["Left Leg"])
  224. trailside12.Enabled = true
  225. trailside12.Texture = "rbxassetid://16607923"
  226. trailside12.Name = "sidetrail1"
  227. trailside12.MinLength = 0
  228. trailside12.Lifetime = 0.1
  229.  
  230. trailside12.Color = ColorSequence.new(ColorArray)
  231.  
  232. trailside12.Attachment0 = attt1
  233. trailside12.Attachment1 = attt3
  234. trailside12.Transparency = NumberSequence.new({
  235. NumberSequenceKeypoint.new(0, 0.5, 0),
  236. NumberSequenceKeypoint.new(1, 1, 0)
  237. })
  238.  
  239. local trailside22 = Instance.new("Trail", c["Left Leg"])
  240. trailside22.Enabled = true
  241. trailside22.Texture = "rbxassetid://16607923"
  242. trailside22.Name = "sidetrail2"
  243. trailside22.MinLength = 0
  244. trailside22.Lifetime = 0.1
  245.  
  246. trailside22.Color = ColorSequence.new(ColorArray)
  247.  
  248. trailside22.Attachment0 = attt2
  249. trailside22.Attachment1 = attt4
  250. trailside22.Transparency = NumberSequence.new({
  251. NumberSequenceKeypoint.new(0, 0.5, 0),
  252. NumberSequenceKeypoint.new(1, 1, 0)
  253. })
  254.  
  255.  
  256. local att1 = Instance.new("Attachment", c["Right Arm"])
  257. att1.Name = "att1"
  258. att1.Position = Vector3.new(0.5, 1, 0.5)
  259. local att2 = Instance.new("Attachment", c["Right Arm"])
  260. att2.Name = "att2"
  261. att2.Position = Vector3.new(-0.5, 1, 0.5)
  262. local att3 = Instance.new("Attachment", c["Right Arm"])
  263. att3.Name = "att3"
  264. att3.Position = Vector3.new(0.5, -1, 0.5)
  265. local att4 = Instance.new("Attachment", c["Right Arm"])
  266. att4.Name = "att4"
  267. att4.Position = Vector3.new(-0.5, -1, 0.5)
  268.  
  269. local attt1 = Instance.new("Attachment", c["Left Arm"])
  270. attt1.Name = "att1"
  271. attt1.Position = Vector3.new(0.5, 1, 0.5)
  272. local attt2 = Instance.new("Attachment", c["Left Arm"])
  273. attt2.Name = "att2"
  274. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  275. local attt3 = Instance.new("Attachment", c["Left Arm"])
  276. attt3.Name = "att3"
  277. attt3.Position = Vector3.new(0.5, -1, 0.5)
  278. local attt4 = Instance.new("Attachment", c["Left Arm"])
  279. attt4.Name = "att4"
  280. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  281.  
  282. local trailtop1 = Instance.new("Trail", c["Right Arm"])
  283. trailtop1.Enabled = true
  284. trailtop1.Texture = "rbxassetid://16607923"
  285. trailtop1.Name = "toptrail"
  286. trailtop1.MinLength = 0
  287. trailtop1.Lifetime = 0.1
  288.  
  289. trailtop1.Color = ColorSequence.new(ColorArray)
  290.  
  291. trailtop1.Attachment0 = att1
  292. trailtop1.Attachment1 = att2
  293. trailtop1.Transparency = NumberSequence.new({
  294. NumberSequenceKeypoint.new(0, 0.5, 0),
  295. NumberSequenceKeypoint.new(1, 1, 0)
  296. })
  297.  
  298. local trailbot1 = Instance.new("Trail", c["Right Arm"])
  299. trailbot1.Enabled = true
  300. trailbot1.Texture = "rbxassetid://16607923"
  301. trailbot1.Name = "bottrail"
  302. trailbot1.MinLength = 0
  303. trailbot1.Lifetime = 0.1
  304. spawn(function()
  305. while true do wait()
  306. trailbot1.Color = ColorSequence.new(ColorArray)
  307. end
  308. end)
  309. trailbot1.Attachment0 = att3
  310. trailbot1.Attachment1 = att4
  311. trailbot1.Transparency = NumberSequence.new({
  312. NumberSequenceKeypoint.new(0, 0.5, 0),
  313. NumberSequenceKeypoint.new(1, 1, 0)
  314. })
  315.  
  316. local trailside1 = Instance.new("Trail", c["Right Arm"])
  317. trailside1.Enabled = true
  318. trailside1.Texture = "rbxassetid://16607923"
  319. trailside1.Name = "sidetrail1"
  320. trailside1.MinLength = 0
  321. trailside1.Lifetime = 0.1
  322.  
  323. trailside1.Color = ColorSequence.new(ColorArray)
  324.  
  325. trailside1.Attachment0 = att1
  326. trailside1.Attachment1 = att3
  327. trailside1.Transparency = NumberSequence.new({
  328. NumberSequenceKeypoint.new(0, 0.5, 0),
  329. NumberSequenceKeypoint.new(1, 1, 0)
  330. })
  331.  
  332. local trailside2 = Instance.new("Trail", c["Right Arm"])
  333. trailside2.Enabled = true
  334. trailside2.Texture = "rbxassetid://16607923"
  335. trailside2.Name = "sidetrail2"
  336. trailside2.MinLength = 0
  337. trailside2.Lifetime = 0.1
  338.  
  339. trailside2.Color = ColorSequence.new(ColorArray)
  340.  
  341. trailside2.Attachment0 = att2
  342. trailside2.Attachment1 = att4
  343. trailside2.Transparency = NumberSequence.new({
  344. NumberSequenceKeypoint.new(0, 0.5, 0),
  345. NumberSequenceKeypoint.new(1, 1, 0)
  346. })
  347.  
  348.  
  349. local trailtop12 = Instance.new("Trail", c["Left Arm"])
  350. trailtop12.Enabled = true
  351. trailtop12.Texture = "rbxassetid://16607923"
  352. trailtop12.Name = "toptrail"
  353. trailtop12.MinLength = 0
  354. trailtop12.Lifetime = 0.1
  355.  
  356. trailtop12.Color = ColorSequence.new(ColorArray)
  357.  
  358. trailtop12.Attachment0 = attt1
  359. trailtop12.Attachment1 = attt2
  360. trailtop12.Transparency = NumberSequence.new({
  361. NumberSequenceKeypoint.new(0, 0.5, 0),
  362. NumberSequenceKeypoint.new(1, 1, 0)
  363. })
  364.  
  365. local trailbot2 = Instance.new("Trail", c["Left Arm"])
  366. trailbot2.Enabled = true
  367. trailbot2.Texture = "rbxassetid://16607923"
  368. trailbot2.Name = "bottrail"
  369. trailbot2.MinLength = 0
  370. trailbot2.Lifetime = 0.1
  371.  
  372. trailbot2.Color = ColorSequence.new(ColorArray)
  373.  
  374. trailbot2.Attachment0 = attt3
  375. trailbot2.Attachment1 = attt4
  376. trailbot2.Transparency = NumberSequence.new({
  377. NumberSequenceKeypoint.new(0, 0.5, 0),
  378. NumberSequenceKeypoint.new(1, 1, 0)
  379. })
  380.  
  381. local trailside12 = Instance.new("Trail", c["Left Arm"])
  382. trailside12.Enabled = true
  383. trailside12.Texture = "rbxassetid://16607923"
  384. trailside12.Name = "sidetrail1"
  385. trailside12.MinLength = 0
  386. trailside12.Lifetime = 0.1
  387.  
  388. trailside12.Color = ColorSequence.new(ColorArray)
  389.  
  390. trailside12.Attachment0 = attt1
  391. trailside12.Attachment1 = attt3
  392. trailside12.Transparency = NumberSequence.new({
  393. NumberSequenceKeypoint.new(0, 0.5, 0),
  394. NumberSequenceKeypoint.new(1, 1, 0)
  395. })
  396.  
  397. local trailside22 = Instance.new("Trail", c["Left Arm"])
  398. trailside22.Enabled = true
  399. trailside22.Texture = "rbxassetid://16607923"
  400. trailside22.Name = "sidetrail2"
  401. trailside22.MinLength = 0
  402. trailside22.Lifetime = 0.1
  403.  
  404. trailside22.Color = ColorSequence.new(ColorArray)
  405.  
  406. trailside22.Attachment0 = attt2
  407. trailside22.Attachment1 = attt4
  408. trailside22.Transparency = NumberSequence.new({
  409. NumberSequenceKeypoint.new(0, 0.5, 0),
  410. NumberSequenceKeypoint.new(1, 1, 0)
  411. })
  412.  
  413. local att1 = Instance.new("Attachment", c["Torso"])
  414. att1.Name = "att1"
  415. att1.Position = Vector3.new(1, 1, 0.5)
  416. local att2 = Instance.new("Attachment", c["Torso"])
  417. att2.Name = "att2"
  418. att2.Position = Vector3.new(-1, 1, 0.5)
  419. local att3 = Instance.new("Attachment", c["Torso"])
  420. att3.Name = "att3"
  421. att3.Position = Vector3.new(1, -1, 0.5)
  422. local att4 = Instance.new("Attachment", c["Torso"])
  423. att4.Name = "att4"
  424. att4.Position = Vector3.new(-1, -1, 0.5)
  425.  
  426. local attt1 = Instance.new("Attachment", c["Head"])
  427. attt1.Name = "att1"
  428. attt1.Position = Vector3.new(.55, .55, 0.025)
  429. local attt2 = Instance.new("Attachment", c["Head"])
  430. attt2.Name = "att2"
  431. attt2.Position = Vector3.new(-.55, .55, 0.025)
  432. local attt3 = Instance.new("Attachment", c["Head"])
  433. attt3.Name = "att3"
  434. attt3.Position = Vector3.new(.55, -.5, 0.025)
  435. local attt4 = Instance.new("Attachment", c["Head"])
  436. attt4.Name = "att4"
  437. attt4.Position = Vector3.new(-.55, -.5, 0.025)
  438. local trailtop1 = Instance.new("Trail", c["Torso"])
  439. trailtop1.Enabled = true
  440. trailtop1.Texture = "rbxassetid://16607923"
  441. trailtop1.Name = "toptrail"
  442. trailtop1.MinLength = 0
  443. trailtop1.Lifetime = 0.1
  444.  
  445. trailtop1.Color = ColorSequence.new(ColorArray)
  446.  
  447. trailtop1.Attachment0 = att1
  448. trailtop1.Attachment1 = att2
  449. trailtop1.Transparency = NumberSequence.new({
  450. NumberSequenceKeypoint.new(0, 0.5, 0),
  451. NumberSequenceKeypoint.new(1, 1, 0)
  452. })
  453. local trailbot1 = Instance.new("Trail", c["Torso"])
  454. trailbot1.Enabled = true
  455. trailbot1.Texture = "rbxassetid://16607923"
  456. trailbot1.Name = "bottrail"
  457. trailbot1.MinLength = 0
  458. trailbot1.Lifetime = 0.1
  459.  
  460. trailbot1.Color = ColorSequence.new(ColorArray)
  461.  
  462. trailbot1.Attachment0 = att3
  463. trailbot1.Attachment1 = att4
  464. trailbot1.Transparency = NumberSequence.new({
  465. NumberSequenceKeypoint.new(0, 0.5, 0),
  466. NumberSequenceKeypoint.new(1, 1, 0)
  467. })
  468. local trailside1 = Instance.new("Trail", c["Torso"])
  469. trailside1.Enabled = true
  470. trailside1.Texture = "rbxassetid://16607923"
  471. trailside1.Name = "sidetrail1"
  472. trailside1.MinLength = 0
  473. trailside1.Lifetime = 0.1
  474.  
  475. trailside1.Color = ColorSequence.new(ColorArray)
  476.  
  477. trailside1.Attachment0 = att1
  478. trailside1.Attachment1 = att3
  479. trailside1.Transparency = NumberSequence.new({
  480. NumberSequenceKeypoint.new(0, 0.5, 0),
  481. NumberSequenceKeypoint.new(1, 1, 0)
  482. })
  483. local trailside2 = Instance.new("Trail", c["Torso"])
  484. trailside2.Enabled = true
  485. trailside2.Texture = "rbxassetid://16607923"
  486. trailside2.Name = "sidetrail2"
  487. trailside2.MinLength = 0
  488. trailside2.Lifetime = 0.1
  489.  
  490. trailside2.Color = ColorSequence.new(ColorArray)
  491.  
  492. trailside2.Attachment0 = att2
  493. trailside2.Attachment1 = att4
  494. trailside2.Transparency = NumberSequence.new({
  495. NumberSequenceKeypoint.new(0, 0.5, 0),
  496. NumberSequenceKeypoint.new(1, 1, 0)
  497. })
  498. local trailtop12 = Instance.new("Trail", c["Head"])
  499. trailtop12.Enabled = true
  500. trailtop12.Texture = "rbxassetid://16607923"
  501. trailtop12.Name = "toptrail"
  502. trailtop12.MinLength = 0
  503. trailtop12.Lifetime = 0.1
  504.  
  505. trailtop12.Color = ColorSequence.new(ColorArray)
  506.  
  507. trailtop12.Attachment0 = attt1
  508. trailtop12.Attachment1 = attt2
  509. trailtop12.Transparency = NumberSequence.new({
  510. NumberSequenceKeypoint.new(0, 0.5, 0),
  511. NumberSequenceKeypoint.new(1, 1, 0)
  512. })
  513. local trailbot2 = Instance.new("Trail", c["Head"])
  514. trailbot2.Enabled = true
  515. trailbot2.Texture = "rbxassetid://16607923"
  516. trailbot2.Name = "bottrail"
  517. trailbot2.MinLength = 0
  518. trailbot2.Lifetime = 0.1
  519.  
  520. trailbot2.Color = ColorSequence.new(ColorArray)
  521.  
  522. trailbot2.Attachment0 = attt3
  523. trailbot2.Attachment1 = attt4
  524. trailbot2.Transparency = NumberSequence.new({
  525. NumberSequenceKeypoint.new(0, 0.5, 0),
  526. NumberSequenceKeypoint.new(1, 1, 0)
  527. })
  528. local trailside12 = Instance.new("Trail", c["Head"])
  529. trailside12.Enabled = true
  530. trailside12.Texture = "rbxassetid://16607923"
  531. trailside12.Name = "sidetrail1"
  532. trailside12.MinLength = 0
  533. trailside12.Lifetime = 0.1
  534.  
  535. trailside12.Color = ColorSequence.new(ColorArray)
  536.  
  537. trailside12.Attachment0 = attt1
  538. trailside12.Attachment1 = attt3
  539. trailside12.Transparency = NumberSequence.new({
  540. NumberSequenceKeypoint.new(0, 0.5, 0),
  541. NumberSequenceKeypoint.new(1, 1, 0)
  542. })
  543. local trailside22 = Instance.new("Trail", c["Head"])
  544. trailside22.Enabled = true
  545. trailside22.Texture = "rbxassetid://16607923"
  546. trailside22.Name = "sidetrail2"
  547. trailside22.MinLength = 0
  548. trailside22.Lifetime = 0.1
  549.  
  550. trailside22.Color = ColorSequence.new(ColorArray)
  551.  
  552. trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4
  553. trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
  554.  
  555. Sped = 0
  556.  
  557. function ragplayer(cactus)
  558. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://131026421" S.Volume = 2 S:Play()
  559. cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01
  560. if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
  561. cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
  562. makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder")
  563. maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0))
  564. end
  565. if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
  566. cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
  567. makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
  568. maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
  569. end
  570. if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
  571. cactus.Torso:FindFirstChild("Right Hip"):Destroy()
  572. makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
  573. maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
  574. end
  575. if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
  576. cactus.Torso:FindFirstChild("Left Hip"):Destroy()
  577. makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
  578. maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
  579. end
  580. cactus.Parent = game.Workspace game.Debris:AddItem(cactus,15)
  581. end
  582. function makegloo(paren, co, ci, parto, parti, nam) local gloo = Instance.new("Glue") gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  583.  
  584. function maketouchy(parent, limb, cframe) local pr = Instance.new("Part") pr.Name = "touchy" pr.Size = Vector3.new(1, 1, 1) pr.Transparency = 1 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) pr.CanCollide = true pr.Anchored = false pr.Parent = parent local w = Instance.new("Weld") w.Part0 = pr w.Part1 = limb w.C0 = cframe w.Parent = pr end
  585.  
  586. local hitz = false
  587. c.HumanoidRootPart.Touched:connect(function(Hit)
  588. if thing >= 100 then
  589. if hitz == false then hitz = true
  590. ragplayer(c) local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://386946017" S.Volume = 6 S:Play()
  591. wait(15)
  592. end
  593. end
  594. end)
  595.  
  596. function Spin()
  597. attack = true
  598. while attack == true do Sped = Sped + 0.25
  599. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(Sped*Sped*5), rd(0), rd(0)), 1)
  600. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  601. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  602. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  603. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  604. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  605. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  606. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  607. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  608. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  609. swait()
  610. end
  611. end
  612.  
  613. SanicScreams = {498608864,156820723}
  614.  
  615. mouse.KeyDown:connect(function(key)
  616. if attack == true then return end
  617. if key == "q" then
  618. Spin()
  619. end
  620. if key == "e" then
  621. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://1034903243" S.Volume = 10 S:Play()
  622. wait(1.25)
  623. local Sanic = SanicScreams[math.random(1,#SanicScreams)]
  624. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://"..Sanic S.Volume = 10 S:Play()
  625. spawn(function()
  626. local Sp = Instance.new("Part",game.Workspace)Sp.BrickColor = BrickColor.new("Cyan")Sp.Material = "Neon" Sp.Size = Vector3.new(1,1,1) Sp.Anchored = true Sp.CanCollide = false
  627. local SPM = Instance.new("SpecialMesh",Sp)SPM.MeshType = "Sphere" Sp.CFrame = c.HumanoidRootPart.CFrame
  628. for i = 1,25 do
  629. SPM.Scale = SPM.Scale + Vector3.new(4,4,4)
  630. Sp.Transparency = Sp.Transparency + 1/25
  631. swait()
  632. end
  633. end)
  634. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://214444596" S.Volume = 10 S:Play()
  635. Sped = 10000000000
  636. end
  637. end)
  638.  
  639. mouse.KeyUp:connect(function(key)
  640. if key == "q" then
  641. attack = false
  642. end
  643. end)
  644.  
  645. local P = Instance.new("Part",game.Workspace.CurrentCamera)P.CanCollide = true P.Anchored = true P.Size = Vector3.new(15,1,15)
  646. P.CFrame = CFrame.new(c.HumanoidRootPart.Position)*CFrame.new(0,-3.5,0)P.Transparency = 0 P.Name = "FlightPart"
  647. P.BrickColor = BrickColor.new("Dark green") P.TopSurface = "Smooth" P.Material = "Grass"
  648. spawn(function()
  649. while true do
  650. P.CFrame = CFrame.new(c.HumanoidRootPart.Position.X,-0.6,c.HumanoidRootPart.Position.Z)
  651. swait()
  652. end
  653. end)
  654.  
  655. anim.Parent = nil
  656. sine = 0
  657.  
  658. game:GetService("RunService").RenderStepped:connect(function()
  659. if attack == false then
  660. thing = (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  661. game.Workspace.CurrentCamera.FieldOfView = 70+thing/100
  662. if c.HumanoidRootPart.Velocity.Y > 1 then sine = sine + 1
  663. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(sine*thing*0.75), rd(0), rd(0)), 1)
  664. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  665. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  666. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  667. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  668. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  669. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  670. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  671. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  672. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  673. elseif (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 then
  674. sine = sine + 1 Sped = Sped + 0.1
  675. if thing <= 200 then
  676. if S2.PlaybackSpeed >= 1 then
  677. S2.PlaybackSpeed = 1
  678. else
  679. S2.PlaybackSpeed = thing/80
  680. end
  681. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  682. S2.Volume = thing/20
  683. end
  684. if thing <= 200 then
  685. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  686. S2.Volume = thing/20
  687. else
  688. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  689. end
  690. if thing <= 100 then
  691. for i,v in pairs(c:children()) do
  692. if v.ClassName == "Part" then
  693. for i,v2 in pairs(v:children()) do
  694. if v2.ClassName == "Trail" then
  695. v2.Enabled = false
  696. v2.LightEmission = 1
  697. end
  698. end
  699. end
  700. end
  701. else
  702. for i,v in pairs(c:children()) do
  703. if v.ClassName == "Part" then
  704. for i,v2 in pairs(v:children()) do
  705. if v2.ClassName == "Trail" then
  706. v2.Lifetime = 2
  707. v2.Enabled = true
  708. end
  709. end
  710. end
  711. end
  712. end
  713. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(thing/7), rd(0), rd(0)), 1)
  714. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  715. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-thing/1.5)), 1)
  716. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  717. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(thing/1.5)), 1)
  718. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  719. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  720. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  721. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  722. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  723. else c.Humanoid.WalkSpeed = 16 Sped = 0 sine = sine + 1 S2.Volume = 0 S2.PlaybackSpeed = 0
  724. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  725. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  726. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  727. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  728. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  729. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  730. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  731. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  732. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  733. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  734. end
  735. for i,v in pairs (c:children()) do
  736. if v.ClassName == "Accessory" then
  737. for i,v2 in pairs (v:children()) do
  738. if v2.ClassName == "Part" then
  739. v2.Anchored = false
  740. end
  741. end
  742. end
  743. for i,v in pairs (c:children()) do
  744. if v.ClassName == "Part" then
  745. v.Anchored = false
  746. end
  747. end
  748. end
  749. end
  750. end)
  751. -- BurnLegion strikes again!
  752. -- wongxd, this is why you DON'T goto Voidacity's
  753. -- SLPM has been absent, so I've taken it upon myself to make something
  754.  
  755. --------------------------------------------------------
  756.  
  757. pls = game:GetService'Players'
  758. rs = game:GetService'RunService'
  759. uinps = game:GetService'UserInputService'
  760. lp = pls.LocalPlayer
  761. mouse = lp:GetMouse()
  762. c = lp.Character
  763. human = c.Humanoid
  764. human.MaxHealth = 50
  765. wait()
  766. human.Health = 50
  767. c.Health:Destroy()
  768.  
  769. --------------------------------------------------------
  770.  
  771. Debounces = {
  772. AnimationCycles = 0;
  773. FPS = 0;
  774. scalingDamage = false;
  775. damageLevel = 0;
  776. attackNumber = 0;
  777. isAttacking = false;
  778. isMoving = false;
  779. isSprinting = false;
  780. isBoosting = false;
  781. isPassive = false;
  782. isTyping = false;
  783. }
  784.  
  785. --------------------------------------------------------
  786.  
  787. numLerp = function(start, goal, alpha)
  788. return(((goal - start) * alpha) + start)
  789. end
  790.  
  791. CFrameZero = function()
  792. return CFrame.new(Vector3.new())
  793. end
  794.  
  795. rad = function(value)
  796. return math.rad(value)
  797. end
  798.  
  799. CFAngles = function(Vector)
  800. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  801. end
  802.  
  803. --------------------------------------------------------
  804.  
  805. AnimStat = {
  806. lerpSpeed = .2;
  807. lerpSpeed2 = .35;
  808. lerpTween = 0;
  809. }
  810.  
  811. Joints = {
  812. c.HumanoidRootPart.RootJoint;
  813. c.Torso.Neck;
  814. c.Torso['Left Shoulder'];
  815. c.Torso['Right Shoulder'];
  816. c.Torso['Left Hip'];
  817. c.Torso['Right Hip'];
  818. }
  819.  
  820. JointTargets = {
  821. CFrameZero();
  822. CFrameZero();
  823. CFrameZero();
  824. CFrameZero();
  825. CFrameZero();
  826. CFrameZero();
  827. }
  828.  
  829. --------------------------------------------------------
  830.  
  831. BodyColors = {
  832. HeadColor = BrickColor.new("Institutional white");
  833. LeftArmColor = BrickColor.new("Institutional white");
  834. RightArmColor = BrickColor.new("Institutional white");
  835. LeftLegColor = BrickColor.new("Institutional white");
  836. RightLegColor = BrickColor.new("Institutional white");
  837. TorsoColor = BrickColor.new("Mid gray");
  838. }
  839.  
  840. Customs = {
  841. Face = "http://www.roblox.com/asset/?id=8560915";
  842. Shirt = "http://www.roblox.com/asset/?id=334781688";
  843. Pants = "http://www.roblox.com/asset/?id=335237283";
  844. }
  845.  
  846. --------------------------------------------------------
  847.  
  848. prepareCharacter = function()
  849. local transPoints = {
  850. NumberSequenceKeypoint.new(0,.819,.0375),
  851. NumberSequenceKeypoint.new(.207,.594,.0187),
  852. NumberSequenceKeypoint.new(.4,.55,.031),
  853. NumberSequenceKeypoint.new(.57,.619,.05),
  854. NumberSequenceKeypoint.new(.76,.8,.0375),
  855. NumberSequenceKeypoint.new(1,1,0),
  856. }
  857. local sizePoints = {
  858. NumberSequenceKeypoint.new(0,.687,0),
  859. NumberSequenceKeypoint.new(.111,.875,0),
  860. NumberSequenceKeypoint.new(.327,1.19,0),
  861. NumberSequenceKeypoint.new(.646,1.56,0),
  862. NumberSequenceKeypoint.new(.805,1.37,0),
  863. NumberSequenceKeypoint.new(.905,1.06,0),
  864. NumberSequenceKeypoint.new(.968,.938,0),
  865. NumberSequenceKeypoint.new(.984,1.13,0),
  866. NumberSequenceKeypoint.new(1,1.62,0),
  867. }
  868. local Size = NumberSequence.new(sizePoints)
  869. local Transparency = NumberSequence.new(transPoints)
  870. rayModel = Instance.new("Model",c)
  871. efxBlock = Instance.new("Part",c)
  872. efxBlock.BrickColor = BrickColor.new("Cyan")
  873. efxBlock.Material = "Neon"
  874. efxBlock.FormFactor = "Custom"
  875. efxBlock.Transparency = .3
  876. efxBlock.Size = Vector3.new(.3,.3,.3)
  877. local mesh = Instance.new("SpecialMesh",efxBlock)
  878. mesh.MeshType = Enum.MeshType.Sphere
  879. mesh.Scale = Vector3.new(1,1,1)
  880. light = Instance.new("PointLight",c.Head)
  881. light.Range = 10
  882. light.Color = Color3.new(0,200/255,1)
  883. light.Shadows = false
  884. local particles = Instance.new("ParticleEmitter",efxBlock)
  885. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  886. particles.LightEmission = .95
  887. particles.Size = Size
  888. particles.Name = "Fire"
  889. particles.Transparency = Transparency
  890. particles.LockedToPart = true
  891. particles.VelocityInheritance = .5
  892. particles.LockedToPart = true
  893. particles.Rate = 70
  894. particles.Texture = "rbxassetid://56561915"
  895. particles.Lifetime = NumberRange.new(2,2)
  896. particles.RotSpeed = NumberRange.new(100,100)
  897. particles.Speed = NumberRange.new(7,7)
  898. script.Parent = efxBlock
  899. fire = particles
  900. local offset = Vector3.new(-0.11, .23, -0.5)
  901. local weld = Instance.new("Weld",c.Head)
  902. weld.Part0 = c.Head
  903. weld.Part1 = efxBlock
  904. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  905. efxBlock.Parent = c
  906. local music = Instance.new("Sound",c)
  907. music.SoundId = "rbxassetid://316012176"
  908. music.Looped = true
  909. music.Volume = 0
  910. fight = music
  911. local music2 = Instance.new("Sound",c)
  912. music2.SoundId = "rbxassetid://316014309"
  913. music2.Looped = true
  914. music2.Volume = 0
  915. sans = music2
  916. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  917. pointGyro.P = 1e7
  918. pointGyro.D = 1e3
  919. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  920. animator = c.Humanoid:FindFirstChild("Animator")
  921. if animator then
  922. animator:Destroy()
  923. end
  924. c.Torso.roblox:Destroy()
  925. for i,v in pairs (c.Head:children()) do
  926. if v.ClassName == "Sound" then
  927. v:Destroy()
  928. end
  929. end
  930. for i = 1,#Joints do
  931. Joints[i].C1 = CFrame.new(Vector3.new())
  932. end
  933. human.WalkSpeed = 0
  934. human.JumpPower = 0
  935. end
  936.  
  937. uinps.InputBegan:connect(function(InputObject)
  938. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  939. Debounces.isPassive = not Debounces.isPassive
  940. end
  941. end)
  942.  
  943. setJointCFrames = function(table)
  944. for i = 1,#table do
  945. JointTargets[i] = table[i]
  946. end
  947. AnimationCycles = 0
  948. end
  949.  
  950. setLerp = function(speed)
  951. AnimStat.lerpSpeed = speed
  952. end
  953.  
  954. setTween = function(tween)
  955. AnimStat.lerpTween = tween
  956. end
  957.  
  958. takeDamage = function(position,damage,distance,platformStand)
  959. for i,v in pairs (pls:children()) do
  960. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  961. local torso = v.Character:FindFirstChild("Torso")
  962. if torso and (torso.Position - position).magnitude < distance then
  963. v.Character.Humanoid:TakeDamage(damage)
  964. if platformStand == true then
  965. v.Character.PlatformStand = platformStand
  966. end
  967. end
  968. end
  969. end
  970. end
  971.  
  972. --------------------------------------------------------
  973.  
  974. prepareCharacter()
  975.  
  976. --------------------------------------------------------
  977.  
  978. spawn(function()
  979. local sine = 0
  980. while wait() do
  981. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  982. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  983. setLerp(.1)
  984. if Debounces.isPassive == true then
  985. setJointCFrames({
  986. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  987. 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));
  988. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  989. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  990. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  991. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  992. })
  993. else
  994. setJointCFrames({
  995. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  996. 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));
  997. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  998. 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));
  999. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  1000. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  1001. })
  1002. end
  1003. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  1004. sine = sine + math.rad(12)
  1005. human.WalkSpeed = 15
  1006. setLerp(.15)
  1007. setJointCFrames({
  1008. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  1009. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  1010. 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));
  1011. 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));
  1012. 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));
  1013. 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));
  1014. })
  1015. end
  1016. if Debounces.scalingDamage == true then
  1017. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  1018. end
  1019. end
  1020. end)
  1021.  
  1022. human.Changed:connect(function(prop)
  1023. if prop == "MoveDirection" then
  1024. if human.MoveDirection.magnitude > .02 then
  1025. Debounces.isMoving = true
  1026. else
  1027. Debounces.isMoving = false
  1028. end
  1029. end
  1030. end)
  1031.  
  1032. uinps.InputBegan:connect(function(InputObject)
  1033. 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
  1034. Debounces.isBoosting = true
  1035. Debounces.damageLevel = 10
  1036. Debounces.scalingDamage = true
  1037. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  1038. setLerp(.15)
  1039. setJointCFrames({
  1040. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  1041. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  1042. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  1043. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  1044. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  1045. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  1046. })
  1047. local boostSpeed = 250
  1048. local efx = Instance.new("Sound",c.Head)
  1049. efx.SoundId = "rbxassetid://200632875"
  1050. efx.Pitch = math.random(1100,1300)/1000
  1051. efx.Volume = .5
  1052. efx:Play()
  1053. spawn(function()
  1054. wait(5)
  1055. efx:Destroy()
  1056. end)
  1057. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  1058. vel.P = 1e3
  1059. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  1060. wait(.15)
  1061. vel.P = 1000
  1062. vel.MaxForce = Vector3.new(3000,0,3000)
  1063. vel.Velocity = Vector3.new()
  1064. wait(.3)
  1065. setLerp(.3)
  1066. setJointCFrames({
  1067. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  1068. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  1069. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  1070. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  1071. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  1072. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  1073. })
  1074. wait(.2)
  1075. vel:Destroy()
  1076. Debounces.damageLevel = 0
  1077. Debounces.scalingDamage = false
  1078. Debounces.isBoosting = false
  1079. end
  1080. end)
  1081.  
  1082. uinps.InputBegan:connect(function(InputObject)
  1083. 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
  1084. Debounces.isBoosting = true
  1085. Debounces.damageLevel = 10
  1086. Debounces.scalingDamage = true
  1087. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  1088. setLerp(.15)
  1089. setJointCFrames({
  1090. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  1091. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  1092. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  1093. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  1094. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  1095. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  1096. })
  1097. local boostSpeed = 250
  1098. local efx = Instance.new("Sound",c.Head)
  1099. efx.SoundId = "rbxassetid://200632875"
  1100. efx.Pitch = math.random(1100,1300)/1000
  1101. efx.Volume = .5
  1102. efx:Play()
  1103. spawn(function()
  1104. wait(5)
  1105. efx:Destroy()
  1106. end)
  1107. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  1108. vel.P = 1e3
  1109. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  1110. wait(.15)
  1111. vel.P = 1000
  1112. vel.MaxForce = Vector3.new(3000,0,3000)
  1113. vel.Velocity = Vector3.new()
  1114. wait(.3)
  1115. setLerp(.3)
  1116. setJointCFrames({
  1117. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  1118. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  1119. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  1120. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  1121. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  1122. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  1123. })
  1124. wait(.2)
  1125. vel:Destroy()
  1126. Debounces.damageLevel = 0
  1127. Debounces.scalingDamage = false
  1128. Debounces.isBoosting = false
  1129. end
  1130. end)
  1131.  
  1132. uinps.InputBegan:connect(function(InputObject)
  1133. 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
  1134. Debounces.isBoosting = true
  1135. Debounces.damageLevel = 10
  1136. Debounces.scalingDamage = true
  1137. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  1138. setLerp(.15)
  1139. setJointCFrames({
  1140. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  1141. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  1142. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  1143. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  1144. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  1145. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  1146. })
  1147. local boostSpeed = 250
  1148. local efx = Instance.new("Sound",c.Head)
  1149. efx.SoundId = "rbxassetid://200632875"
  1150. efx.Pitch = math.random(1100,1300)/1000
  1151. efx.Volume = .5
  1152. efx:Play()
  1153. spawn(function()
  1154. wait(5)
  1155. efx:Destroy()
  1156. end)
  1157. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  1158. vel.P = 1e3
  1159. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  1160. wait(.15)
  1161. vel.P = 1000
  1162. vel.MaxForce = Vector3.new(3000,0,3000)
  1163. vel.Velocity = Vector3.new()
  1164. wait(.3)
  1165. setLerp(.3)
  1166. setJointCFrames({
  1167. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  1168. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  1169. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  1170. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  1171. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  1172. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  1173. })
  1174. wait(.2)
  1175. vel:Destroy()
  1176. Debounces.damageLevel = 0
  1177. Debounces.scalingDamage = false
  1178. Debounces.isBoosting = false
  1179. end
  1180. end)
  1181.  
  1182. uinps.InputBegan:connect(function(InputObject)
  1183. 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
  1184. Debounces.isBoosting = true
  1185. Debounces.damageLevel = 10
  1186. Debounces.scalingDamage = true
  1187. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  1188. setLerp(.15)
  1189. setJointCFrames({
  1190. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  1191. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  1192. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  1193. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  1194. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  1195. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  1196. })
  1197. local boostSpeed = 150
  1198. local boostSpeed = 250
  1199. local efx = Instance.new("Sound",c.Head)
  1200. efx.SoundId = "rbxassetid://200632875"
  1201. efx.Pitch = math.random(1100,1300)/1000
  1202. efx.Volume = .5
  1203. efx:Play()
  1204. spawn(function()
  1205. wait(5)
  1206. efx:Destroy()
  1207. end)
  1208. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  1209. vel.P = 1e3
  1210. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  1211. wait(.15)
  1212. vel.P = 1000
  1213. vel.MaxForce = Vector3.new(3000,0,3000)
  1214. vel.Velocity = Vector3.new()
  1215. wait(.3)
  1216. setLerp(.3)
  1217. setJointCFrames({
  1218. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  1219. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  1220. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  1221. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  1222. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  1223. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  1224. })
  1225. wait(.2)
  1226. vel:Destroy()
  1227. Debounces.damageLevel = 0
  1228. Debounces.scalingDamage = false
  1229. Debounces.isBoosting = false
  1230. end
  1231. end)
  1232.  
  1233. uinps.InputBegan:connect(function(InputObject)
  1234. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  1235. local isLooping = true
  1236. uinps.InputEnded:connect(function(InputObject2)
  1237. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1238. isLooping = false
  1239. end
  1240. end)
  1241. while true do
  1242. if isLooping == false then
  1243. break
  1244. end
  1245. Debounces.attackNumber = Debounces.attackNumber + 1
  1246. local aimPos = mouse.Hit.p
  1247. local head = Instance.new("Part",c)
  1248. head.Size = Vector3.new(12,.2,12)
  1249. head.CanCollide = false
  1250. head.Anchored = true
  1251. head.Transparency = 1
  1252. for i = 1,2 do
  1253. local decal = Instance.new("Decal",head)
  1254. decal.Texture = "rbxassetid://323497117"
  1255. if i == 1 then
  1256. decal.Face = Enum.NormalId.Top
  1257. else
  1258. decal.Face = Enum.NormalId.Bottom
  1259. end
  1260. end
  1261. if Debounces.attackNumber%2 == 1 then
  1262. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1263. else
  1264. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1265. end
  1266. spawn(function()
  1267. local timer = 0
  1268. while rs.RenderStepped:wait() do
  1269. if timer >= 1.55 then
  1270. break
  1271. end
  1272. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1273. timer = timer + 1/30/(Debounces.FPS/60)
  1274. end
  1275. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1276. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  1277. local hit, pos = workspace:FindPartOnRay(ray,c)
  1278. local dis = (head.CFrame.p - pos).magnitude
  1279. local rayPart = Instance.new("Part",rayModel)
  1280. rayPart.Material = "Neon"
  1281. rayPart.FormFactor = "Custom"
  1282. rayPart.BrickColor = BrickColor.new(1,1,1)
  1283. rayPart.Anchored = true
  1284. rayPart.CanCollide = false
  1285. rayPart.Size = Vector3.new(7,7,dis + 400)
  1286. 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)
  1287. rayPart.CFrame = rayCFrame
  1288. head:Destroy()
  1289. end)
  1290. wait()
  1291. local s = Instance.new("Sound",head)
  1292. s.Volume = 1
  1293. s.SoundId = "rbxassetid://332223043"
  1294. s:Play()
  1295. wait(.04)
  1296. end
  1297. end
  1298. end)
  1299.  
  1300. uinps.InputBegan:connect(function(InputObj)
  1301. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  1302. Debounces.isAttacking = true
  1303. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1304. local head = Instance.new("Part",c)
  1305. head.Size = Vector3.new(18,.2,18)
  1306. head.CanCollide = false
  1307. head.Anchored = true
  1308. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1309. head.Transparency = 1
  1310. for i = 1,2 do
  1311. local decal = Instance.new("Decal",head)
  1312. decal.Texture = "rbxassetid://323497117"
  1313. if i == 1 then
  1314. decal.Face = Enum.NormalId.Top
  1315. else
  1316. decal.Face = Enum.NormalId.Bottom
  1317. end
  1318. end
  1319. setLerp(.1)
  1320. setJointCFrames({
  1321. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1322. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1323. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1324. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1325. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1326. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1327. })
  1328. spawn(function()
  1329. local timer = 0
  1330. while rs.RenderStepped:wait() do
  1331. if timer >= 1.55/.8 then
  1332. break
  1333. end
  1334. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1335. timer = timer + 1/30/(Debounces.FPS/60)
  1336. end
  1337. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1338. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  1339. local hit, pos = workspace:FindPartOnRay(ray,c)
  1340. local dis = (head.CFrame.p - pos).magnitude
  1341. local rayPart = Instance.new("Part",rayModel)
  1342. rayPart.Material = "Neon"
  1343. rayPart.FormFactor = "Custom"
  1344. rayPart.Name = "Punch"
  1345. rayPart.BrickColor = BrickColor.new(1,1,1)
  1346. rayPart.Anchored = true
  1347. rayPart.CanCollide = false
  1348. rayPart.Size = Vector3.new(28,28,dis + 400)
  1349. 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)
  1350. rayPart.CFrame = rayCFrame
  1351. head:Destroy()
  1352. end)
  1353. wait()
  1354. local s = Instance.new("Sound",head)
  1355. s.Volume = 1
  1356. s.SoundId = "rbxassetid://332223043"
  1357. s.Pitch = .8
  1358. s:Play()
  1359. wait(.75)
  1360. setLerp(.17)
  1361. setJointCFrames({
  1362. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1363. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1364. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1365. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1366. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1367. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1368. })
  1369. wait(.5)
  1370. Debounces.isAttacking = false
  1371. end
  1372. end)
  1373.  
  1374. reflect = function(d,n)
  1375. local i, n = -1 * d.unit, n.unit
  1376. local dot = n:Dot(i)
  1377. return 2*dot*n - i
  1378. end
  1379.  
  1380. makeReflectionBeam = function(pos,look,isCrit)
  1381. local ray = Ray.new(pos,look)
  1382. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  1383. local e = Instance.new("Part",rayModel)
  1384. e.Anchored = true
  1385. e.CanCollide = false
  1386. e.BrickColor = BrickColor.new("White")
  1387. e.Material = "Neon"
  1388. e.FormFactor = "Custom"
  1389. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  1390. if isCrit == true then
  1391. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  1392. e.Name = "Punch"
  1393. end
  1394. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  1395. local e = Instance.new("Sound",c)
  1396. if isCrit == true then
  1397. e.Volume = .5
  1398. else
  1399. e.Volume = .3
  1400. e.Pitch = 1.5
  1401. end
  1402. e.SoundId = "rbxassetid://200632875"
  1403. e:Play()
  1404. spawn(function()
  1405. wait(6)
  1406. e:Destroy()
  1407. end)
  1408. wait(.05)
  1409. if hit ~= nil then
  1410. newDir = reflect(look.unit,norm,isCrit)
  1411. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  1412. end
  1413. end
  1414.  
  1415. uinps.InputBegan:connect(function(InputObject)
  1416. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  1417. local isLooping = true
  1418. uinps.InputEnded:connect(function(InputObject2)
  1419. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1420. isLooping = false
  1421. end
  1422. end)
  1423. while true do
  1424. if isLooping == false then
  1425. break
  1426. end
  1427. Debounces.attackNumber = Debounces.attackNumber + 1
  1428. local aimPos = mouse.Hit.p
  1429. local head = Instance.new("Part",c)
  1430. head.Size = Vector3.new(12,.2,12)
  1431. head.CanCollide = false
  1432. head.Anchored = true
  1433. head.Transparency = 1
  1434. for i = 1,2 do
  1435. local decal = Instance.new("Decal",head)
  1436. decal.Texture = "rbxassetid://323497117"
  1437. if i == 1 then
  1438. decal.Face = Enum.NormalId.Top
  1439. else
  1440. decal.Face = Enum.NormalId.Bottom
  1441. end
  1442. end
  1443. if Debounces.attackNumber%2 == 1 then
  1444. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1445. else
  1446. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1447. end
  1448. spawn(function()
  1449. local timer = 0
  1450. while rs.RenderStepped:wait() do
  1451. if timer >= 1.55 then
  1452. break
  1453. end
  1454. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1455. timer = timer + 1/30/(Debounces.FPS/60)
  1456. end
  1457. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1458. head:Destroy()
  1459. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  1460. end)
  1461.  
  1462. wait()
  1463. local s = Instance.new("Sound",head)
  1464. s.Volume = 1
  1465. s.SoundId = "rbxassetid://332223043"
  1466. s.Pitch = 1.02
  1467. s:Play()
  1468. wait(.2)
  1469. end
  1470. end
  1471. end)
  1472.  
  1473. uinps.InputBegan:connect(function(InputObj)
  1474. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  1475. Debounces.isAttacking = true
  1476. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1477. local head = Instance.new("Part",c)
  1478. head.Size = Vector3.new(18,.2,18)
  1479. head.CanCollide = false
  1480. head.Anchored = true
  1481. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1482. head.Transparency = 1
  1483. for i = 1,2 do
  1484. local decal = Instance.new("Decal",head)
  1485. decal.Texture = "rbxassetid://323497117"
  1486. if i == 1 then
  1487. decal.Face = Enum.NormalId.Top
  1488. else
  1489. decal.Face = Enum.NormalId.Bottom
  1490. end
  1491. end
  1492. setLerp(.1)
  1493. setJointCFrames({
  1494. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1495. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1496. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1497. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1498. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1499. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1500. })
  1501. spawn(function()
  1502. local timer = 0
  1503. while rs.RenderStepped:wait() do
  1504. if timer >= 1.55/.8 then
  1505. break
  1506. end
  1507. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1508. timer = timer + 1/30/(Debounces.FPS/60)
  1509. end
  1510. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1511. head:Destroy()
  1512. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  1513. end)
  1514. wait()
  1515. local s = Instance.new("Sound",head)
  1516. s.Volume = 2
  1517. s.SoundId = "rbxassetid://332223043"
  1518. s.Pitch = .8
  1519. s:Play()
  1520. wait(.75)
  1521. setLerp(.17)
  1522. setJointCFrames({
  1523. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1524. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1525. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1526. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1527. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1528. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1529. })
  1530. wait(.5)
  1531. Debounces.isAttacking = false
  1532. end
  1533. end)
  1534.  
  1535. uinps.InputBegan:connect(function(InputObj)
  1536. if InputObj.KeyCode == Enum.KeyCode.Slash then
  1537. local finishEvent = nil
  1538. Debounces.isTyping = true
  1539. finishEvent = uinps.InputBegan:connect(function(InputObj)
  1540. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1541. Debounces.isTyping = false
  1542. finishEvent:disconnect()
  1543. end
  1544. end)
  1545. end
  1546. end)
  1547.  
  1548. uinps.InputBegan:connect(function(InputObj)
  1549. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1550. Debounces.isSprinting = true
  1551. end
  1552. end)
  1553.  
  1554. uinps.InputEnded:connect(function(InputObj)
  1555. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1556. Debounces.isSprinting = false
  1557. end
  1558. end)
  1559.  
  1560. rs.RenderStepped:connect(function()
  1561. Debounces.FPS = 1/rs.RenderStepped:wait()
  1562. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1563. if Debounces.isPassive == false then
  1564. fire.Enabled = false
  1565. light.Range = 0
  1566. fight:Pause()
  1567. sans:Resume()
  1568. efxBlock.Transparency = 1
  1569. else
  1570. fire.Enabled = true
  1571. light.Range = 10
  1572. fight:Resume()
  1573. sans:Pause()
  1574. efxBlock.Transparency = 0
  1575. end
  1576. for i,v in pairs (rayModel:children()) do
  1577. if v.Transparency >= 1 then
  1578. v:Destroy()
  1579. else
  1580. v.CanCollide = true
  1581. local parts = v:GetTouchingParts()
  1582. v.CanCollide = false
  1583. for i = 1,#parts do
  1584. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  1585. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  1586. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  1587. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  1588. end
  1589. end
  1590. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  1591. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1592. end
  1593. end
  1594. for i = 1,#Joints do
  1595. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1596. end
  1597. local sineval = math.sin(tick() * 2) * 3
  1598. fire.Acceleration = Vector3.new(sineval,1,sineval)
  1599. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  1600. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement