Advertisement
teotv202

Anthro

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