Advertisement
Its_YeBoi

Untitled

Nov 18th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.43 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local chr = plr.Character
  3. local maus = plr:GetMouse()
  4. local PGui=plr.PlayerGui
  5. local lleg = chr["Left Leg"]
  6. local rleg = chr["Right Leg"]
  7. local larm = chr["Left Arm"]
  8. local rarm = chr["Right Arm"]
  9. local hed = chr.Head
  10. local rutprt = chr.HumanoidRootPart
  11. local torso = chr.Torso
  12. local otheranims=false
  13. local armmovement=false
  14. local fireclrs={'Cyan','Deep blue'}
  15. local holding=true
  16. local flying=false
  17. local jumpdb=false
  18. local lalalclrs={Color3.new(0,0,1),Color3.new(0,.4,1)}
  19.  
  20. ranclrs={'Cyan','Deep blue'}
  21. rangclr=ranclrs[1]
  22.  
  23. if chr:findFirstChild('Animate') then
  24. chr.Animate:Destroy()
  25. end
  26.  
  27. local rm = Instance.new('Part',rarm)
  28. rm.Transparency = 1
  29. rm.Name = "rm"
  30. rm.CanCollide = false
  31. rm.Anchored = true
  32. rm.Size = Vector3.new(1.1, .1, 1.1)
  33. rm.BrickColor=BrickColor.new("Neon orange")
  34. local rmm = Instance.new("SpecialMesh",rm)
  35. rmm.MeshId = "rbxasset://fonts/rightarm.mesh"
  36. rmm.Scale = Vector3.new(1.1, .1, 1.1)
  37. game:GetService'RunService'.RenderStepped:connect(function()
  38. rm.CFrame = rarm.CFrame * CFrame.new(0,-.8,0)
  39. end)
  40.  
  41.  
  42. --
  43.  
  44. function Lerp(a, b, i)
  45. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  46. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  47. local calx = com1[1] + (com2[1] - com1[1]) * i
  48. local caly = com1[2] + (com2[2] - com1[2]) * i
  49. local calz = com1[3] + (com2[3] - com1[3]) * i
  50. local cala = com1[4] + (com2[4] - com1[4]) * i
  51. local calb = com1[5] + (com2[5] - com1[5]) * i
  52. local calc = com1[6] + (com2[6] - com1[6]) * i
  53. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  54. end
  55.  
  56. function TwnSingleNumber(s,f,m)
  57. local wot=s+(f-s)*m
  58. return wot
  59. end
  60.  
  61. function TwnPartSize(q,w,e)
  62. local begin={q.x,q.y,q.z}
  63. local ending={w.x,w.y,w.z}
  64. local bgx=begin[1]+(ending[1]-begin[1])*e
  65. local bgy=begin[2]+(ending[2]-begin[2])*e
  66. local bgz=begin[3]+(ending[3]-begin[3])*e
  67. return Vector3.new(bgx,bgy,bgz)
  68. end
  69.  
  70. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  71. wld = Instance.new("Weld", wp1)
  72. wld.Part0 = wp0
  73. wld.Part1 = wp1
  74. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  75. end
  76.  
  77. newWeld(law, torso, larm, -1.5, 0.5, 0)
  78. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  79. newWeld(llw, torso, lleg, -.5, -2, 0)
  80. newWeld(rlw, torso, rleg, .5, -2, 0)
  81. newWeld(hw, torso, hed, 0, 1.5, 0)
  82. local rutwald=Instance.new('Weld',rutprt)
  83. rutwald.Part0=rutprt
  84. rutwald.Part1=torso
  85. rutwald.Name="RootJoint"
  86. rutprt.RootJoint.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  87. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  88. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  89. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  90. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  91.  
  92. local anim = "Idling"
  93. local lastanim = "Idling"
  94. local val = 0
  95. local syne = 0
  96. local num = 0
  97. local runtime = 0
  98.  
  99. ----------------------------------------------------------------------------
  100.  
  101. ----------------------------------------------------------------------------
  102.  
  103. maus.KeyDown:connect(function(kei)
  104. if string.byte(kei)==48 then
  105. chr.Humanoid.WalkSpeed=40
  106. end
  107.  
  108.  
  109. if kei=='u' and not armmovement then
  110. if holding then armmovement=true armpose='ReplacingStick' wait(.5) armmovement=false holding=false
  111. end
  112. end
  113.  
  114.  
  115.  
  116. if kei=='p' and not jumpdb and not otheranims then
  117. jumpdb=true
  118. otheranims=true
  119. anim='SuperCrouch'
  120. coroutine.resume(coroutine.create(function()
  121. for lal=1,20 do wait()
  122. local jm=Instance.new('Part',chr)
  123. jm.formFactor='Custom'
  124. jm.BrickColor=BrickColor.new(fireclrs[math.random(1,3)])
  125. jm.Size=Vector3.new(3,3,3)
  126. jm.Name='soprjmp'
  127. jm.TopSurface=10
  128. jm.BottomSurface=10
  129. jm.FrontSurface=10
  130. jm.Locked=true
  131. jm.LeftSurface=10
  132. jm.RightSurface=10
  133. jm.BackSurface=10
  134. jm.CanCollide=false
  135. jm.Anchored=true
  136. jm.CFrame=rleg.CFrame*CFrame.new(-.5,-1,0)*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  137. local jmp=Instance.new('BlockMesh',jm)
  138. game:service'Debris':AddItem(jm,1.5)
  139. coroutine.wrap(function()
  140. for qq=1,20 do wait()
  141. jmp.Scale=jmp.Scale+Vector3.new(.1,.1,.1)
  142. jm.Transparency=jm.Transparency+.1
  143. jm.CFrame=jm.CFrame*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  144. end
  145. end)()
  146. end
  147. end))
  148. wait(.6)
  149. coroutine.resume(coroutine.create(function()
  150. for t=1,5 do wait()
  151. rangclr=ranclrs[t]
  152. local rang=Instance.new('Part',chr)
  153. rang.formFactor='Custom'
  154. rang.BrickColor=BrickColor.new(rangclr)
  155. rang.Size=Vector3.new(2,2,2)
  156. rang.Name='rang'
  157. rang.TopSurface=10
  158. rang.BottomSurface=10
  159. rang.Locked=true
  160. rang.FrontSurface=10
  161. rang.LeftSurface=10
  162. rang.RightSurface=10
  163. rang.BackSurface=10
  164. rang.CanCollide=false
  165. rang.Anchored=true
  166. rang.CFrame=rleg.CFrame*CFrame.new(-.5,-.75,0)*CFrame.Angles(math.rad(90),0,0)
  167. local rmsh=Instance.new('SpecialMesh',rang)
  168. rmsh.MeshId="http://www.roblox.com/asset/?id=3270017"
  169. rmsh.Scale=Vector3.new(3,3,1.5)
  170. game:service'Debris':AddItem(rang,5)
  171. coroutine.wrap(function()
  172. for lalal=1,50 do wait()
  173. rmsh.Scale=rmsh.Scale+Vector3.new(1,1,.25)
  174. rang.Transparency=rang.Transparency+1/33
  175. end
  176. end)()
  177. end
  178. end))
  179. anim='SuperJump'
  180. local vl=Instance.new("BodyVelocity",torso)
  181. vl.maxForce=Vector3.new(0,1/0,0)
  182. vl.velocity=Vector3.new(0,100,0)
  183. game:service'Debris':AddItem(vl,1)
  184. chr.Humanoid.Jump=true
  185. wait(.5)
  186. otheranims=false
  187. anim='Jumping'
  188. wait(3.5)
  189. jumpdb=false
  190. end
  191. end)
  192.  
  193.  
  194. plr.Chatted:connect(function(ms)
  195. if ms:lower()=='u' and not armmovement then
  196. if holding then armmovement=true armpose='ReplacingStick' wait(.5) armmovement=false holding=false
  197. end
  198. end
  199. if ms:lower()=='p' and not jumpdb and not otheranims then
  200. jumpdb=true
  201. otheranims=true
  202. anim='SuperCrouch'
  203. coroutine.resume(coroutine.create(function()
  204. for lal=1,20 do wait()
  205. local jm=Instance.new('Part',chr)
  206. jm.formFactor='Custom'
  207. jm.BrickColor=BrickColor.new(fireclrs[math.random(1,3)])
  208. jm.Size=Vector3.new(3,3,3)
  209. jm.Name='soprjmp'
  210. jm.TopSurface=10
  211. jm.BottomSurface=10
  212. jm.FrontSurface=10
  213. jm.Locked=true
  214. jm.LeftSurface=10
  215. jm.RightSurface=10
  216. jm.BackSurface=10
  217. jm.CanCollide=false
  218. jm.Anchored=true
  219. jm.CFrame=rleg.CFrame*CFrame.new(-.5,-1,0)*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  220. local jmp=Instance.new('BlockMesh',jm)
  221. game:service'Debris':AddItem(jm,1.5)
  222. coroutine.wrap(function()
  223. for qq=1,20 do wait()
  224. jmp.Scale=jmp.Scale+Vector3.new(.1,.1,.1)
  225. jm.Transparency=jm.Transparency+.1
  226. jm.CFrame=jm.CFrame*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  227. end
  228. end)()
  229. end
  230. end))
  231. wait(.6)
  232. coroutine.resume(coroutine.create(function()
  233. for t=1,5 do wait()
  234. rangclr=ranclrs[t]
  235. local rang=Instance.new('Part',chr)
  236. rang.formFactor='Custom'
  237. rang.BrickColor=BrickColor.new(rangclr)
  238. rang.Size=Vector3.new(2,2,2)
  239. rang.Name='rang'
  240. rang.TopSurface=10
  241. rang.BottomSurface=10
  242. rang.Locked=true
  243. rang.FrontSurface=10
  244. rang.LeftSurface=10
  245. rang.RightSurface=10
  246. rang.BackSurface=10
  247. rang.CanCollide=false
  248. rang.Anchored=true
  249. rang.CFrame=rleg.CFrame*CFrame.new(-.5,-.75,0)*CFrame.Angles(math.rad(90),0,0)
  250. local rmsh=Instance.new('SpecialMesh',rang)
  251. rmsh.MeshId="http://www.roblox.com/asset/?id=3270017"
  252. rmsh.Scale=Vector3.new(3,3,1.5)
  253. game:service'Debris':AddItem(rang,5)
  254. coroutine.wrap(function()
  255. for lalal=1,50 do wait()
  256. rmsh.Scale=rmsh.Scale+Vector3.new(1,1,.25)
  257. rang.Transparency=rang.Transparency+1/33
  258. end
  259. end)()
  260. end
  261. end))
  262. anim='SuperJump'
  263. local tv=Instance.new("BodyVelocity",rutprt)
  264. tv.maxForce=Vector3.new(0,math.huge,0)
  265. tv.velocity=Vector3.new(0,200,0)
  266. coroutine.resume(coroutince.create(function()
  267. wait(.5)
  268. tv:Destroy''
  269. end))
  270. chr.Humanoid.Jump=true
  271. wait(.5)
  272. otheranims=false
  273. anim='Jumping'
  274. wait(3.5)
  275. jumpdb=false
  276. end
  277. end)
  278.  
  279.  
  280. maus.KeyUp:connect(function(kei)
  281. if string.byte(kei)==48 then
  282. chr.Humanoid.WalkSpeed=16
  283. end
  284. end)
  285.  
  286.  
  287.  
  288. maus.Button1Down:connect(function()
  289. if not armmovement and not otheranims and not flying then
  290. flying=true
  291. armmovement=true
  292. armpose='PreSwing'
  293. wait(.4)
  294. armpose='Swing'
  295. wait(.3)
  296. local proj=Instance.new('Part',Workspace)
  297. proj.Shape='Ball'
  298. proj.Anchored=false
  299. proj.Name='Fireball'
  300. proj.Locked=true
  301. proj.Size=Vector3.new(1,1,1)
  302. proj.BrickColor=BrickColor.new('Cyan')
  303. proj.Transparency=0
  304. proj.CFrame=torso.CFrame*CFrame.new(3,3,-2)
  305. local prj=Instance.new('BodyVelocity',proj)
  306. prj.velocity=((torso.CFrame*CFrame.new(3,3,-2)).p-maus.Hit.p).unit*-75
  307. proj.Touched:connect(function(hit)
  308. if hit and hit.CanCollide then
  309. proj:Destroy()
  310. local hum=hit.Parent and hit.Parent:findFirstChild('Torso') and hit.Parent:findFirstChild('Humanoid') and hit.Parent ~= chr and hit.Parent.ClassName=='Model'
  311. if hum then hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(35*(hit.Parent.Humanoid.MaxHealth/100)) end end
  312. end)
  313. armmovement=false
  314. coroutine.resume(coroutine.create(function()
  315. for kthen=1,125 do wait()
  316. local ex=math.random(0,300)*.01
  317. local wy=math.random(0,300)*.01
  318. local ze=math.random(0,300)*.01
  319. local dy=math.random(5,30)*.01
  320. local fir=Instance.new('Part',proj)
  321. fir.formFactor='Custom'
  322. fir.Anchored=true
  323. fir.CanCollide=false
  324. fir.Size=Vector3.new(.8,.8,.8)
  325. fir.TopSurface=10
  326. fir.BottomSurface=10
  327. fir.LeftSurface=10
  328. fir.RightSurface=10
  329. fir.FrontSurface=10
  330. fir.Locked=true
  331. fir.BackSurface=10
  332. fir.BrickColor=BrickColor.new(fireclrs[math.random(1,#fireclrs)])
  333. fir.CFrame=proj.CFrame*CFrame.Angles(ex,wy,ze)
  334. local lt=Instance.new('PointLight',fir)
  335. lt.Brightness=123123
  336. lt.Range=6
  337. lt.Color=lalalclrs[math.random(1,#lalalclrs)]
  338. game:service'Debris':AddItem(fir,.5)
  339. local frms=Instance.new('BlockMesh',fir)
  340. frms.Scale=Vector3.new(1,1,1)
  341. coroutine.wrap(function()
  342. for lal=1,10 do
  343. frms.Scale=frms.Scale-Vector3.new(.1,.1,.1)
  344. fir.CFrame=fir.CFrame*CFrame.new(0,dy,0)
  345. wait()
  346. end
  347. end)() end end))
  348. wait(.375)
  349. flying=false
  350. end
  351. end)
  352.  
  353. ------------------
  354.  
  355. coroutine.resume(coroutine.create(function()
  356. while wait() do
  357. local ex=math.random(0,300)*.01
  358. local wy=math.random(0,300)*.01
  359. local ze=math.random(0,300)*.01
  360. local dy=math.random(5,30)*.01
  361. local fir=Instance.new('Part',rm)
  362. fir.formFactor='Custom'
  363. fir.Anchored=true
  364. fir.CanCollide=false
  365. fir.Size=Vector3.new(.65,.65,.65)
  366. fir.TopSurface=10
  367. fir.BottomSurface=10
  368. fir.LeftSurface=10
  369. fir.RightSurface=10
  370. fir.FrontSurface=10
  371. fir.Locked=true
  372. fir.BackSurface=10
  373. fir.BrickColor=BrickColor.new(fireclrs[math.random(1,#fireclrs)])
  374. fir.CFrame=rm.CFrame*CFrame.Angles(ex,wy,ze)
  375. local lt=Instance.new('PointLight',fir)
  376. lt.Brightness=123123
  377. lt.Range=6
  378. lt.Color=lalalclrs[math.random(1,#lalalclrs)]
  379. game:service'Debris':AddItem(fir,.5)
  380. local frms=Instance.new('BlockMesh',fir)
  381. coroutine.wrap(function()
  382. for lal=1,10 do
  383. frms.Scale=frms.Scale-Vector3.new(.1,.1,.1)
  384. fir.CFrame=fir.CFrame*CFrame.new(0,dy,0)
  385. wait()
  386. end
  387. end)() end end))
  388.  
  389.  
  390. ----------------------------------------------------------------------------
  391.  
  392. game:service'RunService'.RenderStepped:connect(function()
  393. syne=syne+1
  394. if not otheranims then
  395. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  396. anim="Idling"
  397.  
  398. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 30 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  399. anim="Walking"
  400.  
  401. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 30 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  402. anim="Sprinting"
  403.  
  404. elseif (torso.Velocity.y > 1) then
  405. anim="Jumping"
  406.  
  407. elseif (torso.Velocity.y < -1) then
  408. anim="Falling"
  409. end
  410. end
  411.  
  412. if anim=="Idling" then
  413. idlesineinc=40
  414. if not armmovement then
  415. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.1)
  416. end
  417. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
  418. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
  419. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
  420. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  421. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
  422. end
  423. if anim=="Walking" then
  424. if not armmovement then
  425. rarm.Weld.C0=Lerp(rarm.Weld.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)
  426. end
  427. larm.Weld.C0=Lerp(larm.Weld.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)
  428. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  429. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  430. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  431. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
  432. end
  433.  
  434. if anim=="Sprinting" then
  435. if not armmovement then
  436. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)),.1)
  437. end
  438.  
  439. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)),.1)
  440. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2))*CFrame.Angles(math.cos(syne/4)*2,0,math.rad(-2.5)),.1)
  441. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2)*CFrame.Angles(-(math.cos(syne/4)*2),0,math.rad(2.5)),.1)
  442. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(10),0,0),.1)
  443. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5)/1.5)*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-15),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  444. end
  445.  
  446. if anim=="Jumping" then if not armmovement then
  447. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15)
  448. end
  449. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15)
  450. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,-.1)*CFrame.Angles(0,0,math.rad(-2.5)),.05)
  451. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,-.1)*CFrame.Angles(0,0,math.rad(2.5)),.05)
  452. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
  453. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.3,0)*CFrame.Angles(math.rad(-20),0,math.sin(rutprt.RotVelocity.y/2)/4),.1)
  454. end
  455.  
  456. if anim=="Falling" then
  457. if not armmovement then
  458. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.425,.525,0)*CFrame.Angles(math.rad(65),0,math.rad(45)),.15)
  459. end
  460. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.425,.525,0)*CFrame.Angles(math.rad(65),0,math.rad(-45)),.15)
  461. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.75,-1.3,-.8)*CFrame.Angles(math.rad(55),0,math.rad(-15)),.05)
  462. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.75,-1.3,-.8)*CFrame.Angles(math.rad(55),0,math.rad(15)),.05)
  463. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
  464. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.3,0)*CFrame.Angles(math.rad(-40),0,math.sin(rutprt.RotVelocity.y/2)/4),.1)
  465. end
  466. if armpose=='ReplacingStick' and armmovement then
  467. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-140),0,math.rad(-20)),.075)
  468. end
  469.  
  470. if armpose=='PreSwing' and armmovement then
  471. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(179),0,math.rad(10)),.15)
  472. end
  473.  
  474. if armpose=='Swing' and armmovement then
  475. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(25),0,math.rad(10)),.2)
  476. end
  477.  
  478.  
  479. if otheranims then
  480. if anim=='SuperCrouch' then
  481. if not equipped and not armmovement then
  482. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.05)
  483. end
  484. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.05)
  485. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,0)*CFrame.Angles(math.rad(-20),0,math.rad(-2.5)),.05)
  486. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-.8,-.65)*CFrame.Angles(math.rad(10),0,math.rad(2.5)),.05)
  487. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(40),0,0),.05)
  488. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-1.4,.2)*CFrame.Angles(math.rad(-14),math.rad(0),math.rad(0)),.05)
  489. end
  490.  
  491. if anim=="SuperJump" then
  492. if not armmovement and not equipped then
  493. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(20)),.1)
  494. end
  495. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(-20)),.1)
  496. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(-2.5)),.1)
  497. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(2.5)),.1)
  498. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(30),0,0),.1)
  499. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  500. end
  501. end
  502. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  503. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement