Advertisement
teotv202

Untitled

Dec 30th, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local remote = NS ([==[
  2. local moving_anthro_npc = Instance.new("Model")
  3. local body_colors = Instance.new("BodyColors", moving_anthro_npc)
  4. local humanoidrootpart = Instance.new("Part")
  5. local rootrigattachment = Instance.new("Attachment")
  6. local humanoid = Instance.new("Humanoid")
  7. local animator = Instance.new("Animator", humanoid)
  8. local head = Instance.new("Part")
  9. local neckrigattachment = Instance.new("Attachment")
  10. local originalpivot = Instance.new("Vector3Value")
  11. local hatattachment = Instance.new("Attachment")
  12. local originalpivot_2 = Instance.new("Vector3Value")
  13. local hairattachment = Instance.new("Attachment")
  14. local originalpivot_3 = Instance.new("Vector3Value")
  15. local facefrontattachment = Instance.new("Attachment")
  16. local originalpivot_4 = Instance.new("Vector3Value")
  17. local facecenterattachment = Instance.new("Attachment")
  18. local originalpivot_5 = Instance.new("Vector3Value")
  19. local originalsize = Instance.new("Vector3Value")
  20. local neck = Instance.new("Motor6D")
  21. local mesh = Instance.new("SpecialMesh")
  22. local lefthand = Instance.new("Part")
  23. local leftwristrigattachment = Instance.new("Attachment")
  24. local originalpivot_6 = Instance.new("Vector3Value")
  25. local leftgripattachment = Instance.new("Attachment")
  26. local originalpivot_7 = Instance.new("Vector3Value")
  27. local originalsize_2 = Instance.new("Vector3Value")
  28. local leftwrist = Instance.new("Motor6D")
  29. local mesh_2 = Instance.new("SpecialMesh")
  30. local leftlowerarm = Instance.new("Part")
  31. local leftelbowrigattachment = Instance.new("Attachment")
  32. local originalpivot_8 = Instance.new("Vector3Value")
  33. local leftwristrigattachment_2 = Instance.new("Attachment")
  34. local originalpivot_9 = Instance.new("Vector3Value")
  35. local originalsize_3 = Instance.new("Vector3Value")
  36. local leftelbow = Instance.new("Motor6D")
  37. local mesh_3 = Instance.new("SpecialMesh")
  38. local leftupperarm = Instance.new("Part")
  39. local leftshoulderrigattachment = Instance.new("Attachment")
  40. local originalpivot_10 = Instance.new("Vector3Value")
  41. local leftelbowrigattachment_2 = Instance.new("Attachment")
  42. local originalpivot_11 = Instance.new("Vector3Value")
  43. local leftshoulderattachment = Instance.new("Attachment")
  44. local originalpivot_12 = Instance.new("Vector3Value")
  45. local originalsize_4 = Instance.new("Vector3Value")
  46. local leftshoulder = Instance.new("Motor6D")
  47. local mesh_4 = Instance.new("SpecialMesh")
  48. local righthand = Instance.new("Part")
  49. local rightwristrigattachment = Instance.new("Attachment")
  50. local originalpivot_13 = Instance.new("Vector3Value")
  51. local rightgripattachment = Instance.new("Attachment")
  52. local originalpivot_14 = Instance.new("Vector3Value")
  53. local originalsize_5 = Instance.new("Vector3Value")
  54. local rightwrist = Instance.new("Motor6D")
  55. local mesh_5 = Instance.new("SpecialMesh")
  56. local rightlowerarm = Instance.new("Part")
  57. local rightelbowrigattachment = Instance.new("Attachment")
  58. local originalpivot_15 = Instance.new("Vector3Value")
  59. local rightwristrigattachment_2 = Instance.new("Attachment")
  60. local originalpivot_16 = Instance.new("Vector3Value")
  61. local originalsize_6 = Instance.new("Vector3Value")
  62. local rightelbow = Instance.new("Motor6D")
  63. local mesh_6 = Instance.new("SpecialMesh")
  64. local rightupperarm = Instance.new("Part")
  65. local rightshoulderrigattachment = Instance.new("Attachment")
  66. local originalpivot_17 = Instance.new("Vector3Value")
  67. local rightelbowrigattachment_2 = Instance.new("Attachment")
  68. local originalpivot_18 = Instance.new("Vector3Value")
  69. local rightshoulderattachment = Instance.new("Attachment")
  70. local originalpivot_19 = Instance.new("Vector3Value")
  71. local originalsize_7 = Instance.new("Vector3Value")
  72. local rightshoulder = Instance.new("Motor6D")
  73. local mesh_7 = Instance.new("SpecialMesh")
  74. local uppertorso = Instance.new("Part")
  75. local waistrigattachment = Instance.new("Attachment")
  76. local originalpivot_20 = Instance.new("Vector3Value")
  77. local neckrigattachment_2 = Instance.new("Attachment")
  78. local originalpivot_21 = Instance.new("Vector3Value")
  79. local leftshoulderrigattachment_2 = Instance.new("Attachment")
  80. local originalpivot_22 = Instance.new("Vector3Value")
  81. local rightshoulderrigattachment_2 = Instance.new("Attachment")
  82. local originalpivot_23 = Instance.new("Vector3Value")
  83. local bodyfrontattachment = Instance.new("Attachment")
  84. local originalpivot_24 = Instance.new("Vector3Value")
  85. local bodybackattachment = Instance.new("Attachment")
  86. local originalpivot_25 = Instance.new("Vector3Value")
  87. local neckattachment = Instance.new("Attachment")
  88. local originalpivot_26 = Instance.new("Vector3Value")
  89. local rightcollarattachment = Instance.new("Attachment")
  90. local originalpivot_27 = Instance.new("Vector3Value")
  91. local leftcollarattachment = Instance.new("Attachment")
  92. local originalpivot_28 = Instance.new("Vector3Value")
  93. local originalsize_8 = Instance.new("Vector3Value")
  94. local waist = Instance.new("Motor6D")
  95. local mesh_8 = Instance.new("SpecialMesh")
  96. local leftfoot = Instance.new("Part")
  97. local leftanklerigattachment = Instance.new("Attachment")
  98. local originalpivot_29 = Instance.new("Vector3Value")
  99. local originalsize_9 = Instance.new("Vector3Value")
  100. local leftankle = Instance.new("Motor6D")
  101. local mesh_9 = Instance.new("SpecialMesh")
  102. local leftlowerleg = Instance.new("Part")
  103. local leftkneerigattachment = Instance.new("Attachment")
  104. local originalpivot_30 = Instance.new("Vector3Value")
  105. local leftanklerigattachment_2 = Instance.new("Attachment")
  106. local originalpivot_31 = Instance.new("Vector3Value")
  107. local originalsize_10 = Instance.new("Vector3Value")
  108. local leftknee = Instance.new("Motor6D")
  109. local mesh_10 = Instance.new("SpecialMesh")
  110. local leftupperleg = Instance.new("Part")
  111. local lefthiprigattachment = Instance.new("Attachment")
  112. local originalpivot_32 = Instance.new("Vector3Value")
  113. local leftkneerigattachment_2 = Instance.new("Attachment")
  114. local originalpivot_33 = Instance.new("Vector3Value")
  115. local originalsize_11 = Instance.new("Vector3Value")
  116. local lefthip = Instance.new("Motor6D")
  117. local mesh_11 = Instance.new("SpecialMesh")
  118. local rightfoot = Instance.new("Part")
  119. local rightanklerigattachment = Instance.new("Attachment")
  120. local originalpivot_34 = Instance.new("Vector3Value")
  121. local originalsize_12 = Instance.new("Vector3Value")
  122. local rightankle = Instance.new("Motor6D")
  123. local mesh_12 = Instance.new("SpecialMesh")
  124. local rightlowerleg = Instance.new("Part")
  125. local rightkneerigattachment = Instance.new("Attachment")
  126. local originalpivot_35 = Instance.new("Vector3Value")
  127. local rightanklerigattachment_2 = Instance.new("Attachment")
  128. local originalpivot_36 = Instance.new("Vector3Value")
  129. local originalsize_13 = Instance.new("Vector3Value")
  130. local rightknee = Instance.new("Motor6D")
  131. local mesh_13 = Instance.new("SpecialMesh")
  132. local rightupperleg = Instance.new("Part")
  133. local righthiprigattachment = Instance.new("Attachment")
  134. local originalpivot_37 = Instance.new("Vector3Value")
  135. local rightkneerigattachment_2 = Instance.new("Attachment")
  136. local originalpivot_38 = Instance.new("Vector3Value")
  137. local originalsize_14 = Instance.new("Vector3Value")
  138. local righthip = Instance.new("Motor6D")
  139. local mesh_14 = Instance.new("SpecialMesh")
  140. local lowertorso = Instance.new("Part")
  141. local rootrigattachment_2 = Instance.new("Attachment")
  142. local originalpivot_39 = Instance.new("Vector3Value")
  143. local waistrigattachment_2 = Instance.new("Attachment")
  144. local originalpivot_40 = Instance.new("Vector3Value")
  145. local lefthiprigattachment_2 = Instance.new("Attachment")
  146. local originalpivot_41 = Instance.new("Vector3Value")
  147. local righthiprigattachment_2 = Instance.new("Attachment")
  148. local originalpivot_42 = Instance.new("Vector3Value")
  149. local waistcenterattachment = Instance.new("Attachment")
  150. local originalpivot_43 = Instance.new("Vector3Value")
  151. local waistfrontattachment = Instance.new("Attachment")
  152. local originalpivot_44 = Instance.new("Vector3Value")
  153. local waistbackattachment = Instance.new("Attachment")
  154. local originalpivot_45 = Instance.new("Vector3Value")
  155. local originalsize_15 = Instance.new("Vector3Value")
  156. local root = Instance.new("Motor6D")
  157. local mesh_15 = Instance.new("SpecialMesh")
  158.  
  159. moving_anthro_npc.Name = "Moving Anthro [NPC]"
  160. moving_anthro_npc.Parent = workspace
  161. humanoidrootpart.Size = Vector3.new(2, 2, 1)
  162. humanoidrootpart.Material = Enum.Material.SmoothPlastic
  163. humanoidrootpart.Orientation = Vector3.new(0, -166.02, 0)
  164. humanoidrootpart.Name = "HumanoidRootPart"
  165. humanoidrootpart.Transparency = 1
  166. humanoidrootpart.Parent = moving_anthro_npc
  167. humanoidrootpart.CFrame = CFrame.new(-8.268, 3.443, -57.903) * CFrame.Angles(3.142, -0.244, 3.142)
  168. rootrigattachment.Name = "RootRigAttachment"
  169. rootrigattachment.Parent = humanoidrootpart
  170. humanoid.HipHeight = 2.5
  171. humanoid.RigType = Enum.HumanoidRigType.R15
  172. humanoid.Parent = moving_anthro_npc
  173. head.Size = Vector3.new(0.693, 1.001, 0.93)
  174. head.Color = Color3.new(0.992157, 0.917647, 0.552941)
  175. head.Name = "Head"
  176. head.Material = Enum.Material.SmoothPlastic
  177. head.BrickColor = BrickColor.new("Cool yellow")
  178. head.Orientation = Vector3.new(0, -166.02, 0)
  179. head.Parent = moving_anthro_npc
  180. head.CFrame = CFrame.new(-8.26, 6.045, -57.87) * CFrame.Angles(3.142, -0.244, 3.142)
  181. neckrigattachment.Position = Vector3.new(0, -0.384, -0.057)
  182. neckrigattachment.Name = "NeckRigAttachment"
  183. neckrigattachment.CFrame = CFrame.new(0, -0.384, -0.057)
  184. neckrigattachment.Parent = head
  185. originalpivot.Value = Vector3.new(0, -0.307, -0.045)
  186. originalpivot.Name = "OriginalPivot"
  187. originalpivot.Parent = neckrigattachment
  188. hatattachment.Position = Vector3.new(0, 0.25, 0.034)
  189. hatattachment.Name = "HatAttachment"
  190. hatattachment.CFrame = CFrame.new(0, 0.25, 0.034)
  191. hatattachment.Parent = head
  192. originalpivot_2.Value = Vector3.new(0, 0.2, 0.027)
  193. originalpivot_2.Name = "OriginalPivot"
  194. originalpivot_2.Parent = hatattachment
  195. hairattachment.Position = Vector3.new(0, 0.25, 0.034)
  196. hairattachment.Name = "HairAttachment"
  197. hairattachment.CFrame = CFrame.new(0, 0.25, 0.034)
  198. hairattachment.Parent = head
  199. originalpivot_3.Value = Vector3.new(0, 0.2, 0.027)
  200. originalpivot_3.Name = "OriginalPivot"
  201. originalpivot_3.Parent = hairattachment
  202. facefrontattachment.Position = Vector3.new(0, -0.239, -0.36)
  203. facefrontattachment.Name = "FaceFrontAttachment"
  204. facefrontattachment.CFrame = CFrame.new(0, -0.239, -0.36)
  205. facefrontattachment.Parent = head
  206. originalpivot_4.Value = Vector3.new(0, -0.191, -0.288)
  207. originalpivot_4.Name = "OriginalPivot"
  208. originalpivot_4.Parent = facefrontattachment
  209. facecenterattachment.Position = Vector3.new(0, -0.103, 0.034)
  210. facecenterattachment.Name = "FaceCenterAttachment"
  211. facecenterattachment.CFrame = CFrame.new(0, -0.103, 0.034)
  212. facecenterattachment.Parent = head
  213. originalpivot_5.Value = Vector3.new(0, -0.082, 0.027)
  214. originalpivot_5.Name = "OriginalPivot"
  215. originalpivot_5.Parent = facecenterattachment
  216. originalsize.Value = Vector3.new(0.554, 0.801, 0.744)
  217. originalsize.Name = "OriginalSize"
  218. originalsize.Parent = head
  219. neck.Part1 = head
  220. neck.C0 = CFrame.new(0, 0.981, -0.046)
  221. neck.Part0 = uppertorso
  222. neck.C1 = CFrame.new(0, -0.384, -0.057)
  223. neck.Name = "Neck"
  224. neck.Parent = head
  225. mesh.MeshType = Enum.MeshType.FileMesh
  226. mesh.Scale = Vector3.new(1.2, 1.2, 1.2)
  227. mesh.MeshId = "rbxassetid://875229544"
  228. mesh.TextureId = "rbxassetid://853067666"
  229. mesh.Parent = head
  230. lefthand.CanCollide = false
  231. lefthand.Size = Vector3.new(0.369, 0.777, 0.423)
  232. lefthand.BrickColor = BrickColor.new("Cool yellow")
  233. lefthand.Material = Enum.Material.SmoothPlastic
  234. lefthand.Color = Color3.new(0.992157, 0.917647, 0.552941)
  235. lefthand.Orientation = Vector3.new(0, -166.02, 0)
  236. lefthand.Name = "LeftHand"
  237. lefthand.Parent = moving_anthro_npc
  238. lefthand.CFrame = CFrame.new(-7.428, 2.811, -57.824) * CFrame.Angles(3.142, -0.244, 3.142)
  239. leftwristrigattachment.Position = Vector3.new(-0.104, 0.272, 0.043)
  240. leftwristrigattachment.Name = "LeftWristRigAttachment"
  241. leftwristrigattachment.CFrame = CFrame.new(-0.104, 0.272, 0.043)
  242. leftwristrigattachment.Parent = lefthand
  243. originalpivot_6.Value = Vector3.new(-0.083, 0.218, 0.034)
  244. originalpivot_6.Name = "OriginalPivot"
  245. originalpivot_6.Parent = leftwristrigattachment
  246. leftgripattachment.Rotation = Vector3.new(-90, 0, 0)
  247. leftgripattachment.CFrame = CFrame.new(0.033, 0.006, 0.279) * CFrame.Angles(-1.571, 0, 0)
  248. leftgripattachment.Orientation = Vector3.new(-90, 0, 0)
  249. leftgripattachment.Name = "LeftGripAttachment"
  250. leftgripattachment.SecondaryAxis = Vector3.new(0, 0, -1)
  251. leftgripattachment.Position = Vector3.new(0.033, 0.006, 0.279)
  252. leftgripattachment.Parent = lefthand
  253. originalpivot_7.Value = Vector3.new(0.027, 0.005, 0.224)
  254. originalpivot_7.Name = "OriginalPivot"
  255. originalpivot_7.Parent = leftgripattachment
  256. originalsize_2.Value = Vector3.new(0.295, 0.621, 0.339)
  257. originalsize_2.Name = "OriginalSize"
  258. originalsize_2.Parent = lefthand
  259. leftwrist.Part1 = lefthand
  260. leftwrist.C0 = CFrame.new(-0.019, -0.508, -0.166)
  261. leftwrist.Part0 = leftlowerarm
  262. leftwrist.C1 = CFrame.new(-0.104, 0.272, 0.043)
  263. leftwrist.Name = "LeftWrist"
  264. leftwrist.Parent = lefthand
  265. mesh_2.MeshType = Enum.MeshType.FileMesh
  266. mesh_2.Scale = Vector3.new(1.6, 1.6, 1.6)
  267. mesh_2.MeshId = "rbxassetid://875229553"
  268. mesh_2.TextureId = "rbxassetid://853067666"
  269. mesh_2.Parent = lefthand
  270. leftlowerarm.CanCollide = false
  271. leftlowerarm.Size = Vector3.new(0.353, 1.149, 0.587)
  272. leftlowerarm.BrickColor = BrickColor.new("Cool yellow")
  273. leftlowerarm.Material = Enum.Material.SmoothPlastic
  274. leftlowerarm.Color = Color3.new(0.992157, 0.917647, 0.552941)
  275. leftlowerarm.Orientation = Vector3.new(0, -166.02, 0)
  276. leftlowerarm.Name = "LeftLowerArm"
  277. leftlowerarm.Parent = moving_anthro_npc
  278. leftlowerarm.CFrame = CFrame.new(-7.396, 3.591, -58.047) * CFrame.Angles(3.142, -0.244, 3.142)
  279. leftelbowrigattachment.Position = Vector3.new(-0.019, 0.498, 0.169)
  280. leftelbowrigattachment.Name = "LeftElbowRigAttachment"
  281. leftelbowrigattachment.CFrame = CFrame.new(-0.019, 0.498, 0.169)
  282. leftelbowrigattachment.Parent = leftlowerarm
  283. originalpivot_8.Value = Vector3.new(-0.015, 0.398, 0.135)
  284. originalpivot_8.Name = "OriginalPivot"
  285. originalpivot_8.Parent = leftelbowrigattachment
  286. leftwristrigattachment_2.Position = Vector3.new(-0.019, -0.508, -0.166)
  287. leftwristrigattachment_2.Name = "LeftWristRigAttachment"
  288. leftwristrigattachment_2.CFrame = CFrame.new(-0.019, -0.508, -0.166)
  289. leftwristrigattachment_2.Parent = leftlowerarm
  290. originalpivot_9.Value = Vector3.new(-0.015, -0.406, -0.133)
  291. originalpivot_9.Name = "OriginalPivot"
  292. originalpivot_9.Parent = leftwristrigattachment_2
  293. originalsize_3.Value = Vector3.new(0.282, 0.919, 0.469)
  294. originalsize_3.Name = "OriginalSize"
  295. originalsize_3.Parent = leftlowerarm
  296. leftelbow.Part1 = leftlowerarm
  297. leftelbow.C0 = CFrame.new(-0.116, -0.543, 0.05)
  298. leftelbow.Part0 = leftupperarm
  299. leftelbow.C1 = CFrame.new(-0.019, 0.498, 0.169)
  300. leftelbow.Name = "LeftElbow"
  301. leftelbow.Parent = leftlowerarm
  302. mesh_3.MeshType = Enum.MeshType.FileMesh
  303. mesh_3.Scale = Vector3.new(1.6, 1.6, 1.6)
  304. mesh_3.MeshId = "rbxassetid://875229562"
  305. mesh_3.TextureId = "rbxassetid://853067666"
  306. mesh_3.Parent = leftlowerarm
  307. leftupperarm.CanCollide = false
  308. leftupperarm.Size = Vector3.new(0.494, 1.347, 0.643)
  309. leftupperarm.BrickColor = BrickColor.new("Cool yellow")
  310. leftupperarm.Material = Enum.Material.SmoothPlastic
  311. leftupperarm.Color = Color3.new(0.992157, 0.917647, 0.552941)
  312. leftupperarm.Orientation = Vector3.new(0, -166.02, 0)
  313. leftupperarm.Name = "LeftUpperArm"
  314. leftupperarm.Parent = moving_anthro_npc
  315. leftupperarm.CFrame = CFrame.new(-7.519, 4.632, -58.139) * CFrame.Angles(3.142, -0.244, 3.142)
  316. leftshoulderrigattachment.Position = Vector3.new(0.165, 0.367, 0.036)
  317. leftshoulderrigattachment.Name = "LeftShoulderRigAttachment"
  318. leftshoulderrigattachment.CFrame = CFrame.new(0.165, 0.367, 0.036)
  319. leftshoulderrigattachment.Parent = leftupperarm
  320. originalpivot_10.Value = Vector3.new(0.132, 0.294, 0.029)
  321. originalpivot_10.Name = "OriginalPivot"
  322. originalpivot_10.Parent = leftshoulderrigattachment
  323. leftelbowrigattachment_2.Position = Vector3.new(-0.116, -0.543, 0.05)
  324. leftelbowrigattachment_2.Name = "LeftElbowRigAttachment"
  325. leftelbowrigattachment_2.CFrame = CFrame.new(-0.116, -0.543, 0.05)
  326. leftelbowrigattachment_2.Parent = leftupperarm
  327. originalpivot_11.Value = Vector3.new(-0.093, -0.434, 0.04)
  328. originalpivot_11.Name = "OriginalPivot"
  329. originalpivot_11.Parent = leftelbowrigattachment_2
  330. leftshoulderattachment.Position = Vector3.new(0.109, 0.698, -0.048)
  331. leftshoulderattachment.Name = "LeftShoulderAttachment"
  332. leftshoulderattachment.CFrame = CFrame.new(0.109, 0.698, -0.048)
  333. leftshoulderattachment.Parent = leftupperarm
  334. originalpivot_12.Value = Vector3.new(0.087, 0.559, -0.039)
  335. originalpivot_12.Name = "OriginalPivot"
  336. originalpivot_12.Parent = leftshoulderattachment
  337. originalsize_4.Value = Vector3.new(0.395, 1.078, 0.514)
  338. originalsize_4.Name = "OriginalSize"
  339. originalsize_4.Parent = leftupperarm
  340. leftshoulder.Part1 = leftupperarm
  341. leftshoulder.C0 = CFrame.new(-0.619, 0.319, 0.129)
  342. leftshoulder.Part0 = uppertorso
  343. leftshoulder.C1 = CFrame.new(0.165, 0.367, 0.036)
  344. leftshoulder.Name = "LeftShoulder"
  345. leftshoulder.Parent = leftupperarm
  346. mesh_4.MeshType = Enum.MeshType.FileMesh
  347. mesh_4.Scale = Vector3.new(1.6, 1.6, 1.6)
  348. mesh_4.MeshId = "rbxassetid://875229564"
  349. mesh_4.TextureId = "rbxassetid://853067666"
  350. mesh_4.Parent = leftupperarm
  351. righthand.CanCollide = false
  352. righthand.Size = Vector3.new(0.369, 0.777, 0.423)
  353. righthand.BrickColor = BrickColor.new("Cool yellow")
  354. righthand.Material = Enum.Material.SmoothPlastic
  355. righthand.Color = Color3.new(0.992157, 0.917647, 0.552941)
  356. righthand.Orientation = Vector3.new(0, -166.02, 0)
  357. righthand.Name = "RightHand"
  358. righthand.Parent = moving_anthro_npc
  359. righthand.CFrame = CFrame.new(-8.973, 2.811, -57.439) * CFrame.Angles(3.142, -0.244, 3.142)
  360. rightwristrigattachment.Position = Vector3.new(0.104, 0.272, 0.043)
  361. rightwristrigattachment.Name = "RightWristRigAttachment"
  362. rightwristrigattachment.CFrame = CFrame.new(0.104, 0.272, 0.043)
  363. rightwristrigattachment.Parent = righthand
  364. originalpivot_13.Value = Vector3.new(0.083, 0.218, 0.034)
  365. originalpivot_13.Name = "OriginalPivot"
  366. originalpivot_13.Parent = rightwristrigattachment
  367. rightgripattachment.Rotation = Vector3.new(-90, 0, 0)
  368. rightgripattachment.CFrame = CFrame.new(-0.033, 0.006, 0.279) * CFrame.Angles(-1.571, 0, 0)
  369. rightgripattachment.Orientation = Vector3.new(-90, 0, 0)
  370. rightgripattachment.Name = "RightGripAttachment"
  371. rightgripattachment.SecondaryAxis = Vector3.new(0, 0, -1)
  372. rightgripattachment.Position = Vector3.new(-0.033, 0.006, 0.279)
  373. rightgripattachment.Parent = righthand
  374. originalpivot_14.Value = Vector3.new(-0.027, 0.005, 0.224)
  375. originalpivot_14.Name = "OriginalPivot"
  376. originalpivot_14.Parent = rightgripattachment
  377. originalsize_5.Value = Vector3.new(0.295, 0.621, 0.339)
  378. originalsize_5.Name = "OriginalSize"
  379. originalsize_5.Parent = righthand
  380. rightwrist.Part1 = righthand
  381. rightwrist.C0 = CFrame.new(0.019, -0.508, -0.166)
  382. rightwrist.Part0 = rightlowerarm
  383. rightwrist.C1 = CFrame.new(0.104, 0.272, 0.043)
  384. rightwrist.Name = "RightWrist"
  385. rightwrist.Parent = righthand
  386. mesh_5.MeshType = Enum.MeshType.FileMesh
  387. mesh_5.Scale = Vector3.new(1.6, 1.6, 1.6)
  388. mesh_5.MeshId = "rbxassetid://875229570"
  389. mesh_5.TextureId = "rbxassetid://853067666"
  390. mesh_5.Parent = righthand
  391. rightlowerarm.CanCollide = false
  392. rightlowerarm.Size = Vector3.new(0.353, 1.149, 0.587)
  393. rightlowerarm.BrickColor = BrickColor.new("Cool yellow")
  394. rightlowerarm.Material = Enum.Material.SmoothPlastic
  395. rightlowerarm.Color = Color3.new(0.992157, 0.917647, 0.552941)
  396. rightlowerarm.Orientation = Vector3.new(0, -166.02, 0)
  397. rightlowerarm.Name = "RightLowerArm"
  398. rightlowerarm.Parent = moving_anthro_npc
  399. rightlowerarm.CFrame = CFrame.new(-9.106, 3.591, -57.621) * CFrame.Angles(3.142, -0.244, 3.142)
  400. rightelbowrigattachment.Position = Vector3.new(0.019, 0.498, 0.169)
  401. rightelbowrigattachment.Name = "RightElbowRigAttachment"
  402. rightelbowrigattachment.CFrame = CFrame.new(0.019, 0.498, 0.169)
  403. rightelbowrigattachment.Parent = rightlowerarm
  404. originalpivot_15.Value = Vector3.new(0.015, 0.398, 0.135)
  405. originalpivot_15.Name = "OriginalPivot"
  406. originalpivot_15.Parent = rightelbowrigattachment
  407. rightwristrigattachment_2.Position = Vector3.new(0.019, -0.508, -0.166)
  408. rightwristrigattachment_2.Name = "RightWristRigAttachment"
  409. rightwristrigattachment_2.CFrame = CFrame.new(0.019, -0.508, -0.166)
  410. rightwristrigattachment_2.Parent = rightlowerarm
  411. originalpivot_16.Value = Vector3.new(0.015, -0.406, -0.133)
  412. originalpivot_16.Name = "OriginalPivot"
  413. originalpivot_16.Parent = rightwristrigattachment_2
  414. originalsize_6.Value = Vector3.new(0.282, 0.919, 0.469)
  415. originalsize_6.Name = "OriginalSize"
  416. originalsize_6.Parent = rightlowerarm
  417. rightelbow.Part1 = rightlowerarm
  418. rightelbow.C0 = CFrame.new(0.116, -0.543, 0.05)
  419. rightelbow.Part0 = rightupperarm
  420. rightelbow.C1 = CFrame.new(0.019, 0.498, 0.169)
  421. rightelbow.Name = "RightElbow"
  422. rightelbow.Parent = rightlowerarm
  423. mesh_6.MeshType = Enum.MeshType.FileMesh
  424. mesh_6.Scale = Vector3.new(1.6, 1.6, 1.6)
  425. mesh_6.MeshId = "rbxassetid://875229578"
  426. mesh_6.TextureId = "rbxassetid://853067666"
  427. mesh_6.Parent = rightlowerarm
  428. rightupperarm.CanCollide = false
  429. rightupperarm.Size = Vector3.new(0.494, 1.347, 0.643)
  430. rightupperarm.BrickColor = BrickColor.new("Cool yellow")
  431. rightupperarm.Material = Enum.Material.SmoothPlastic
  432. rightupperarm.Color = Color3.new(0.992157, 0.917647, 0.552941)
  433. rightupperarm.Orientation = Vector3.new(0, -166.02, 0)
  434. rightupperarm.Name = "RightUpperArm"
  435. rightupperarm.Parent = moving_anthro_npc
  436. rightupperarm.CFrame = CFrame.new(-9.04, 4.632, -57.76) * CFrame.Angles(3.142, -0.244, 3.142)
  437. rightshoulderrigattachment.Position = Vector3.new(-0.165, 0.367, 0.036)
  438. rightshoulderrigattachment.Name = "RightShoulderRigAttachment"
  439. rightshoulderrigattachment.CFrame = CFrame.new(-0.165, 0.367, 0.036)
  440. rightshoulderrigattachment.Parent = rightupperarm
  441. originalpivot_17.Value = Vector3.new(-0.132, 0.294, 0.029)
  442. originalpivot_17.Name = "OriginalPivot"
  443. originalpivot_17.Parent = rightshoulderrigattachment
  444. rightelbowrigattachment_2.Position = Vector3.new(0.116, -0.543, 0.05)
  445. rightelbowrigattachment_2.Name = "RightElbowRigAttachment"
  446. rightelbowrigattachment_2.CFrame = CFrame.new(0.116, -0.543, 0.05)
  447. rightelbowrigattachment_2.Parent = rightupperarm
  448. originalpivot_18.Value = Vector3.new(0.093, -0.434, 0.04)
  449. originalpivot_18.Name = "OriginalPivot"
  450. originalpivot_18.Parent = rightelbowrigattachment_2
  451. rightshoulderattachment.Position = Vector3.new(-0.109, 0.669, -0.048)
  452. rightshoulderattachment.Name = "RightShoulderAttachment"
  453. rightshoulderattachment.CFrame = CFrame.new(-0.109, 0.669, -0.048)
  454. rightshoulderattachment.Parent = rightupperarm
  455. originalpivot_19.Value = Vector3.new(-0.087, 0.535, -0.039)
  456. originalpivot_19.Name = "OriginalPivot"
  457. originalpivot_19.Parent = rightshoulderattachment
  458. originalsize_7.Value = Vector3.new(0.395, 1.078, 0.514)
  459. originalsize_7.Name = "OriginalSize"
  460. originalsize_7.Parent = rightupperarm
  461. rightshoulder.Part1 = rightupperarm
  462. rightshoulder.C0 = CFrame.new(0.619, 0.319, 0.129)
  463. rightshoulder.Part0 = uppertorso
  464. rightshoulder.C1 = CFrame.new(-0.165, 0.367, 0.036)
  465. rightshoulder.Name = "RightShoulder"
  466. rightshoulder.Parent = rightupperarm
  467. mesh_7.MeshType = Enum.MeshType.FileMesh
  468. mesh_7.Scale = Vector3.new(1.6, 1.6, 1.6)
  469. mesh_7.MeshId = "rbxassetid://875229582"
  470. mesh_7.TextureId = "rbxassetid://853067666"
  471. mesh_7.Parent = rightupperarm
  472. uppertorso.Size = Vector3.new(1.488, 2.231, 1.006)
  473. uppertorso.Color = Color3.new(0.156863, 0.498039, 0.278431)
  474. uppertorso.Name = "UpperTorso"
  475. uppertorso.Material = Enum.Material.SmoothPlastic
  476. uppertorso.BrickColor = BrickColor.new("Dark green")
  477. uppertorso.Orientation = Vector3.new(0, -166.02, 0)
  478. uppertorso.Parent = moving_anthro_npc
  479. uppertorso.CFrame = CFrame.new(-8.257, 4.68, -57.859) * CFrame.Angles(3.142, -0.244, 3.142)
  480. waistrigattachment.Position = Vector3.new(0, -0.843, 0.045)
  481. waistrigattachment.Name = "WaistRigAttachment"
  482. waistrigattachment.CFrame = CFrame.new(0, -0.843, 0.045)
  483. waistrigattachment.Parent = uppertorso
  484. originalpivot_20.Value = Vector3.new(0, -0.674, 0.036)
  485. originalpivot_20.Name = "OriginalPivot"
  486. originalpivot_20.Parent = waistrigattachment
  487. neckrigattachment_2.Position = Vector3.new(0, 0.981, -0.046)
  488. neckrigattachment_2.Name = "NeckRigAttachment"
  489. neckrigattachment_2.CFrame = CFrame.new(0, 0.981, -0.046)
  490. neckrigattachment_2.Parent = uppertorso
  491. originalpivot_21.Value = Vector3.new(0, 0.785, -0.037)
  492. originalpivot_21.Name = "OriginalPivot"
  493. originalpivot_21.Parent = neckrigattachment_2
  494. leftshoulderrigattachment_2.Position = Vector3.new(-0.619, 0.319, 0.129)
  495. leftshoulderrigattachment_2.Name = "LeftShoulderRigAttachment"
  496. leftshoulderrigattachment_2.CFrame = CFrame.new(-0.619, 0.319, 0.129)
  497. leftshoulderrigattachment_2.Parent = uppertorso
  498. originalpivot_22.Value = Vector3.new(-0.495, 0.255, 0.103)
  499. originalpivot_22.Name = "OriginalPivot"
  500. originalpivot_22.Parent = leftshoulderrigattachment_2
  501. rightshoulderrigattachment_2.Position = Vector3.new(0.619, 0.319, 0.129)
  502. rightshoulderrigattachment_2.Name = "RightShoulderRigAttachment"
  503. rightshoulderrigattachment_2.CFrame = CFrame.new(0.619, 0.319, 0.129)
  504. rightshoulderrigattachment_2.Parent = uppertorso
  505. originalpivot_23.Value = Vector3.new(0.495, 0.255, 0.103)
  506. originalpivot_23.Name = "OriginalPivot"
  507. originalpivot_23.Parent = rightshoulderrigattachment_2
  508. bodyfrontattachment.Position = Vector3.new(0, -0.425, -0.48)
  509. bodyfrontattachment.Name = "BodyFrontAttachment"
  510. bodyfrontattachment.CFrame = CFrame.new(0, -0.425, -0.48)
  511. bodyfrontattachment.Parent = uppertorso
  512. originalpivot_24.Value = Vector3.new(0, -0.34, -0.384)
  513. originalpivot_24.Name = "OriginalPivot"
  514. originalpivot_24.Parent = bodyfrontattachment
  515. bodybackattachment.Position = Vector3.new(0, -0.425, 0.32)
  516. bodybackattachment.Name = "BodyBackAttachment"
  517. bodybackattachment.CFrame = CFrame.new(0, -0.425, 0.32)
  518. bodybackattachment.Parent = uppertorso
  519. originalpivot_25.Value = Vector3.new(0, -0.34, 0.256)
  520. originalpivot_25.Name = "OriginalPivot"
  521. originalpivot_25.Parent = bodybackattachment
  522. neckattachment.Position = Vector3.new(0, 0.825, 0.045)
  523. neckattachment.Name = "NeckAttachment"
  524. neckattachment.CFrame = CFrame.new(0, 0.825, 0.045)
  525. neckattachment.Parent = uppertorso
  526. originalpivot_26.Value = Vector3.new(0, 0.66, 0.036)
  527. originalpivot_26.Name = "OriginalPivot"
  528. originalpivot_26.Parent = neckattachment
  529. rightcollarattachment.Position = Vector3.new(0.438, 0.688, 0.045)
  530. rightcollarattachment.Name = "RightCollarAttachment"
  531. rightcollarattachment.CFrame = CFrame.new(0.438, 0.688, 0.045)
  532. rightcollarattachment.Parent = uppertorso
  533. originalpivot_27.Value = Vector3.new(0.35, 0.55, 0.036)
  534. originalpivot_27.Name = "OriginalPivot"
  535. originalpivot_27.Parent = rightcollarattachment
  536. leftcollarattachment.Position = Vector3.new(-0.437, 0.688, 0.045)
  537. leftcollarattachment.Name = "LeftCollarAttachment"
  538. leftcollarattachment.CFrame = CFrame.new(-0.437, 0.688, 0.045)
  539. leftcollarattachment.Parent = uppertorso
  540. originalpivot_28.Value = Vector3.new(-0.35, 0.55, 0.036)
  541. originalpivot_28.Name = "OriginalPivot"
  542. originalpivot_28.Parent = leftcollarattachment
  543. originalsize_8.Value = Vector3.new(1.19, 1.785, 0.805)
  544. originalsize_8.Name = "OriginalSize"
  545. originalsize_8.Parent = uppertorso
  546. waist.Part1 = uppertorso
  547. waist.C0 = CFrame.new(0, 0.45, 0.091)
  548. waist.Part0 = lowertorso
  549. waist.C1 = CFrame.new(0, -0.843, 0.045)
  550. waist.Name = "Waist"
  551. waist.Parent = uppertorso
  552. mesh_8.Offset = Vector3.new(0, 0.09, 0)
  553. mesh_8.MeshId = "rbxassetid://875229590"
  554. mesh_8.Scale = Vector3.new(1.4, 1.4, 1.4)
  555. mesh_8.TextureId = "rbxassetid://853067666"
  556. mesh_8.MeshType = Enum.MeshType.FileMesh
  557. mesh_8.Parent = uppertorso
  558. leftfoot.CanCollide = false
  559. leftfoot.Size = Vector3.new(0.433, 0.504, 1.064)
  560. leftfoot.BrickColor = BrickColor.new("Bright blue")
  561. leftfoot.Material = Enum.Material.SmoothPlastic
  562. leftfoot.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  563. leftfoot.Orientation = Vector3.new(0, -166.02, 0)
  564. leftfoot.Name = "LeftFoot"
  565. leftfoot.Parent = moving_anthro_npc
  566. leftfoot.CFrame = CFrame.new(-7.941, 0.253, -57.772) * CFrame.Angles(3.142, -0.244, 3.142)
  567. leftanklerigattachment.Position = Vector3.new(-0.033, 0.003, 0.225)
  568. leftanklerigattachment.Name = "LeftAnkleRigAttachment"
  569. leftanklerigattachment.CFrame = CFrame.new(-0.033, 0.003, 0.225)
  570. leftanklerigattachment.Parent = leftfoot
  571. originalpivot_29.Value = Vector3.new(-0.027, 0.002, 0.18)
  572. originalpivot_29.Name = "OriginalPivot"
  573. originalpivot_29.Parent = leftanklerigattachment
  574. originalsize_9.Value = Vector3.new(0.346, 0.403, 0.851)
  575. originalsize_9.Name = "OriginalSize"
  576. originalsize_9.Parent = leftfoot
  577. leftankle.Part1 = leftfoot
  578. leftankle.C0 = CFrame.new(-0.021, -0.907, -0.018)
  579. leftankle.Part0 = leftlowerleg
  580. leftankle.C1 = CFrame.new(-0.033, 0.003, 0.225)
  581. leftankle.Name = "LeftAnkle"
  582. leftankle.Parent = leftfoot
  583. mesh_9.MeshType = Enum.MeshType.FileMesh
  584. mesh_9.Scale = Vector3.new(1.6, 1.6, 1.6)
  585. mesh_9.MeshId = "rbxassetid://875229596"
  586. mesh_9.TextureId = "rbxassetid://853067666"
  587. mesh_9.Parent = leftfoot
  588. leftlowerleg.CanCollide = false
  589. leftlowerleg.Size = Vector3.new(0.567, 1.823, 0.723)
  590. leftlowerleg.BrickColor = BrickColor.new("Bright blue")
  591. leftlowerleg.Material = Enum.Material.SmoothPlastic
  592. leftlowerleg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  593. leftlowerleg.Orientation = Vector3.new(0, -166.02, 0)
  594. leftlowerleg.Name = "LeftLowerLeg"
  595. leftlowerleg.Parent = moving_anthro_npc
  596. leftlowerleg.CFrame = CFrame.new(-7.988, 1.163, -58.011) * CFrame.Angles(3.142, -0.244, 3.142)
  597. leftkneerigattachment.Position = Vector3.new(-0.021, 0.825, -0.037)
  598. leftkneerigattachment.Name = "LeftKneeRigAttachment"
  599. leftkneerigattachment.CFrame = CFrame.new(-0.021, 0.825, -0.037)
  600. leftkneerigattachment.Parent = leftlowerleg
  601. originalpivot_30.Value = Vector3.new(-0.017, 0.66, -0.029)
  602. originalpivot_30.Name = "OriginalPivot"
  603. originalpivot_30.Parent = leftkneerigattachment
  604. leftanklerigattachment_2.Position = Vector3.new(-0.021, -0.907, -0.018)
  605. leftanklerigattachment_2.Name = "LeftAnkleRigAttachment"
  606. leftanklerigattachment_2.CFrame = CFrame.new(-0.021, -0.907, -0.018)
  607. leftanklerigattachment_2.Parent = leftlowerleg
  608. originalpivot_31.Value = Vector3.new(-0.017, -0.726, -0.014)
  609. originalpivot_31.Name = "OriginalPivot"
  610. originalpivot_31.Parent = leftanklerigattachment_2
  611. originalsize_10.Value = Vector3.new(0.454, 1.459, 0.578)
  612. originalsize_10.Name = "OriginalSize"
  613. originalsize_10.Parent = leftlowerleg
  614. leftknee.Part1 = leftlowerleg
  615. leftknee.C0 = CFrame.new(0.008, -0.594, 0.093)
  616. leftknee.Part0 = leftupperleg
  617. leftknee.C1 = CFrame.new(-0.021, 0.825, -0.037)
  618. leftknee.Name = "LeftKnee"
  619. leftknee.Parent = leftlowerleg
  620. mesh_10.Offset = Vector3.new(0, 0.2, 0)
  621. mesh_10.MeshId = "rbxassetid://875229599"
  622. mesh_10.Scale = Vector3.new(1.6, 1.6, 1.6)
  623. mesh_10.TextureId = "rbxassetid://853067666"
  624. mesh_10.MeshType = Enum.MeshType.FileMesh
  625. mesh_10.Parent = leftlowerleg
  626. leftupperleg.CanCollide = false
  627. leftupperleg.Size = Vector3.new(0.617, 1.891, 0.802)
  628. leftupperleg.BrickColor = BrickColor.new("Bright blue")
  629. leftupperleg.Material = Enum.Material.SmoothPlastic
  630. leftupperleg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  631. leftupperleg.Orientation = Vector3.new(0, -166.02, 0)
  632. leftupperleg.Name = "LeftUpperLeg"
  633. leftupperleg.Parent = moving_anthro_npc
  634. leftupperleg.CFrame = CFrame.new(-7.928, 2.582, -57.892) * CFrame.Angles(3.142, -0.244, 3.142)
  635. lefthiprigattachment.Position = Vector3.new(0.008, 0.846, -0.019)
  636. lefthiprigattachment.Name = "LeftHipRigAttachment"
  637. lefthiprigattachment.CFrame = CFrame.new(0.008, 0.846, -0.019)
  638. lefthiprigattachment.Parent = leftupperleg
  639. originalpivot_32.Value = Vector3.new(0.006, 0.677, -0.015)
  640. originalpivot_32.Name = "OriginalPivot"
  641. originalpivot_32.Parent = lefthiprigattachment
  642. leftkneerigattachment_2.Position = Vector3.new(0.008, -0.594, 0.093)
  643. leftkneerigattachment_2.Name = "LeftKneeRigAttachment"
  644. leftkneerigattachment_2.CFrame = CFrame.new(0.008, -0.594, 0.093)
  645. leftkneerigattachment_2.Parent = leftupperleg
  646. originalpivot_33.Value = Vector3.new(0.006, -0.476, 0.075)
  647. originalpivot_33.Name = "OriginalPivot"
  648. originalpivot_33.Parent = leftkneerigattachment_2
  649. originalsize_11.Value = Vector3.new(0.494, 1.513, 0.642)
  650. originalsize_11.Name = "OriginalSize"
  651. originalsize_11.Parent = leftupperleg
  652. lefthip.Part1 = leftupperleg
  653. lefthip.C0 = CFrame.new(-0.319, 0.041, -0.021)
  654. lefthip.Part0 = lowertorso
  655. lefthip.C1 = CFrame.new(0.008, 0.846, -0.019)
  656. lefthip.Name = "LeftHip"
  657. lefthip.Parent = leftupperleg
  658. mesh_11.Offset = Vector3.new(0, 0.1, 0)
  659. mesh_11.MeshId = "rbxassetid://875229605"
  660. mesh_11.Scale = Vector3.new(1.5, 1, 1.5)
  661. mesh_11.TextureId = "rbxassetid://853067666"
  662. mesh_11.MeshType = Enum.MeshType.FileMesh
  663. mesh_11.Parent = leftupperleg
  664. rightfoot.CanCollide = false
  665. rightfoot.Size = Vector3.new(0.433, 0.504, 1.064)
  666. rightfoot.BrickColor = BrickColor.new("Bright blue")
  667. rightfoot.Material = Enum.Material.SmoothPlastic
  668. rightfoot.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  669. rightfoot.Orientation = Vector3.new(0, -166.02, 0)
  670. rightfoot.Name = "RightFoot"
  671. rightfoot.Parent = moving_anthro_npc
  672. rightfoot.CFrame = CFrame.new(-8.496, 0.252, -57.633) * CFrame.Angles(3.142, -0.244, 3.142)
  673. rightanklerigattachment.Position = Vector3.new(0.034, 0.002, 0.225)
  674. rightanklerigattachment.Name = "RightAnkleRigAttachment"
  675. rightanklerigattachment.CFrame = CFrame.new(0.034, 0.002, 0.225)
  676. rightanklerigattachment.Parent = rightfoot
  677. originalpivot_34.Value = Vector3.new(0.027, 0.002, 0.18)
  678. originalpivot_34.Name = "OriginalPivot"
  679. originalpivot_34.Parent = rightanklerigattachment
  680. originalsize_12.Value = Vector3.new(0.346, 0.403, 0.851)
  681. originalsize_12.Name = "OriginalSize"
  682. originalsize_12.Parent = rightfoot
  683. rightankle.Part1 = rightfoot
  684. rightankle.C0 = CFrame.new(0.021, -0.908, -0.018)
  685. rightankle.Part0 = rightlowerleg
  686. rightankle.C1 = CFrame.new(0.034, 0.002, 0.225)
  687. rightankle.Name = "RightAnkle"
  688. rightankle.Parent = rightfoot
  689. mesh_12.MeshType = Enum.MeshType.FileMesh
  690. mesh_12.Scale = Vector3.new(1.6, 1.6, 1.6)
  691. mesh_12.MeshId = "rbxassetid://875229610"
  692. mesh_12.TextureId = "rbxassetid://853067666"
  693. mesh_12.Parent = rightfoot
  694. rightlowerleg.CanCollide = false
  695. rightlowerleg.Size = Vector3.new(0.567, 1.823, 0.723)
  696. rightlowerleg.BrickColor = BrickColor.new("Bright blue")
  697. rightlowerleg.Material = Enum.Material.SmoothPlastic
  698. rightlowerleg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  699. rightlowerleg.Orientation = Vector3.new(0, -166.02, 0)
  700. rightlowerleg.Name = "RightLowerLeg"
  701. rightlowerleg.Parent = moving_anthro_npc
  702. rightlowerleg.CFrame = CFrame.new(-8.567, 1.162, -57.866) * CFrame.Angles(3.142, -0.244, 3.142)
  703. rightkneerigattachment.Position = Vector3.new(0.021, 0.825, -0.036)
  704. rightkneerigattachment.Name = "RightKneeRigAttachment"
  705. rightkneerigattachment.CFrame = CFrame.new(0.021, 0.825, -0.036)
  706. rightkneerigattachment.Parent = rightlowerleg
  707. originalpivot_35.Value = Vector3.new(0.017, 0.66, -0.029)
  708. originalpivot_35.Name = "OriginalPivot"
  709. originalpivot_35.Parent = rightkneerigattachment
  710. rightanklerigattachment_2.Position = Vector3.new(0.021, -0.908, -0.018)
  711. rightanklerigattachment_2.Name = "RightAnkleRigAttachment"
  712. rightanklerigattachment_2.CFrame = CFrame.new(0.021, -0.908, -0.018)
  713. rightanklerigattachment_2.Parent = rightlowerleg
  714. originalpivot_36.Value = Vector3.new(0.017, -0.726, -0.014)
  715. originalpivot_36.Name = "OriginalPivot"
  716. originalpivot_36.Parent = rightanklerigattachment_2
  717. originalsize_13.Value = Vector3.new(0.454, 1.459, 0.578)
  718. originalsize_13.Name = "OriginalSize"
  719. originalsize_13.Parent = rightlowerleg
  720. rightknee.Part1 = rightlowerleg
  721. rightknee.C0 = CFrame.new(-0.007, -0.595, 0.093)
  722. rightknee.Part0 = rightupperleg
  723. rightknee.C1 = CFrame.new(0.021, 0.825, -0.036)
  724. rightknee.Name = "RightKnee"
  725. rightknee.Parent = rightlowerleg
  726. mesh_13.Offset = Vector3.new(0, 0.2, 0)
  727. mesh_13.MeshId = "rbxassetid://875229614"
  728. mesh_13.Scale = Vector3.new(1.6, 1.6, 1.6)
  729. mesh_13.TextureId = "rbxassetid://853067666"
  730. mesh_13.MeshType = Enum.MeshType.FileMesh
  731. mesh_13.Parent = rightlowerleg
  732. rightupperleg.CanCollide = false
  733. rightupperleg.Size = Vector3.new(0.617, 1.891, 0.802)
  734. rightupperleg.BrickColor = BrickColor.new("Bright blue")
  735. rightupperleg.Material = Enum.Material.SmoothPlastic
  736. rightupperleg.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  737. rightupperleg.Orientation = Vector3.new(0, -166.02, 0)
  738. rightupperleg.Name = "RightUpperLeg"
  739. rightupperleg.Parent = moving_anthro_npc
  740. rightupperleg.CFrame = CFrame.new(-8.563, 2.582, -57.734) * CFrame.Angles(3.142, -0.244, 3.142)
  741. righthiprigattachment.Position = Vector3.new(-0.007, 0.846, -0.019)
  742. righthiprigattachment.Name = "RightHipRigAttachment"
  743. righthiprigattachment.CFrame = CFrame.new(-0.007, 0.846, -0.019)
  744. righthiprigattachment.Parent = rightupperleg
  745. originalpivot_37.Value = Vector3.new(-0.006, 0.677, -0.015)
  746. originalpivot_37.Name = "OriginalPivot"
  747. originalpivot_37.Parent = righthiprigattachment
  748. rightkneerigattachment_2.Position = Vector3.new(-0.007, -0.595, 0.093)
  749. rightkneerigattachment_2.Name = "RightKneeRigAttachment"
  750. rightkneerigattachment_2.CFrame = CFrame.new(-0.007, -0.595, 0.093)
  751. rightkneerigattachment_2.Parent = rightupperleg
  752. originalpivot_38.Value = Vector3.new(-0.006, -0.476, 0.075)
  753. originalpivot_38.Name = "OriginalPivot"
  754. originalpivot_38.Parent = rightkneerigattachment_2
  755. originalsize_14.Value = Vector3.new(0.494, 1.513, 0.642)
  756. originalsize_14.Name = "OriginalSize"
  757. originalsize_14.Parent = rightupperleg
  758. righthip.Part1 = rightupperleg
  759. righthip.C0 = CFrame.new(0.32, 0.041, -0.021)
  760. righthip.Part0 = lowertorso
  761. righthip.C1 = CFrame.new(-0.007, 0.846, -0.019)
  762. righthip.Name = "RightHip"
  763. righthip.Parent = rightupperleg
  764. mesh_14.Offset = Vector3.new(0, 0.1, 0)
  765. mesh_14.MeshId = "rbxassetid://875229618"
  766. mesh_14.Scale = Vector3.new(1.5, 1, 1.5)
  767. mesh_14.TextureId = "rbxassetid://853067666"
  768. mesh_14.MeshType = Enum.MeshType.FileMesh
  769. mesh_14.Parent = rightupperleg
  770. lowertorso.Size = Vector3.new(1.198, 0.868, 0.902)
  771. lowertorso.Color = Color3.new(0.156863, 0.498039, 0.278431)
  772. lowertorso.Name = "LowerTorso"
  773. lowertorso.Material = Enum.Material.SmoothPlastic
  774. lowertorso.BrickColor = BrickColor.new("Dark green")
  775. lowertorso.Orientation = Vector3.new(0, -166.02, 0)
  776. lowertorso.Parent = moving_anthro_npc
  777. lowertorso.CFrame = CFrame.new(-8.246, 3.387, -57.815) * CFrame.Angles(3.142, -0.244, 3.142)
  778. rootrigattachment_2.Position = Vector3.new(0, 0.056, 0.091)
  779. rootrigattachment_2.Name = "RootRigAttachment"
  780. rootrigattachment_2.CFrame = CFrame.new(0, 0.056, 0.091)
  781. rootrigattachment_2.Parent = lowertorso
  782. originalpivot_39.Value = Vector3.new(0, 0.045, 0.073)
  783. originalpivot_39.Name = "OriginalPivot"
  784. originalpivot_39.Parent = rootrigattachment_2
  785. waistrigattachment_2.Position = Vector3.new(0, 0.45, 0.091)
  786. waistrigattachment_2.Name = "WaistRigAttachment"
  787. waistrigattachment_2.CFrame = CFrame.new(0, 0.45, 0.091)
  788. waistrigattachment_2.Parent = lowertorso
  789. originalpivot_40.Value = Vector3.new(0, 0.36, 0.073)
  790. originalpivot_40.Name = "OriginalPivot"
  791. originalpivot_40.Parent = waistrigattachment_2
  792. lefthiprigattachment_2.Position = Vector3.new(-0.319, 0.041, -0.021)
  793. lefthiprigattachment_2.Name = "LeftHipRigAttachment"
  794. lefthiprigattachment_2.CFrame = CFrame.new(-0.319, 0.041, -0.021)
  795. lefthiprigattachment_2.Parent = lowertorso
  796. originalpivot_41.Value = Vector3.new(-0.256, 0.033, -0.017)
  797. originalpivot_41.Name = "OriginalPivot"
  798. originalpivot_41.Parent = lefthiprigattachment_2
  799. righthiprigattachment_2.Position = Vector3.new(0.32, 0.041, -0.021)
  800. righthiprigattachment_2.Name = "RightHipRigAttachment"
  801. righthiprigattachment_2.CFrame = CFrame.new(0.32, 0.041, -0.021)
  802. righthiprigattachment_2.Parent = lowertorso
  803. originalpivot_42.Value = Vector3.new(0.256, 0.033, -0.017)
  804. originalpivot_42.Name = "OriginalPivot"
  805. originalpivot_42.Parent = righthiprigattachment_2
  806. waistcenterattachment.Position = Vector3.new(0, -0.102, 0.091)
  807. waistcenterattachment.Name = "WaistCenterAttachment"
  808. waistcenterattachment.CFrame = CFrame.new(0, -0.102, 0.091)
  809. waistcenterattachment.Parent = lowertorso
  810. originalpivot_43.Value = Vector3.new(0, -0.081, 0.073)
  811. originalpivot_43.Name = "OriginalPivot"
  812. originalpivot_43.Parent = waistcenterattachment
  813. waistfrontattachment.Position = Vector3.new(0, -0.102, -0.221)
  814. waistfrontattachment.Name = "WaistFrontAttachment"
  815. waistfrontattachment.CFrame = CFrame.new(0, -0.102, -0.221)
  816. waistfrontattachment.Parent = lowertorso
  817. originalpivot_44.Value = Vector3.new(0, -0.081, -0.177)
  818. originalpivot_44.Name = "OriginalPivot"
  819. originalpivot_44.Parent = waistfrontattachment
  820. waistbackattachment.Position = Vector3.new(0, -0.102, 0.448)
  821. waistbackattachment.Name = "WaistBackAttachment"
  822. waistbackattachment.CFrame = CFrame.new(0, -0.102, 0.448)
  823. waistbackattachment.Parent = lowertorso
  824. originalpivot_45.Value = Vector3.new(0, -0.081, 0.358)
  825. originalpivot_45.Name = "OriginalPivot"
  826. originalpivot_45.Parent = waistbackattachment
  827. originalsize_15.Value = Vector3.new(0.958, 0.694, 0.722)
  828. originalsize_15.Name = "OriginalSize"
  829. originalsize_15.Parent = lowertorso
  830. root.Part1 = lowertorso
  831. root.Part0 = humanoidrootpart
  832. root.C1 = CFrame.new(0, 0.056, 0.091)
  833. root.Name = "Root"
  834. root.Parent = lowertorso
  835. mesh_15.MeshType = Enum.MeshType.FileMesh
  836. mesh_15.Scale = Vector3.new(1.4, 1.4, 1.4)
  837. mesh_15.MeshId = "rbxassetid://875229629"
  838. mesh_15.TextureId = "rbxassetid://853067666"
  839. mesh_15.Parent = lowertorso
  840. moving_anthro_npc.PrimaryPart = humanoidrootpart
  841. moving_anthro_npc.Name = owner.Name
  842. local plr = owner
  843. repeat wait(.2) until plr.Character
  844. plr.Character = moving_anthro_npc
  845. --[[
  846. workspace.CurrentCamera.CameraSubject = humanoid
  847. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  848. ]]--
  849. game:GetService("RunService").Stepped:Connect(function()
  850.  
  851. humanoid:RemoveAccessories()
  852. humanoid.MaxHealth = 1e4556464
  853. humanoid.Health = 1e4556464
  854.  
  855. end)
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873. local Figure = plr.Character
  874. local pose = "Standing"
  875.  
  876. local currentAnim = ""
  877. local currentAnimInstance = nil
  878. local currentAnimTrack = nil
  879. local currentAnimKeyframeHandler = nil
  880. local currentAnimSpeed = 1.0
  881. local animTable = {}
  882. local animNames = {
  883. idle = {
  884. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  885. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  886. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  887. },
  888. walk = {
  889. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  890. },
  891. run = {
  892. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  893. },
  894. swim = {
  895. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  896. },
  897. swimidle = {
  898. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  899. },
  900. jump = {
  901. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  902. },
  903. fall = {
  904. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  905. },
  906. climb = {
  907. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  908. },
  909. sit = {
  910. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  911. },
  912. toolnone = {
  913. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  914. },
  915. toolslash = {
  916. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  917. -- { id = "slash.xml", weight = 10 }
  918. },
  919. toollunge = {
  920. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  921. },
  922. wave = {
  923. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  924. },
  925. point = {
  926. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  927. },
  928. dance = {
  929. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  930. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  931. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  932. },
  933. dance2 = {
  934. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  935. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  936. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  937. },
  938. dance3 = {
  939. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  940. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  941. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  942. },
  943. laugh = {
  944. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  945. },
  946. cheer = {
  947. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  948. },
  949. }
  950.  
  951. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  952. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  953.  
  954. math.randomseed(tick())
  955.  
  956. function configureAnimationSet(name, fileList)
  957. if (animTable[name] ~= nil) then
  958. for _, connection in pairs(animTable[name].connections) do
  959. connection:disconnect()
  960. end
  961. end
  962. animTable[name] = {}
  963. animTable[name].count = 0
  964. animTable[name].totalWeight = 0
  965. animTable[name].connections = {}
  966.  
  967. -- check for config values
  968. local config = script:FindFirstChild(name)
  969. if (config ~= nil) then
  970. -- print("Loading anims " .. name)
  971. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  972. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  973. local idx = 1
  974. for _, childPart in pairs(config:GetChildren()) do
  975. if (childPart:IsA("Animation")) then
  976. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  977. animTable[name][idx] = {}
  978. animTable[name][idx].anim = childPart
  979. local weightObject = childPart:FindFirstChild("Weight")
  980. if (weightObject == nil) then
  981. animTable[name][idx].weight = 1
  982. else
  983. animTable[name][idx].weight = weightObject.Value
  984. end
  985. animTable[name].count = animTable[name].count + 1
  986. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  987. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  988. idx = idx + 1
  989. end
  990. end
  991. end
  992.  
  993. -- fallback to defaults
  994. if (animTable[name].count <= 0) then
  995. for idx, anim in pairs(fileList) do
  996. animTable[name][idx] = {}
  997. animTable[name][idx].anim = Instance.new("Animation")
  998. animTable[name][idx].anim.Name = name
  999. animTable[name][idx].anim.AnimationId = anim.id
  1000. animTable[name][idx].weight = anim.weight
  1001. animTable[name].count = animTable[name].count + 1
  1002. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1003. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1004. end
  1005. end
  1006. end
  1007.  
  1008. -- Setup animation objects
  1009. function scriptChildModified(child)
  1010. local fileList = animNames[child.Name]
  1011. if (fileList ~= nil) then
  1012. configureAnimationSet(child.Name, fileList)
  1013. end
  1014. end
  1015.  
  1016. script.ChildAdded:connect(scriptChildModified)
  1017. script.ChildRemoved:connect(scriptChildModified)
  1018.  
  1019.  
  1020. for name, fileList in pairs(animNames) do
  1021. configureAnimationSet(name, fileList)
  1022. end
  1023.  
  1024. -- ANIMATION
  1025.  
  1026. -- declarations
  1027. local toolAnim = "None"
  1028. local toolAnimTime = 0
  1029.  
  1030. local jumpAnimTime = 0
  1031. local jumpAnimDuration = 0.31
  1032.  
  1033. local toolTransitionTime = 0.1
  1034. local fallTransitionTime = 0.2
  1035.  
  1036. -- functions
  1037.  
  1038. function stopAllAnimations()
  1039. local oldAnim = currentAnim
  1040.  
  1041. -- return to idle if finishing an emote
  1042. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1043. oldAnim = "idle"
  1044. end
  1045.  
  1046. currentAnim = ""
  1047. currentAnimInstance = nil
  1048. if (currentAnimKeyframeHandler ~= nil) then
  1049. currentAnimKeyframeHandler:disconnect()
  1050. end
  1051.  
  1052. if (currentAnimTrack ~= nil) then
  1053. currentAnimTrack:Stop()
  1054. currentAnimTrack:Destroy()
  1055. currentAnimTrack = nil
  1056. end
  1057. return oldAnim
  1058. end
  1059.  
  1060. function setAnimationSpeed(speed)
  1061. if speed ~= currentAnimSpeed then
  1062. currentAnimSpeed = speed
  1063. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1064. end
  1065. end
  1066.  
  1067. function keyFrameReachedFunc(frameName)
  1068. if (frameName == "End") then
  1069. -- print("Keyframe : ".. frameName)
  1070.  
  1071. local repeatAnim = currentAnim
  1072. -- return to idle if finishing an emote
  1073. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1074. repeatAnim = "idle"
  1075. end
  1076.  
  1077. local animSpeed = currentAnimSpeed
  1078. playAnimation(repeatAnim, 0.15, humanoid)
  1079. setAnimationSpeed(animSpeed)
  1080. end
  1081. end
  1082.  
  1083. -- Preload animations
  1084. function playAnimation(animName, transitionTime, humanoid)
  1085.  
  1086. local roll = math.random(1, animTable[animName].totalWeight)
  1087. local origRoll = roll
  1088. local idx = 1
  1089. while (roll > animTable[animName][idx].weight) do
  1090. roll = roll - animTable[animName][idx].weight
  1091. idx = idx + 1
  1092. end
  1093.  
  1094. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1095.  
  1096. local anim = animTable[animName][idx].anim
  1097.  
  1098. -- switch animation
  1099. if (anim ~= currentAnimInstance) then
  1100.  
  1101. if (currentAnimTrack ~= nil) then
  1102. currentAnimTrack:Stop(transitionTime)
  1103. currentAnimTrack:Destroy()
  1104. end
  1105.  
  1106. currentAnimSpeed = 1.0
  1107.  
  1108. -- load it to the humanoid; get AnimationTrack
  1109. currentAnimTrack = humanoid:LoadAnimation(anim)
  1110.  
  1111. -- play the animation
  1112. currentAnimTrack:Play(transitionTime)
  1113. currentAnim = animName
  1114. currentAnimInstance = anim
  1115.  
  1116. -- set up keyframe name triggers
  1117. if (currentAnimKeyframeHandler ~= nil) then
  1118. currentAnimKeyframeHandler:disconnect()
  1119. end
  1120. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1121.  
  1122. end
  1123.  
  1124. end
  1125.  
  1126. -------------------------------------------------------------------------------------------
  1127. -------------------------------------------------------------------------------------------
  1128.  
  1129. local toolAnimName = ""
  1130. local toolAnimTrack = nil
  1131. local toolAnimInstance = nil
  1132. local currentToolAnimKeyframeHandler = nil
  1133.  
  1134. function toolKeyFrameReachedFunc(frameName)
  1135. if (frameName == "End") then
  1136. -- print("Keyframe : ".. frameName)
  1137. playToolAnimation(toolAnimName, 0.0, humanoid)
  1138. end
  1139. end
  1140.  
  1141.  
  1142. function playToolAnimation(animName, transitionTime, humanoid)
  1143.  
  1144. local roll = math.random(1, animTable[animName].totalWeight)
  1145. local origRoll = roll
  1146. local idx = 1
  1147. while (roll > animTable[animName][idx].weight) do
  1148. roll = roll - animTable[animName][idx].weight
  1149. idx = idx + 1
  1150. end
  1151. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1152. local anim = animTable[animName][idx].anim
  1153.  
  1154. if (toolAnimInstance ~= anim) then
  1155.  
  1156. if (toolAnimTrack ~= nil) then
  1157. toolAnimTrack:Stop()
  1158. toolAnimTrack:Destroy()
  1159. transitionTime = 0
  1160. end
  1161.  
  1162. -- load it to the humanoid; get AnimationTrack
  1163. toolAnimTrack = humanoid:LoadAnimation(anim)
  1164.  
  1165. -- play the animation
  1166. toolAnimTrack:Play(transitionTime)
  1167. toolAnimName = animName
  1168. toolAnimInstance = anim
  1169.  
  1170. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1171. end
  1172. end
  1173.  
  1174. function stopToolAnimations()
  1175. local oldAnim = toolAnimName
  1176.  
  1177. if (currentToolAnimKeyframeHandler ~= nil) then
  1178. currentToolAnimKeyframeHandler:disconnect()
  1179. end
  1180.  
  1181. toolAnimName = ""
  1182. toolAnimInstance = nil
  1183. if (toolAnimTrack ~= nil) then
  1184. toolAnimTrack:Stop()
  1185. toolAnimTrack:Destroy()
  1186. toolAnimTrack = nil
  1187. end
  1188.  
  1189.  
  1190. return oldAnim
  1191. end
  1192.  
  1193. -------------------------------------------------------------------------------------------
  1194. -------------------------------------------------------------------------------------------
  1195.  
  1196.  
  1197. function onRunning(speed)
  1198. if speed > 0.01 then
  1199. local scale = 15.0
  1200. playAnimation("walk", 0.1, humanoid)
  1201. setAnimationSpeed(speed / scale)
  1202. pose = "Running"
  1203. else
  1204. playAnimation("idle", 0.1, humanoid)
  1205. pose = "Standing"
  1206. end
  1207. end
  1208.  
  1209. function onDied()
  1210. pose = "Dead"
  1211. end
  1212.  
  1213. function onJumping()
  1214. playAnimation("jump", 0.1, humanoid)
  1215. jumpAnimTime = jumpAnimDuration
  1216. pose = "Jumping"
  1217. end
  1218.  
  1219. function onClimbing(speed)
  1220. local scale = 5.0
  1221. playAnimation("climb", 0.1, humanoid)
  1222. setAnimationSpeed(speed / scale)
  1223. pose = "Climbing"
  1224. end
  1225.  
  1226. function onGettingUp()
  1227. pose = "GettingUp"
  1228. end
  1229.  
  1230. function onFreeFall()
  1231. if (jumpAnimTime <= 0) then
  1232. playAnimation("fall", fallTransitionTime, humanoid)
  1233. end
  1234. pose = "FreeFall"
  1235. end
  1236.  
  1237. function onFallingDown()
  1238. pose = "FallingDown"
  1239. end
  1240.  
  1241. function onSeated()
  1242. pose = "Seated"
  1243. end
  1244.  
  1245. function onPlatformStanding()
  1246. pose = "PlatformStanding"
  1247. end
  1248.  
  1249. function onSwimming(speed)
  1250. if speed > 1.00 then
  1251. local scale = 10.0
  1252. playAnimation("swim", 0.4, humanoid)
  1253. setAnimationSpeed(speed / scale)
  1254. pose = "Swimming"
  1255. else
  1256. playAnimation("swimidle", 0.4, humanoid)
  1257. pose = "Standing"
  1258. end
  1259. end
  1260.  
  1261. function getTool()
  1262. for _, kid in ipairs(Figure:GetChildren()) do
  1263. if kid.className == "Tool" then return kid end
  1264. end
  1265. return nil
  1266. end
  1267.  
  1268. function getToolAnim(tool)
  1269. for _, c in ipairs(tool:GetChildren()) do
  1270. if c.Name == "toolanim" and c.className == "StringValue" then
  1271. return c
  1272. end
  1273. end
  1274. return nil
  1275. end
  1276.  
  1277. function animateTool()
  1278.  
  1279. if (toolAnim == "None") then
  1280. playToolAnimation("toolnone", toolTransitionTime, humanoid)
  1281. return
  1282. end
  1283.  
  1284. if (toolAnim == "Slash") then
  1285. playToolAnimation("toolslash", 0, humanoid)
  1286. return
  1287. end
  1288.  
  1289. if (toolAnim == "Lunge") then
  1290. playToolAnimation("toollunge", 0, humanoid)
  1291. return
  1292. end
  1293. end
  1294.  
  1295. function moveSit()
  1296. end
  1297.  
  1298. local lastTick = 0
  1299.  
  1300. function move(time)
  1301. local amplitude = 1
  1302. local frequency = 1
  1303. local deltaTime = time - lastTick
  1304. lastTick = time
  1305.  
  1306. local climbFudge = 0
  1307. local setAngles = false
  1308.  
  1309. if (jumpAnimTime > 0) then
  1310. jumpAnimTime = jumpAnimTime - deltaTime
  1311. end
  1312.  
  1313. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1314. playAnimation("fall", fallTransitionTime, humanoid)
  1315. elseif (pose == "Seated") then
  1316. playAnimation("sit", 0.5, humanoid)
  1317. return
  1318. elseif (pose == "Running") then
  1319. playAnimation("walk", 0.1, humanoid)
  1320. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1321. stopAllAnimations()
  1322. amplitude = 0.1
  1323. frequency = 1
  1324. setAngles = true
  1325. end
  1326.  
  1327. -- Tool Animation handling
  1328. local tool = getTool()
  1329. if tool then
  1330.  
  1331. animStringValueObject = getToolAnim(tool)
  1332.  
  1333. if animStringValueObject then
  1334. toolAnim = animStringValueObject.Value
  1335. -- message recieved, delete StringValue
  1336. animStringValueObject.Parent = nil
  1337. toolAnimTime = time + .3
  1338. end
  1339.  
  1340. if time > toolAnimTime then
  1341. toolAnimTime = 0
  1342. toolAnim = "None"
  1343. end
  1344.  
  1345. animateTool()
  1346. else
  1347. stopToolAnimations()
  1348. toolAnim = "None"
  1349. toolAnimInstance = nil
  1350. toolAnimTime = 0
  1351. end
  1352. end
  1353.  
  1354. -- connect events
  1355. humanoid.Died:connect(onDied)
  1356. humanoid.Running:connect(onRunning)
  1357. humanoid.Jumping:connect(onJumping)
  1358. humanoid.Climbing:connect(onClimbing)
  1359. humanoid.GettingUp:connect(onGettingUp)
  1360. humanoid.FreeFalling:connect(onFreeFall)
  1361. humanoid.FallingDown:connect(onFallingDown)
  1362. humanoid.Seated:connect(onSeated)
  1363. humanoid.PlatformStanding:connect(onPlatformStanding)
  1364. humanoid.Swimming:connect(onSwimming)
  1365.  
  1366. owner.Chatted:connect(function(msg)
  1367. local emote = ""
  1368. if (string.sub(msg, 1, 3) == "/e ") then
  1369. emote = string.sub(msg, 4)
  1370. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1371. emote = string.sub(msg, 8)
  1372. end
  1373.  
  1374. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1375. playAnimation(emote, 0.1, humanoid)
  1376. end
  1377. print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1378. end)
  1379.  
  1380.  
  1381. -- main program
  1382.  
  1383. local runService = game:service("RunService");
  1384.  
  1385. -- print("bottom")
  1386.  
  1387. -- initialize to idle
  1388. playAnimation("idle", 0.1, humanoid)
  1389. pose = "Standing"
  1390. game:GetService("RunService").Stepped:Connect(function(step)
  1391. move(step)
  1392. end)
  1393. ]==], owner.Character):WaitForChild 'ServerRemote';
  1394. mouse = owner:GetMouse ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement