Advertisement
Its_YeBoi

Dragon Fire for Astral

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