Advertisement
Its_YeBoi

Untitled

Jan 17th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.00 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. char = plr.Character
  3. torso = char.Torso
  4. head = char.Head
  5. hed = char.Head
  6. neck = torso.Neck
  7. local syne = 0
  8. mouse = plr:GetMouse()
  9. larm = char["Left Arm"]
  10. rarm = char["Right Arm"]
  11. lleg = char["Left Leg"]
  12. rleg = char["Right Leg"]
  13. local Player = game:service("Players").LocalPlayer
  14. local Char = Player.Character
  15. local mouse = Player:GetMouse()
  16. local Humanoid = Char:findFirstChild("Humanoid")
  17. local Torso = Char:findFirstChild("Torso")
  18. Humanoid.MaxHealth = math.huge
  19. wait()
  20. Humanoid.Health = math.huge
  21. local Head = Char.Head
  22. local ra = Char:findFirstChild("Right Arm")
  23. local la = Char:findFirstChild("Left Arm")
  24. local rl = Char:findFirstChild("Right Leg")
  25. local ll = Char:findFirstChild("Left Leg")
  26. local rs = Torso:findFirstChild("Right Shoulder")
  27. local ls = Torso:findFirstChild("Left Shoulder")
  28. local rh = Torso:findFirstChild("Right Hip")
  29. local lh = Torso:findFirstChild("Left Hip")
  30. local neck = Torso:findFirstChild("Neck")
  31. local rp = Char:findFirstChild("HumanoidRootPart")
  32. rp.Archivable = true
  33. --local rj = rp:findFirstChild("RootJoint")
  34. --rj.Archivable = true
  35. local rj=Instance.new('Weld',rp)
  36. rj.Part0=rp
  37. rj.Part1=torso
  38. local animate = Char:findFirstChild("Animate")
  39. local rootpart = Char:findFirstChild("HumanoidRootPart")
  40. local Camera = workspace.CurrentCamera
  41. local CF = CFrame.new
  42. local components = CF().components
  43. rootpart.CanCollide = false
  44. local debounce = false
  45. function Random(num)
  46. local section = num % 1 * 3
  47. local secondary = 0.5 * math.pi * (section % 1)
  48. if section < 1 then
  49. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
  50. elseif section < 2 then
  51. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
  52. else
  53. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
  54. end
  55. end
  56. v = Instance.new("Part")
  57. v.Name = "ColorBrick"
  58. v.Parent = part
  59. v.FormFactor = "Symmetric"
  60. v.Anchored = true
  61. v.CanCollide = false
  62. v.BottomSurface = "Smooth"
  63. v.TopSurface = "Smooth"
  64. v.Size = Vector3.new(10, 5, 3)
  65. v.Transparency = 0.7
  66. v.CFrame = head.CFrame
  67. v.BrickColor = BrickColor.new("Really black")
  68. v.Transparency = 1
  69. sine = 100
  70. angle = 100
  71. anglespeed = 100
  72. local anim = false
  73. local walking = false
  74. local sprinting = false
  75. local superspeed = false
  76. local superspeed2 = false
  77. local debounce = false
  78. function Lerp(a, b, c)
  79. return a + (b - a) * c
  80. end
  81. function phaseclone()
  82. Char.Archivable = true
  83. local Clone1 = Char:Clone()
  84. Clone1.Parent = game.Workspace
  85. for i, v in pairs(Clone1:GetChildren()) do
  86. if v.ClassName == "BodyColors" then
  87. B = "Sea green"
  88. v.HeadColor = BrickColor.new(B)
  89. v.LeftArmColor = BrickColor.new(B)
  90. v.RightArmColor = BrickColor.new(B)
  91. v.TorsoColor = BrickColor.new(B)
  92. v.LeftLegColor = BrickColor.new(B)
  93. v.RightLegColor = BrickColor.new(B)
  94. elseif not v:IsA("Part") then
  95. v:Destroy()
  96. end
  97. if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
  98. v:Destroy()
  99. end
  100. if v:IsA("Part") then
  101. v.Transparency = 0.5
  102. v.TopSurface = "Smooth"
  103. v.BottomSurface = "Smooth"
  104. v.LeftSurface = "Smooth"
  105. v.RightSurface = "Smooth"
  106. Bl = "Lime green"
  107. v.BrickColor = BrickColor.new(Bl)
  108. v.Anchored = true
  109. v.CanCollide = false
  110. end
  111. end
  112. for i, v in pairs(Clone1:GetChildren()) do
  113. if v:FindFirstChild("roblox") then
  114. v.roblox:Destroy()
  115. end
  116. if v:FindFirstChild("face") then
  117. v.face:Destroy()
  118. end
  119. if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
  120. v:Remove()
  121. end
  122. end
  123. wait(0.3)
  124. for i = 1, 5 do
  125. for _, v in pairs(Clone1:GetChildren()) do
  126. if v:IsA("Part") then
  127. v.Transparency = 0.5 + i / 5
  128. wait()
  129. end
  130. end
  131. end
  132. Clone1:Destroy()
  133. end
  134. function ctlerp(c1, c2, al)
  135. local com1 = {
  136. c1:components()
  137. }
  138. local com2 = {
  139. c2:components()
  140. }
  141. for i, v in pairs(com1) do
  142. com1[i] = Lerp(v, com2[i], al)
  143. end
  144. return CF(unpack(com1))
  145. end
  146. do
  147. local QuaternionFromCFrame = function(cf)
  148. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  149. local trace = m00 + m11 + m22
  150. if trace > 0 then
  151. local s = math.sqrt(1 + trace)
  152. local recip = 0.5 / s
  153. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  154. else
  155. local i = 0
  156. if m00 < m11 then
  157. i = 1
  158. end
  159. if m22 > (i == 0 and m00 or m11) then
  160. i = 2
  161. end
  162. if i == 0 then
  163. local s = math.sqrt(m00 - m11 - m22 + 1)
  164. local recip = 0.5 / s
  165. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  166. elseif i == 1 then
  167. local s = math.sqrt(m11 - m22 - m00 + 1)
  168. local recip = 0.5 / s
  169. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  170. elseif i == 2 then
  171. local s = math.sqrt(m22 - m00 - m11 + 1)
  172. local recip = 0.5 / s
  173. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  174. end
  175. end
  176. end
  177. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  178. local xs, ys, zs = x + x, y + y, z + z
  179. local wx, wy, wz = w * xs, w * ys, w * zs
  180. local xx = x * xs
  181. local xy = x * ys
  182. local xz = x * zs
  183. local yy = y * ys
  184. local yz = y * zs
  185. local zz = z * zs
  186. return CF(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  187. end
  188. local QuaternionSlerp = function(a, b, t)
  189. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  190. local startInterp, finishInterp
  191. if cosTheta >= 1.0E-4 then
  192. if 1 - cosTheta > 1.0E-4 then
  193. local theta = math.acos(cosTheta)
  194. local invSinTheta = 1 / math.sin(theta)
  195. startInterp = math.sin((1 - t) * theta) * invSinTheta
  196. finishInterp = math.sin(t * theta) * invSinTheta
  197. else
  198. startInterp = 1 - t
  199. finishInterp = t
  200. end
  201. elseif 1 + cosTheta > 1.0E-4 then
  202. local theta = math.acos(-cosTheta)
  203. local invSinTheta = 1 / math.sin(theta)
  204. startInterp = math.sin((t - 1) * theta) * invSinTheta
  205. finishInterp = math.sin(t * theta) * invSinTheta
  206. else
  207. startInterp = t - 1
  208. finishInterp = t
  209. end
  210. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  211. end
  212. function clerp(a, b, t)
  213. local qa = {
  214. QuaternionFromCFrame(a)
  215. }
  216. local qb = {
  217. QuaternionFromCFrame(b)
  218. }
  219. local ax, ay, az = a.x, a.y, a.z
  220. local bx, by, bz = b.x, b.y, b.z
  221. local _t = 1 - t
  222. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  223. end
  224. end
  225. rm = Instance.new("Weld", Torso)
  226. rm.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, 0, 0)
  227. rm.C1 = CFrame.new(0, 0.5, 0)
  228. rm.Part0 = Torso
  229. rm.Part1 = ra
  230. lm = Instance.new("Weld", Torso)
  231. lm.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, 0)
  232. lm.C1 = CFrame.new(0, 0.5, 0)
  233. lm.Part0 = Torso
  234. lm.Part1 = la
  235. rlegm = Instance.new("Weld", Torso)
  236. rlegm.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, 0)
  237. rlegm.C1 = CFrame.new(0, 1, 0)
  238. rlegm.Part0 = Torso
  239. rlegm.Part1 = rl
  240. llegm = Instance.new("Weld", Torso)
  241. llegm.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, 0)
  242. llegm.C1 = CFrame.new(0, 1, 0)
  243. llegm.Part0 = Torso
  244. llegm.Part1 = ll
  245. neck.C0 = CFrame.new(0, 1, 0)
  246. neck.C1 = CFrame.new(0, -0.5, 0)
  247. game:GetService("RunService").Stepped:connect(function()
  248. angle = angle % 100 + anglespeed / 10
  249. rootpart.CanCollide = false
  250. local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
  251. syne=syne+.95
  252. if Humanoid.Jump and Torso.Velocity.Y > 1 and speed < 2 then
  253. animpose = "Jump"
  254. elseif speed < 1 then
  255. animpose = "Idle"
  256. elseif sprinting == true then
  257. animpose = "Sprinting"
  258. elseif superspeed == true then
  259. animpose = "SuperSpeed"
  260. elseif superspeed2 == true then
  261. animpose = "SuperSpeed2"
  262. elseif speed > 2 then
  263. walking = true
  264. animpose = "Moving"
  265. end
  266. if animpose == "Idle" and anim == false then
  267. anglespeed = 0.5
  268. local idlesineinc = 20
  269. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, 0.15) * CFrame.Angles(math.rad(15) + math.sin(angle) * 0.02, math.rad(-20), math.rad(30) + math.sin(angle) * 0.02), 0.1)
  270. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(15) + math.sin(angle) * 0.02, math.rad(20), math.rad(-30) + -math.sin(angle) * 0.02), 0.1)
  271. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(5)), 0.1)
  272. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-3)), 0.1)
  273. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(0), math.sin(angle) * 0.01), 0.1)
  274. rj.C0 = clerp(rj.C0, CFrame.new(0, 1+math.cos(syne/idlesineinc)/5, 0) * CFrame.Angles(math.rad(-5), 0, math.sin(rootpart.RotVelocity.Y / 2)/2), 0.1)
  275. elseif animpose == "Moving" and anim == false and walking == true then
  276. anglespeed = 0.5
  277. rm.C0=clerp(rm.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(12.5)),.1)
  278. lm.C0=clerp(lm.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(-12.5)),.1)
  279. llegm.C0=clerp(llegm.C0,CFrame.new(-.55,-1,0)*CFrame.Angles(math.rad(-15),math.rad(-7),math.rad(-2.5)),.1)
  280. rlegm.C0=clerp(rlegm.C0,CFrame.new(.55,-1,0)*CFrame.Angles(math.rad(-15),math.rad(7),math.rad(2.5)),.1)
  281. neck.C0=clerp(neck.C0,CFrame.new(0,1,-0.1)*CFrame.Angles(math.rad(15),0,0),.1)
  282. rj.C0 = clerp(rj.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-25),0, math.sin(rootpart.RotVelocity.Y / 2)/2), 0.1)
  283. Humanoid.WalkSpeed = 20
  284. elseif animpose == "Sprinting" and anim == false then
  285. anglespeed = 0.5
  286. rm.C0=clerp(rm.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(12.5)),.1)
  287. lm.C0=clerp(lm.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(-12.5)),.1)
  288. llegm.C0=clerp(llegm.C0,CFrame.new(-.55,-1,0)*CFrame.Angles(math.rad(-15),math.rad(-7),math.rad(-2.5)),.1)
  289. rlegm.C0=clerp(rlegm.C0,CFrame.new(.55,-1,0)*CFrame.Angles(math.rad(-15),math.rad(7),math.rad(2.5)),.1)
  290. neck.C0=clerp(neck.C0,CFrame.new(0,1,-0.1)*CFrame.Angles(math.rad(15),0,0),.1)
  291. rj.C0 = clerp(rj.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-25),0, math.sin(rootpart.RotVelocity.Y / 2)/2), 0.1)
  292. Humanoid.WalkSpeed = 50
  293. end
  294. end)
  295. function part(name, parent, size, brickcolor, material)
  296. local part = Instance.new("Part")
  297. part.Name = name
  298. part.Parent = parent
  299. part.Size = size
  300. part.BrickColor = brickcolor
  301. part.Material = material
  302. part.CanCollide = false
  303. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  304. part:BreakJoints()
  305. return part
  306. end
  307. function weld(parent, part0, part1, c0)
  308. local weld = Instance.new("Weld")
  309. weld.Parent = parent
  310. weld.Part0 = part0
  311. weld.Part1 = part1
  312. weld.C0 = c0
  313. return weld
  314. end
  315. function SmokeDamage()
  316. if debounce == false then
  317. debounce = true
  318. part = Instance.new("Part")
  319. game.Debris:AddItem(part, 8)
  320. part.Size = Vector3.new(7, 7, 1)
  321. part.CFrame = torso.CFrame * CFrame.new(0, 1, -2)
  322. part.Transparency = 1
  323. part.CanCollide = false
  324. part.Parent = head
  325. local v = Instance.new("BodyVelocity", part)
  326. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  327. v.Velocity = torso.CFrame.lookVector * 5
  328. part.Touched:connect(function(hit)
  329. if hit.Parent:FindFirstChild("Humanoid") then
  330. while wait() do
  331. hit.Parent.Humanoid:TakeDamage(1)
  332. if hit.Parent.Humanoid.Health <= 5 then
  333. break
  334. end
  335. end
  336. end
  337. end)
  338. wait()
  339. debounce = false
  340. end
  341. end
  342. local CigSmoke = Instance.new("ParticleEmitter", Cig3)
  343. CigSmoke.VelocitySpread = 5
  344. CigSmoke.Size = NumberSequence.new({
  345. NumberSequenceKeypoint.new(0, 1),
  346. NumberSequenceKeypoint.new(1, 20)
  347. })
  348. CigSmoke.Rate = math.huge
  349. CigSmoke.Speed = NumberRange.new(4, 4)
  350. CigSmoke.Lifetime = NumberRange.new(1, 1)
  351. CigSmoke.Transparency = NumberSequence.new({
  352. NumberSequenceKeypoint.new(0, 0.9),
  353. NumberSequenceKeypoint.new(1, 1)
  354. })
  355. CigSmoke.Rotation = NumberRange.new(0, 360)
  356. CigSmoke.Name = "Smoke"
  357. CigSmoke.LightEmission = 0.6
  358. CigSmoke.Texture = "http://www.roblox.com/asset/?id=243728104"
  359. CigSmoke.Color = ColorSequence.new(Color3.new(0, 0.5, 0.5), Color3.new(0, 0.5, 0.5))
  360. CigSmoke.LockedToPart = false
  361. RunSmoke1 = part("", head, Vector3.new(0.1, 0.1, 0.1), BrickColor.new("Really black"), "SmoothPlastic")
  362. RunSmoke1.Transparency = 0
  363. Weld = weld(head, rleg, RunSmoke1, CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)))
  364. local RunSmokee = Instance.new("ParticleEmitter", RunSmoke1)
  365. RunSmokee.VelocitySpread = 0
  366. RunSmokee.Size = NumberSequence.new({
  367. NumberSequenceKeypoint.new(0, 1),
  368. NumberSequenceKeypoint.new(1, 20)
  369. })
  370. RunSmokee.Rate = 0
  371. RunSmokee.Speed = NumberRange.new(0, 0)
  372. RunSmokee.Lifetime = NumberRange.new(4, 4)
  373. RunSmokee.Transparency = NumberSequence.new({
  374. NumberSequenceKeypoint.new(0, 0.9),
  375. NumberSequenceKeypoint.new(1, 1)
  376. })
  377. RunSmokee.Rotation = NumberRange.new(0, 360)
  378. RunSmokee.Name = "Smoke"
  379. RunSmokee.LightEmission = 0.6
  380. RunSmokee.Texture = "http://www.roblox.com/asset/?id=243728104"
  381. RunSmokee.Color = ColorSequence.new(Color3.new(0, 142, 0), Color3.new(0, 142, 0))
  382. RunSmokee.LockedToPart = false
  383. RunSmoke2 = part("", head, Vector3.new(0, 1, 1), BrickColor.new("Really black"), "SmoothPlastic")
  384. RunSmoke2.Transparency = 0
  385. Weld = weld(head, lleg, RunSmoke2, CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)))
  386. local RunSmokeee = Instance.new("ParticleEmitter", RunSmoke2)
  387. RunSmokeee.VelocitySpread = 0
  388. RunSmokeee.Size = NumberSequence.new({
  389. NumberSequenceKeypoint.new(0, 1),
  390. NumberSequenceKeypoint.new(1, 20)
  391. })
  392. RunSmokeee.Rate = 0
  393. RunSmokeee.Speed = NumberRange.new(0, 0)
  394. RunSmokeee.Lifetime = NumberRange.new(4, 4)
  395. RunSmokeee.Transparency = NumberSequence.new({
  396. NumberSequenceKeypoint.new(0, 0.9),
  397. NumberSequenceKeypoint.new(1, 1)
  398. })
  399. RunSmokeee.Rotation = NumberRange.new(0, 360)
  400. RunSmokeee.Name = "Smoke"
  401. RunSmokeee.LightEmission = 0.6
  402. RunSmokeee.Texture = "http://www.roblox.com/asset/?id=243728104"
  403. RunSmokeee.Color = ColorSequence.new(Color3.new(0, 142, 0), Color3.new(0, 142, 0))
  404. RunSmokeee.LockedToPart = false
  405. FlyFire = part("", head, Vector3.new(0.1, 0.1, 0.1), BrickColor.new("Really black"), "SmoothPlastic")
  406. FlyFire.Transparency = 1
  407. Weld = weld(head, rleg, FlyFire, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)))
  408. FlyFire2 = part("", head, Vector3.new(0.1, 0.1, 0.1), BrickColor.new("Really black"), "SmoothPlastic")
  409. FlyFire2.Transparency = 1
  410. Weld = weld(head, lleg, FlyFire2, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)))
  411. if sprinting == true then
  412. RunSmokee.Rate = math.huge
  413. RunSmokeee.Rate = math.huge
  414. end
  415. Smokee = part("", head, Vector3.new(0.1, 0.1, 0.1), BrickColor.new("Really black"), "SmoothPlastic")
  416. Smokee.Transparency = 0
  417. Weld = weld(head, head, Smokee, CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)))
  418. local Smoke = Instance.new("ParticleEmitter", Smokee)
  419. Smoke.VelocitySpread = 10
  420. Smoke.Size = NumberSequence.new({
  421. NumberSequenceKeypoint.new(0, 1),
  422. NumberSequenceKeypoint.new(1, 20)
  423. })
  424. Smoke.Rate = 0
  425. Smoke.Speed = NumberRange.new(8, 8)
  426. Smoke.Lifetime = NumberRange.new(4, 4)
  427. Smoke.Transparency = NumberSequence.new({
  428. NumberSequenceKeypoint.new(0, 0.6),
  429. NumberSequenceKeypoint.new(1, 1)
  430. })
  431. Smoke.Rotation = NumberRange.new(0, 360)
  432. Smoke.Name = "Smoke"
  433. Smoke.LightEmission = 0.6
  434. Smoke.Texture = "http://www.roblox.com/asset/?id=243728104"
  435. Smoke.Color = ColorSequence.new(Color3.new(0, 142, 0), Color3.new(0, 142, 0))
  436. Smoke.LockedToPart = false
  437. Smokee2 = part("", head, Vector3.new(1, 1, 1), BrickColor.new("Sea green"), "Neon")
  438. Smokee2.Transparency = 0
  439. local Mesh = Instance.new("SpecialMesh", Smokee2)
  440. Mesh.MeshType = Enum.MeshType.Sphere
  441. Mesh.Scale = Vector3.new(0.6, 0.25, 0.6)
  442. Smokee3 = part("", head, Vector3.new(1, 1, 1), BrickColor.new("Really black"), "SmoothPlastic")
  443. Smokee3.Transparency = 0
  444. local Mesh = Instance.new("SpecialMesh", Smokee3)
  445. Mesh.MeshType = Enum.MeshType.Sphere
  446. Mesh.Scale = Vector3.new(0.7, 0.2, 0.7)
  447. function smoke()
  448. if animpose == "Idle" and debounce == false then
  449. debounce = true
  450. rs = game:GetService("RunService")
  451. con = rs.Stepped:connect(function()
  452. Smoke.Rate = math.huge
  453. anglespeed = 0.2
  454. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(30), Head.RotVelocity.Y / 15, 0), 0.1)
  455. wait(2)
  456. con:disconnect()
  457. end)
  458. wait(2.1)
  459. debounce = false
  460. Smoke.Rate = 0
  461. end
  462. end
  463. mouse.KeyDown:connect(function(key)
  464. if string.byte(key)==48 and sprinting == false then
  465. sprinting = true
  466. Humanoid.WalkSpeed = 50
  467. RunSmokee.Rate = 50
  468. RunSmokeee.Rate = 50
  469. RunSmokee.Size = NumberSequence.new({
  470. NumberSequenceKeypoint.new(0, 1),
  471. NumberSequenceKeypoint.new(1, 20)
  472. })
  473. RunSmokeee.Size = NumberSequence.new({
  474. NumberSequenceKeypoint.new(0, 1),
  475. NumberSequenceKeypoint.new(1, 20)
  476. })
  477. RunSmokee.Size = NumberSequence.new({
  478. NumberSequenceKeypoint.new(0, 1),
  479. NumberSequenceKeypoint.new(1, 20)
  480. })
  481. RunSmokeee.Size = NumberSequence.new({
  482. NumberSequenceKeypoint.new(0, 1),
  483. NumberSequenceKeypoint.new(1, 20)
  484. })
  485. RunSmokee.Lifetime = NumberRange.new(4, 4)
  486. RunSmokeee.Lifetime = NumberRange.new(4, 4)
  487. RunSmokee.Color = ColorSequence.new(Color3.new(0, 142, 0), Color3.new(0, 142, 0))
  488. RunSmokeee.Color = ColorSequence.new(Color3.new(0, 142, 0), Color3.new(0, 142, 0))
  489. RunSmokee.LockedToPart = false
  490. RunSmokeee.LockedToPart = false
  491. RunSmokee.Parent = RunSmoke1
  492. RunSmokeee.Parent = RunSmoke2
  493. RunSmokee.Speed = NumberRange.new(0, 0)
  494. RunSmokeee.Speed = NumberRange.new(0, 0)
  495. end
  496. end)
  497. mouse.KeyUp:connect(function(key)
  498. if string.byte(key)==48 and sprinting == true then
  499. sprinting = false
  500. Humanoid.WalkSpeed = 20
  501. RunSmokee.Rate = 0
  502. RunSmokeee.Rate = 0
  503. end
  504. end)
  505. local roar = Instance.new("Sound",char.Torso)
  506. roar.Volume = 10
  507. roar.SoundId = 'rbxassetid://511715134'
  508. mouse.KeyDown:connect(function(key)
  509. if key == "e" and animpose == "Idle" then
  510. roar:Play()
  511. SmokeDamage()
  512. smoke()
  513. end
  514. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement