Advertisement
Void_scripter0

Anthro

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