mewishmeww

animation

Jul 28th, 2023 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.46 KB | None | 0 0
  1. local anim = {
  2. [1] = {
  3. ["Time"] = 0,
  4. ["Poses"] = {
  5. ["Left Leg"] = {
  6. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  7. ["Name"] = "Left Leg",
  8. ["Weight"] = 1,
  9. ["CFrame"] = CFrame.new(-0.684869766, 0.55282259, 4.76837158e-07, 0.590535522, 0.807011604, 2.98023224e-08, -0.807011724, 0.590535283, -5.21540642e-08, 4.47034836e-08, 5.96046448e-08, 1),
  10. ["EasingDirection"] = Enum.PoseEasingDirection.In
  11. },
  12. ["Right Leg"] = {
  13. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  14. ["Name"] = "Right Leg",
  15. ["Weight"] = 1,
  16. ["CFrame"] = CFrame.new(0, 0, 0, 0.426820129, 0.904336512, -0, -0.904336512, 0.426820129, 0, -0, 0, 1),
  17. ["EasingDirection"] = Enum.PoseEasingDirection.In
  18. },
  19. ["Head"] = {
  20. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  21. ["Name"] = "Head",
  22. ["Weight"] = 1,
  23. ["CFrame"] = CFrame.new(4.76837158e-07, 9.53674316e-07, 5.06639481e-07, 0.931037128, 0.36492449, 3.7252903e-09, -0.344610125, 0.879208982, 0.328991622, 0.120057091, -0.306303352, 0.944332659),
  24. ["EasingDirection"] = Enum.PoseEasingDirection.In
  25. },
  26. ["Right Arm"] = {
  27. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  28. ["Name"] = "Right Arm",
  29. ["Weight"] = 1,
  30. ["CFrame"] = CFrame.new(0.647121429, 0.260571122, 0.0220372677, -0.996192992, -0.0155502334, -0.0857777745, 0.020124143, -0.99840641, -0.0527188405, -0.0848212168, -0.0542443916, 0.994918823),
  31. ["EasingDirection"] = Enum.PoseEasingDirection.In
  32. },
  33. ["Torso"] = {
  34. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  35. ["Name"] = "Torso",
  36. ["Weight"] = 1,
  37. ["CFrame"] = CFrame.new(0.0144105628, -0.0533313751, 0.192218065, 0.939329386, -0.335362732, 0.0720563084, 0.342139721, 0.901013315, -0.266674787, 0.0245090891, 0.275148779, 0.961089194),
  38. ["EasingDirection"] = Enum.PoseEasingDirection.In
  39. },
  40. ["HumanoidRootPart"] = {
  41. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  42. ["Name"] = "HumanoidRootPart",
  43. ["Weight"] = 0,
  44. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  45. ["EasingDirection"] = Enum.PoseEasingDirection.In
  46. },
  47. ["Left Arm"] = {
  48. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  49. ["Name"] = "Left Arm",
  50. ["Weight"] = 1,
  51. ["CFrame"] = CFrame.new(0.677412987, 0.100073397, 0, 0.796378791, -0.604798317, -1.49011612e-08, 0.604798317, 0.796378791, -1.49011612e-08, -1.49011612e-08, -1.49011612e-08, 1),
  52. ["EasingDirection"] = Enum.PoseEasingDirection.In
  53. }
  54. }
  55. },
  56. [2] = {
  57. ["Time"] = 0.10000000149011612,
  58. ["Poses"] = {
  59. ["Left Leg"] = {
  60. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  61. ["Name"] = "Left Leg",
  62. ["Weight"] = 1,
  63. ["CFrame"] = CFrame.new(-0.463264465, -0.0622429848, 4.76837158e-07, 0.842653334, 0.53845638, -2.98023224e-08, -0.53845644, 0.842653513, 1.08033419e-07, 5.96046448e-08, -1.04308128e-07, 1),
  64. ["EasingDirection"] = Enum.PoseEasingDirection.In
  65. },
  66. ["Right Leg"] = {
  67. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  68. ["Name"] = "Right Leg",
  69. ["Weight"] = 1,
  70. ["CFrame"] = CFrame.new(9.53674316e-07, -9.53674316e-07, 2.38418579e-07, 0.665835917, 0.746097982, -4.47034836e-08, -0.74609828, 0.665835917, 3.7252903e-09, -2.23517418e-08, -5.96046448e-08, 1),
  71. ["EasingDirection"] = Enum.PoseEasingDirection.In
  72. },
  73. ["Head"] = {
  74. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  75. ["Name"] = "Head",
  76. ["Weight"] = 1,
  77. ["CFrame"] = CFrame.new(7.15255737e-07, 1.90734863e-06, 1.31130219e-06, 0.931037009, 0.362027347, -0.0458928719, -0.344610155, 0.913602471, 0.215810433, 0.120057121, -0.185112447, 0.97535634),
  78. ["EasingDirection"] = Enum.PoseEasingDirection.In
  79. },
  80. ["Right Arm"] = {
  81. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  82. ["Name"] = "Right Arm",
  83. ["Weight"] = 1,
  84. ["CFrame"] = CFrame.new(0.647122383, 0.260572374, 0.0220379829, -0.963085651, -0.255162179, -0.0857808441, 0.260135263, -0.964132011, -0.0527232401, -0.0692511648, -0.0730917081, 0.994918108),
  85. ["EasingDirection"] = Enum.PoseEasingDirection.In
  86. },
  87. ["Torso"] = {
  88. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  89. ["Name"] = "Torso",
  90. ["Weight"] = 1,
  91. ["CFrame"] = CFrame.new(0.0163631812, -0.0528020859, 0.109983921, 0.979776502, -0.195315555, 0.0434723943, 0.200038537, 0.96126461, -0.189617723, -0.0047531873, 0.194479138, 0.980895162),
  92. ["EasingDirection"] = Enum.PoseEasingDirection.In
  93. },
  94. ["HumanoidRootPart"] = {
  95. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  96. ["Name"] = "HumanoidRootPart",
  97. ["Weight"] = 0,
  98. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  99. ["EasingDirection"] = Enum.PoseEasingDirection.In
  100. },
  101. ["Left Arm"] = {
  102. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  103. ["Name"] = "Left Arm",
  104. ["Weight"] = 1,
  105. ["CFrame"] = CFrame.new(0.560233116, -0.107698023, 4.76837158e-07, 0.886575878, -0.462583035, -4.47034836e-08, 0.462583125, 0.886575937, -2.98023224e-08, 0, 2.98023224e-08, 1),
  106. ["EasingDirection"] = Enum.PoseEasingDirection.In
  107. }
  108. }
  109. },
  110. [3] = {
  111. ["Time"] = 0.1666666716337204,
  112. ["Poses"] = {
  113. ["Left Leg"] = {
  114. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  115. ["Name"] = "Left Leg",
  116. ["Weight"] = 1,
  117. ["CFrame"] = CFrame.new(-0.21053791, -0.525047839, -2.38418579e-07, 0.688685894, -0.725060165, 0, 0.725060225, 0.688685656, -5.49480319e-08, 7.4505806e-09, 6.70552254e-08, 0.999999881),
  118. ["EasingDirection"] = Enum.PoseEasingDirection.In
  119. },
  120. ["Right Leg"] = {
  121. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  122. ["Name"] = "Right Leg",
  123. ["Weight"] = 1,
  124. ["CFrame"] = CFrame.new(0.747333527, 0.175471604, 0, 0.996824026, -0.0796357989, 0, 0.0796357691, 0.996824026, 8.38190317e-09, 7.4505806e-09, 4.71482053e-09, 0.99999994),
  125. ["EasingDirection"] = Enum.PoseEasingDirection.In
  126. },
  127. ["Head"] = {
  128. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  129. ["Name"] = "Head",
  130. ["Weight"] = 1,
  131. ["CFrame"] = CFrame.new(0, 1.90734863e-06, 9.53674316e-07, 1, 0, 0, 0, 0.997949541, 0.0640043765, 0, -0.0640043765, 0.997949541),
  132. ["EasingDirection"] = Enum.PoseEasingDirection.In
  133. },
  134. ["Right Arm"] = {
  135. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  136. ["Name"] = "Right Arm",
  137. ["Weight"] = 1,
  138. ["CFrame"] = CFrame.new(-0.275900841, -0.3245157, -4.76837158e-07, 0.92888242, -0.370374888, -4.47034836e-08, 0.370374829, 0.92888242, 3.7252903e-08, 2.98023224e-08, -4.84287739e-08, 0.99999994),
  139. ["EasingDirection"] = Enum.PoseEasingDirection.In
  140. },
  141. ["Torso"] = {
  142. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  143. ["Name"] = "Torso",
  144. ["Weight"] = 1,
  145. ["CFrame"] = CFrame.new(0.00148778036, -0.00670719147, 0.0193655491, 0.992368937, 0.122845046, -0.0106275892, -0.122691445, 0.975185513, -0.184282526, -0.012274324, 0.184180185, 0.982815862),
  146. ["EasingDirection"] = Enum.PoseEasingDirection.In
  147. },
  148. ["HumanoidRootPart"] = {
  149. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  150. ["Name"] = "HumanoidRootPart",
  151. ["Weight"] = 0,
  152. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  153. ["EasingDirection"] = Enum.PoseEasingDirection.In
  154. },
  155. ["Left Arm"] = {
  156. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  157. ["Name"] = "Left Arm",
  158. ["Weight"] = 1,
  159. ["CFrame"] = CFrame.new(-0.0250301361, -0.253720284, 0, 0.692191899, 0.721713364, 0, -0.721713364, 0.692191899, 0, 0, 0, 1),
  160. ["EasingDirection"] = Enum.PoseEasingDirection.In
  161. }
  162. }
  163. },
  164. [4] = {
  165. ["Time"] = 0.2666666805744171,
  166. ["Poses"] = {
  167. ["Left Leg"] = {
  168. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  169. ["Name"] = "Left Leg",
  170. ["Weight"] = 1,
  171. ["CFrame"] = CFrame.new(0, -5.7220459e-06, -4.76837158e-07, 0.14543952, -0.989367068, 2.98023224e-08, 0.989367008, 0.14543958, 2.23517418e-08, 7.4505806e-09, -5.96046448e-08, 1),
  172. ["EasingDirection"] = Enum.PoseEasingDirection.In
  173. },
  174. ["Right Leg"] = {
  175. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  176. ["Name"] = "Right Leg",
  177. ["Weight"] = 1,
  178. ["CFrame"] = CFrame.new(0.667492867, 0.837617874, 2.86102295e-06, 0.746720076, -0.665138483, 2.98023224e-08, 0.665138304, 0.746720254, -3.7252903e-08, -2.98023224e-08, 1.49011612e-08, 1),
  179. ["EasingDirection"] = Enum.PoseEasingDirection.In
  180. },
  181. ["Head"] = {
  182. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  183. ["Name"] = "Head",
  184. ["Weight"] = 1,
  185. ["CFrame"] = CFrame.new(9.53674316e-07, 9.53674316e-07, -1.49011612e-07, 0.884607792, -0.465506583, -0.0277954452, 0.460267663, 0.861961365, 0.21254693, -0.0749833807, -0.200814113, 0.976755381),
  186. ["EasingDirection"] = Enum.PoseEasingDirection.In
  187. },
  188. ["Right Arm"] = {
  189. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  190. ["Name"] = "Right Arm",
  191. ["Weight"] = 1,
  192. ["CFrame"] = CFrame.new(-0.940870285, -0.128141016, 1.43051147e-06, 0.263189197, 0.964744151, -2.98023224e-08, -0.96474421, 0.263189226, -2.98023224e-08, -1.53668225e-08, 5.96046448e-08, 1.00000012),
  193. ["EasingDirection"] = Enum.PoseEasingDirection.In
  194. },
  195. ["Torso"] = {
  196. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  197. ["Name"] = "Torso",
  198. ["Weight"] = 1,
  199. ["CFrame"] = CFrame.new(-0.0269141123, -0.0971975327, 0.309423447, 0.877551675, 0.467636794, -0.105919108, -0.478786707, 0.842738926, -0.246077582, -0.0258127507, 0.266658515, 0.963445306),
  200. ["EasingDirection"] = Enum.PoseEasingDirection.In
  201. },
  202. ["HumanoidRootPart"] = {
  203. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  204. ["Name"] = "HumanoidRootPart",
  205. ["Weight"] = 0,
  206. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  207. ["EasingDirection"] = Enum.PoseEasingDirection.In
  208. },
  209. ["Left Arm"] = {
  210. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  211. ["Name"] = "Left Arm",
  212. ["Weight"] = 1,
  213. ["CFrame"] = CFrame.new(-0.866526604, 0.032540381, -4.76837158e-07, -0.856238127, 0.516581416, 1.1920929e-07, -0.516581357, -0.856238186, -1.11758709e-07, 1.49011612e-08, -1.78813934e-07, 1.00000012),
  214. ["EasingDirection"] = Enum.PoseEasingDirection.In
  215. }
  216. }
  217. },
  218. [5] = {
  219. ["Time"] = 0.36666667461395264,
  220. ["Poses"] = {
  221. ["Left Leg"] = {
  222. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  223. ["Name"] = "Left Leg",
  224. ["Weight"] = 1,
  225. ["CFrame"] = CFrame.new(-0.231062889, 0.0648840964, -9.53674316e-07, 0.270372152, -0.96275574, -2.98023224e-08, 0.962755919, 0.270372182, 1.2293458e-07, -9.68575478e-08, -8.94069672e-08, 1.00000012),
  226. ["EasingDirection"] = Enum.PoseEasingDirection.In
  227. },
  228. ["Right Leg"] = {
  229. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  230. ["Name"] = "Right Leg",
  231. ["Weight"] = 1,
  232. ["CFrame"] = CFrame.new(0.417463303, 0.105430976, 1.90734863e-06, 0.617512822, -0.786560833, 8.94069672e-08, 0.786560833, 0.617512703, -5.58793545e-08, -1.49011612e-08, -8.94069672e-08, 1.00000012),
  233. ["EasingDirection"] = Enum.PoseEasingDirection.In
  234. },
  235. ["Head"] = {
  236. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  237. ["Name"] = "Head",
  238. ["Weight"] = 1,
  239. ["CFrame"] = CFrame.new(9.53674316e-07, 9.53674316e-07, -1.49011612e-07, 0.884607792, -0.465506583, -0.0277954452, 0.460267663, 0.861961365, 0.21254693, -0.0749833807, -0.200814113, 0.976755381),
  240. ["EasingDirection"] = Enum.PoseEasingDirection.In
  241. },
  242. ["Right Arm"] = {
  243. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  244. ["Name"] = "Right Arm",
  245. ["Weight"] = 1,
  246. ["CFrame"] = CFrame.new(-0.271284103, -0.247525692, 2.38418579e-06, 0.6220631, 0.782967091, -2.98023224e-08, -0.782967031, 0.62206316, -1.04308128e-07, 0, 8.94069672e-08, 1.00000012),
  247. ["EasingDirection"] = Enum.PoseEasingDirection.In
  248. },
  249. ["Torso"] = {
  250. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  251. ["Name"] = "Torso",
  252. ["Weight"] = 1,
  253. ["CFrame"] = CFrame.new(-0.0269143581, -0.09719944, 0.309423447, 0.939480245, 0.33699891, -0.0617144853, -0.342601478, 0.924667835, -0.166173413, 0.00106515922, 0.177260131, 0.984163463),
  254. ["EasingDirection"] = Enum.PoseEasingDirection.In
  255. },
  256. ["HumanoidRootPart"] = {
  257. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  258. ["Name"] = "HumanoidRootPart",
  259. ["Weight"] = 0,
  260. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  261. ["EasingDirection"] = Enum.PoseEasingDirection.In
  262. },
  263. ["Left Arm"] = {
  264. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  265. ["Name"] = "Left Arm",
  266. ["Weight"] = 1,
  267. ["CFrame"] = CFrame.new(-0.732704163, -0.116092503, -9.53674316e-07, -0.743167698, 0.669105113, 1.49011612e-07, -0.669104993, -0.743167698, -1.34110451e-07, 0, -2.08616257e-07, 1),
  268. ["EasingDirection"] = Enum.PoseEasingDirection.In
  269. }
  270. }
  271. },
  272. [6] = {
  273. ["Time"] = 0.4333333373069763,
  274. ["Poses"] = {
  275. ["Left Leg"] = {
  276. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  277. ["Name"] = "Left Leg",
  278. ["Weight"] = 1,
  279. ["CFrame"] = CFrame.new(-0.531481743, -0.0503044128, 0, 0.941563606, -0.336835235, 0, 0.336835235, 0.941563606, 0, 0, 0, 1),
  280. ["EasingDirection"] = Enum.PoseEasingDirection.In
  281. },
  282. ["Right Leg"] = {
  283. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  284. ["Name"] = "Right Leg",
  285. ["Weight"] = 1,
  286. ["CFrame"] = CFrame.new(0.00280380249, -0.0780924559, 0, 0.965983868, 0.258602351, -0, -0.258602351, 0.965983868, 0, -0, 0, 1),
  287. ["EasingDirection"] = Enum.PoseEasingDirection.In
  288. },
  289. ["Head"] = {
  290. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  291. ["Name"] = "Head",
  292. ["Weight"] = 1,
  293. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.987418056, 0.15813069, 0, -0.15813069, 0.987418056),
  294. ["EasingDirection"] = Enum.PoseEasingDirection.In
  295. },
  296. ["Right Arm"] = {
  297. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  298. ["Name"] = "Right Arm",
  299. ["Weight"] = 1,
  300. ["CFrame"] = CFrame.new(0.103615761, -0.350956202, 0, 0.749707162, -0.661769569, -0, 0.661769569, 0.749707162, 0, 0, 0, 1),
  301. ["EasingDirection"] = Enum.PoseEasingDirection.In
  302. },
  303. ["Torso"] = {
  304. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  305. ["Name"] = "Torso",
  306. ["Weight"] = 1,
  307. ["CFrame"] = CFrame.new(0, 0.0804681778, -0.0137200356, 1, 0, 0, 0, 0.984317541, -0.176405713, 0, 0.176405713, 0.984317541),
  308. ["EasingDirection"] = Enum.PoseEasingDirection.In
  309. },
  310. ["HumanoidRootPart"] = {
  311. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  312. ["Name"] = "HumanoidRootPart",
  313. ["Weight"] = 0,
  314. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  315. ["EasingDirection"] = Enum.PoseEasingDirection.In
  316. },
  317. ["Left Arm"] = {
  318. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  319. ["Name"] = "Left Arm",
  320. ["Weight"] = 1,
  321. ["CFrame"] = CFrame.new(-0.139419556, -0.0587918758, 1.1920929e-07, 0.992541552, 0.121906802, 0, -0.121906802, 0.992541552, 0, 0, 0, 1),
  322. ["EasingDirection"] = Enum.PoseEasingDirection.In
  323. }
  324. }
  325. },
  326. [7] = {
  327. ["Time"] = 0.5333333611488342,
  328. ["Poses"] = {
  329. ["Left Leg"] = {
  330. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  331. ["Name"] = "Left Leg",
  332. ["Weight"] = 1,
  333. ["CFrame"] = CFrame.new(-0.684869766, 0.55282259, 4.76837158e-07, 0.590535522, 0.807011604, 2.98023224e-08, -0.807011724, 0.590535283, -5.21540642e-08, 4.47034836e-08, 5.96046448e-08, 1),
  334. ["EasingDirection"] = Enum.PoseEasingDirection.In
  335. },
  336. ["Right Leg"] = {
  337. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  338. ["Name"] = "Right Leg",
  339. ["Weight"] = 1,
  340. ["CFrame"] = CFrame.new(0, 0, 0, 0.426820129, 0.904336512, -0, -0.904336512, 0.426820129, 0, -0, 0, 1),
  341. ["EasingDirection"] = Enum.PoseEasingDirection.In
  342. },
  343. ["Head"] = {
  344. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  345. ["Name"] = "Head",
  346. ["Weight"] = 1,
  347. ["CFrame"] = CFrame.new(4.76837158e-07, 9.53674316e-07, 5.06639481e-07, 0.931037128, 0.36492449, 3.7252903e-09, -0.344610125, 0.879208982, 0.328991622, 0.120057091, -0.306303352, 0.944332659),
  348. ["EasingDirection"] = Enum.PoseEasingDirection.In
  349. },
  350. ["Right Arm"] = {
  351. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  352. ["Name"] = "Right Arm",
  353. ["Weight"] = 1,
  354. ["CFrame"] = CFrame.new(0.647121429, 0.260571122, 0.0220372677, -0.996192992, -0.0155502334, -0.0857777745, 0.020124143, -0.99840641, -0.0527188405, -0.0848212168, -0.0542443916, 0.994918823),
  355. ["EasingDirection"] = Enum.PoseEasingDirection.In
  356. },
  357. ["Torso"] = {
  358. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  359. ["Name"] = "Torso",
  360. ["Weight"] = 1,
  361. ["CFrame"] = CFrame.new(0.0144105628, -0.0533313751, 0.192218065, 0.939329386, -0.335362732, 0.0720563084, 0.342139721, 0.901013315, -0.266674787, 0.0245090891, 0.275148779, 0.961089194),
  362. ["EasingDirection"] = Enum.PoseEasingDirection.In
  363. },
  364. ["HumanoidRootPart"] = {
  365. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  366. ["Name"] = "HumanoidRootPart",
  367. ["Weight"] = 0,
  368. ["CFrame"] = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  369. ["EasingDirection"] = Enum.PoseEasingDirection.In
  370. },
  371. ["Left Arm"] = {
  372. ["EasingStyle"] = Enum.PoseEasingStyle.Linear,
  373. ["Name"] = "Left Arm",
  374. ["Weight"] = 1,
  375. ["CFrame"] = CFrame.new(0.677412987, 0.100073397, 0, 0.796378791, -0.604798317, -1.49011612e-08, 0.604798317, 0.796378791, -1.49011612e-08, -1.49011612e-08, -1.49011612e-08, 1),
  376. ["EasingDirection"] = Enum.PoseEasingDirection.In
  377. }
  378. }
  379. }
  380. }
  381.  
  382. function MainAnimation(char,Array,Speed)
  383. local motors = {}
  384. local origMotors = {}
  385. for i=1, #Array do
  386. local poses = Array[i]["Poses"]
  387. local Time = Array[i]["Time"]
  388. for z,v in pairs(poses) do
  389. local Pose = v
  390. local descChar = char:GetDescendants()
  391. local motor
  392. local found = false
  393. for p=1, #descChar do
  394. local dc = descChar[p]
  395. if dc.ClassName == "Motor6D" then
  396. if dc.Part1.Name == Pose["Name"] then
  397. motor = dc
  398. found = true
  399. end
  400. end
  401. end
  402. if not found then
  403.  
  404. end
  405. if found and motor ~= nil then
  406. if not table.find(motors, motor) then
  407. table.insert(motors, motor)
  408. table.insert(origMotors, motor.C0)
  409. end
  410. local style
  411. local direction
  412. if Pose["EasingStyle"] == Enum.PoseEasingStyle.Linear then
  413. style = Enum.EasingStyle.Linear
  414. elseif Pose["EasingStyle"] == Enum.PoseEasingStyle.Cubic then
  415. style = Enum.EasingStyle.Cubic
  416. elseif Pose["EasingStyle"] == Enum.PoseEasingStyle.Bounce then
  417. style = Enum.EasingStyle.Bounce
  418. elseif Pose["EasingStyle"] == Enum.PoseEasingStyle.Elastic then
  419. style = Enum.EasingStyle.Elastic
  420. elseif Pose["EasingStyle"] == Enum.PoseEasingStyle.Constant then
  421. style = true
  422. end
  423. if Pose["EasingDirection"] == Enum.PoseEasingDirection.In then
  424. direction = Enum.EasingDirection.In
  425. elseif Pose["EasingDirection"] == Enum.PoseEasingDirection.InOut then
  426. direction = Enum.EasingDirection.InOut
  427. elseif Pose["EasingDirection"] == Enum.PoseEasingDirection.Out then
  428. direction = Enum.EasingDirection.Out
  429. end
  430. if origMotors[table.find(motors,motor)] ~= nil then
  431. if i~=1 then
  432. game:GetService("TweenService"):Create(motor,TweenInfo.new(((Time-Array[i-1]["Time"])/2)/Speed,style,direction),{C0 = origMotors[table.find(motors,motor)] * Pose["CFrame"]}):Play()
  433. else
  434. game:GetService("TweenService"):Create(motor,TweenInfo.new(0.01,style,direction),{C0 = origMotors[table.find(motors,motor)] * Pose["CFrame"]}):Play()
  435. end
  436. else
  437. print("Nil")
  438. end
  439. end
  440. end
  441. if i~=1 then
  442. task.wait(((Time-Array[i-1]["Time"])/2)/Speed)
  443. end
  444. end
  445. for i=1, #motors do
  446. if origMotors[i] ~= nil then
  447. local originalC0 = origMotors[i]
  448. motors[i].C0 = originalC0
  449. end
  450. end
  451. end
  452.  
  453. function Play(char,Array,Speed,looped)
  454. if not looped then
  455. MainAnimation(char,Array,Speed)
  456. else
  457. while wait() do
  458. MainAnimation(char,Array,Speed)
  459. end
  460. end
  461. end
  462.  
  463. Play(owner.Character,anim,0.5,true)
Advertisement
Add Comment
Please, Sign In to add comment