Advertisement
refrop

pokemon go + dupstep

Aug 20th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.91 KB | None | 0 0
  1. wait(10)
  2. --Start the script
  3. local Plr = game.Players.LocalPlayer
  4. --Instance.new
  5. local Tool = Instance.new("Tool", game.Workspace)
  6. Tool.TextureId = "http://www.roblox.com/asset/?id=464006953"
  7. Tool.Name = "Mtn Dew"
  8. local Handle = Instance.new("Part", Tool)
  9. Handle.Name = "Handle"
  10. local Mesh = Instance.new("SpecialMesh", Handle)
  11. Mesh.MeshType = "FileMesh"
  12. Mesh.MeshId = "http://www.roblox.com/asset/?id=444668962"
  13. local Txture = Instance.new("Decal", Handle)
  14. Txture.Texture = "http://www.roblox.com/asset/?id=444668974"
  15. Tool.GripPos = Vector3.new(0, 0, 0)
  16. Tool.Parent = Plr.Backpack
  17. --Sound
  18. local DS = Instance.new("Sound", Handle)
  19. local OS = Instance.new("Sound", Handle) -- memes
  20. DS.SoundId = "http://www.roblox.com/asset/?id=475147513"
  21. OS.SoundId = "http://www.roblox.com/asset/?id=0"
  22. --I PLAY POKEMON GO EVERYDAY
  23. Tool.Equipped:connect(function()
  24. Tool.GripPos = Vector3.new(0, 0, 0)
  25. OS:Play()
  26. end)
  27.  
  28. Tool.Activated:connect(function()
  29. DS:Play()
  30. Tool.GripPos = Vector3.new(0, 0, 0)
  31. wait(2)
  32. Tool.GripPos = Vector3.new(0, 0, 0)
  33. end)
  34. - BurnLegion strikes again!
  35. -- wongxd, this is why you DON'T goto Voidacity's
  36. -- SLPM has been absent, so I've taken it upon myself to make something
  37.  
  38. --------------------------------------------------------
  39.  
  40. pls = game:GetService'Players'
  41. rs = game:GetService'RunService'
  42. uinps = game:GetService'UserInputService'
  43. lp = pls.LocalPlayer
  44. mouse = lp:GetMouse()
  45. c = lp.Character
  46. human = c.Humanoid
  47. human.MaxHealth = 50
  48. wait()
  49. human.Health = 50
  50. c.Health:Destroy()
  51.  
  52. --------------------------------------------------------
  53.  
  54. Debounces = {
  55. AnimationCycles = 0;
  56. FPS = 0;
  57. scalingDamage = false;
  58. damageLevel = 0;
  59. attackNumber = 0;
  60. isAttacking = false;
  61. isMoving = false;
  62. isSprinting = false;
  63. isBoosting = false;
  64. isPassive = false;
  65. isTyping = false;
  66. }
  67.  
  68. --------------------------------------------------------
  69.  
  70. numLerp = function(start, goal, alpha)
  71. return(((goal - start) * alpha) + start)
  72. end
  73.  
  74. CFrameZero = function()
  75. return CFrame.new(Vector3.new())
  76. end
  77.  
  78. rad = function(value)
  79. return math.rad(value)
  80. end
  81.  
  82. CFAngles = function(Vector)
  83. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  84. end
  85.  
  86. --------------------------------------------------------
  87.  
  88. AnimStat = {
  89. lerpSpeed = .2;
  90. lerpSpeed2 = .35;
  91. lerpTween = 0;
  92. }
  93.  
  94. Joints = {
  95. c.HumanoidRootPart.RootJoint;
  96. c.Torso.Neck;
  97. c.Torso['Left Shoulder'];
  98. c.Torso['Right Shoulder'];
  99. c.Torso['Left Hip'];
  100. c.Torso['Right Hip'];
  101. }
  102.  
  103. JointTargets = {
  104. CFrameZero();
  105. CFrameZero();
  106. CFrameZero();
  107. CFrameZero();
  108. CFrameZero();
  109. CFrameZero();
  110. }
  111.  
  112. --------------------------------------------------------
  113.  
  114. BodyColors = {
  115. HeadColor = BrickColor.new("Institutional white");
  116. LeftArmColor = BrickColor.new("Institutional white");
  117. RightArmColor = BrickColor.new("Institutional white");
  118. LeftLegColor = BrickColor.new("Institutional white");
  119. RightLegColor = BrickColor.new("Institutional white");
  120. TorsoColor = BrickColor.new("Mid gray");
  121. }
  122.  
  123. Customs = {
  124. Face = "http://www.roblox.com/asset/?id=8560915";
  125. Shirt = "http://www.roblox.com/asset/?id=334781688";
  126. Pants = "http://www.roblox.com/asset/?id=335237283";
  127. }
  128.  
  129. --------------------------------------------------------
  130.  
  131. prepareCharacter = function()
  132. local transPoints = {
  133. NumberSequenceKeypoint.new(0,.819,.0375),
  134. NumberSequenceKeypoint.new(.207,.594,.0187),
  135. NumberSequenceKeypoint.new(.4,.55,.031),
  136. NumberSequenceKeypoint.new(.57,.619,.05),
  137. NumberSequenceKeypoint.new(.76,.8,.0375),
  138. NumberSequenceKeypoint.new(1,1,0),
  139. }
  140. local sizePoints = {
  141. NumberSequenceKeypoint.new(0,.687,0),
  142. NumberSequenceKeypoint.new(.111,.875,0),
  143. NumberSequenceKeypoint.new(.327,1.19,0),
  144. NumberSequenceKeypoint.new(.646,1.56,0),
  145. NumberSequenceKeypoint.new(.805,1.37,0),
  146. NumberSequenceKeypoint.new(.905,1.06,0),
  147. NumberSequenceKeypoint.new(.968,.938,0),
  148. NumberSequenceKeypoint.new(.984,1.13,0),
  149. NumberSequenceKeypoint.new(1,1.62,0),
  150. }
  151. local Size = NumberSequence.new(sizePoints)
  152. local Transparency = NumberSequence.new(transPoints)
  153. rayModel = Instance.new("Model",c)
  154. efxBlock = Instance.new("Part",c)
  155. efxBlock.BrickColor = BrickColor.new("Cyan")
  156. efxBlock.Material = "Neon"
  157. efxBlock.FormFactor = "Custom"
  158. efxBlock.Transparency = .3
  159. efxBlock.Size = Vector3.new(.3,.3,.3)
  160. local mesh = Instance.new("SpecialMesh",efxBlock)
  161. mesh.MeshType = Enum.MeshType.Sphere
  162. mesh.Scale = Vector3.new(1,1,1)
  163. light = Instance.new("PointLight",c.Head)
  164. light.Range = 10
  165. light.Color = Color3.new(0,200/255,1)
  166. light.Shadows = false
  167. local particles = Instance.new("ParticleEmitter",efxBlock)
  168. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  169. particles.LightEmission = .95
  170. particles.Size = Size
  171. particles.Name = "Fire"
  172. particles.Transparency = Transparency
  173. particles.LockedToPart = true
  174. particles.VelocityInheritance = .5
  175. particles.LockedToPart = true
  176. particles.Rate = 70
  177. particles.Texture = "rbxassetid://56561915"
  178. particles.Lifetime = NumberRange.new(2,2)
  179. particles.RotSpeed = NumberRange.new(100,100)
  180. particles.Speed = NumberRange.new(7,7)
  181. script.Parent = efxBlock
  182. fire = particles
  183. local offset = Vector3.new(-0.11, .23, -0.5)
  184. local weld = Instance.new("Weld",c.Head)
  185. weld.Part0 = c.Head
  186. weld.Part1 = efxBlock
  187. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  188. efxBlock.Parent = c
  189. local music = Instance.new("Sound",c)
  190. music.SoundId = "rbxassetid://316012176"
  191. music.Looped = true
  192. music.Volume = 0
  193. fight = music
  194. local music2 = Instance.new("Sound",c)
  195. music2.SoundId = "rbxassetid://316014309"
  196. music2.Looped = true
  197. music2.Volume = 0
  198. sans = music2
  199. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  200. pointGyro.P = 1e7
  201. pointGyro.D = 1e3
  202. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  203. animator = c.Humanoid:FindFirstChild("Animator")
  204. if animator then
  205. animator:Destroy()
  206. end
  207. c.Torso.roblox:Destroy()
  208. for i,v in pairs (c.Head:children()) do
  209. if v.ClassName == "Sound" then
  210. v:Destroy()
  211. end
  212. end
  213. for i = 1,#Joints do
  214. Joints[i].C1 = CFrame.new(Vector3.new())
  215. end
  216. human.WalkSpeed = 0
  217. human.JumpPower = 0
  218. end
  219.  
  220. uinps.InputBegan:connect(function(InputObject)
  221. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  222. Debounces.isPassive = not Debounces.isPassive
  223. end
  224. end)
  225.  
  226. setJointCFrames = function(table)
  227. for i = 1,#table do
  228. JointTargets[i] = table[i]
  229. end
  230. AnimationCycles = 0
  231. end
  232.  
  233. setLerp = function(speed)
  234. AnimStat.lerpSpeed = speed
  235. end
  236.  
  237. setTween = function(tween)
  238. AnimStat.lerpTween = tween
  239. end
  240.  
  241. takeDamage = function(position,damage,distance,platformStand)
  242. for i,v in pairs (pls:children()) do
  243. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  244. local torso = v.Character:FindFirstChild("Torso")
  245. if torso and (torso.Position - position).magnitude < distance then
  246. v.Character.Humanoid:TakeDamage(damage)
  247. if platformStand == true then
  248. v.Character.PlatformStand = platformStand
  249. end
  250. end
  251. end
  252. end
  253. end
  254.  
  255. --------------------------------------------------------
  256.  
  257. prepareCharacter()
  258.  
  259. --------------------------------------------------------
  260.  
  261. spawn(function()
  262. local sine = 0
  263. while wait() do
  264. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  265. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  266. setLerp(.1)
  267. if Debounces.isPassive == true then
  268. setJointCFrames({
  269. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  270. 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));
  271. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  272. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  273. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  274. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  275. })
  276. else
  277. setJointCFrames({
  278. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  279. 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));
  280. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  281. 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));
  282. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  283. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  284. })
  285. end
  286. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  287. sine = sine + math.rad(12)
  288. human.WalkSpeed = 15
  289. setLerp(.15)
  290. setJointCFrames({
  291. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  292. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  293. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
  294. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
  295. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  296. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  297. })
  298. end
  299. if Debounces.scalingDamage == true then
  300. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  301. end
  302. end
  303. end)
  304.  
  305. human.Changed:connect(function(prop)
  306. if prop == "MoveDirection" then
  307. if human.MoveDirection.magnitude > .02 then
  308. Debounces.isMoving = true
  309. else
  310. Debounces.isMoving = false
  311. end
  312. end
  313. end)
  314.  
  315. uinps.InputBegan:connect(function(InputObject)
  316. 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
  317. Debounces.isBoosting = true
  318. Debounces.damageLevel = 10
  319. Debounces.scalingDamage = true
  320. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  321. setLerp(.15)
  322. setJointCFrames({
  323. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  324. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  325. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  326. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  327. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  328. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  329. })
  330. local boostSpeed = 250
  331. local efx = Instance.new("Sound",c.Head)
  332. efx.SoundId = "rbxassetid://200632875"
  333. efx.Pitch = math.random(1100,1300)/1000
  334. efx.Volume = .5
  335. efx:Play()
  336. spawn(function()
  337. wait(5)
  338. efx:Destroy()
  339. end)
  340. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  341. vel.P = 1e3
  342. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  343. wait(.15)
  344. vel.P = 1000
  345. vel.MaxForce = Vector3.new(3000,0,3000)
  346. vel.Velocity = Vector3.new()
  347. wait(.3)
  348. setLerp(.3)
  349. setJointCFrames({
  350. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  351. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  352. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  353. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  354. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  355. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  356. })
  357. wait(.2)
  358. vel:Destroy()
  359. Debounces.damageLevel = 0
  360. Debounces.scalingDamage = false
  361. Debounces.isBoosting = false
  362. end
  363. end)
  364.  
  365. uinps.InputBegan:connect(function(InputObject)
  366. 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
  367. Debounces.isBoosting = true
  368. Debounces.damageLevel = 10
  369. Debounces.scalingDamage = true
  370. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  371. setLerp(.15)
  372. setJointCFrames({
  373. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  374. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  375. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  376. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  377. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  378. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  379. })
  380. local boostSpeed = 250
  381. local efx = Instance.new("Sound",c.Head)
  382. efx.SoundId = "rbxassetid://200632875"
  383. efx.Pitch = math.random(1100,1300)/1000
  384. efx.Volume = .5
  385. efx:Play()
  386. spawn(function()
  387. wait(5)
  388. efx:Destroy()
  389. end)
  390. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  391. vel.P = 1e3
  392. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  393. wait(.15)
  394. vel.P = 1000
  395. vel.MaxForce = Vector3.new(3000,0,3000)
  396. vel.Velocity = Vector3.new()
  397. wait(.3)
  398. setLerp(.3)
  399. setJointCFrames({
  400. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  401. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  402. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  403. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  404. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  405. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  406. })
  407. wait(.2)
  408. vel:Destroy()
  409. Debounces.damageLevel = 0
  410. Debounces.scalingDamage = false
  411. Debounces.isBoosting = false
  412. end
  413. end)
  414.  
  415. uinps.InputBegan:connect(function(InputObject)
  416. 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
  417. Debounces.isBoosting = true
  418. Debounces.damageLevel = 10
  419. Debounces.scalingDamage = true
  420. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  421. setLerp(.15)
  422. setJointCFrames({
  423. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  424. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  425. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  426. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  427. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  428. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  429. })
  430. local boostSpeed = 250
  431. local efx = Instance.new("Sound",c.Head)
  432. efx.SoundId = "rbxassetid://200632875"
  433. efx.Pitch = math.random(1100,1300)/1000
  434. efx.Volume = .5
  435. efx:Play()
  436. spawn(function()
  437. wait(5)
  438. efx:Destroy()
  439. end)
  440. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  441. vel.P = 1e3
  442. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  443. wait(.15)
  444. vel.P = 1000
  445. vel.MaxForce = Vector3.new(3000,0,3000)
  446. vel.Velocity = Vector3.new()
  447. wait(.3)
  448. setLerp(.3)
  449. setJointCFrames({
  450. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  451. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  452. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  453. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  454. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  455. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  456. })
  457. wait(.2)
  458. vel:Destroy()
  459. Debounces.damageLevel = 0
  460. Debounces.scalingDamage = false
  461. Debounces.isBoosting = false
  462. end
  463. end)
  464.  
  465. uinps.InputBegan:connect(function(InputObject)
  466. 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
  467. Debounces.isBoosting = true
  468. Debounces.damageLevel = 10
  469. Debounces.scalingDamage = true
  470. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  471. setLerp(.15)
  472. setJointCFrames({
  473. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  474. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  475. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  476. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  477. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  478. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  479. })
  480. local boostSpeed = 150
  481. local boostSpeed = 250
  482. local efx = Instance.new("Sound",c.Head)
  483. efx.SoundId = "rbxassetid://200632875"
  484. efx.Pitch = math.random(1100,1300)/1000
  485. efx.Volume = .5
  486. efx:Play()
  487. spawn(function()
  488. wait(5)
  489. efx:Destroy()
  490. end)
  491. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  492. vel.P = 1e3
  493. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  494. wait(.15)
  495. vel.P = 1000
  496. vel.MaxForce = Vector3.new(3000,0,3000)
  497. vel.Velocity = Vector3.new()
  498. wait(.3)
  499. setLerp(.3)
  500. setJointCFrames({
  501. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  502. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  503. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  504. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  505. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  506. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  507. })
  508. wait(.2)
  509. vel:Destroy()
  510. Debounces.damageLevel = 0
  511. Debounces.scalingDamage = false
  512. Debounces.isBoosting = false
  513. end
  514. end)
  515.  
  516. uinps.InputBegan:connect(function(InputObject)
  517. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  518. local isLooping = true
  519. uinps.InputEnded:connect(function(InputObject2)
  520. if InputObject2.KeyCode == Enum.KeyCode.Q then
  521. isLooping = false
  522. end
  523. end)
  524. while true do
  525. if isLooping == false then
  526. break
  527. end
  528. Debounces.attackNumber = Debounces.attackNumber + 1
  529. local aimPos = mouse.Hit.p
  530. local head = Instance.new("Part",c)
  531. head.Size = Vector3.new(12,.2,12)
  532. head.CanCollide = false
  533. head.Anchored = true
  534. head.Transparency = 1
  535. for i = 1,2 do
  536. local decal = Instance.new("Decal",head)
  537. decal.Texture = "rbxassetid://323497117"
  538. if i == 1 then
  539. decal.Face = Enum.NormalId.Top
  540. else
  541. decal.Face = Enum.NormalId.Bottom
  542. end
  543. end
  544. if Debounces.attackNumber%2 == 1 then
  545. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  546. else
  547. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  548. end
  549. spawn(function()
  550. local timer = 0
  551. while rs.RenderStepped:wait() do
  552. if timer >= 1.55 then
  553. break
  554. end
  555. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  556. timer = timer + 1/30/(Debounces.FPS/60)
  557. end
  558. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  559. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  560. local hit, pos = workspace:FindPartOnRay(ray,c)
  561. local dis = (head.CFrame.p - pos).magnitude
  562. local rayPart = Instance.new("Part",rayModel)
  563. rayPart.Material = "Neon"
  564. rayPart.FormFactor = "Custom"
  565. rayPart.BrickColor = BrickColor.new(1,1,1)
  566. rayPart.Anchored = true
  567. rayPart.CanCollide = false
  568. rayPart.Size = Vector3.new(7,7,dis + 400)
  569. 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)
  570. rayPart.CFrame = rayCFrame
  571. head:Destroy()
  572. end)
  573. wait()
  574. local s = Instance.new("Sound",head)
  575. s.Volume = 1
  576. s.SoundId = "rbxassetid://332223043"
  577. s:Play()
  578. wait(.04)
  579. end
  580. end
  581. end)
  582.  
  583. uinps.InputBegan:connect(function(InputObj)
  584. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  585. Debounces.isAttacking = true
  586. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  587. local head = Instance.new("Part",c)
  588. head.Size = Vector3.new(18,.2,18)
  589. head.CanCollide = false
  590. head.Anchored = true
  591. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  592. head.Transparency = 1
  593. for i = 1,2 do
  594. local decal = Instance.new("Decal",head)
  595. decal.Texture = "rbxassetid://323497117"
  596. if i == 1 then
  597. decal.Face = Enum.NormalId.Top
  598. else
  599. decal.Face = Enum.NormalId.Bottom
  600. end
  601. end
  602. setLerp(.1)
  603. setJointCFrames({
  604. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  605. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  606. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  607. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  608. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  609. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  610. })
  611. spawn(function()
  612. local timer = 0
  613. while rs.RenderStepped:wait() do
  614. if timer >= 1.55/.8 then
  615. break
  616. end
  617. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  618. timer = timer + 1/30/(Debounces.FPS/60)
  619. end
  620. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  621. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  622. local hit, pos = workspace:FindPartOnRay(ray,c)
  623. local dis = (head.CFrame.p - pos).magnitude
  624. local rayPart = Instance.new("Part",rayModel)
  625. rayPart.Material = "Neon"
  626. rayPart.FormFactor = "Custom"
  627. rayPart.Name = "Punch"
  628. rayPart.BrickColor = BrickColor.new(1,1,1)
  629. rayPart.Anchored = true
  630. rayPart.CanCollide = false
  631. rayPart.Size = Vector3.new(28,28,dis + 400)
  632. 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)
  633. rayPart.CFrame = rayCFrame
  634. head:Destroy()
  635. end)
  636. wait()
  637. local s = Instance.new("Sound",head)
  638. s.Volume = 1
  639. s.SoundId = "rbxassetid://332223043"
  640. s.Pitch = .8
  641. s:Play()
  642. wait(.75)
  643. setLerp(.17)
  644. setJointCFrames({
  645. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  646. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  647. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  648. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  649. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  650. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  651. })
  652. wait(.5)
  653. Debounces.isAttacking = false
  654. end
  655. end)
  656.  
  657. reflect = function(d,n)
  658. local i, n = -1 * d.unit, n.unit
  659. local dot = n:Dot(i)
  660. return 2*dot*n - i
  661. end
  662.  
  663. makeReflectionBeam = function(pos,look,isCrit)
  664. local ray = Ray.new(pos,look)
  665. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  666. local e = Instance.new("Part",rayModel)
  667. e.Anchored = true
  668. e.CanCollide = false
  669. e.BrickColor = BrickColor.new("White")
  670. e.Material = "Neon"
  671. e.FormFactor = "Custom"
  672. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  673. if isCrit == true then
  674. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  675. e.Name = "Punch"
  676. end
  677. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  678. local e = Instance.new("Sound",c)
  679. if isCrit == true then
  680. e.Volume = .5
  681. else
  682. e.Volume = .3
  683. e.Pitch = 1.5
  684. end
  685. e.SoundId = "rbxassetid://200632875"
  686. e:Play()
  687. spawn(function()
  688. wait(6)
  689. e:Destroy()
  690. end)
  691. wait(.05)
  692. if hit ~= nil then
  693. newDir = reflect(look.unit,norm,isCrit)
  694. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  695. end
  696. end
  697.  
  698. uinps.InputBegan:connect(function(InputObject)
  699. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  700. local isLooping = true
  701. uinps.InputEnded:connect(function(InputObject2)
  702. if InputObject2.KeyCode == Enum.KeyCode.Q then
  703. isLooping = false
  704. end
  705. end)
  706. while true do
  707. if isLooping == false then
  708. break
  709. end
  710. Debounces.attackNumber = Debounces.attackNumber + 1
  711. local aimPos = mouse.Hit.p
  712. local head = Instance.new("Part",c)
  713. head.Size = Vector3.new(12,.2,12)
  714. head.CanCollide = false
  715. head.Anchored = true
  716. head.Transparency = 1
  717. for i = 1,2 do
  718. local decal = Instance.new("Decal",head)
  719. decal.Texture = "rbxassetid://323497117"
  720. if i == 1 then
  721. decal.Face = Enum.NormalId.Top
  722. else
  723. decal.Face = Enum.NormalId.Bottom
  724. end
  725. end
  726. if Debounces.attackNumber%2 == 1 then
  727. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  728. else
  729. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  730. end
  731. spawn(function()
  732. local timer = 0
  733. while rs.RenderStepped:wait() do
  734. if timer >= 1.55 then
  735. break
  736. end
  737. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  738. timer = timer + 1/30/(Debounces.FPS/60)
  739. end
  740. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  741. head:Destroy()
  742. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  743. end)
  744.  
  745. wait()
  746. local s = Instance.new("Sound",head)
  747. s.Volume = 1
  748. s.SoundId = "rbxassetid://332223043"
  749. s.Pitch = 1.02
  750. s:Play()
  751. wait(.2)
  752. end
  753. end
  754. end)
  755.  
  756. uinps.InputBegan:connect(function(InputObj)
  757. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  758. Debounces.isAttacking = true
  759. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  760. local head = Instance.new("Part",c)
  761. head.Size = Vector3.new(18,.2,18)
  762. head.CanCollide = false
  763. head.Anchored = true
  764. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  765. head.Transparency = 1
  766. for i = 1,2 do
  767. local decal = Instance.new("Decal",head)
  768. decal.Texture = "rbxassetid://323497117"
  769. if i == 1 then
  770. decal.Face = Enum.NormalId.Top
  771. else
  772. decal.Face = Enum.NormalId.Bottom
  773. end
  774. end
  775. setLerp(.1)
  776. setJointCFrames({
  777. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  778. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  779. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  780. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  781. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  782. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  783. })
  784. spawn(function()
  785. local timer = 0
  786. while rs.RenderStepped:wait() do
  787. if timer >= 1.55/.8 then
  788. break
  789. end
  790. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  791. timer = timer + 1/30/(Debounces.FPS/60)
  792. end
  793. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  794. head:Destroy()
  795. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  796. end)
  797. wait()
  798. local s = Instance.new("Sound",head)
  799. s.Volume = 2
  800. s.SoundId = "rbxassetid://332223043"
  801. s.Pitch = .8
  802. s:Play()
  803. wait(.75)
  804. setLerp(.17)
  805. setJointCFrames({
  806. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  807. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  808. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  809. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  810. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  811. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  812. })
  813. wait(.5)
  814. Debounces.isAttacking = false
  815. end
  816. end)
  817.  
  818. uinps.InputBegan:connect(function(InputObj)
  819. if InputObj.KeyCode == Enum.KeyCode.Slash then
  820. local finishEvent = nil
  821. Debounces.isTyping = true
  822. finishEvent = uinps.InputBegan:connect(function(InputObj)
  823. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  824. Debounces.isTyping = false
  825. finishEvent:disconnect()
  826. end
  827. end)
  828. end
  829. end)
  830.  
  831. uinps.InputBegan:connect(function(InputObj)
  832. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  833. Debounces.isSprinting = true
  834. end
  835. end)
  836.  
  837. uinps.InputEnded:connect(function(InputObj)
  838. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  839. Debounces.isSprinting = false
  840. end
  841. end)
  842.  
  843. rs.RenderStepped:connect(function()
  844. Debounces.FPS = 1/rs.RenderStepped:wait()
  845. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  846. if Debounces.isPassive == false then
  847. fire.Enabled = false
  848. light.Range = 0
  849. fight:Pause()
  850. sans:Resume()
  851. efxBlock.Transparency = 1
  852. else
  853. fire.Enabled = true
  854. light.Range = 10
  855. fight:Resume()
  856. sans:Pause()
  857. efxBlock.Transparency = 0
  858. end
  859. for i,v in pairs (rayModel:children()) do
  860. if v.Transparency >= 1 then
  861. v:Destroy()
  862. else
  863. v.CanCollide = true
  864. local parts = v:GetTouchingParts()
  865. v.CanCollide = false
  866. for i = 1,#parts do
  867. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  868. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  869. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  870. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  871. end
  872. end
  873. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  874. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  875. end
  876. end
  877. for i = 1,#Joints do
  878. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  879. end
  880. local sineval = math.sin(tick() * 2) * 3
  881. fire.Acceleration = Vector3.new(sineval,1,sineval)
  882. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  883. end)
  884. repeat wait() until game.Players.LocalPlayer
  885. local Mouse = game.Players.LocalPlayer:GetMouse()
  886. local Plr = game.Players.LocalPlayer
  887.  
  888. Mouse.KeyDown:connect(function(KeyDown)
  889. if KeyDown == "0" then
  890. Plr.Character.Humanoid.WalkSpeed = 190
  891. end
  892. end)
  893.  
  894. Mouse.KeyUp:connect(function(KeyUp)
  895. if KeyUp == "0" then
  896. Plr.Character.Humanoid.WalkSpeed = 16
  897. end
  898. end)
  899. function clerp(c1,c2,al)
  900. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  901. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  902. for i,v in pairs(com1) do
  903. com1[i] = v+(com2[i]-v)*al
  904. end
  905. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  906. end
  907.  
  908. plr = game:service'Players'.LocalPlayer
  909. char = plr.Character
  910. mouse = plr:GetMouse()
  911. humanoid = char:findFirstChild("Humanoid")
  912. torso = char:findFirstChild("Torso")
  913. head = char.Head
  914. ra = char:findFirstChild("Right Arm")
  915. la = char:findFirstChild("Left Arm")
  916. rl = char:findFirstChild("Right Leg")
  917. ll = char:findFirstChild("Left Leg")
  918. rs = torso:findFirstChild("Right Shoulder")
  919. ls = torso:findFirstChild("Left Shoulder")
  920. rh = torso:findFirstChild("Right Hip")
  921. lh = torso:findFirstChild("Left Hip")
  922. neck = torso:findFirstChild("Neck")
  923. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  924. anim = char:findFirstChild("Animate")
  925. do --Removing ROBLOX's new Looped bug >_>
  926. local function rec(x)
  927. for i,v in pairs(x:children()) do
  928. if v:IsA'Animation' then
  929. v.AnimationId = 'rbxassetid://28159255'
  930. end
  931. rec(v)
  932. end
  933. end
  934. rec(anim) --the Animate script
  935. end
  936.  
  937. humanoid.Jump = true
  938.  
  939. wait(.4)
  940.  
  941.  
  942. if anim then
  943. anim:Destroy()
  944. end
  945. rootpart = char:findFirstChild("HumanoidRootPart")
  946. camera = workspace.CurrentCamera
  947. modelforparts = char:findFirstChild("ModelForParts") or Instance.new("Model", char)
  948. modelforparts.Name = "ModelForParts"
  949.  
  950. function trailconnect(obj, wat)
  951. local trail = {}
  952. for i = 1, 4 do
  953. local p = Instance.new("Part")
  954. p.BrickColor = obj.BrickColor
  955. p.formFactor = "Custom"
  956. p.Size = Vector3.new(1,1,1)
  957. p.Locked = true
  958. p.Anchored = true
  959. p.CanCollide = false
  960. local mesh = Instance.new("CylinderMesh", p)
  961. mesh.Name = "Mesh"
  962. table.insert(trail,{p,0})
  963. end
  964. local lastpos = obj.Position
  965. local updatethis = 0
  966. local dontdothis = false
  967. game:service'RunService'.Stepped:connect(function()
  968. if wat == true then if dontdothis then return end
  969. for i,v in pairs(trail) do
  970. game:service'Debris':AddItem(obj, 0)
  971. table.remove(v, i)
  972. end
  973. dontdothis = true
  974. return
  975. end
  976. updatethis = ((updatethis) % 4) + 1
  977. local dstnc = (obj.Position - lastpos).magnitude
  978. trail[updatethis][1].Mesh.Scale = Vector3.new(.2,dstnc,.2)
  979. trail[updatethis][1].Parent = obj.Parent
  980. trail[updatethis][1].CFrame = CFrame.new((obj.Position + lastpos)/2,obj.Position) * CFrame.Angles(math.pi/2, 0, 0)
  981. trail[updatethis][2] = 0
  982. for i,v in pairs(trail) do
  983. v[2] = v[2] + .15
  984. v[1].Transparency = v[2]
  985. end
  986. lastpos = obj.Position
  987. end)
  988. end
  989.  
  990. do --rayCast
  991. function rayCast(startpos, Speed, Gravity, Dmg, color)
  992. local ran,err = ypcall(function()
  993. local rayPart = Instance.new("Part")
  994. rayPart.Name = "RayPart"
  995. rayPart.BrickColor = BrickColor.new(color)
  996. rayPart.Anchored = true
  997. rayPart.CanCollide = false
  998. rayPart.Locked = true
  999. rayPart.FormFactor = "Custom"
  1000. rayPart.TopSurface = Enum.SurfaceType.Smooth
  1001. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  1002. rayPart.Size = Vector3.new(.2, 50, .2)
  1003. rayPart:breakJoints()
  1004. Instance.new("CylinderMesh", rayPart)
  1005. local fire = Instance.new("Fire", rayPart)
  1006. fire.Color = rayPart.BrickColor.Color
  1007. fire.SecondaryColor = rayPart.BrickColor.Color
  1008. fire.Heat = 0
  1009. fire.Size = 10
  1010. local pl = Instance.new("PointLight", rayPart)
  1011. pl.Color = Color3.new(rayPart.BrickColor.r/1.5, rayPart.BrickColor.g/1.5, rayPart.BrickColor.b/1.5)
  1012. pl.Range = 18
  1013.  
  1014. local hitobj = false
  1015. local bulletposition = startpos.Position
  1016. rayPart.CFrame = startpos.CFrame
  1017. trailconnect(rayPart, hitobj)
  1018.  
  1019. local bulletvelocity = (Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2)))+( mouse.Hit.p - bulletposition).unit*Speed
  1020. local bulletlastposition = bulletposition
  1021.  
  1022. coroutine.resume(coroutine.create(function()
  1023. while true do
  1024.  
  1025. local dt = wait()
  1026. bulletlastposition = bulletposition
  1027. bulletvelocity = bulletvelocity + (Vector3.new(0, -3.81*Gravity, 0)*dt)
  1028. bulletposition = bulletposition + (bulletvelocity*dt)
  1029. local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition))
  1030. local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, {char, modelforparts} )
  1031.  
  1032. if (torso.Position - rayPart.Position).magnitude > 840 then
  1033. rayPart:Destroy()
  1034. hitobj = true
  1035. break
  1036. end
  1037.  
  1038.  
  1039. if hit then
  1040. hitobj = true
  1041. local damage = math.random(Dmg, Dmg+6)
  1042. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1043. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
  1044. elseif hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") then
  1045. hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage
  1046. end
  1047. local boom = Instance.new("Part", modelforparts)
  1048. boom.BrickColor = rayPart.BrickColor
  1049. boom.Anchored = true
  1050. boom.FormFactor = "Custom"
  1051. boom.Size = Vector3.new(1,1,1)
  1052. boom.CanCollide = false
  1053. boom.Transparency = 0.25
  1054. boom.CFrame = CFrame.new(hitposition.x, hitposition.y, hitposition.z)
  1055. boom.TopSurface = 0
  1056. boom.BottomSurface = 0
  1057. local sphere = Instance.new("SpecialMesh", boom)
  1058. sphere.MeshType = "Sphere"
  1059. local pl = Instance.new("PointLight", boom)
  1060. pl.Color = Color3.new(boom.BrickColor.r/1.5, boom.BrickColor.g/1.5, boom.BrickColor.b/1.5)
  1061. pl.Range = 20
  1062. for ye = 0, 8 do
  1063. local lite = Instance.new("Part", boom)
  1064. lite.FormFactor = "Custom"
  1065. lite.Size = Vector3.new(.2, 1.5, .2)
  1066. lite.BrickColor = boom.BrickColor
  1067. lite.CanCollide = false
  1068. lite.TopSurface = 0
  1069. lite.Anchored = false
  1070. lite.BottomSurface = 0
  1071. lite.Position = boom.Position + Vector3.new(math.random(-10, 10), math.random(6,15), math.random(-10, 10))
  1072. end
  1073.  
  1074. for i = 0, 20, 2.5 do
  1075. sphere.Scale = sphere.Scale + Vector3.new(i,i,i)
  1076. boom.Transparency = boom.Transparency + i/60
  1077. pl.Range = pl.Range + i/15
  1078. wait()
  1079. end
  1080. boom:Destroy()
  1081. for i,v in pairs(workspace:children()) do
  1082. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1083. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1084. if (v:findFirstChild("Torso").Position - boom.Position).magnitude < 16 and v.Name ~= char.Name then
  1085. v:findFirstChild("Humanoid"):TakeDamage(math.random(Dmg+2,Dmg+6))
  1086. end
  1087. end
  1088. end
  1089. if v and v:IsA("Part") and v.Name ~= "Base" then
  1090. if (v.Position - boom.Position).magnitude < 16 then
  1091. v:BreakJoints()
  1092. v.TopSurface = 0
  1093. v.BottomSurface = 0
  1094. v.LeftSurface = 0
  1095. v.RightSurface = 0
  1096. v.FrontSurface = 0
  1097. v.BackSurface = 0
  1098. v.Anchored = false
  1099. end
  1100. end
  1101. end
  1102. pcall(function()
  1103. bulletposition = hitposition
  1104. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  1105. rayPart:Destroy()
  1106. end)
  1107. break
  1108. end
  1109. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  1110. rayPart.Parent = modelforparts
  1111. end
  1112. end))
  1113. for i = 70, 65, -1.5 do
  1114. firing = true
  1115. camera.FieldOfView = i
  1116. wait()
  1117. end
  1118. for i = 65, 70, 2.5 do
  1119. firing = false
  1120. camera.FieldOfView = i
  1121. wait()
  1122. end
  1123. end)
  1124. if err then
  1125. print(err)
  1126. end
  1127. end
  1128. end
  1129.  
  1130.  
  1131. charge = 100
  1132.  
  1133. plrgui = game:service'Players'.LocalPlayer:findFirstChild("PlayerGui")
  1134.  
  1135. local statusgui = Instance.new("ScreenGui", plrgui)
  1136. local mainframe = Instance.new("Frame", statusgui)
  1137. mainframe.Size = UDim2.new(0, 200, 0, 200)
  1138. mainframe.Position = UDim2.new(.75, 0, .75, 0)
  1139. mainframe.Style = 3
  1140. local image = Instance.new("ImageLabel", mainframe)
  1141. image.Size = UDim2.new(1, 0, .47, 0)
  1142. image.Position = UDim2.new(0, 0, .235, 0)
  1143. image.BackgroundTransparency = 1
  1144. image.Image = "rbxassetid://145057975"
  1145. local chargetext = Instance.new("TextLabel", mainframe)
  1146. chargetext.FontSize = "Size18"
  1147. chargetext.Size = UDim2.new(1, 0, .95, 0)
  1148. chargetext.TextYAlignment = "Bottom"
  1149. chargetext.BackgroundTransparency = 1
  1150. chargetext.TextColor3 = Color3.new(1,1,1)
  1151. game:service'RunService'.Stepped:connect(function()
  1152. chargetext.Text = math.floor(charge).."%"
  1153. end)
  1154.  
  1155.  
  1156.  
  1157. local rm = Instance.new("Weld", torso)
  1158. rm.C0 = CFrame.new(1.5, 0.5, 0)
  1159. rm.C1 = CFrame.new(0, 0.5, 0)
  1160. rm.Part0 = torso
  1161. rm.Part1 = ra
  1162. local lm = Instance.new("Weld", torso)
  1163. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  1164. lm.C1 = CFrame.new(0, 0.5, 0)
  1165. lm.Part0 = torso
  1166. lm.Part1 = la
  1167.  
  1168. sound = Instance.new("Sound", head)
  1169. sound.Volume = 1
  1170. sound.SoundId = "rbxassetid://144834276"
  1171. sound.Looped = true
  1172.  
  1173.  
  1174. dancemode = true
  1175. debounceofsprint = false
  1176.  
  1177. --create func
  1178. function part(parent, size, color, formfactor, collide, transparency)
  1179. if transparency == nil then transparency=0 end
  1180. if collide == nil then collide=false end
  1181. if formfactor == nil then formfactor="Custom" end
  1182. local p = Instance.new("Part", parent)
  1183. p.FormFactor = formfactor
  1184. p.CanCollide = collide
  1185. p.Size = size
  1186. p.Locked = true
  1187. p.Transparency = transparency
  1188. p.Position = torso.Position + Vector3.new(0, 1, 0)
  1189. p.BrickColor = color
  1190. p.FrontSurface = "SmoothNoOutlines"
  1191. p.BackSurface = "SmoothNoOutlines"
  1192. p.LeftSurface = "SmoothNoOutlines"
  1193. p.BottomSurface = "SmoothNoOutlines"
  1194. p.TopSurface = "SmoothNoOutlines"
  1195. p.RightSurface = "SmoothNoOutlines"
  1196. return p
  1197. end
  1198. function wedge(parent, size, color, formfactor, collide, transparency)
  1199. if transparency==nil then transparency=0 end
  1200. if collide==nil then collide=false end
  1201. if formfactor==nil then formfactor="Custom" end
  1202. local p = Instance.new("WedgePart", parent)
  1203. p.FormFactor = formfactor
  1204. p.CanCollide = collide
  1205. p.Size = size
  1206. p.Locked = true
  1207. p.Position = torso.Position
  1208. p.BrickColor = color
  1209. p.FrontSurface = "SmoothNoOutlines"
  1210. p.BackSurface = "SmoothNoOutlines"
  1211. p.LeftSurface = "SmoothNoOutlines"
  1212. p.BottomSurface = "SmoothNoOutlines"
  1213. p.TopSurface = "SmoothNoOutlines"
  1214. p.RightSurface = "SmoothNoOutlines"
  1215. return p
  1216. end
  1217. function weld(part0, part1, c0, parent, c1)
  1218. if parent == nil then parent=char end
  1219. if c1 == nil then c1=CFrame.new() end
  1220.  
  1221. local wel = Instance.new("Weld", parent)
  1222. wel.Part0 = part0
  1223. wel.Part1 = part1
  1224. wel.C0 = c0
  1225. wel.C1 = c1
  1226. return wel
  1227. end
  1228. function specialmesh(parent, meshType, scale, meshId)
  1229. if meshId==nil then meshId="" end
  1230. local mesh = Instance.new("SpecialMesh", parent)
  1231. mesh.Scale = scale
  1232. mesh.MeshType = meshType
  1233. mesh.MeshId = meshId
  1234. return mesh
  1235. end
  1236. ----------------------------------------------------------------------------------------------------------
  1237. --function part(parent, size, color, formfactor, collide, transparency)
  1238. --function weld(part0, part1, c0, parent, c1)
  1239.  
  1240. ----------------------------------------------------------------------------------------------------------
  1241. function animatehuman(animationid, object)
  1242. local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
  1243. animation:Play()
  1244. end
  1245. local danceAnim = Instance.new("Animation", char)
  1246. danceAnim.AnimationId = "http://www.roblox.com/asset/?id=130018893"
  1247. danceAnim.Name = "DancingAnimation"
  1248. ----------------------------------------------------------------------------------------------------------
  1249. local main = Instance.new("Part", char)
  1250. main.FormFactor = "Custom"
  1251. main.CanCollide = false
  1252. main.Size = Vector3.new(.75, 1, 1.2)
  1253. main.Locked = true
  1254. main.BrickColor = BrickColor.new("Black")
  1255. main.TopSurface = 0
  1256. main.BottomSurface = 0
  1257. main.Position = torso.Position
  1258. main:BreakJoints()
  1259. local weld1 = weld(main, ra, CFrame.new(), char, CFrame.new(0, -.8, -.6))
  1260. local speaker = Instance.new("Part", char)
  1261. speaker.FormFactor = "Custom"
  1262. speaker.CanCollide = false
  1263. speaker.Size = Vector3.new(1.5, .25, 1.4)
  1264. speaker.Locked = true
  1265. speaker.BrickColor = BrickColor.new("Black")
  1266. speaker.TopSurface = 0
  1267. speaker.BottomSurface = 0
  1268. speaker.Position = torso.Position
  1269. speaker:BreakJoints()
  1270. local weld2 = weld(speaker, main, CFrame.new(), char, CFrame.new(-.25, -1.7, .6))
  1271. local speaker2 = Instance.new("Part", char)
  1272. speaker2.FormFactor = "Custom"
  1273. speaker2.CanCollide = false
  1274. speaker2.Size = Vector3.new(1, .25, 2)
  1275. speaker2.Locked = true
  1276. speaker2.BrickColor = BrickColor.new("Black")
  1277. speaker2.TopSurface = 0
  1278. speaker2.BottomSurface = 0
  1279. speaker2.Position = torso.Position
  1280. speaker2:BreakJoints()
  1281. local weld3 = weld(speaker2, main, CFrame.new(), char, CFrame.new(0, -1.7, -.2))
  1282. local main2 = Instance.new("Part", char)
  1283. main2.FormFactor = "Custom"
  1284. main2.CanCollide = false
  1285. main2.Size = Vector3.new(.751, 1, .6)
  1286. main2.Locked = true
  1287. main2.BrickColor = BrickColor.new("Black")
  1288. main2.TopSurface = 0
  1289. main2.BottomSurface = 0
  1290. main2.Position = torso.Position
  1291. main2:BreakJoints()
  1292. local weld4 = weld(main2, ra, CFrame.new(), char, CFrame.new(0, 0, -.9))
  1293. local main3 = Instance.new("Part", char)
  1294. main3.FormFactor = "Custom"
  1295. main3.CanCollide = false
  1296. main3.Size = Vector3.new(.751, 1.45, 1)
  1297. main3.Locked = true
  1298. main3.BrickColor = BrickColor.new("Black")
  1299. main3.TopSurface = 0
  1300. main3.BottomSurface = 0
  1301. main3.Position = torso.Position
  1302. main3:BreakJoints()
  1303. local weld5 = weld(main3, ra, CFrame.new(), char, CFrame.new(0, -1.6, -.9))
  1304. local main4 = Instance.new("Part", char)
  1305. main4.FormFactor = "Custom"
  1306. main4.CanCollide = false
  1307. main4.Size = Vector3.new(1, .76, 1)
  1308. Instance.new("CylinderMesh", main4)
  1309. main4.Locked = true
  1310. main4.BrickColor = BrickColor.new("Black")
  1311. main4.TopSurface = 0
  1312. main4.BottomSurface = 0
  1313. main4.Position = torso.Position
  1314. main4:BreakJoints()
  1315. local weld6 = weld(main4, main, CFrame.new(), char, CFrame.new(0, -.15, -.5)*CFrame.Angles(math.pi/2, 0, math.pi/2))
  1316. local speaker3 = Instance.new("Part", char)
  1317. speaker3.FormFactor = "Custom"
  1318. speaker3.CanCollide = false
  1319. speaker3.Size = Vector3.new(1.5, .5, 1.4)
  1320. speaker3.Locked = true
  1321. speaker3.BrickColor = BrickColor.new("Black")
  1322. speaker3.TopSurface = 0
  1323. speaker3.BottomSurface = 0
  1324. speaker3.Position = torso.Position
  1325. speaker3:BreakJoints()
  1326. local welds1 = weld(speaker3, main, CFrame.new(), char, CFrame.new(-.25, -2.2, .6))
  1327. local speaker4 = Instance.new("Part", char)
  1328. speaker4.FormFactor = "Custom"
  1329. speaker4.CanCollide = false
  1330. speaker4.Size = Vector3.new(1, .5, 2)
  1331. speaker4.Locked = true
  1332. speaker4.BrickColor = BrickColor.new("Black")
  1333. speaker4.TopSurface = 0
  1334. speaker4.BottomSurface = 0
  1335. speaker4.Position = torso.Position
  1336. speaker4:BreakJoints()
  1337. local welds2 = weld(speaker4, main, CFrame.new(), char, CFrame.new(0, -2.205, -.2))
  1338. local speaker5 = Instance.new("Part", char)
  1339. speaker5.FormFactor = "Custom"
  1340. speaker5.CanCollide = false
  1341. speaker5.Size = Vector3.new(1.4, .4, 1.3)
  1342. speaker5.Locked = true
  1343. speaker5.BrickColor = BrickColor.new("Black")
  1344. speaker5.TopSurface = 0
  1345. speaker5.BottomSurface = 0
  1346. speaker5.Position = torso.Position
  1347. speaker5:BreakJoints()
  1348. local welds3 = weld(speaker5, main, CFrame.new(), char, CFrame.new(-.25, -2, .6))
  1349. local speaker6 = Instance.new("Part", char)
  1350. speaker6.FormFactor = "Custom"
  1351. speaker6.CanCollide = false
  1352. speaker6.Size = Vector3.new(.9, .4, 1.9)
  1353. speaker6.Locked = true
  1354. speaker6.BrickColor = BrickColor.new("Black")
  1355. speaker6.TopSurface = 0
  1356. speaker6.BottomSurface = 0
  1357. speaker6.Position = torso.Position
  1358. speaker6:BreakJoints()
  1359. local welds4 = weld(speaker6, main, CFrame.new(), char, CFrame.new(0, -2, -.2))
  1360.  
  1361. local support = Instance.new("Part", char)
  1362. support.FormFactor = "Custom"
  1363. support.CanCollide = false
  1364. support.Size = Vector3.new(.3, .4, .6)
  1365. support.Locked = true
  1366. support.BrickColor = BrickColor.new("Black")
  1367. support.TopSurface = 0
  1368. support.BottomSurface = 0
  1369. support.Position = torso.Position
  1370. support:BreakJoints()
  1371. local welds5 = weld(support, main, CFrame.new(), char, CFrame.new(0, -1.5, -.4))
  1372.  
  1373.  
  1374. debounce = false
  1375.  
  1376. function stopsound()
  1377. if debounce then return end
  1378. if not sound.IsPlaying then return end
  1379. sound:stop()
  1380. debounce = true
  1381. local dancebro = Instance.new("StringValue", game:service'Lighting')
  1382. dancebro.Name = ('STOPDANCING'..plr.Name)
  1383. game:service'Debris':AddItem(dancebro, 1)
  1384. coroutine.wrap(function()
  1385. while not sound.IsPlaying do
  1386. if charge <= 100 then
  1387. charge = charge + .1
  1388. wait()
  1389. elseif charge > 100 then
  1390. charge = 100
  1391. break
  1392. end
  1393. end
  1394. end)()
  1395. wait(.1)
  1396. debounce = false
  1397. end
  1398. mouse.Button1Down:connect(function(mous)
  1399. if debounceofsprint then return end
  1400. if sound.IsPlaying then return end
  1401. if debounce then return end
  1402. sound:play()
  1403. for i = 70, 55, -.35 do
  1404. if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
  1405. camera.FieldOfView = i
  1406. wait()
  1407. end
  1408. for i = 65, 70, 2.5 do
  1409. if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
  1410. camera.FieldOfView = i
  1411. wait()
  1412. end
  1413. if debounce then debounce = false return end
  1414. if dancemode then
  1415. for i,v in pairs(workspace:children()) do
  1416. if not sound.IsPlaying then break end
  1417. coroutine.wrap(function()
  1418. if v:IsA("Model") and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("ModelForParts") == nil and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - head.Position).magnitude < 30 then
  1419. danceAnimClone = danceAnim:clone()
  1420. danceAnimClone.Parent = v
  1421. danceAnimClone.AnimationId = "http://www.roblox.com/asset/?id=130018893"
  1422. wait()
  1423. NLS([[
  1424. function animatehuman(animationid, object)
  1425. local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
  1426. animation:Play()
  1427. end
  1428. while wait(.5) do
  1429. if game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[[") and game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[["):IsA("StringValue") then game:service'Debris':AddItem(script.Parent:findFirstChild("DancingAnimation"), 5) break end
  1430. animatehuman(script.Parent:findFirstChild("DancingAnimation"), script.Parent)
  1431. end
  1432. ]], v)
  1433. end
  1434. end)()
  1435. end
  1436. end
  1437. coroutine.wrap(function()
  1438. while sound.IsPlaying do
  1439. if charge <= 1 then
  1440. if debounce then break end
  1441. if not sound.IsPlaying then break end
  1442. sound:stop()
  1443. debounce = true
  1444. chargetext.TextColor3 = Color3.new(1,0,0)
  1445. dancebro = Instance.new("StringValue", game:service'Lighting')
  1446. dancebro.Name = ('STOPDANCING'..plr.Name)
  1447. game:service'Debris':AddItem(dancebro, 1)
  1448. coroutine.wrap(function()
  1449. repeat wait() until charge >= 10
  1450. debounce = false
  1451. chargetext.TextColor3 = Color3.new(1,1,1)
  1452. end)()
  1453. coroutine.wrap(function()
  1454. while not sound.IsPlaying do
  1455. if charge <= 100 then
  1456. charge = charge + .1
  1457. wait()
  1458. elseif charge > 100 then
  1459. charge = 100
  1460. break
  1461. end
  1462. end
  1463. end)()
  1464. else
  1465. charge = charge - .08
  1466. wait()
  1467. end
  1468. end
  1469. end)()
  1470. coroutine.wrap(function()
  1471. local ran,err = ypcall(function()
  1472. while sound.IsPlaying and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 do
  1473. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  1474. if not sound.IsPlaying then break end
  1475. rayCast(speaker, 1250, 0, 5, "Lavender")
  1476. wait(.35)
  1477. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  1478. if not sound.IsPlaying then break end
  1479. rayCast(speaker, 1250, 0, 5, "Pink")
  1480. wait(.95)
  1481. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  1482. if not sound.IsPlaying then break end
  1483. rayCast(speaker, 1250, 0, 5, "Bright bluish green")
  1484. wait(.55)
  1485. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  1486. if not sound.IsPlaying then break end
  1487. rayCast(speaker, 1250, 0, 5, "Pink")
  1488. wait(.4)
  1489. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  1490. if not sound.IsPlaying then break end
  1491. rayCast(speaker, 1250, 0, 5, "Bright bluish green")
  1492. local pl = Instance.new("PointLight", torso)
  1493. pl.Color = Color3.new(153/255/1.25, 102/255/1.25, 204/255/1.25)
  1494. pl.Range = 30
  1495. pl.Brightness = 0.7
  1496. game:service'Debris':AddItem(pl, .3)
  1497. wait(.45)
  1498. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  1499. if not sound.IsPlaying then break end
  1500. rayCast(speaker, 1250, 0, 5, "Lavender")
  1501. wait(.75)
  1502. end
  1503. end) if err then print(err) end
  1504. end)()
  1505. end)
  1506.  
  1507. mouse.Button1Up:connect(function(mous)
  1508. stopsound()
  1509. end)
  1510. ctrl = false
  1511. mouse.KeyDown:connect(function(k)
  1512. if string.byte(k) == 50 then
  1513. ctrl = true
  1514. humanoid.WalkSpeed = 8
  1515. end
  1516. if string.byte(k) == 48 then
  1517. humanoid.WalkSpeed = 28
  1518. end
  1519. end)
  1520.  
  1521. mouse.KeyUp:connect(function(k)
  1522. if string.byte(k) == 50 then
  1523. ctrl = false
  1524. humanoid.WalkSpeed = 16
  1525. end
  1526. if string.byte(k) == 48 then
  1527. humanoid.WalkSpeed = 16
  1528. if ctrl then
  1529. humanoid.WalkSpeed = 8
  1530. end
  1531. end
  1532. end)
  1533.  
  1534. humanoid.Died:connect(function()
  1535. deathpos = torso.Position
  1536. WorkModel = Instance.new("Model", workspace)
  1537. WorkModel.Name = " "
  1538. wait(1/60)
  1539. humanoid.Parent = nil
  1540. if torso then
  1541. local Head = char:FindFirstChild("Head")
  1542. if Head then
  1543. local Neck = Instance.new("Weld")
  1544. Neck.Name = "Neck"
  1545. Neck.Part0 = torso
  1546. Neck.Part1 = Head
  1547. Neck.C0 = CFrame.new(0, 1.5, 0)
  1548. Neck.C1 = CFrame.new()
  1549. Neck.Parent = torso
  1550. end
  1551. local Limb = char:FindFirstChild("Right Arm")
  1552. if Limb then
  1553.  
  1554. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  1555. local Joint = Instance.new("Glue")
  1556. Joint.Name = "RightShoulder"
  1557. Joint.Part0 = torso
  1558. Joint.Part1 = Limb
  1559. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1560. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1561. Joint.Parent = torso
  1562.  
  1563. local B = Instance.new("Part")
  1564. B.TopSurface = 0
  1565. B.BottomSurface = 0
  1566. B.formFactor = "Symmetric"
  1567. B.Size = Vector3.new(1, 1, 1)
  1568. B.Transparency = 1
  1569. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1570. B.Parent = char
  1571. B.CanCollide = false
  1572. local W = Instance.new("Weld")
  1573. W.Part0 = Limb
  1574. W.Part1 = B
  1575. W.C0 = CFrame.new(0, -0.5, 0)
  1576. W.Parent = Limb
  1577.  
  1578. end
  1579. local Limb = char:FindFirstChild("Left Arm")
  1580. if Limb then
  1581.  
  1582. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  1583. local Joint = Instance.new("Glue")
  1584. Joint.Name = "LeftShoulder"
  1585. Joint.Part0 = torso
  1586. Joint.Part1 = Limb
  1587. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1588. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1589. Joint.Parent = torso
  1590.  
  1591. local B = Instance.new("Part")
  1592. B.TopSurface = 0
  1593. B.BottomSurface = 0
  1594. B.formFactor = "Symmetric"
  1595. B.Size = Vector3.new(1, 1, 1)
  1596. B.Transparency = 1
  1597. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1598. B.Parent = char
  1599. B.CanCollide = false
  1600. local W = Instance.new("Weld")
  1601. W.Part0 = Limb
  1602. W.Part1 = B
  1603. W.C0 = CFrame.new(0, -0.5, 0)
  1604. W.Parent = Limb
  1605.  
  1606. end
  1607. local Limb = char:FindFirstChild("Right Leg")
  1608. if Limb then
  1609.  
  1610. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  1611. local Joint = Instance.new("Glue")
  1612. Joint.Name = "RightHip"
  1613. Joint.Part0 = torso
  1614. Joint.Part1 = Limb
  1615. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1616. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1617. Joint.Parent = torso
  1618.  
  1619. local B = Instance.new("Part")
  1620. B.TopSurface = 0
  1621. B.BottomSurface = 0
  1622. B.formFactor = "Symmetric"
  1623. B.Size = Vector3.new(1, 1, 1)
  1624. B.Transparency = 1
  1625. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1626. B.Parent = char
  1627. B.CanCollide = false
  1628. local W = Instance.new("Weld")
  1629. W.Part0 = Limb
  1630. W.Part1 = B
  1631. W.C0 = CFrame.new(0, -0.5, 0)
  1632. W.Parent = Limb
  1633.  
  1634. end
  1635. local Limb = char:FindFirstChild("Left Leg")
  1636. if Limb then
  1637.  
  1638. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  1639. local Joint = Instance.new("Glue")
  1640. Joint.Name = "LeftHip"
  1641. Joint.Part0 = torso
  1642. Joint.Part1 = Limb
  1643. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1644. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1645. Joint.Parent = torso
  1646.  
  1647. local B = Instance.new("Part")
  1648. B.TopSurface = 0
  1649. B.BottomSurface = 0
  1650. B.formFactor = "Symmetric"
  1651. B.Size = Vector3.new(1, 1, 1)
  1652. B.Transparency = 1
  1653. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1654. B.Parent = char
  1655. B.CanCollide = false
  1656. local W = Instance.new("Weld")
  1657. W.Part0 = Limb
  1658. W.Part1 = B
  1659. W.C0 = CFrame.new(0, -0.5, 0)
  1660. W.Parent = Limb
  1661. end
  1662. for blood = 0, 3 do
  1663. local blood = Instance.new("Part", workspace)
  1664. blood.BrickColor = BrickColor.Red()
  1665. blood.FormFactor = "Custom"
  1666. blood.Size = Vector3.new(.2,.2,.2)
  1667. blood.Anchored = true
  1668. blood.TopSurface = "Smooth"
  1669. blood.BackSurface = "Smooth"
  1670. local bloodmesh = Instance.new("CylinderMesh", blood)
  1671. bloodmesh.Scale = Vector3.new(3, 0, 3)
  1672. local rayzb = Ray.new(torso.Position, Vector3.new(0, -20, 0) + Vector3.new(math.random(-2, 2), 0, math.random(-2, 2)))
  1673. local hitzb, hitposb = workspace:findPartOnRay(rayzb, char)
  1674. if hitzb then
  1675. blood.CFrame = CFrame.new(hitposb.x,hitposb.y,hitposb.z)
  1676. blood.CFrame = blood.CFrame * CFrame.new(0, .05, 0)
  1677. coroutine.wrap(function()
  1678. for cframe = 0, math.random(16, 24) do
  1679. bloodmesh.Scale = bloodmesh.Scale + Vector3.new(.45, 0, .45)
  1680. wait()
  1681. end
  1682. end)()
  1683. elseif not hitzb then
  1684. blood:Destroy()
  1685. end
  1686. end
  1687. local BP = Instance.new("BodyPosition", torso)
  1688. BP.maxForce = Vector3.new(1,1,1)/0
  1689. BP.position = deathpos
  1690. for i,v in pairs(char:children()) do
  1691. if v:IsA("Part") then v.Parent = WorkModel end
  1692. end
  1693. wait(.3)
  1694. BP:Destroy()
  1695. end
  1696. end)
  1697.  
  1698. local rlegm = Instance.new("Motor", torso)
  1699. rlegm.C0 = CFrame.new(0.5, -1, 0)
  1700. rlegm.C1 = CFrame.new(0, 1, 0)
  1701. rlegm.Part0 = torso
  1702. rlegm.Part1 = rl
  1703. rlegm.Name = "Right Hip"
  1704. local llegm = Instance.new("Motor", torso)
  1705. llegm.C0 = CFrame.new(-0.5, -1, 0)
  1706. llegm.C1 = CFrame.new(0, 1, 0)
  1707. llegm.Part0 = torso
  1708. llegm.Part1 = ll
  1709. llegm.Name = "Left Hip"
  1710. neck.C0 = CFrame.new(0, 1, 0)
  1711. neck.C1 = CFrame.new(0, -0.5, 0)
  1712. rj.C0 = CFrame.new(0, -1, 0)
  1713. rj.C1 = CFrame.new(0, -1, 0)
  1714. rsc0 = rm.C0
  1715. lsc0 = lm.C0
  1716. neckc0 = neck.C0
  1717. rootc0 = rj.C0
  1718. llc0 = llegm.C0
  1719. rlc0 = rlegm.C0
  1720. speed = 0.4
  1721. angle = 0
  1722. anglespeed = 0
  1723. mvmnt = 0
  1724. game:service'RunService'.RenderStepped:connect(function()
  1725. angle = (angle % 100) + anglespeed/10
  1726. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  1727. local rscf = rsc0
  1728. local lscf = lsc0
  1729. local rlcf = rlc0
  1730. local llcf = llc0
  1731. local rjcf = rootc0
  1732. local ncf = neckc0
  1733. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  1734. local hitz, enz = workspace:findPartOnRay(rayz, char)
  1735. --math.asin(mouse.UnitRay.Direction.y)
  1736. ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y, 0, 0)
  1737. rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
  1738. lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, math.rad(45))
  1739. if firing then
  1740. rscf = rsc0 * CFrame.new(-.55, .15, .65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
  1741. lscf = lsc0 * CFrame.new(.85, .15, -.35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, math.rad(45))
  1742. end
  1743. if not hitz then
  1744. ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
  1745. rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
  1746. lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
  1747. rjcf = rootc0 * CFrame.Angles(-math.pi/32, 0, 0)
  1748. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) * CFrame.Angles(-math.pi/14, 0, 0)
  1749. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  1750. elseif humanoid.Sit then
  1751. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1752. rjcf = rootc0 * CFrame.new(0, -.2, 0)
  1753. rlcf = rlc0 * CFrame.Angles(math.pi/2, 0, math.rad(7.5))
  1754. llcf = llc0 * CFrame.Angles(math.pi/2, 0, -math.rad(7.5))
  1755. if sprinting then
  1756. debounceofsprint = false
  1757. sprinting = false
  1758. end
  1759. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1760. speed = 0.3
  1761. if ctrl then
  1762. rjcf = rootc0 * CFrame.new(0, -1.25, 0)
  1763. llcf = llc0 * CFrame.new(0, 0, -.45) * CFrame.Angles(-math.pi/2.2, 0, 0)
  1764. rlcf = rlcf * CFrame.new(0, 1.25, -.85)
  1765. else
  1766. rjcf = rootc0
  1767. rlcf = rlc0 * CFrame.Angles(-math.rad(.5), 0, math.rad(1.5))
  1768. llcf = llc0 * CFrame.Angles(math.rad(1.5), 0, -math.rad(1.5))
  1769. end
  1770. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  1771. if not humanoid.Sit then
  1772. anglespeed = 2
  1773. if ctrl then
  1774. anglespeed = 3
  1775. ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/18, 0, 0)
  1776. rjcf = rootc0 * CFrame.new(0, -.35, 0) * CFrame.Angles(-math.pi/18, 0, 0)
  1777. rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, 0)
  1778. lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, math.rad(45))
  1779. llcf = llc0 * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 - math.sin(angle)*.45, 0, 0)
  1780. rlcf = rlcf * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 + math.sin(angle)*.45, 0, 0)
  1781. else
  1782. rjcf = rootc0
  1783. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.65, 0, math.rad(.5))
  1784. llcf = llc0 * CFrame.Angles(math.sin(angle)*.65, 0, -math.rad(.5))
  1785. end
  1786. if sprinting then
  1787. debounceofsprint = false
  1788. sprinting = false
  1789. end
  1790. end
  1791. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  1792. if not humanoid.Sit then
  1793. anglespeed = 2.7
  1794. ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
  1795. rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
  1796. lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
  1797. rjcf = rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/18, math.sin(angle)*.1, math.sin(angle)*.045)
  1798. rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  1799. llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  1800. sprinting = true
  1801. debounceofsprint = true
  1802. end
  1803. end
  1804. rm.C0 = clerp(rm.C0,rscf,speed)
  1805. lm.C0 = clerp(lm.C0,lscf,speed)
  1806. rj.C0 = clerp(rj.C0,rjcf,speed)
  1807. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1808. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1809. neck.C0 = clerp(neck.C0,ncf,speed)
  1810. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement