cat568

Untitled

Jun 9th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13. local deb = false
  14. local shot = 0
  15. local debris=game:service"Debris"
  16. local l = game:GetService("Lighting")
  17. local rs = game:GetService("RunService").RenderStepped
  18. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  19. math.randomseed(os.time())
  20. ----------------------------------------------------
  21. Debounces = {
  22. CanAttack = true;
  23. NoIdl = false;
  24. Slashing = false;
  25. Slashed = false;
  26. RPunch = false;
  27. RPunched = false;
  28. LPunch = false;
  29. LPunched = false;
  30. }
  31. local Touche = {char.Name, }
  32. ----------------------------------------------------
  33. hed.face.Texture = "rbxassetid://227969918"
  34. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  35. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  36. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  37. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  38. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  39. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  40. ----------------------------------------------------
  41. ypcall(function()
  42. char.Shirt:Destroy()
  43. char.Pants:Destroy()
  44. shirt = Instance.new("Shirt", char)
  45. shirt.Name = "Shirt"
  46. pants = Instance.new("Pants", char)
  47. pants.Name = "Pants"
  48. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
  49. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
  50. end)
  51. ----------------------------------------------------
  52. --------------nico
  53. local fartids={251309043,251309043}
  54. local timer=false
  55. local debris=game:GetService("Debris")
  56. local char=game.Players.LocalPlayer.Character
  57. for i = 1,3,2 do
  58. local asdf=Instance.new("Part",char)
  59. asdf.Shape="Ball"
  60. asdf.Locked=true
  61. asdf.FormFactor="Custom"
  62. asdf.Material="SmoothPlastic"
  63. asdf.BrickColor=BrickColor.new(1030)
  64. asdf.Size=Vector3.new(.01,.01,.01)
  65. local weld=Instance.new("Weld",char)
  66. weld.Part0=char.Torso
  67. weld.Part1=asdf
  68. weld.C0=CFrame.new((i-2)/2.5,-.9,.4)
  69. end
  70. function crap()
  71. if timer==false then
  72. timer=true
  73. local char=game.Players.LocalPlayer.Character
  74. local crap=Instance.new("Part",Workspace)
  75. crap.FormFactor="Custom"
  76. crap.BrickColor=BrickColor.new(25)
  77. crap.Material="Grass"
  78. crap.Size=Vector3.new(1.2,0.4,0.4)
  79. local snd=Instance.new("Sound",char)
  80. snd.SoundId="rbxassetid://" .. tostring(fartids[math.random(1,#fartids)])
  81. snd.Volume=2
  82. snd:Play()
  83. debris:AddItem(snd,snd.TimeLength)
  84. local smk=Instance.new("Smoke",crap)
  85. smk.Color=BrickColor.new(25).Color
  86. debris:AddItem(smk,2.5)
  87. for i = 0.15,1.3,.02 do
  88. local weld=Instance.new("Weld",crap)
  89. weld.Part0=char.Torso
  90. weld.Part1=crap
  91. weld.C0=CFrame.new(0,-.9,i)*CFrame.Angles(0,math.rad(90),0)
  92. wait()
  93. end
  94. local crapCFrame=crap.CFrame
  95. crap:Destroy()
  96.  
  97. for i = 0,1.2,0.4 do
  98. local newCrap=Instance.new("Part",Workspace)
  99. newCrap.FormFactor="Custom"
  100. newCrap.BrickColor=BrickColor.new(25)
  101. newCrap.Material="Grass"
  102. newCrap.Size=Vector3.new(.4,.4,.4)
  103. newCrap.CFrame=crapCFrame*CFrame.new(i-1,0,0)
  104. end
  105. timer=false
  106. end
  107. end
  108. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  109. if string.lower(key)=="x" then
  110. crap()
  111. end
  112. end)
  113.  
  114. do --CFrame lerp
  115. local function QuaternionFromCFrame(cf)
  116. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  117. local trace = m00 + m11 + m22
  118. if trace > 0 then
  119. local s = math.sqrt(1 + trace)
  120. local recip = 0.5/s
  121. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  122. else
  123. local i = 0
  124. if m11 > m00 then
  125. i = 1
  126. end
  127. if m22 > (i == 0 and m00 or m11) then
  128. i = 2
  129. end
  130. if i == 0 then
  131. local s = math.sqrt(m00-m11-m22+1)
  132. local recip = 0.5/s
  133. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  134. elseif i == 1 then
  135. local s = math.sqrt(m11-m22-m00+1)
  136. local recip = 0.5/s
  137. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  138. elseif i == 2 then
  139. local s = math.sqrt(m22-m00-m11+1)
  140. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  141. end
  142. end
  143. end
  144. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  145. local xs, ys, zs = x + x, y + y, z + z
  146. local wx, wy, wz = w*xs, w*ys, w*zs
  147. local xx = x*xs
  148. local xy = x*ys
  149. local xz = x*zs
  150. local yy = y*ys
  151. local yz = y*zs
  152. local zz = z*zs
  153. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  154. end
  155. local function QuaternionSlerp(a, b, t)
  156. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  157. local startInterp, finishInterp;
  158. if cosTheta >= 0.0001 then
  159. if (1 - cosTheta) > 0.0001 then
  160. local theta = math.acos(cosTheta)
  161. local invSinTheta = 1/math.sin(theta)
  162. startInterp = math.sin((1-t)*theta)*invSinTheta
  163. finishInterp = math.sin(t*theta)*invSinTheta
  164. else
  165. startInterp = 1-t
  166. finishInterp = t
  167. end
  168. else
  169. if (1+cosTheta) > 0.0001 then
  170. local theta = math.acos(-cosTheta)
  171. local invSinTheta = 1/math.sin(theta)
  172. startInterp = math.sin((t-1)*theta)*invSinTheta
  173. finishInterp = math.sin(t*theta)*invSinTheta
  174. else
  175. startInterp = t-1
  176. finishInterp = t
  177. end
  178. end
  179. 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
  180. end
  181. function clerp(a,b,t)
  182. local qa = {QuaternionFromCFrame(a)}
  183. local qb = {QuaternionFromCFrame(b)}
  184. local ax, ay, az = a.x, a.y, a.z
  185. local bx, by, bz = b.x, b.y, b.z
  186. local _t = 1-t
  187. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  188. end
  189.  
  190. end
  191. do --the animating
  192. plr = game:service'Players'.LocalPlayer
  193. char = plr.Character
  194. mouse = plr:GetMouse()
  195. humanoid = char:findFirstChild("Humanoid")
  196. torso = char:findFirstChild("Torso")
  197. head = char.Head
  198. ra = char:findFirstChild("Right Arm")
  199. la = char:findFirstChild("Left Arm")
  200. rl = char:findFirstChild("Right Leg")
  201. ll = char:findFirstChild("Left Leg")
  202. rs = torso:findFirstChild("Right Shoulder")
  203. ls = torso:findFirstChild("Left Shoulder")
  204. rh = torso:findFirstChild("Right Hip")
  205. lh = torso:findFirstChild("Left Hip")
  206. neck = torso:findFirstChild("Neck")
  207. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  208. anim = char:findFirstChild("Animate")
  209. rootpart = char:findFirstChild("HumanoidRootPart")
  210. camera = workspace.CurrentCamera
  211. if anim then
  212. anim:Destroy()
  213. end
  214.  
  215.  
  216. local rm = Instance.new("Motor", torso)
  217. rm.C0 = CFrame.new(1.5, 0.5, 0)
  218. rm.C1 = CFrame.new(0, 0.5, 0)
  219. rm.Part0 = torso
  220. rm.Part1 = ra
  221. local lm = Instance.new("Motor", torso)
  222. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  223. lm.C1 = CFrame.new(0, 0.5, 0)
  224. lm.Part0 = torso
  225. lm.Part1 = la
  226.  
  227. local rlegm = Instance.new("Motor", torso)
  228. rlegm.C0 = CFrame.new(0.5, -1, 0)
  229. rlegm.C1 = CFrame.new(0, 1, 0)
  230. rlegm.Part0 = torso
  231. rlegm.Part1 = rl
  232. local llegm = Instance.new("Motor", torso)
  233. llegm.C0 = CFrame.new(-0.5, -1, 0)
  234. llegm.C1 = CFrame.new(0, 1, 0)
  235. llegm.Part0 = torso
  236. llegm.Part1 = ll
  237.  
  238. neck.C0 = CFrame.new(0, 1, 0)
  239. neck.C1 = CFrame.new(0, -0.5, 0)
  240.  
  241.  
  242. rj.C0 = CFrame.new()
  243. rj.C1 = CFrame.new()
  244.  
  245.  
  246. local sound = Instance.new("Sound", head)
  247. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  248. sound.Volume = 0.8
  249. sound.Looped = true
  250.  
  251. local speed = 0.3
  252. local angle = 0
  253. local sitting = false
  254. local humanwalk = false
  255. local anglespeed = 1
  256. rsc0 = rm.C0
  257. lsc0 = lm.C0
  258. llc0 = llegm.C0
  259. rlc0 = rlegm.C0
  260. neckc0 = neck.C0
  261.  
  262. local controllerService = game:GetService("ControllerService")
  263. local controller = controllerService:GetChildren()[1]
  264.  
  265. controller.Parent = nil
  266.  
  267. while wait() do
  268. angle = (angle % 100) + anglespeed/10
  269. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  270. local rscf = rsc0
  271. local lscf = lsc0
  272. local rlcf = rlc0
  273. local llcf = llc0
  274. local rjcf = CFrame.new()
  275. local ncf = neckc0
  276. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  277. local hitz, enz = workspace:findPartOnRay(rayz, char)
  278. if not hitz then
  279. if sound.IsPlaying then
  280. sound:stop()
  281. end
  282.  
  283. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  284.  
  285. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  286. rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
  287. rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
  288. lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
  289. rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
  290. llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
  291.  
  292. else
  293.  
  294. ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
  295. rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
  296. rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
  297. lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
  298. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
  299. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  300.  
  301. end
  302. elseif humanoid.Sit then
  303. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=150794704" then
  304. anglespeed = 6
  305. ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  306. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  307. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  308. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  309. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  310. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  311. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then
  312. anglespeed = 4
  313. ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
  314. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  315. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  316. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  317. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  318. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  319. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  320. anglespeed = 2
  321. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  322. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  323. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  324. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  325. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  326. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  327. else
  328. anglespeed = 1/2
  329. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  330. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  331. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  332. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  333. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  334. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  335. end
  336. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  337. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  338. anglespeed = 6
  339. ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
  340. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
  341. rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  342. lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  343. rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
  344. llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
  345. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  346. anglespeed = 2
  347. ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
  348. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
  349. rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  350. lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  351. rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
  352. llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
  353. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
  354. anglespeed = 3
  355. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
  356. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  357. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
  358. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  359. rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
  360. llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
  361. else
  362. if humanwalk then
  363. anglespeed = 1/4
  364. ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  365. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  366. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
  367. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
  368. rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  369. llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  370. else
  371. anglespeed = 1/2
  372. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  373. rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  374. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  375. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  376. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  377. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  378. end
  379. end
  380. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  381. if sound.IsPlaying then
  382. sound:stop()
  383. end
  384. if humanwalk then
  385. anglespeed = 4
  386. ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  387. rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
  388. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  389. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  390. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  391. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  392. else
  393. anglespeed = 4
  394. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  395. rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0)
  396. rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5))
  397. lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5))
  398. rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025)
  399. llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025)
  400. end
  401. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  402. if sound.IsPlaying then
  403. sound:stop()
  404. end
  405. if humanwalk then
  406. anglespeed = 5
  407. ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
  408. rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
  409. rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*0.02)
  410. lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*0.02)
  411. rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  412. llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  413. else
  414. anglespeed = 5.5
  415. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  416. rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0)
  417. rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  418. lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  419. rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025)
  420. llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025)
  421. end
  422. end
  423.  
  424. rm.C0 = clerp(rm.C0,rscf,speed)
  425. lm.C0 = clerp(lm.C0,lscf,speed)
  426. rj.C0 = clerp(rj.C0,rjcf,speed)
  427. neck.C0 = clerp(neck.C0,ncf,speed)
  428. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  429. llegm.C0 = clerp(llegm.C0,llcf,speed)
  430. end
  431.  
  432.  
  433. end
Add Comment
Please, Sign In to add comment