Dark_EccentricYT

Untitled

May 17th, 2018
896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.72 KB | None | 0 0
  1. --natsu
  2.  
  3. local asin = math.asin
  4. local atan2 = math.atan2
  5. local rad = math.rad
  6. local sin = math.sin
  7. local abs = math.abs
  8. local ceil = math.ceil
  9.  
  10. local function getAngles(cf)
  11. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  12. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  13. end
  14. Lerp = {
  15. Number = function(C1,C2,inc)
  16. return C1 + (C2 - C1) * inc
  17. end;
  18. CFrame = function(a,b,m)
  19. local c,d={a:components()},{b:components()}
  20. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  21. return CFrame.new(unpack(c))
  22. end;
  23. }
  24. local function genWeld(a,b)
  25. local w = Instance.new("Weld",a)
  26. w.Part0 = a
  27. w.Part1 = b
  28. return w
  29. end
  30. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  31. local w = Instance.new('Motor',par or p0)
  32. w.Part0 = p0
  33. w.Part1 = p1
  34. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  35. return w
  36. end
  37. anglespeed = 1
  38. yeet = 0
  39. count = 0
  40. angle = 0
  41. speed = 1
  42. local plr=game.Players.LocalPlayer
  43. local chr=plr.Character
  44. local torso=chr.Torso
  45. local flameclr = Color3.new(0,0,0)
  46. local mouse=plr:GetMouse()
  47. local running = false
  48. local Neck = genWeld(chr.Torso,chr.Head)
  49. Neck.C0 = CFrame.new(0,1,0)
  50. Neck.C1 = CFrame.new(0,-0.5,0)
  51. local LeftShoulder = genWeld(chr.Torso,chr['Left Arm'])
  52. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  53. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  54. RightShoulder = genWeld(chr.Torso,chr['Right Arm'])
  55. RightShoulder.C0 = CFrame.new(1,0.5,0)
  56. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  57. local LeftHip = genWeld(chr.Torso,chr['Left Leg'])
  58. LeftHip.C0 = CFrame.new(-1,-1,0)
  59. LeftHip.C1 = CFrame.new(-0.5,1,0)
  60. local RightHip = genWeld(chr.Torso,chr['Right Leg'])
  61. RightHip.C0 = CFrame.new(1,-1,0)
  62. RightHip.C1 = CFrame.new(0.5,1,0)
  63. local RootJoint = genWeld(chr.HumanoidRootPart,chr.Torso)
  64. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  65. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  66. local function newLerpTo(weld)
  67. return {
  68. Weld = weld; -- The weld that will lerp
  69. To = weld.C0; -- Where it will lerp to; a CFrame
  70. Cache = weld.C0; -- Cache of original position; it helps when making anim keyframes
  71. Speed = 0.1; -- Speed of lerp. 0.1 or 0.2 is best
  72. }
  73. end
  74. LerpTo = {
  75. Neck = newLerpTo(Neck);
  76. LeftArm = newLerpTo(LeftShoulder);
  77. RightArm = newLerpTo(RightShoulder);
  78. LeftLeg = newLerpTo(LeftHip);
  79. RightLeg = newLerpTo(RightHip);
  80. RootJoint = newLerpTo(RootJoint);
  81. }
  82. local makeflame = function(part,heat,size)
  83. flame = Instance.new("Fire",part)
  84. flame.Heat=heat
  85. flame.Size=size
  86. end
  87. local rf = Instance.new("Part",chr)
  88. rf.CanCollide = false
  89. rf.Transparency=1
  90. rf.FormFactor="Custom"
  91. rf.Size=Vector3.new(1,1,1)
  92. rf.Touched:connect(function(hit)
  93. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
  94. hit.Parent.Humanoid:TakeDamage(10)
  95. end
  96. end)
  97. makeflame(rf,0,5)
  98. Weld(rf,chr['Right Arm'],0,-.75,0,0,0,0,rf)
  99. local lf = Instance.new("Part",chr)
  100. lf.CanCollide = false
  101. lf.Transparency=1
  102. lf.FormFactor="Custom"
  103. lf.Size=Vector3.new(1,1,1)
  104. lf.Touched:connect(function(hit)
  105. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
  106. hit.Parent.Humanoid:TakeDamage(10)
  107. end
  108. end)
  109. makeflame(lf,0,5)
  110. Weld(lf,chr['Left Arm'],0,-.75,0,0,0,0,rf)
  111. for _, child in pairs(chr:GetChildren()) do
  112. if child.ClassName == 'CharacterMesh' then
  113. child:Destroy()
  114.  
  115. for _, child in pairs(chr:GetChildren()) do
  116. if child.ClassName == 'Hat' then
  117. child:Destroy()
  118. end
  119. end
  120. end
  121. end
  122. for i,v in pairs(chr:GetChildren()) do
  123. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") then
  124. v:Destroy()
  125. end
  126. end
  127.  
  128. local ab = Instance.new("Decal")
  129. ab.Parent = chr.Torso
  130. ab.Texture = "http://www.roblox.com/asset/?id=200264388"
  131.  
  132. ---Start Of Shirt---
  133.  
  134. local r = Instance.new("Part")
  135. r.Parent = chr
  136. r.FormFactor = "Custom"
  137. r.Size = Vector3.new(0.6, 1.81, 1.01)
  138. r.BottomSurface = "Smooth"
  139. r.TopSurface = "Smooth"
  140. r.BrickColor = BrickColor.new("Black")
  141.  
  142. local wr = Instance.new("Weld")
  143. wr.Parent = r
  144. wr.Part0 = chr["Torso"]
  145. wr.Part1 = r
  146. wr.C0 = CFrame.new(0.8, 0.1, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  147.  
  148. local r2 = Instance.new("Part")
  149. r2.Parent = chr
  150. r2.FormFactor = "Custom"
  151. r2.Size = Vector3.new(0.6, 1.81, 1.01)
  152. r2.BottomSurface = "Smooth"
  153. r2.TopSurface = "Smooth"
  154. r2.BrickColor = BrickColor.new("Black")
  155.  
  156. local wr2 = Instance.new("Weld")
  157. wr2.Parent = r2
  158. wr2.Part0 = chr["Torso"]
  159. wr2.Part1 = r2
  160. wr2.C0 = CFrame.new(-0.8, 0.1, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  161.  
  162. local s = Instance.new("Part")
  163. s.Parent = chr
  164. s.FormFactor = "Custom"
  165. s.Size = Vector3.new(0.2, 1.85, 0.55)
  166. s.BottomSurface = "Smooth"
  167. s.TopSurface = "Smooth"
  168. s.BrickColor = BrickColor.new("Bright orange")
  169.  
  170. local ws = Instance.new("Weld")
  171. ws.Parent = s
  172. ws.Part0 = chr["Torso"]
  173. ws.Part1 = s
  174. ws.C0 = CFrame.new(0.4, 0.1, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  175.  
  176. local s2 = Instance.new("Part")
  177. s2.Parent = chr
  178. s2.FormFactor = "Custom"
  179. s2.Size = Vector3.new(0.2, 1.85, 0.55)
  180. s2.BottomSurface = "Smooth"
  181. s2.TopSurface = "Smooth"
  182. s2.BrickColor = BrickColor.new("Bright orange")
  183.  
  184. local ws2 = Instance.new("Weld")
  185. ws2.Parent = s2
  186. ws2.Part0 = chr["Torso"]
  187. ws2.Part1 = s2
  188. ws2.C0 = CFrame.new(-0.4, 0.1, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  189.  
  190. local s3 = Instance.new("Part")
  191. s3.Parent = chr
  192. s3.FormFactor = "Custom"
  193. s3.Size = Vector3.new(0.65, 0.2, 1.05)
  194. s3.BottomSurface = "Smooth"
  195. s3.TopSurface = "Smooth"
  196. s3.BrickColor = BrickColor.new("Bright orange")
  197.  
  198. local ws3 = Instance.new("Weld")
  199. ws3.Parent = s3
  200. ws3.Part0 = chr["Torso"]
  201. ws3.Part1 = s3
  202. ws3.C0 = CFrame.new(0.8, -0.725, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  203.  
  204. local s4 = Instance.new("Part")
  205. s4.Parent = chr
  206. s4.FormFactor = "Custom"
  207. s4.Size = Vector3.new(0.65, 0.2, 1.05)
  208. s4.BottomSurface = "Smooth"
  209. s4.TopSurface = "Smooth"
  210. s4.BrickColor = BrickColor.new("Bright orange")
  211.  
  212. local ws4 = Instance.new("Weld")
  213. ws4.Parent = s4
  214. ws4.Part0 = chr["Torso"]
  215. ws4.Part1 = s4
  216. ws4.C0 = CFrame.new(-0.8, -0.725, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  217.  
  218. local rb = Instance.new("Part")
  219. rb.Parent = chr
  220. rb.FormFactor = "Custom"
  221. rb.Size = Vector3.new(1, 1.81, 0.55)
  222. rb.BottomSurface = "Smooth"
  223. rb.TopSurface = "Smooth"
  224. rb.BrickColor = BrickColor.new("Black")
  225.  
  226. local wrb = Instance.new("Weld")
  227. wrb.Parent = rb
  228. wrb.Part0 = chr["Torso"]
  229. wrb.Part1 = rb
  230. wrb.C0 = CFrame.new(0, 0.1, 0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  231.  
  232. local sb = Instance.new("Part")
  233. sb.Parent = chr
  234. sb.FormFactor = "Custom"
  235. sb.Size = Vector3.new(1, 0.2, 0.55)
  236. sb.BottomSurface = "Smooth"
  237. sb.TopSurface = "Smooth"
  238. sb.BrickColor = BrickColor.new("Bright orange")
  239.  
  240. local wsb = Instance.new("Weld")
  241. wsb.Parent = sb
  242. wsb.Part0 = chr["Torso"]
  243. wsb.Part1 = sb
  244. wsb.C0 = CFrame.new(0, -0.725, 0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  245.  
  246. local b = Instance.new("Part")
  247. b.Parent = chr
  248. b.FormFactor = "Custom"
  249. b.Size = Vector3.new(2.02, 0.2, 1.05)
  250. b.BottomSurface = "Smooth"
  251. b.TopSurface = "Smooth"
  252. b.BrickColor = BrickColor.new("Brown")
  253.  
  254. local wb = Instance.new("Weld")
  255. wb.Parent = b
  256. wb.Part0 = chr["Torso"]
  257. wb.Part1 = b
  258. wb.C0 = CFrame.new(0, -0.925, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  259.  
  260. local t = Instance.new("Part")
  261. t.Transparency = 1
  262. t.Parent = chr
  263. t.FormFactor = "Custom"
  264. t.Size = Vector3.new(0.3, 0.5, 0.5)
  265. t.BottomSurface = "Smooth"
  266. t.TopSurface = "Smooth"
  267. t.BrickColor = BrickColor.new("Brown")
  268.  
  269. local wt = Instance.new("Weld")
  270. wt.Parent = t
  271. wt.Part0 = chr["Right Arm"]
  272. wt.Part1 = t
  273. wt.C0 = CFrame.new(0.4, 0.6, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  274.  
  275. local td = Instance.new("Decal")
  276. td.Parent = t
  277. td.Face = "Right"
  278. td.Texture = "http://www.roblox.com/asset/?id=200254167"
  279.  
  280. ---Start Of Pants---
  281. local pp = Instance.new("Part")
  282. pp.Locked = true
  283. pp.Name = "pp"
  284. pp.Parent = chr
  285. pp.FormFactor = "Custom"
  286. pp.Size = Vector3.new (1.04, 0.2, 1.05)
  287. pp.BrickColor = BrickColor.new ("Black")
  288. pp.Material = "Neon"
  289. pp.TopSurface = "Smooth"
  290. pp.BottomSurface = "Smooth"
  291. pp.CanCollide = false
  292.  
  293. local ppw = Instance.new("Weld")
  294. ppw.Parent = chr
  295. ppw.Part0 = pp.Parent["Right Leg"]
  296. ppw.Part1 = pp
  297. ppw.C0 = CFrame.new(0, -0.901, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  298.  
  299. local pq = Instance.new("Part")
  300. pq.Locked = true
  301. pq.Name = "pq"
  302. pq.Parent = chr
  303. pq.FormFactor = "Custom"
  304. pq.Size = Vector3.new (1.04, 0.2, 1.05)
  305. pq.BrickColor = BrickColor.new ("Black")
  306. pq.Material = "Neon"
  307. pq.TopSurface = "Smooth"
  308. pq.BottomSurface = "Smooth"
  309. pq.CanCollide = false
  310.  
  311. local pqw = Instance.new("Weld")
  312. pqw.Parent = chr
  313. pqw.Part0 = pq.Parent["Left Leg"]
  314. pqw.Part1 = pq
  315. pqw.C0 = CFrame.new(0, -0.901, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  316.  
  317. local pr = Instance.new("Part")
  318. pr.Locked = true
  319. pr.Name = "pr"
  320. pr.Parent = chr
  321. pr.FormFactor = "Custom"
  322. pr.Size = Vector3.new (1.04, 0.2, 0.23)
  323. pr.BrickColor = BrickColor.new ("Black")
  324. pr.Material = "Neon"
  325. pr.TopSurface = "Smooth"
  326. pr.BottomSurface = "Smooth"
  327. pr.CanCollide = false
  328.  
  329. local prw = Instance.new("Weld")
  330. prw.Parent = chr
  331. prw.Part0 = pr.Parent["Right Leg"]
  332. prw.Part1 = pr
  333. prw.C0 = CFrame.new(0, -0.801, -0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  334.  
  335. local ps = Instance.new("Part")
  336. ps.Locked = true
  337. ps.Name = "ps"
  338. ps.Parent = chr
  339. ps.FormFactor = "Custom"
  340. ps.Size = Vector3.new (1.04, 0.2, 0.23)
  341. ps.BrickColor = BrickColor.new ("Black")
  342. ps.Material = "Neon"
  343. ps.TopSurface = "Smooth"
  344. ps.BottomSurface = "Smooth"
  345. ps.CanCollide = false
  346.  
  347. local psw = Instance.new("Weld")
  348. psw.Parent = chr
  349. psw.Part0 = ps.Parent["Left Leg"]
  350. psw.Part1 = ps
  351. psw.C0 = CFrame.new(0, -0.801, -0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  352.  
  353. local pt = Instance.new("Part")
  354. pt.Locked = true
  355. pt.Name = "pt"
  356. pt.Parent = chr
  357. pt.FormFactor = "Custom"
  358. pt.Size = Vector3.new (1.04, 0.2, 0.4)
  359. pt.BrickColor = BrickColor.new ("Black")
  360. pt.Material = "Neon"
  361. pt.TopSurface = "Smooth"
  362. pt.BottomSurface = "Smooth"
  363. pt.CanCollide = false
  364.  
  365. local ptw = Instance.new("Weld")
  366. ptw.Parent = chr
  367. ptw.Part0 = pt.Parent["Right Leg"]
  368. ptw.Part1 = pt
  369. ptw.C0 = CFrame.new(0, -0.601, -0.32) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  370.  
  371. local pu = Instance.new("Part")
  372. pu.Locked = true
  373. pu.Name = "pu"
  374. pu.Parent = chr
  375. pu.FormFactor = "Custom"
  376. pu.Size = Vector3.new (1.04, 0.2, 0.4)
  377. pu.BrickColor = BrickColor.new ("Black")
  378. pu.Material = "Neon"
  379. pu.TopSurface = "Smooth"
  380. pu.BottomSurface = "Smooth"
  381. pu.CanCollide = false
  382.  
  383. local puw = Instance.new("Weld")
  384. puw.Parent = chr
  385. puw.Part0 = pu.Parent["Left Leg"]
  386. puw.Part1 = pu
  387. puw.C0 = CFrame.new(0, -0.601, -0.32) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  388.  
  389. local sk = Instance.new("Part")
  390. sk.Parent = chr
  391. sk.FormFactor = "Custom"
  392. sk.Size = Vector3.new(1.01, 1.01, 1.01)
  393. sk.BottomSurface = "Smooth"
  394. sk.TopSurface = "Smooth"
  395. sk.BrickColor = BrickColor.new("Black")
  396.  
  397. local wsk = Instance.new("Weld")
  398. wsk.Parent = sk
  399. wsk.Part0 = chr["Right Leg"]
  400. wsk.Part1 = sk
  401. wsk.C0 = CFrame.new(0, 0.5, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  402.  
  403. local sk2 = Instance.new("Part")
  404. sk2.Parent = chr
  405. sk2.FormFactor = "Custom"
  406. sk2.Size = Vector3.new(1.01, 1.01, 1.01)
  407. sk2.BottomSurface = "Smooth"
  408. sk2.TopSurface = "Smooth"
  409. sk2.BrickColor = BrickColor.new("Black")
  410.  
  411. local wsk2 = Instance.new("Weld")
  412. wsk2.Parent = sk2
  413. wsk2.Part0 = chr["Left Leg"]
  414. wsk2.Part1 = sk2
  415. wsk2.C0 = CFrame.new(0, 0.5, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  416.  
  417. local sk3 = Instance.new("Part")
  418. sk3.Parent = chr
  419. sk3.FormFactor = "Custom"
  420. sk3.Size = Vector3.new(1.05, 0.2, 1.05)
  421. sk3.BottomSurface = "Smooth"
  422. sk3.TopSurface = "Smooth"
  423. sk3.BrickColor = BrickColor.new("Bright orange")
  424.  
  425. local wsk3 = Instance.new("Weld")
  426. wsk3.Parent = sk3
  427. wsk3.Part0 = chr["Right Leg"]
  428. wsk3.Part1 = sk3
  429. wsk3.C0 = CFrame.new(0, 0.05, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  430.  
  431. local sk4 = Instance.new("Part")
  432. sk4.Parent = chr
  433. sk4.FormFactor = "Custom"
  434. sk4.Size = Vector3.new(1.05, 0.2, 1.05)
  435. sk4.BottomSurface = "Smooth"
  436. sk4.TopSurface = "Smooth"
  437. sk4.BrickColor = BrickColor.new("Bright orange")
  438.  
  439. local wsk4 = Instance.new("Weld")
  440. wsk4.Parent = sk4
  441. wsk4.Part0 = chr["Left Leg"]
  442. wsk4.Part1 = sk4
  443. wsk4.C0 = CFrame.new(0, 0.05, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  444.  
  445. local sk5 = Instance.new("Part")
  446. sk5.Parent = chr
  447. sk5.FormFactor = "Custom"
  448. sk5.Size = Vector3.new(0.2, 0.9, 0.55)
  449. sk5.BottomSurface = "Smooth"
  450. sk5.TopSurface = "Smooth"
  451. sk5.BrickColor = BrickColor.new("Bright orange")
  452.  
  453. local wsk5 = Instance.new("Weld")
  454. wsk5.Parent = sk5
  455. wsk5.Part0 = chr["Right Leg"]
  456. wsk5.Part1 = sk5
  457. wsk5.C0 = CFrame.new(-0.43, 0.57, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  458.  
  459. local sk6 = Instance.new("Part")
  460. sk6.Parent = chr
  461. sk6.FormFactor = "Custom"
  462. sk6.Size = Vector3.new(0.2, 0.9, 0.55)
  463. sk6.BottomSurface = "Smooth"
  464. sk6.TopSurface = "Smooth"
  465. sk6.BrickColor = BrickColor.new("Bright orange")
  466.  
  467. local wsk6 = Instance.new("Weld")
  468. wsk6.Parent = sk6
  469. wsk6.Part0 = chr["Left Leg"]
  470. wsk6.Part1 = sk6
  471. wsk6.C0 = CFrame.new(0.43, 0.57, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  472. ---hair---
  473.  
  474. local h = Instance.new("Part")
  475. h.Parent = chr
  476. h.FormFactor = "Custom"
  477. h.Size = Vector3.new(0.3, 0.5, 0.5)
  478. h.BottomSurface = "Smooth"
  479. h.TopSurface = "Smooth"
  480. h.BrickColor = BrickColor.new("Brown")
  481.  
  482. local wh = Instance.new("Weld")
  483. wh.Parent = h
  484. wh.Part0 = chr["Head"]
  485. wh.Part1 = h
  486. wh.C0 = CFrame.new(0, 0.3, 0.2) *CFrame.fromEulerAnglesXYZ(0, 0, 0)
  487.  
  488. local mh = Instance.new("SpecialMesh")
  489. mh.TextureId = "http://www.roblox.com/asset/?id=41068173"
  490. mh.MeshId = "http://www.roblox.com/asset/?id=62246019"
  491. mh.Parent = h
  492.  
  493.  
  494. local anim = true
  495. local function updateanims()
  496. if anim==true then
  497. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  498. anglespeed = 1/3
  499. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,0,0)
  500. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  501. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(0),rad(0),rad(25))
  502. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,rad(-25))
  503. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(angle))*0.2)
  504. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(angle))*0.2)
  505. end
  506. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and running == false then
  507. anglespeed = 1.5
  508. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,math.sin(angle)*0.05)
  509. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  510. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(25))
  511. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,rad(-25))
  512. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
  513. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0)
  514. end
  515. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and running == true then
  516. anglespeed = 1.5
  517. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(45),0,math.sin(angle)*0.05)
  518. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.pi/5,0,0)
  519. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(-rad(45),0,rad(25))
  520. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-rad(45),0,rad(-25))
  521. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
  522. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0)
  523. end
  524. end
  525. end
  526. attacking = false
  527. mouse.Button1Down:connect(function()
  528. if anim == true and attacking == false then
  529. anim = false
  530. attacking = true
  531. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),rad(0),rad(0))
  532. wait(.5)
  533. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),rad(0),rad(90))
  534. wait(.5)
  535. anim = true
  536. attacking = false
  537. end
  538. end)
  539. roar = function()
  540. if anim == true and attacking == false then
  541. anim = false
  542. attacking = true
  543. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(25),0,0)
  544. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(math.pi/-5,0,0)
  545. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(-45),rad(-45),rad(45))
  546. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(-45),rad(45),rad(-45))
  547. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
  548. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
  549. wait(.5)
  550. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(0),0,0)
  551. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(0),0,0)
  552. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(135),rad(45),rad(-25))
  553. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(135),rad(-45),rad(25))
  554. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
  555. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
  556. wait(.5)
  557. for i = 1,25 do
  558. wait()
  559. part = Instance.new("Part",chr)
  560. part.CanCollide=false
  561. part.Transparency=1
  562. part.FormFactor="Custom"
  563. part.Size=Vector3.new(2,2,.2)
  564. part.Anchored = true
  565. part.Touched:connect(function(hit)
  566. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
  567. hit.Parent.Humanoid:TakeDamage(50)
  568. end
  569. end)
  570. makeflame(part,0,i)
  571. part.CFrame = chr.Head.CFrame*CFrame.new(0,0,-i+-i/2)
  572. game.Debris:AddItem(part,5)
  573. end
  574. wait(.5)
  575. attacking = false
  576. anim = true
  577. end
  578. end
  579. local blaze = function()
  580. if attacking == false and anim == true then
  581. attacking = true
  582. anim = false
  583. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,10)
  584. LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(90),rad(0),rad(-45))
  585. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(90),rad(0),rad(45))
  586. wait(.5)
  587. shoot = Instance.new("Part",chr)
  588. shoot.Size=Vector3.new(30,30,30)
  589. shoot.CanCollide=false
  590. shoot.Transparency=1
  591. shoot.CFrame=chr.Torso.CFrame*CFrame.new(0,0,-2.5)
  592. makeflame(shoot,0,30)
  593. shoot.Touched:connect(function(hit)
  594. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
  595. hit.Parent.Humanoid:TakeDamage(50)
  596. end
  597. end)
  598. x=Instance.new("Part",chr)
  599. x.CanCollide=false
  600. x.Transparency=1
  601. x.Position = mouse.Hit.p
  602. bp = Instance.new("BodyPosition",shoot)
  603. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  604. bp.position = x.Position.Unit*80
  605. wait(.5)
  606. game.Debris:AddItem(Shoot,.5)
  607. game.Debris:AddItem(x,.5)
  608. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,0)
  609. anim = true
  610. attacking = false
  611. end
  612. end
  613. local spin = function()
  614. if attacking == false and anim == true then
  615. anim = false
  616. attacking = true
  617. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(0,0,rad(90))
  618. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,rad(-90))
  619. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(270))
  620. wait(.1)
  621. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(180))
  622. wait(.1)
  623. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(90))
  624. wait(.1)
  625. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(0))
  626. wait(.1)
  627. attacking = false
  628. anim = true
  629. end
  630. end
  631. local spike = function()
  632. anim = false
  633. attacking = true
  634. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(25),0,0)
  635. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(math.pi/-5,0,0)
  636. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(-45),rad(-45),rad(45))
  637. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(-45),rad(45),rad(-45))
  638. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
  639. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0))
  640. local asd = Instance.new("Part",chr)
  641. asd.Transparency=1
  642. asd.Size=Vector3.new(30,30,30)
  643. asd.Anchored=true
  644. asd.CanCollide=false
  645. asd.CFrame=chr.Torso.CFrame
  646. makeflame(asd,0,30)
  647. asd.Touched:connect(function(hit)
  648. if hit.Parent.Name~=plr.Name and hit.Parent:FindFirstChild("Humanoid") then
  649. hit.Parent:BreakJoints()
  650. end
  651. end)
  652. wait(5)
  653. asd:Destroy()
  654. anim = true
  655. attacking = false
  656. end
  657. mouse.KeyDown:connect(function(key)
  658. if key == "q" then
  659. roar()
  660. elseif key == "e" then
  661. blaze()
  662. elseif key == "r" then
  663. spin()
  664. elseif key == "t" then
  665. spike()
  666. elseif key == "0" then
  667. running = true
  668. chr.Humanoid.WalkSpeed = 50
  669. end
  670. end)
  671. mouse.KeyUp:connect(function(key)
  672. if key == "0" then
  673. running = false
  674. chr.Humanoid.WalkSpeed=16
  675. end
  676. end)
  677. Spawn(function()
  678. while wait()do
  679. angle = (angle % 100) + anglespeed/10 -- no matter whut it has to be in a loop or its on exticy
  680. for i,v in pairs(chr:GetChildren()) do
  681. if v:IsA("Part") and v:FindFirstChild("Fire") then
  682. v.Fire.Color=flameclr
  683. v.Fire.SecondaryColor=flameclr
  684. end
  685. end
  686. end
  687. end)
  688. meo=0
  689. sdeb=false
  690. game:service'RunService'.RenderStepped:connect(function()
  691. meo=meo+1
  692. for _,v in pairs(LerpTo) do
  693. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)end
  694. updateanims()
  695. end)
Add Comment
Please, Sign In to add comment