Advertisement
PotatoSaiyan

HorrorSans Script

Mar 1st, 2017
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.61 KB | None | 0 0
  1. ID = '323794401'
  2. Looped = true
  3.  
  4. Music=Instance.new("Sound" ,workspace)
  5. Music.Name = "Music"
  6. if Looped == true then
  7. Music.Looped = true
  8. Music.Pitch = 0.9
  9. end
  10. Music.SoundId = "http://www.roblox.com/asset/?id=323794401"
  11. Music:Play()
  12.  
  13. --------------------------------------------------------
  14.  
  15. pls = game:GetService'Players'
  16. rs = game:GetService'RunService'
  17. uinps = game:GetService'UserInputService'
  18. lp = pls.LocalPlayer
  19. mouse = lp:GetMouse()
  20. c = lp.Character
  21. human = c.Humanoid
  22. human.MaxHealth = 999999999999999999999999999999999999999999999
  23. wait()
  24. human.Health = 999999999999999999999999999999999999999999999
  25. c.Health:Destroy()
  26.  
  27. --------------------------------------------------------
  28.  
  29. Debounces = {
  30. AnimationCycles = 0;
  31. FPS = 0;
  32. scalingDamage = false;
  33. damageLevel = 0;
  34. attackNumber = 0;
  35. isAttacking = false;
  36. isMoving = false;
  37. isSprinting = false;
  38. isBoosting = false;
  39. isPassive = false;
  40. isTyping = false;
  41. }
  42.  
  43. --------------------------------------------------------
  44.  
  45. numLerp = function(start, goal, alpha)
  46. return(((goal - start) * alpha) + start)
  47. end
  48.  
  49. CFrameZero = function()
  50. return CFrame.new(Vector3.new())
  51. end
  52.  
  53. rad = function(value)
  54. return math.rad(value)
  55. end
  56.  
  57. CFAngles = function(Vector)
  58. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  59. end
  60.  
  61. --------------------------------------------------------
  62.  
  63. AnimStat = {
  64. lerpSpeed = .2;
  65. lerpSpeed2 = .35;
  66. lerpTween = 0;
  67. }
  68.  
  69. Joints = {
  70. c.HumanoidRootPart.RootJoint;
  71. c.Torso.Neck;
  72. c.Torso['Left Shoulder'];
  73. c.Torso['Right Shoulder'];
  74. c.Torso['Left Hip'];
  75. c.Torso['Right Hip'];
  76. }
  77.  
  78. JointTargets = {
  79. CFrameZero();
  80. CFrameZero();
  81. CFrameZero();
  82. CFrameZero();
  83. CFrameZero();
  84. CFrameZero();
  85. }
  86.  
  87. --------------------------------------------------------
  88.  
  89. BodyColors = {
  90. HeadColor = BrickColor.new("Institutional white");
  91. LeftArmColor = BrickColor.new("Institutional white");
  92. RightArmColor = BrickColor.new("Institutional white");
  93. LeftLegColor = BrickColor.new("Institutional white");
  94. RightLegColor = BrickColor.new("Institutional white");
  95. TorsoColor = BrickColor.new("Mid gray");
  96. }
  97.  
  98. Customs = {
  99. Face = "http://www.roblox.com/asset/?id=8560915";
  100. Shirt = "http://www.roblox.com/asset/?id=334781688";
  101. Pants = "http://www.roblox.com/asset/?id=335237283";
  102. }
  103.  
  104. --------------------------------------------------------
  105.  
  106. prepareCharacter = function()
  107. local transPoints = {
  108. NumberSequenceKeypoint.new(0,.819,.0375),
  109. NumberSequenceKeypoint.new(.207,.594,.0187),
  110. NumberSequenceKeypoint.new(.4,.55,.031),
  111. NumberSequenceKeypoint.new(.57,.619,.05),
  112. NumberSequenceKeypoint.new(.76,.8,.0375),
  113. NumberSequenceKeypoint.new(1,1,0),
  114. }
  115. local sizePoints = {
  116. NumberSequenceKeypoint.new(0,.687,0),
  117. NumberSequenceKeypoint.new(.111,.875,0),
  118. NumberSequenceKeypoint.new(.327,1.19,0),
  119. NumberSequenceKeypoint.new(.646,1.56,0),
  120. NumberSequenceKeypoint.new(.805,1.37,0),
  121. NumberSequenceKeypoint.new(.905,1.06,0),
  122. NumberSequenceKeypoint.new(.968,.938,0),
  123. NumberSequenceKeypoint.new(.984,1.13,0),
  124. NumberSequenceKeypoint.new(1,1.62,0),
  125. }
  126. local Size = NumberSequence.new(sizePoints)
  127. local Transparency = NumberSequence.new(transPoints)
  128. rayModel = Instance.new("Model",c)
  129. efxBlock = Instance.new("Part",c)
  130. efxBlock.BrickColor = BrickColor.new("Bright red")
  131. efxBlock.Material = "Neon"
  132. efxBlock.FormFactor = "Custom"
  133. efxBlock.Transparency = .3
  134. efxBlock.Size = Vector3.new(.3,.3,.3)
  135. local mesh = Instance.new("SpecialMesh",efxBlock)
  136. mesh.MeshType = Enum.MeshType.Sphere
  137. mesh.Scale = Vector3.new(1,1,1)
  138. light = Instance.new("PointLight",c.Head)
  139. light.Range = 10
  140. light.Color = Color3.new(0,200/255,1)
  141. light.Shadows = false
  142. local particles = Instance.new("ParticleEmitter",efxBlock)
  143. particles.LightEmission = .95
  144. particles.Size = Size
  145. particles.Name = "Fire"
  146. particles.Transparency = Transparency
  147. particles.LockedToPart = true
  148. particles.VelocityInheritance = .5
  149. particles.LockedToPart = true
  150. particles.Rate = 70
  151. particles.Texture = "rbxassetid://676636960"
  152. particles.Lifetime = NumberRange.new(2,2)
  153. particles.RotSpeed = NumberRange.new(100,100)
  154. particles.Speed = NumberRange.new(7,7)
  155. script.Parent = efxBlock
  156. fire = particles
  157. local offset = Vector3.new(-0.11, .23, -0.5)
  158. local weld = Instance.new("Weld",c.Head)
  159. weld.Part0 = c.Head
  160. weld.Part1 = efxBlock
  161. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  162. efxBlock.Parent = c
  163. local music = Instance.new("Sound",c)
  164. music.SoundId = "rbxassetid://316012176"
  165. music.Looped = true
  166. music.Volume = 0
  167. fight = music
  168. local music2 = Instance.new("Sound",c)
  169. music2.SoundId = "rbxassetid://316014309"
  170. music2.Looped = true
  171. music2.Volume = 0
  172. sans = music2
  173. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  174. pointGyro.P = 1e7
  175. pointGyro.D = 1e3
  176. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  177. animator = c.Humanoid:FindFirstChild("Animator")
  178. if animator then
  179. animator:Destroy()
  180. end
  181. c.Torso.roblox:Destroy()
  182. for i,v in pairs (c.Head:children()) do
  183. if v.ClassName == "Sound" then
  184. v:Destroy()
  185. end
  186. end
  187. for i = 1,#Joints do
  188. Joints[i].C1 = CFrame.new(Vector3.new())
  189. end
  190. human.WalkSpeed = 0
  191. human.JumpPower = 0
  192. end
  193.  
  194. uinps.InputBegan:connect(function(InputObject)
  195. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  196. Debounces.isPassive = not Debounces.isPassive
  197. end
  198. end)
  199.  
  200. setJointCFrames = function(table)
  201. for i = 1,#table do
  202. JointTargets[i] = table[i]
  203. end
  204. AnimationCycles = 0
  205. end
  206.  
  207. setLerp = function(speed)
  208. AnimStat.lerpSpeed = speed
  209. end
  210.  
  211. setTween = function(tween)
  212. AnimStat.lerpTween = tween
  213. end
  214.  
  215. takeDamage = function(position,damage,distance,platformStand)
  216. for i,v in pairs (pls:children()) do
  217. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  218. local torso = v.Character:FindFirstChild("Torso")
  219. if torso and (torso.Position - position).magnitude < distance then
  220. v.Character.Humanoid:TakeDamage(damage)
  221. if platformStand == true then
  222. v.Character.PlatformStand = platformStand
  223. end
  224. end
  225. end
  226. end
  227. end
  228.  
  229. --------------------------------------------------------
  230.  
  231. prepareCharacter()
  232.  
  233. --------------------------------------------------------
  234. spawn(function()
  235. local sine = 0
  236. while wait() do
  237. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  238. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  239. setLerp(.1)
  240. if Debounces.isPassive == true then
  241. setJointCFrames({
  242. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  243. 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));
  244. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  245. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  246. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  247. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  248. })
  249. else
  250. setJointCFrames({
  251. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  252. 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));
  253. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  254. 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));
  255. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  256. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  257. })
  258. end
  259. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  260. sine = sine + math.rad(12)
  261. human.WalkSpeed = 15
  262. setLerp(.15)
  263. setJointCFrames({
  264. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  265. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  266. 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));
  267. 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));
  268. 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));
  269. 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));
  270. })
  271. end
  272. if Debounces.scalingDamage == true then
  273. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  274. end
  275. end
  276. end)
  277.  
  278. human.Changed:connect(function(prop)
  279. if prop == "MoveDirection" then
  280. if human.MoveDirection.magnitude > .02 then
  281. Debounces.isMoving = true
  282. else
  283. Debounces.isMoving = false
  284. end
  285. end
  286. end)
  287.  
  288. uinps.InputBegan:connect(function(InputObject)
  289. 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
  290. Debounces.isBoosting = true
  291. Debounces.damageLevel = 10
  292. Debounces.scalingDamage = true
  293. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  294. setLerp(.15)
  295. setJointCFrames({
  296. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  297. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  298. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  299. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  300. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  301. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  302. })
  303. local boostSpeed = 250
  304. local efx = Instance.new("Sound",c.Head)
  305. efx.SoundId = "rbxassetid://200632875"
  306. efx.Pitch = math.random(1100,1300)/1000
  307. efx.Volume = .5
  308. efx:Play()
  309. spawn(function()
  310. wait(5)
  311. efx:Destroy()
  312. end)
  313. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  314. vel.P = 1e3
  315. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  316. wait(.15)
  317. vel.P = 1000
  318. vel.MaxForce = Vector3.new(3000,0,3000)
  319. vel.Velocity = Vector3.new()
  320. wait(.3)
  321. setLerp(.3)
  322. setJointCFrames({
  323. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  324. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  325. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  326. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  327. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  328. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  329. })
  330. wait(.2)
  331. vel:Destroy()
  332. Debounces.damageLevel = 0
  333. Debounces.scalingDamage = false
  334. Debounces.isBoosting = false
  335. end
  336. end)
  337.  
  338. uinps.InputBegan:connect(function(InputObject)
  339. 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
  340. Debounces.isBoosting = true
  341. Debounces.damageLevel = 10
  342. Debounces.scalingDamage = true
  343. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  344. setLerp(.15)
  345. setJointCFrames({
  346. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  347. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  348. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  349. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  350. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  351. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  352. })
  353. local boostSpeed = 250
  354. local efx = Instance.new("Sound",c.Head)
  355. efx.SoundId = "rbxassetid://200632875"
  356. efx.Pitch = math.random(1100,1300)/1000
  357. efx.Volume = .5
  358. efx:Play()
  359. spawn(function()
  360. wait(5)
  361. efx:Destroy()
  362. end)
  363. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  364. vel.P = 1e3
  365. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  366. wait(.15)
  367. vel.P = 1000
  368. vel.MaxForce = Vector3.new(3000,0,3000)
  369. vel.Velocity = Vector3.new()
  370. wait(.3)
  371. setLerp(.3)
  372. setJointCFrames({
  373. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  374. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  375. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  376. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  377. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  378. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  379. })
  380. wait(.2)
  381. vel:Destroy()
  382. Debounces.damageLevel = 0
  383. Debounces.scalingDamage = false
  384. Debounces.isBoosting = false
  385. end
  386. end)
  387.  
  388. uinps.InputBegan:connect(function(InputObject)
  389. 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
  390. Debounces.isBoosting = true
  391. Debounces.damageLevel = 10
  392. Debounces.scalingDamage = true
  393. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  394. setLerp(.15)
  395. setJointCFrames({
  396. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  397. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  398. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  399. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  400. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  401. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  402. })
  403. local boostSpeed = 250
  404. local efx = Instance.new("Sound",c.Head)
  405. efx.SoundId = "rbxassetid://200632875"
  406. efx.Pitch = math.random(1100,1300)/1000
  407. efx.Volume = .5
  408. efx:Play()
  409. spawn(function()
  410. wait(5)
  411. efx:Destroy()
  412. end)
  413. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  414. vel.P = 1e3
  415. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  416. wait(.15)
  417. vel.P = 1000
  418. vel.MaxForce = Vector3.new(3000,0,3000)
  419. vel.Velocity = Vector3.new()
  420. wait(.3)
  421. setLerp(.3)
  422. setJointCFrames({
  423. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  424. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  425. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  426. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  427. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  428. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  429. })
  430. wait(.2)
  431. vel:Destroy()
  432. Debounces.damageLevel = 0
  433. Debounces.scalingDamage = false
  434. Debounces.isBoosting = false
  435. end
  436. end)
  437.  
  438. uinps.InputBegan:connect(function(InputObject)
  439. 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
  440. Debounces.isBoosting = true
  441. Debounces.damageLevel = 10
  442. Debounces.scalingDamage = true
  443. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  444. setLerp(.15)
  445. setJointCFrames({
  446. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  447. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  448. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  449. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  450. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  451. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  452. })
  453. local boostSpeed = 150
  454. local boostSpeed = 250
  455. local efx = Instance.new("Sound",c.Head)
  456. efx.SoundId = "rbxassetid://200632875"
  457. efx.Pitch = math.random(1100,1300)/1000
  458. efx.Volume = .5
  459. efx:Play()
  460. spawn(function()
  461. wait(5)
  462. efx:Destroy()
  463. end)
  464. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  465. vel.P = 1e3
  466. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  467. wait(.15)
  468. vel.P = 1000
  469. vel.MaxForce = Vector3.new(3000,0,3000)
  470. vel.Velocity = Vector3.new()
  471. wait(.3)
  472. setLerp(.3)
  473. setJointCFrames({
  474. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  475. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  476. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  477. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  478. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  479. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  480. })
  481. wait(.2)
  482. vel:Destroy()
  483. Debounces.damageLevel = 0
  484. Debounces.scalingDamage = false
  485. Debounces.isBoosting = false
  486. end
  487. end)
  488.  
  489. uinps.InputBegan:connect(function(InputObject)
  490. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  491. local isLooping = true
  492. uinps.InputEnded:connect(function(InputObject2)
  493. if InputObject2.KeyCode == Enum.KeyCode.Q then
  494. isLooping = false
  495. end
  496. end)
  497. while true do
  498. if isLooping == false then
  499. break
  500. end
  501. Debounces.attackNumber = Debounces.attackNumber + 1
  502. local aimPos = mouse.Hit.p
  503. local head = Instance.new("Part",c)
  504. head.Size = Vector3.new(12,.2,12)
  505. head.CanCollide = false
  506. head.Anchored = true
  507. head.Transparency = 1
  508. for i = 1,2 do
  509. local decal = Instance.new("Decal",head)
  510. decal.Texture = "rbxassetid://676665946"
  511. if i == 1 then
  512. decal.Face = Enum.NormalId.Top
  513. else
  514. decal.Face = Enum.NormalId.Bottom
  515. end
  516. end
  517. if Debounces.attackNumber%2 == 1 then
  518. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  519. else
  520. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  521. end
  522. spawn(function()
  523. local timer = 0
  524. while rs.RenderStepped:wait() do
  525. if timer >= 1.55 then
  526. break
  527. end
  528. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  529. timer = timer + 1/30/(Debounces.FPS/60)
  530. end
  531. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  532. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  533. local hit, pos = workspace:FindPartOnRay(ray,c)
  534. local dis = (head.CFrame.p - pos).magnitude
  535. local rayPart = Instance.new("Part",rayModel)
  536. rayPart.Material = "Neon"
  537. rayPart.FormFactor = "Custom"
  538. rayPart.BrickColor = BrickColor.new(1,1,1)
  539. rayPart.Anchored = true
  540. rayPart.CanCollide = false
  541. rayPart.Size = Vector3.new(7,7,dis + 400)
  542. 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)
  543. rayPart.CFrame = rayCFrame
  544. head:Destroy()
  545. end)
  546. wait()
  547. local s = Instance.new("Sound",head)
  548. s.Volume = 1
  549. s.SoundId = "rbxassetid://332223043"
  550. s:Play()
  551. wait(.04)
  552. end
  553. end
  554. end)
  555.  
  556. uinps.InputBegan:connect(function(InputObj)
  557. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  558. Debounces.isAttacking = true
  559. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  560. local head = Instance.new("Part",c)
  561. head.Size = Vector3.new(18,.2,18)
  562. head.CanCollide = false
  563. head.Anchored = true
  564. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  565. head.Transparency = 1
  566. for i = 1,2 do
  567. local decal = Instance.new("Decal",head)
  568. decal.Texture = "rbxassetid://676665946"
  569. if i == 1 then
  570. decal.Face = Enum.NormalId.Top
  571. else
  572. decal.Face = Enum.NormalId.Bottom
  573. end
  574. end
  575. setLerp(.1)
  576. setJointCFrames({
  577. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  578. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  579. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  580. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  581. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  582. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  583. })
  584. spawn(function()
  585. local timer = 0
  586. while rs.RenderStepped:wait() do
  587. if timer >= 1.55/.8 then
  588. break
  589. end
  590. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  591. timer = timer + 1/30/(Debounces.FPS/60)
  592. end
  593. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  594. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  595. local hit, pos = workspace:FindPartOnRay(ray,c)
  596. local dis = (head.CFrame.p - pos).magnitude
  597. local rayPart = Instance.new("Part",rayModel)
  598. rayPart.Material = "Neon"
  599. rayPart.FormFactor = "Custom"
  600. rayPart.Name = "Punch"
  601. rayPart.BrickColor = BrickColor.new(1,1,1)
  602. rayPart.Anchored = true
  603. rayPart.CanCollide = false
  604. rayPart.Size = Vector3.new(28,28,dis + 400)
  605. 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)
  606. rayPart.CFrame = rayCFrame
  607. head:Destroy()
  608. end)
  609. wait()
  610. local s = Instance.new("Sound",head)
  611. s.Volume = 1
  612. s.SoundId = "rbxassetid://332223043"
  613. s.Pitch = .8
  614. s:Play()
  615. wait(.75)
  616. setLerp(.17)
  617. setJointCFrames({
  618. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  619. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  620. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  621. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  622. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  623. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  624. })
  625. wait(.5)
  626. Debounces.isAttacking = false
  627. end
  628. end)
  629.  
  630. reflect = function(d,n)
  631. local i, n = -1 * d.unit, n.unit
  632. local dot = n:Dot(i)
  633. return 2*dot*n - i
  634. end
  635.  
  636. makeReflectionBeam = function(pos,look,isCrit)
  637. local ray = Ray.new(pos,look)
  638. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  639. local e = Instance.new("Part",rayModel)
  640. e.Anchored = true
  641. e.CanCollide = false
  642. e.BrickColor = BrickColor.new("Bright red")
  643. e.Material = "Neon"
  644. e.FormFactor = "Custom"
  645. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  646. if isCrit == true then
  647. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  648. e.Name = "Punch"
  649. end
  650. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  651. local e = Instance.new("Sound",c)
  652. if isCrit == true then
  653. e.Volume = .5
  654. else
  655. e.Volume = .3
  656. e.Pitch = 1.5
  657. end
  658. e.SoundId = "rbxassetid://200632875"
  659. e:Play()
  660. spawn(function()
  661. wait(6)
  662. e:Destroy()
  663. end)
  664. wait(.05)
  665. if hit ~= nil then
  666. newDir = reflect(look.unit,norm,isCrit)
  667. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  668. end
  669. end
  670.  
  671. uinps.InputBegan:connect(function(InputObject)
  672. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  673. local isLooping = true
  674. uinps.InputEnded:connect(function(InputObject2)
  675. if InputObject2.KeyCode == Enum.KeyCode.Q then
  676. isLooping = false
  677. end
  678. end)
  679. while true do
  680. if isLooping == false then
  681. break
  682. end
  683. Debounces.attackNumber = Debounces.attackNumber + 1
  684. local aimPos = mouse.Hit.p
  685. local head = Instance.new("Part",c)
  686. head.Size = Vector3.new(12,.2,12)
  687. head.CanCollide = false
  688. head.Anchored = true
  689. head.Transparency = 1
  690. for i = 1,2 do
  691. local decal = Instance.new("Decal",head)
  692. decal.Texture = "rbxassetid://676665946"
  693. if i == 1 then
  694. decal.Face = Enum.NormalId.Top
  695. else
  696. decal.Face = Enum.NormalId.Bottom
  697. end
  698. end
  699. if Debounces.attackNumber%2 == 1 then
  700. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  701. else
  702. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  703. end
  704. spawn(function()
  705. local timer = 0
  706. while rs.RenderStepped:wait() do
  707. if timer >= 1.55 then
  708. break
  709. end
  710. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  711. timer = timer + 1/30/(Debounces.FPS/60)
  712. end
  713. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  714. head:Destroy()
  715. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  716. end)
  717.  
  718. wait()
  719. local s = Instance.new("Sound",head)
  720. s.Volume = 1
  721. s.SoundId = "rbxassetid://332223043"
  722. s.Pitch = 1.02
  723. s:Play()
  724. wait(.2)
  725. end
  726. end
  727. end)
  728.  
  729. uinps.InputBegan:connect(function(InputObj)
  730. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  731. Debounces.isAttacking = true
  732. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  733. local head = Instance.new("Part",c)
  734. head.Size = Vector3.new(18,.2,18)
  735. head.CanCollide = false
  736. head.Anchored = true
  737. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  738. head.Transparency = 1
  739. for i = 1,2 do
  740. local decal = Instance.new("Decal",head)
  741. decal.Texture = "rbxassetid://676665946"
  742. if i == 1 then
  743. decal.Face = Enum.NormalId.Top
  744. else
  745. decal.Face = Enum.NormalId.Bottom
  746. end
  747. end
  748. setLerp(.1)
  749. setJointCFrames({
  750. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  751. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  752. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  753. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  754. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  755. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  756. })
  757. spawn(function()
  758. local timer = 0
  759. while rs.RenderStepped:wait() do
  760. if timer >= 1.55/.8 then
  761. break
  762. end
  763. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  764. timer = timer + 1/30/(Debounces.FPS/60)
  765. end
  766. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  767. head:Destroy()
  768. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  769. end)
  770. wait()
  771. local s = Instance.new("Sound",head)
  772. s.Volume = 2
  773. s.SoundId = "rbxassetid://332223043"
  774. s.Pitch = .8
  775. s:Play()
  776. wait(.75)
  777. setLerp(.17)
  778. setJointCFrames({
  779. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  780. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  781. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  782. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  783. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  784. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  785. })
  786. wait(.5)
  787. Debounces.isAttacking = false
  788. end
  789. end)
  790.  
  791. uinps.InputBegan:connect(function(InputObj)
  792. if InputObj.KeyCode == Enum.KeyCode.Slash then
  793. local finishEvent = nil
  794. Debounces.isTyping = true
  795. finishEvent = uinps.InputBegan:connect(function(InputObj)
  796. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  797. Debounces.isTyping = false
  798. finishEvent:disconnect()
  799. end
  800. end)
  801. end
  802. end)
  803.  
  804. uinps.InputBegan:connect(function(InputObj)
  805. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  806. Debounces.isSprinting = true
  807. end
  808. end)
  809.  
  810. uinps.InputEnded:connect(function(InputObj)
  811. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  812. Debounces.isSprinting = false
  813. end
  814. end)
  815.  
  816. rs.RenderStepped:connect(function()
  817. Debounces.FPS = 1/rs.RenderStepped:wait()
  818. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  819. if Debounces.isPassive == false then
  820. fire.Enabled = false
  821. light.Range = 0
  822. fight:Pause()
  823. sans:Resume()
  824. efxBlock.Transparency = 1
  825. else
  826. fire.Enabled = true
  827. light.Range = 10
  828. fight:Resume()
  829. sans:Pause()
  830. efxBlock.Transparency = 0
  831. end
  832. for i,v in pairs (rayModel:children()) do
  833. if v.Transparency >= 1 then
  834. v:Destroy()
  835. else
  836. v.CanCollide = true
  837. local parts = v:GetTouchingParts()
  838. v.CanCollide = false
  839. for i = 1,#parts do
  840. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  841. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  842. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  843. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  844. end
  845. end
  846. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  847. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  848. end
  849. end
  850. for i = 1,#Joints do
  851. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  852. end
  853. local sineval = math.sin(tick() * 2) * 3
  854. fire.Acceleration = Vector3.new(sineval,1,sineval)
  855. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  856. end)
  857.  
  858. wait(1)
  859. local Plr = game.Players.LocalPlayer
  860. local PChar = Plr.Character
  861. local Song = Instance.new("Sound", game.Workspace)
  862. Song.SoundId = "rbxassetid://0"
  863. Song:Play()
  864. wait(0)
  865. game:GetService("Chat"):Chat(PChar:FindFirstChild("Head"), "it's a beautiful day outside.")
  866. wait(0.5)
  867. game:GetService("Chat"):Chat(PChar:FindFirstChild("Head"), "birds are singing, flowers are blooming...")
  868. wait(2.3)
  869. game:GetService("Chat"):Chat(PChar:FindFirstChild("Head"), "on days like these, kids like you...")
  870. wait(3)
  871. game:GetService("Chat"):Chat(PChar:FindFirstChild("Head"), "S h o u l d b e b u r n i n g i n h e l l .", Enum.ChatColor.Red)
  872. wait(0.2)
  873. Instance.new("ForceField", PChar)
  874. do
  875. wait()
  876. local bomb = Instance.new("Explosion", game.Workspace)
  877. bomb.Position = PChar.Torso.Position
  878. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement