Advertisement
Guest User

NE dme

a guest
Jun 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.48 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. local chil = workspace:GetChildren()
  20. for i,v in pairs(chil) do
  21. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  22. v:Destroy()
  23. end
  24. end
  25. Part0 = Instance.new("Part")
  26. Model1 = Instance.new("Model")
  27. Part2 = Instance.new("Part")
  28. Attachment3 = Instance.new("Attachment")
  29. Vector3Value4 = Instance.new("Vector3Value")
  30. Vector3Value5 = Instance.new("Vector3Value")
  31. Attachment6 = Instance.new("Attachment")
  32. Vector3Value7 = Instance.new("Vector3Value")
  33. Attachment8 = Instance.new("Attachment")
  34. Vector3Value9 = Instance.new("Vector3Value")
  35. Motor6D10 = Instance.new("Motor6D")
  36. Vector3Value11 = Instance.new("Vector3Value")
  37. Attachment12 = Instance.new("Attachment")
  38. Vector3Value13 = Instance.new("Vector3Value")
  39. Attachment14 = Instance.new("Attachment")
  40. Vector3Value15 = Instance.new("Vector3Value")
  41. Motor6D16 = Instance.new("Motor6D")
  42. Vector3Value17 = Instance.new("Vector3Value")
  43. Attachment18 = Instance.new("Attachment")
  44. Vector3Value19 = Instance.new("Vector3Value")
  45. Attachment20 = Instance.new("Attachment")
  46. Vector3Value21 = Instance.new("Vector3Value")
  47. Attachment22 = Instance.new("Attachment")
  48. Vector3Value23 = Instance.new("Vector3Value")
  49. Motor6D24 = Instance.new("Motor6D")
  50. Vector3Value25 = Instance.new("Vector3Value")
  51. Attachment26 = Instance.new("Attachment")
  52. Vector3Value27 = Instance.new("Vector3Value")
  53. Attachment28 = Instance.new("Attachment")
  54. Vector3Value29 = Instance.new("Vector3Value")
  55. Motor6D30 = Instance.new("Motor6D")
  56. Vector3Value31 = Instance.new("Vector3Value")
  57. Attachment32 = Instance.new("Attachment")
  58. Vector3Value33 = Instance.new("Vector3Value")
  59. Attachment34 = Instance.new("Attachment")
  60. Vector3Value35 = Instance.new("Vector3Value")
  61. Motor6D36 = Instance.new("Motor6D")
  62. Vector3Value37 = Instance.new("Vector3Value")
  63. Attachment38 = Instance.new("Attachment")
  64. Vector3Value39 = Instance.new("Vector3Value")
  65. Attachment40 = Instance.new("Attachment")
  66. Vector3Value41 = Instance.new("Vector3Value")
  67. Attachment42 = Instance.new("Attachment")
  68. Vector3Value43 = Instance.new("Vector3Value")
  69. Motor6D44 = Instance.new("Motor6D")
  70. Vector3Value45 = Instance.new("Vector3Value")
  71. Attachment46 = Instance.new("Attachment")
  72. Vector3Value47 = Instance.new("Vector3Value")
  73. Attachment48 = Instance.new("Attachment")
  74. Vector3Value49 = Instance.new("Vector3Value")
  75. Attachment50 = Instance.new("Attachment")
  76. Vector3Value51 = Instance.new("Vector3Value")
  77. Attachment52 = Instance.new("Attachment")
  78. Vector3Value53 = Instance.new("Vector3Value")
  79. Attachment54 = Instance.new("Attachment")
  80. Vector3Value55 = Instance.new("Vector3Value")
  81. Attachment56 = Instance.new("Attachment")
  82. Vector3Value57 = Instance.new("Vector3Value")
  83. Attachment58 = Instance.new("Attachment")
  84. Vector3Value59 = Instance.new("Vector3Value")
  85. Attachment60 = Instance.new("Attachment")
  86. Vector3Value61 = Instance.new("Vector3Value")
  87. Attachment62 = Instance.new("Attachment")
  88. Vector3Value63 = Instance.new("Vector3Value")
  89. Motor6D64 = Instance.new("Motor6D")
  90. Vector3Value65 = Instance.new("Vector3Value")
  91. Attachment66 = Instance.new("Attachment")
  92. Vector3Value67 = Instance.new("Vector3Value")
  93. Motor6D68 = Instance.new("Motor6D")
  94. Vector3Value69 = Instance.new("Vector3Value")
  95. Attachment70 = Instance.new("Attachment")
  96. Vector3Value71 = Instance.new("Vector3Value")
  97. Attachment72 = Instance.new("Attachment")
  98. Vector3Value73 = Instance.new("Vector3Value")
  99. Motor6D74 = Instance.new("Motor6D")
  100. Vector3Value75 = Instance.new("Vector3Value")
  101. Attachment76 = Instance.new("Attachment")
  102. Vector3Value77 = Instance.new("Vector3Value")
  103. Attachment78 = Instance.new("Attachment")
  104. Vector3Value79 = Instance.new("Vector3Value")
  105. Motor6D80 = Instance.new("Motor6D")
  106. Vector3Value81 = Instance.new("Vector3Value")
  107. Attachment82 = Instance.new("Attachment")
  108. Vector3Value83 = Instance.new("Vector3Value")
  109. Motor6D84 = Instance.new("Motor6D")
  110. Vector3Value85 = Instance.new("Vector3Value")
  111. Attachment86 = Instance.new("Attachment")
  112. Vector3Value87 = Instance.new("Vector3Value")
  113. Attachment88 = Instance.new("Attachment")
  114. Vector3Value89 = Instance.new("Vector3Value")
  115. Motor6D90 = Instance.new("Motor6D")
  116. Vector3Value91 = Instance.new("Vector3Value")
  117. Attachment92 = Instance.new("Attachment")
  118. Vector3Value93 = Instance.new("Vector3Value")
  119. Attachment94 = Instance.new("Attachment")
  120. Vector3Value95 = Instance.new("Vector3Value")
  121. Motor6D96 = Instance.new("Motor6D")
  122. Vector3Value97 = Instance.new("Vector3Value")
  123. Attachment98 = Instance.new("Attachment")
  124. Vector3Value99 = Instance.new("Vector3Value")
  125. Attachment100 = Instance.new("Attachment")
  126. Vector3Value101 = Instance.new("Vector3Value")
  127. Attachment102 = Instance.new("Attachment")
  128. Vector3Value103 = Instance.new("Vector3Value")
  129. Attachment104 = Instance.new("Attachment")
  130. Vector3Value105 = Instance.new("Vector3Value")
  131. Attachment106 = Instance.new("Attachment")
  132. Vector3Value107 = Instance.new("Vector3Value")
  133. Attachment108 = Instance.new("Attachment")
  134. Vector3Value109 = Instance.new("Vector3Value")
  135. Attachment110 = Instance.new("Attachment")
  136. Vector3Value111 = Instance.new("Vector3Value")
  137. Motor6D112 = Instance.new("Motor6D")
  138. Vector3Value113 = Instance.new("Vector3Value")
  139. Humanoid114 = Instance.new("Humanoid")
  140. NumberValue115 = Instance.new("NumberValue")
  141. NumberValue116 = Instance.new("NumberValue")
  142. NumberValue117 = Instance.new("NumberValue")
  143. NumberValue118 = Instance.new("NumberValue")
  144. NumberValue119 = Instance.new("NumberValue")
  145. NumberValue120 = Instance.new("NumberValue")
  146. Part121 = Instance.new("Part")
  147. SpecialMesh122 = Instance.new("SpecialMesh")
  148. Vector3Value123 = Instance.new("Vector3Value")
  149. Attachment124 = Instance.new("Attachment")
  150. Vector3Value125 = Instance.new("Vector3Value")
  151. Attachment126 = Instance.new("Attachment")
  152. Vector3Value127 = Instance.new("Vector3Value")
  153. Attachment128 = Instance.new("Attachment")
  154. Vector3Value129 = Instance.new("Vector3Value")
  155. Attachment130 = Instance.new("Attachment")
  156. Vector3Value131 = Instance.new("Vector3Value")
  157. Attachment132 = Instance.new("Attachment")
  158. Vector3Value133 = Instance.new("Vector3Value")
  159. Decal134 = Instance.new("Decal")
  160. Motor6D135 = Instance.new("Motor6D")
  161. Vector3Value136 = Instance.new("Vector3Value")
  162. Sound137 = Instance.new("Sound")
  163. RemoteEvent138 = Instance.new("RemoteEvent")
  164. Sound139 = Instance.new("Sound")
  165. RemoteEvent140 = Instance.new("RemoteEvent")
  166. Sound141 = Instance.new("Sound")
  167. RemoteEvent142 = Instance.new("RemoteEvent")
  168. Sound143 = Instance.new("Sound")
  169. RemoteEvent144 = Instance.new("RemoteEvent")
  170. Sound145 = Instance.new("Sound")
  171. RemoteEvent146 = Instance.new("RemoteEvent")
  172. Sound147 = Instance.new("Sound")
  173. RemoteEvent148 = Instance.new("RemoteEvent")
  174. Sound149 = Instance.new("Sound")
  175. RemoteEvent150 = Instance.new("RemoteEvent")
  176. Sound151 = Instance.new("Sound")
  177. RemoteEvent152 = Instance.new("RemoteEvent")
  178. Sound153 = Instance.new("Sound")
  179. RemoteEvent154 = Instance.new("RemoteEvent")
  180. Script155 = Instance.new("Script")
  181. LocalScript156 = Instance.new("LocalScript")
  182. Script157 = Instance.new("Script")
  183. LocalScript158 = Instance.new("LocalScript")
  184. StringValue159 = Instance.new("StringValue")
  185. Animation160 = Instance.new("Animation")
  186. StringValue161 = Instance.new("StringValue")
  187. Animation162 = Instance.new("Animation")
  188. StringValue163 = Instance.new("StringValue")
  189. Animation164 = Instance.new("Animation")
  190. NumberValue165 = Instance.new("NumberValue")
  191. Animation166 = Instance.new("Animation")
  192. NumberValue167 = Instance.new("NumberValue")
  193. Animation168 = Instance.new("Animation")
  194. NumberValue169 = Instance.new("NumberValue")
  195. StringValue170 = Instance.new("StringValue")
  196. Animation171 = Instance.new("Animation")
  197. NumberValue172 = Instance.new("NumberValue")
  198. Animation173 = Instance.new("Animation")
  199. NumberValue174 = Instance.new("NumberValue")
  200. Animation175 = Instance.new("Animation")
  201. NumberValue176 = Instance.new("NumberValue")
  202. StringValue177 = Instance.new("StringValue")
  203. Animation178 = Instance.new("Animation")
  204. NumberValue179 = Instance.new("NumberValue")
  205. Animation180 = Instance.new("Animation")
  206. NumberValue181 = Instance.new("NumberValue")
  207. Animation182 = Instance.new("Animation")
  208. NumberValue183 = Instance.new("NumberValue")
  209. StringValue184 = Instance.new("StringValue")
  210. Animation185 = Instance.new("Animation")
  211. StringValue186 = Instance.new("StringValue")
  212. Animation187 = Instance.new("Animation")
  213. NumberValue188 = Instance.new("NumberValue")
  214. Animation189 = Instance.new("Animation")
  215. NumberValue190 = Instance.new("NumberValue")
  216. StringValue191 = Instance.new("StringValue")
  217. Animation192 = Instance.new("Animation")
  218. StringValue193 = Instance.new("StringValue")
  219. Animation194 = Instance.new("Animation")
  220. StringValue195 = Instance.new("StringValue")
  221. Animation196 = Instance.new("Animation")
  222. StringValue197 = Instance.new("StringValue")
  223. Animation198 = Instance.new("Animation")
  224. StringValue199 = Instance.new("StringValue")
  225. Animation200 = Instance.new("Animation")
  226. StringValue201 = Instance.new("StringValue")
  227. Animation202 = Instance.new("Animation")
  228. StringValue203 = Instance.new("StringValue")
  229. Animation204 = Instance.new("Animation")
  230. StringValue205 = Instance.new("StringValue")
  231. Animation206 = Instance.new("Animation")
  232. StringValue207 = Instance.new("StringValue")
  233. Animation208 = Instance.new("Animation")
  234. StringValue209 = Instance.new("StringValue")
  235. Animation210 = Instance.new("Animation")
  236. StringValue211 = Instance.new("StringValue")
  237. Animation212 = Instance.new("Animation")
  238. StringValue213 = Instance.new("StringValue")
  239. Animation214 = Instance.new("Animation")
  240. BodyColors215 = Instance.new("BodyColors")
  241. ShirtGraphic216 = Instance.new("ShirtGraphic")
  242. Shirt217 = Instance.new("Shirt")
  243. Pants218 = Instance.new("Pants")
  244. Part0.Name = "Baseplate"
  245. Part0.Parent = mas
  246. Part0.BrickColor = BrickColor.new("Dark stone grey")
  247. Part0.Anchored = true
  248. Part0.Locked = true
  249. Part0.FormFactor = Enum.FormFactor.Symmetric
  250. Part0.Size = Vector3.new(512, 20, 512)
  251. Part0.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  252. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  253. Part0.Position = Vector3.new(0, -10, 0)
  254. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  255. Model1.Name = "M3m3_L0rd4life"
  256. Model1.Parent = mas
  257. Model1.Archivable = false
  258. Model1.PrimaryPart = Part2
  259. Part2.Name = "HumanoidRootPart"
  260. Part2.Parent = Model1
  261. Part2.Transparency = 1
  262. Part2.Rotation = Vector3.new(0, -9.80000019, 0)
  263. Part2.Size = Vector3.new(2, 2.0999999, 1)
  264. Part2.CFrame = CFrame.new(0.702840745, 2.46749997, 10.3762236, 0.985415578, 0, -0.170164526, 0, 1, 0, 0.170164526, 0, 0.985415578)
  265. Part2.Position = Vector3.new(0.702840745, 2.46749997, 10.3762236)
  266. Part2.Orientation = Vector3.new(0, -9.80000019, 0)
  267. Attachment3.Name = "RootRigAttachment"
  268. Attachment3.Parent = Part2
  269. Attachment3.CFrame = CFrame.new(0, -0.367499977, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  270. Attachment3.Position = Vector3.new(0, -0.367499977, 0)
  271. Vector3Value4.Name = "OriginalPosition"
  272. Vector3Value4.Parent = Attachment3
  273. Vector3Value4.Value = Vector3.new(0, -0.349999994, 0)
  274. Vector3Value5.Name = "OriginalSize"
  275. Vector3Value5.Parent = Part2
  276. Vector3Value5.Value = Vector3.new(2, 2, 1)
  277. Attachment6.Name = "LeftWristRigAttachment"
  278. Attachment6.Parent = mas
  279. Attachment6.CFrame = CFrame.new(0.000478982925, 0.131297663, 5.96046448e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  280. Attachment6.Position = Vector3.new(0.000478982925, 0.131297663, 5.96046448e-08)
  281. Vector3Value7.Name = "OriginalPosition"
  282. Vector3Value7.Parent = Attachment6
  283. Vector3Value7.Value = Vector3.new(0.000478982925, 0.125045404, 5.96046448e-08)
  284. Attachment8.Name = "LeftGripAttachment"
  285. Attachment8.Parent = mas
  286. Attachment8.Rotation = Vector3.new(-90, -0, -0)
  287. Attachment8.CFrame = CFrame.new(0, -0.157452226, -1.46306121e-07, 1, 0, -0, 0, 6.12323426e-17, 1, 0, -1, 6.12323426e-17)
  288. Attachment8.Position = Vector3.new(0, -0.157452226, -1.46306121e-07)
  289. Attachment8.Orientation = Vector3.new(-90, -0, 0)
  290. Vector3Value9.Name = "OriginalPosition"
  291. Vector3Value9.Parent = Attachment8
  292. Vector3Value9.Value = Vector3.new(0, -0.149954513, -1.46306121e-07)
  293. Motor6D10.Name = "LeftWrist"
  294. Motor6D10.Parent = mas
  295. Motor6D10.C0 = CFrame.new(0.000478625298, -0.525975108, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  296. Motor6D10.C1 = CFrame.new(0.000478982925, 0.131297663, 5.96046448e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  297. Motor6D10.Part0 = nil
  298. Motor6D10.Part1 = nil
  299. Vector3Value11.Name = "OriginalSize"
  300. Vector3Value11.Parent = mas
  301. Vector3Value11.Value = Vector3.new(0.999999762, 0.300030679, 0.999999881)
  302. Attachment12.Name = "LeftElbowRigAttachment"
  303. Attachment12.Parent = mas
  304. Attachment12.CFrame = CFrame.new(0.000478625298, 0.271622598, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  305. Attachment12.Position = Vector3.new(0.000478625298, 0.271622598, 7.64462551e-20)
  306. Vector3Value13.Name = "OriginalPosition"
  307. Vector3Value13.Parent = Attachment12
  308. Vector3Value13.Value = Vector3.new(0.000478625298, 0.258688211, 7.64462551e-20)
  309. Attachment14.Name = "LeftWristRigAttachment"
  310. Attachment14.Parent = mas
  311. Attachment14.CFrame = CFrame.new(0.000478625298, -0.525975108, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  312. Attachment14.Position = Vector3.new(0.000478625298, -0.525975108, 7.64462551e-20)
  313. Vector3Value15.Name = "OriginalPosition"
  314. Vector3Value15.Parent = Attachment14
  315. Vector3Value15.Value = Vector3.new(0.000478625298, -0.5009287, 7.64462551e-20)
  316. Motor6D16.Name = "LeftElbow"
  317. Motor6D16.Parent = mas
  318. Motor6D16.C0 = CFrame.new(0.000479221344, -0.350759178, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  319. Motor6D16.C1 = CFrame.new(0.000478625298, 0.271622598, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  320. Motor6D16.Part0 = nil
  321. Motor6D16.Part1 = nil
  322. Motor6D16.CurrentAngle = -0.00087082956451923
  323. Vector3Value17.Name = "OriginalSize"
  324. Vector3Value17.Parent = mas
  325. Vector3Value17.Value = Vector3.new(0.999999642, 1.05191803, 1)
  326. Attachment18.Name = "LeftShoulderRigAttachment"
  327. Attachment18.Parent = mas
  328. Attachment18.CFrame = CFrame.new(0.500000358, 0.414043009, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  329. Attachment18.Position = Vector3.new(0.500000358, 0.414043009, 8.94069672e-08)
  330. Vector3Value19.Name = "OriginalPosition"
  331. Vector3Value19.Parent = Attachment18
  332. Vector3Value19.Value = Vector3.new(0.500000358, 0.394326687, 8.94069672e-08)
  333. Attachment20.Name = "LeftElbowRigAttachment"
  334. Attachment20.Parent = mas
  335. Attachment20.CFrame = CFrame.new(0.000479221344, -0.350759178, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  336. Attachment20.Position = Vector3.new(0.000479221344, -0.350759178, 8.94069672e-08)
  337. Vector3Value21.Name = "OriginalPosition"
  338. Vector3Value21.Parent = Attachment20
  339. Vector3Value21.Value = Vector3.new(0.000479221344, -0.334056377, 8.94069672e-08)
  340. Attachment22.Name = "LeftShoulderAttachment"
  341. Attachment22.Parent = mas
  342. Attachment22.CFrame = CFrame.new(2.38418579e-07, 0.613542914, -2.70968314e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  343. Attachment22.Position = Vector3.new(2.38418579e-07, 0.613542914, -2.70968314e-08)
  344. Vector3Value23.Name = "OriginalPosition"
  345. Vector3Value23.Parent = Attachment22
  346. Vector3Value23.Value = Vector3.new(2.38418579e-07, 0.584326625, -2.70968314e-08)
  347. Motor6D24.Name = "LeftShoulder"
  348. Motor6D24.Parent = mas
  349. Motor6D24.C0 = CFrame.new(-1, 0.591167986, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  350. Motor6D24.C1 = CFrame.new(0.500000358, 0.414043009, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  351. Motor6D24.Part0 = nil
  352. Motor6D24.Part1 = nil
  353. Motor6D24.CurrentAngle = -0.082779809832573
  354. Vector3Value25.Name = "OriginalSize"
  355. Vector3Value25.Parent = mas
  356. Vector3Value25.Value = Vector3.new(0.999999762, 1.16867065, 0.99999994)
  357. Attachment26.Name = "RightWristRigAttachment"
  358. Attachment26.Parent = mas
  359. Attachment26.CFrame = CFrame.new(3.57627869e-07, 0.131297663, 5.96046448e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  360. Attachment26.Position = Vector3.new(3.57627869e-07, 0.131297663, 5.96046448e-08)
  361. Vector3Value27.Name = "OriginalPosition"
  362. Vector3Value27.Parent = Attachment26
  363. Vector3Value27.Value = Vector3.new(3.57627869e-07, 0.125045404, 5.96046448e-08)
  364. Attachment28.Name = "RightGripAttachment"
  365. Attachment28.Parent = mas
  366. Attachment28.Rotation = Vector3.new(-90, -0, -0)
  367. Attachment28.CFrame = CFrame.new(0, -0.157452226, -1.46306121e-07, 1, 0, -0, 0, 6.12323426e-17, 1, 0, -1, 6.12323426e-17)
  368. Attachment28.Position = Vector3.new(0, -0.157452226, -1.46306121e-07)
  369. Attachment28.Orientation = Vector3.new(-90, -0, 0)
  370. Vector3Value29.Name = "OriginalPosition"
  371. Vector3Value29.Parent = Attachment28
  372. Vector3Value29.Value = Vector3.new(0, -0.149954513, -1.46306121e-07)
  373. Motor6D30.Name = "RightWrist"
  374. Motor6D30.Parent = mas
  375. Motor6D30.C0 = CFrame.new(1.1920929e-07, -0.525975108, -6.86244753e-18, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  376. Motor6D30.C1 = CFrame.new(3.57627869e-07, 0.131297663, 5.96046448e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  377. Motor6D30.Part0 = nil
  378. Motor6D30.Part1 = nil
  379. Vector3Value31.Name = "OriginalSize"
  380. Vector3Value31.Parent = mas
  381. Vector3Value31.Value = Vector3.new(0.999999881, 0.300030679, 0.999999881)
  382. Attachment32.Name = "RightElbowRigAttachment"
  383. Attachment32.Parent = mas
  384. Attachment32.CFrame = CFrame.new(1.1920929e-07, 0.271508455, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  385. Attachment32.Position = Vector3.new(1.1920929e-07, 0.271508455, 7.64462551e-20)
  386. Vector3Value33.Name = "OriginalPosition"
  387. Vector3Value33.Parent = Attachment32
  388. Vector3Value33.Value = Vector3.new(1.1920929e-07, 0.258579493, 7.64462551e-20)
  389. Attachment34.Name = "RightWristRigAttachment"
  390. Attachment34.Parent = mas
  391. Attachment34.CFrame = CFrame.new(1.1920929e-07, -0.525975108, -6.86244753e-18, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  392. Attachment34.Position = Vector3.new(1.1920929e-07, -0.525975108, -6.86244753e-18)
  393. Vector3Value35.Name = "OriginalPosition"
  394. Vector3Value35.Parent = Attachment34
  395. Vector3Value35.Value = Vector3.new(1.1920929e-07, -0.5009287, -6.86244753e-18)
  396. Motor6D36.Name = "RightElbow"
  397. Motor6D36.Parent = mas
  398. Motor6D36.C0 = CFrame.new(-5.96046448e-07, -0.350873321, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  399. Motor6D36.C1 = CFrame.new(1.1920929e-07, 0.271508455, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  400. Motor6D36.Part0 = nil
  401. Motor6D36.Part1 = nil
  402. Motor6D36.CurrentAngle = 0.00034356454852968
  403. Vector3Value37.Name = "OriginalSize"
  404. Vector3Value37.Parent = mas
  405. Vector3Value37.Value = Vector3.new(0.999999762, 1.05191803, 1)
  406. Attachment38.Name = "RightShoulderRigAttachment"
  407. Attachment38.Parent = mas
  408. Attachment38.CFrame = CFrame.new(-0.500000715, 0.414043009, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  409. Attachment38.Position = Vector3.new(-0.500000715, 0.414043009, 8.94069672e-08)
  410. Vector3Value39.Name = "OriginalPosition"
  411. Vector3Value39.Parent = Attachment38
  412. Vector3Value39.Value = Vector3.new(-0.500000715, 0.394326687, 8.94069672e-08)
  413. Attachment40.Name = "RightElbowRigAttachment"
  414. Attachment40.Parent = mas
  415. Attachment40.CFrame = CFrame.new(-5.96046448e-07, -0.350873321, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  416. Attachment40.Position = Vector3.new(-5.96046448e-07, -0.350873321, 8.94069672e-08)
  417. Vector3Value41.Name = "OriginalPosition"
  418. Vector3Value41.Parent = Attachment40
  419. Vector3Value41.Value = Vector3.new(-5.96046448e-07, -0.334165096, 8.94069672e-08)
  420. Attachment42.Name = "RightShoulderAttachment"
  421. Attachment42.Parent = mas
  422. Attachment42.CFrame = CFrame.new(-8.34465027e-07, 0.613542914, -2.70968314e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  423. Attachment42.Position = Vector3.new(-8.34465027e-07, 0.613542914, -2.70968314e-08)
  424. Vector3Value43.Name = "OriginalPosition"
  425. Vector3Value43.Parent = Attachment42
  426. Vector3Value43.Value = Vector3.new(-8.34465027e-07, 0.584326625, -2.70968314e-08)
  427. Motor6D44.Name = "RightShoulder"
  428. Motor6D44.Parent = mas
  429. Motor6D44.C0 = CFrame.new(0.99999994, 0.591167986, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  430. Motor6D44.C1 = CFrame.new(-0.500000715, 0.414043009, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  431. Motor6D44.Part0 = nil
  432. Motor6D44.Part1 = nil
  433. Motor6D44.CurrentAngle = 0.043153166770935
  434. Vector3Value45.Name = "OriginalSize"
  435. Vector3Value45.Parent = mas
  436. Vector3Value45.Value = Vector3.new(0.999999642, 1.16867065, 0.99999994)
  437. Attachment46.Name = "WaistRigAttachment"
  438. Attachment46.Parent = mas
  439. Attachment46.CFrame = CFrame.new(-5.96046448e-08, -0.839984953, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  440. Attachment46.Position = Vector3.new(-5.96046448e-08, -0.839984953, 1.1920929e-07)
  441. Vector3Value47.Name = "OriginalPosition"
  442. Vector3Value47.Parent = Attachment46
  443. Vector3Value47.Value = Vector3.new(-5.96046448e-08, -0.799985707, 1.1920929e-07)
  444. Attachment48.Name = "NeckRigAttachment"
  445. Attachment48.Parent = mas
  446. Attachment48.CFrame = CFrame.new(-5.96046448e-08, 0.840017915, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  447. Attachment48.Position = Vector3.new(-5.96046448e-08, 0.840017915, 1.1920929e-07)
  448. Vector3Value49.Name = "OriginalPosition"
  449. Vector3Value49.Parent = Attachment48
  450. Vector3Value49.Value = Vector3.new(-5.96046448e-08, 0.800017118, 1.1920929e-07)
  451. Attachment50.Name = "LeftShoulderRigAttachment"
  452. Attachment50.Parent = mas
  453. Attachment50.CFrame = CFrame.new(-1, 0.591167986, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  454. Attachment50.Position = Vector3.new(-1, 0.591167986, 1.1920929e-07)
  455. Vector3Value51.Name = "OriginalPosition"
  456. Vector3Value51.Parent = Attachment50
  457. Vector3Value51.Value = Vector3.new(-1, 0.56301713, 1.1920929e-07)
  458. Attachment52.Name = "RightShoulderRigAttachment"
  459. Attachment52.Parent = mas
  460. Attachment52.CFrame = CFrame.new(0.99999994, 0.591167986, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  461. Attachment52.Position = Vector3.new(0.99999994, 0.591167986, 1.1920929e-07)
  462. Vector3Value53.Name = "OriginalPosition"
  463. Vector3Value53.Parent = Attachment52
  464. Vector3Value53.Value = Vector3.new(0.99999994, 0.56301713, 1.1920929e-07)
  465. Attachment54.Name = "BodyFrontAttachment"
  466. Attachment54.Parent = mas
  467. Attachment54.CFrame = CFrame.new(-5.96046448e-08, -0.209984958, -0.499999881, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  468. Attachment54.Position = Vector3.new(-5.96046448e-08, -0.209984958, -0.499999881)
  469. Vector3Value55.Name = "OriginalPosition"
  470. Vector3Value55.Parent = Attachment54
  471. Vector3Value55.Value = Vector3.new(-5.96046448e-08, -0.199985683, -0.499999881)
  472. Attachment56.Name = "BodyBackAttachment"
  473. Attachment56.Parent = mas
  474. Attachment56.CFrame = CFrame.new(-5.96046448e-08, -0.209984958, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  475. Attachment56.Position = Vector3.new(-5.96046448e-08, -0.209984958, 0.5)
  476. Vector3Value57.Name = "OriginalPosition"
  477. Vector3Value57.Parent = Attachment56
  478. Vector3Value57.Value = Vector3.new(-5.96046448e-08, -0.199985683, 0.5)
  479. Attachment58.Name = "LeftCollarAttachment"
  480. Attachment58.Parent = mas
  481. Attachment58.CFrame = CFrame.new(-0.999999881, 0.840017796, -7.27397378e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  482. Attachment58.Position = Vector3.new(-0.999999881, 0.840017796, -7.27397378e-08)
  483. Vector3Value59.Name = "OriginalPosition"
  484. Vector3Value59.Parent = Attachment58
  485. Vector3Value59.Value = Vector3.new(-0.999999881, 0.800016999, -7.27397378e-08)
  486. Attachment60.Name = "RightCollarAttachment"
  487. Attachment60.Parent = mas
  488. Attachment60.CFrame = CFrame.new(0.99999994, 0.840017557, 4.61295997e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  489. Attachment60.Position = Vector3.new(0.99999994, 0.840017557, 4.61295997e-08)
  490. Vector3Value61.Name = "OriginalPosition"
  491. Vector3Value61.Parent = Attachment60
  492. Vector3Value61.Value = Vector3.new(0.99999994, 0.800016761, 4.61295997e-08)
  493. Attachment62.Name = "NeckAttachment"
  494. Attachment62.Parent = mas
  495. Attachment62.CFrame = CFrame.new(-5.05859497e-08, 0.840017915, 7.11172419e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  496. Attachment62.Position = Vector3.new(-5.05859497e-08, 0.840017915, 7.11172419e-08)
  497. Vector3Value63.Name = "OriginalPosition"
  498. Vector3Value63.Parent = Attachment62
  499. Vector3Value63.Value = Vector3.new(-5.05859497e-08, 0.800017118, 7.11172419e-08)
  500. Motor6D64.Name = "Waist"
  501. Motor6D64.Parent = mas
  502. Motor6D64.C0 = CFrame.new(-1.1920929e-07, 0.21002616, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  503. Motor6D64.C1 = CFrame.new(-5.96046448e-08, -0.839984953, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  504. Motor6D64.Part0 = nil
  505. Motor6D64.Part1 = nil
  506. Motor6D64.CurrentAngle = -0.0093979742377996
  507. Vector3Value65.Name = "OriginalSize"
  508. Vector3Value65.Parent = mas
  509. Vector3Value65.Value = Vector3.new(2, 1.60003424, 1.00000036)
  510. Attachment66.Name = "LeftAnkleRigAttachment"
  511. Attachment66.Parent = mas
  512. Attachment66.CFrame = CFrame.new(-1.78813934e-07, 0.107036658, -1.7222776e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  513. Attachment66.Position = Vector3.new(-1.78813934e-07, 0.107036658, -1.7222776e-06)
  514. Vector3Value67.Name = "OriginalPosition"
  515. Vector3Value67.Parent = Attachment66
  516. Vector3Value67.Value = Vector3.new(-1.78813934e-07, 0.101939678, -1.7222776e-06)
  517. Motor6D68.Name = "LeftAnkle"
  518. Motor6D68.Parent = mas
  519. Motor6D68.C0 = CFrame.new(-1.1920929e-07, -0.574514985, -2.21401592e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  520. Motor6D68.C1 = CFrame.new(-1.78813934e-07, 0.107036658, -1.7222776e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  521. Motor6D68.Part0 = nil
  522. Motor6D68.Part1 = nil
  523. Motor6D68.CurrentAngle = 0.15524387359619
  524. Vector3Value69.Name = "OriginalSize"
  525. Vector3Value69.Parent = mas
  526. Vector3Value69.Value = Vector3.new(1, 0.300000191, 1)
  527. Attachment70.Name = "LeftKneeRigAttachment"
  528. Attachment70.Parent = mas
  529. Attachment70.CFrame = CFrame.new(2.98023224e-08, 0.397969335, -1.60860594e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  530. Attachment70.Position = Vector3.new(2.98023224e-08, 0.397969335, -1.60860594e-07)
  531. Vector3Value71.Name = "OriginalPosition"
  532. Vector3Value71.Parent = Attachment70
  533. Vector3Value71.Value = Vector3.new(2.98023224e-08, 0.379018426, -1.60860594e-07)
  534. Attachment72.Name = "LeftAnkleRigAttachment"
  535. Attachment72.Parent = mas
  536. Attachment72.CFrame = CFrame.new(-1.1920929e-07, -0.574514985, -2.21401592e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  537. Attachment72.Position = Vector3.new(-1.1920929e-07, -0.574514985, -2.21401592e-06)
  538. Vector3Value73.Name = "OriginalPosition"
  539. Vector3Value73.Parent = Attachment72
  540. Vector3Value73.Value = Vector3.new(-1.1920929e-07, -0.547157168, -2.21401592e-06)
  541. Motor6D74.Name = "LeftKnee"
  542. Motor6D74.Parent = mas
  543. Motor6D74.C0 = CFrame.new(8.94069672e-08, -0.421157449, -4.29081496e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  544. Motor6D74.C1 = CFrame.new(2.98023224e-08, 0.397969335, -1.60860594e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  545. Motor6D74.Part0 = nil
  546. Motor6D74.Part1 = nil
  547. Motor6D74.CurrentAngle = 4.7129631752796e-08
  548. Vector3Value75.Name = "OriginalSize"
  549. Vector3Value75.Parent = mas
  550. Vector3Value75.Value = Vector3.new(0.99999994, 1.1930927, 0.999999523)
  551. Attachment76.Name = "LeftHipRigAttachment"
  552. Attachment76.Parent = mas
  553. Attachment76.CFrame = CFrame.new(5.96046448e-08, 0.441821247, -1.63912773e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  554. Attachment76.Position = Vector3.new(5.96046448e-08, 0.441821247, -1.63912773e-07)
  555. Vector3Value77.Name = "OriginalPosition"
  556. Vector3Value77.Parent = Attachment76
  557. Vector3Value77.Value = Vector3.new(5.96046448e-08, 0.420782149, -1.63912773e-07)
  558. Attachment78.Name = "LeftKneeRigAttachment"
  559. Attachment78.Parent = mas
  560. Attachment78.CFrame = CFrame.new(8.94069672e-08, -0.421157449, -4.29081496e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  561. Attachment78.Position = Vector3.new(8.94069672e-08, -0.421157449, -4.29081496e-07)
  562. Vector3Value79.Name = "OriginalPosition"
  563. Vector3Value79.Parent = Attachment78
  564. Vector3Value79.Value = Vector3.new(8.94069672e-08, -0.401102364, -4.29081496e-07)
  565. Motor6D80.Name = "LeftHip"
  566. Motor6D80.Parent = mas
  567. Motor6D80.C0 = CFrame.new(-0.500000119, -0.209970862, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  568. Motor6D80.C1 = CFrame.new(5.96046448e-08, 0.441821247, -1.63912773e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  569. Motor6D80.Part0 = nil
  570. Motor6D80.Part1 = nil
  571. Motor6D80.CurrentAngle = -0.16040569543839
  572. Vector3Value81.Name = "OriginalSize"
  573. Vector3Value81.Parent = mas
  574. Vector3Value81.Value = Vector3.new(1.00000036, 1.21656859, 0.999999881)
  575. Attachment82.Name = "RightAnkleRigAttachment"
  576. Attachment82.Parent = mas
  577. Attachment82.CFrame = CFrame.new(-0, 0.107036531, 7.64477954e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  578. Attachment82.Position = Vector3.new(-0, 0.107036531, 7.64477954e-05)
  579. Vector3Value83.Name = "OriginalPosition"
  580. Vector3Value83.Parent = Attachment82
  581. Vector3Value83.Value = Vector3.new(-0, 0.101939559, 7.64477954e-05)
  582. Motor6D84.Name = "RightAnkle"
  583. Motor6D84.Parent = mas
  584. Motor6D84.C0 = CFrame.new(-0, -0.574514985, 7.62689815e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  585. Motor6D84.C1 = CFrame.new(-0, 0.107036531, 7.64477954e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  586. Motor6D84.Part0 = nil
  587. Motor6D84.Part1 = nil
  588. Motor6D84.CurrentAngle = -0.14008152484894
  589. Vector3Value85.Name = "OriginalSize"
  590. Vector3Value85.Parent = mas
  591. Vector3Value85.Value = Vector3.new(0.99999994, 0.300000191, 1)
  592. Attachment86.Name = "RightKneeRigAttachment"
  593. Attachment86.Parent = mas
  594. Attachment86.CFrame = CFrame.new(-0, 0.39813298, 2.5553607e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  595. Attachment86.Position = Vector3.new(-0, 0.39813298, 2.5553607e-05)
  596. Vector3Value87.Name = "OriginalPosition"
  597. Vector3Value87.Parent = Attachment86
  598. Vector3Value87.Value = Vector3.new(-0, 0.379174292, 2.5553607e-05)
  599. Attachment88.Name = "RightAnkleRigAttachment"
  600. Attachment88.Parent = mas
  601. Attachment88.CFrame = CFrame.new(-0, -0.574514985, 7.62689815e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  602. Attachment88.Position = Vector3.new(-0, -0.574514985, 7.62689815e-05)
  603. Vector3Value89.Name = "OriginalPosition"
  604. Vector3Value89.Parent = Attachment88
  605. Vector3Value89.Value = Vector3.new(-0, -0.547157168, 7.62689815e-05)
  606. Motor6D90.Name = "RightKnee"
  607. Motor6D90.Parent = mas
  608. Motor6D90.C0 = CFrame.new(-0, -0.420993805, -2.18767891e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  609. Motor6D90.C1 = CFrame.new(-0, 0.39813298, 2.5553607e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  610. Motor6D90.Part0 = nil
  611. Motor6D90.Part1 = nil
  612. Motor6D90.CurrentAngle = 1.5819066945255e-08
  613. Vector3Value91.Name = "OriginalSize"
  614. Vector3Value91.Parent = mas
  615. Vector3Value91.Value = Vector3.new(0.99999994, 1.19309282, 1.00000012)
  616. Attachment92.Name = "RightHipRigAttachment"
  617. Attachment92.Parent = mas
  618. Attachment92.CFrame = CFrame.new(-0, 0.441821367, -6.67300628e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  619. Attachment92.Position = Vector3.new(-0, 0.441821367, -6.67300628e-05)
  620. Vector3Value93.Name = "OriginalPosition"
  621. Vector3Value93.Parent = Attachment92
  622. Vector3Value93.Value = Vector3.new(-0, 0.420782268, -6.67300628e-05)
  623. Attachment94.Name = "RightKneeRigAttachment"
  624. Attachment94.Parent = mas
  625. Attachment94.CFrame = CFrame.new(-0, -0.420993805, -2.18767891e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  626. Attachment94.Position = Vector3.new(-0, -0.420993805, -2.18767891e-05)
  627. Vector3Value95.Name = "OriginalPosition"
  628. Vector3Value95.Parent = Attachment94
  629. Vector3Value95.Value = Vector3.new(-0, -0.400946498, -2.18767891e-05)
  630. Motor6D96.Name = "RightHip"
  631. Motor6D96.Parent = mas
  632. Motor6D96.C0 = CFrame.new(0.499999881, -0.209970862, -1.91208565e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  633. Motor6D96.C1 = CFrame.new(-0, 0.441821367, -6.67300628e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  634. Motor6D96.Part0 = nil
  635. Motor6D96.Part1 = nil
  636. Motor6D96.CurrentAngle = 0.14418497681618
  637. Vector3Value97.Name = "OriginalSize"
  638. Vector3Value97.Parent = mas
  639. Vector3Value97.Value = Vector3.new(1.00000048, 1.21656859, 0.99996686)
  640. Attachment98.Name = "RootRigAttachment"
  641. Attachment98.Parent = mas
  642. Attachment98.CFrame = CFrame.new(-1.1920929e-07, -0.209970862, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  643. Attachment98.Position = Vector3.new(-1.1920929e-07, -0.209970862, -0)
  644. Vector3Value99.Name = "OriginalPosition"
  645. Vector3Value99.Parent = Attachment98
  646. Vector3Value99.Value = Vector3.new(-1.1920929e-07, -0.199972257, -0)
  647. Attachment100.Name = "WaistRigAttachment"
  648. Attachment100.Parent = mas
  649. Attachment100.CFrame = CFrame.new(-1.1920929e-07, 0.21002616, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  650. Attachment100.Position = Vector3.new(-1.1920929e-07, 0.21002616, 7.64462551e-20)
  651. Vector3Value101.Name = "OriginalPosition"
  652. Vector3Value101.Parent = Attachment100
  653. Vector3Value101.Value = Vector3.new(-1.1920929e-07, 0.200024918, 7.64462551e-20)
  654. Attachment102.Name = "LeftHipRigAttachment"
  655. Attachment102.Parent = mas
  656. Attachment102.CFrame = CFrame.new(-0.500000119, -0.209970862, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  657. Attachment102.Position = Vector3.new(-0.500000119, -0.209970862, -0)
  658. Vector3Value103.Name = "OriginalPosition"
  659. Vector3Value103.Parent = Attachment102
  660. Vector3Value103.Value = Vector3.new(-0.500000119, -0.199972257, -0)
  661. Attachment104.Name = "RightHipRigAttachment"
  662. Attachment104.Parent = mas
  663. Attachment104.CFrame = CFrame.new(0.499999881, -0.209970862, -1.91208565e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  664. Attachment104.Position = Vector3.new(0.499999881, -0.209970862, -1.91208565e-05)
  665. Vector3Value105.Name = "OriginalPosition"
  666. Vector3Value105.Parent = Attachment104
  667. Vector3Value105.Value = Vector3.new(0.499999881, -0.199972257, -1.91208565e-05)
  668. Attachment106.Name = "WaistCenterAttachment"
  669. Attachment106.Parent = mas
  670. Attachment106.CFrame = CFrame.new(-4.2200088e-07, -0.209970862, -1.65436123e-24, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  671. Attachment106.Position = Vector3.new(-4.2200088e-07, -0.209970862, -1.65436123e-24)
  672. Vector3Value107.Name = "OriginalPosition"
  673. Vector3Value107.Parent = Attachment106
  674. Vector3Value107.Value = Vector3.new(-4.2200088e-07, -0.199972257, -1.65436123e-24)
  675. Attachment108.Name = "WaistFrontAttachment"
  676. Attachment108.Parent = mas
  677. Attachment108.CFrame = CFrame.new(-1.32219867e-07, -0.209970862, -0.50000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  678. Attachment108.Position = Vector3.new(-1.32219867e-07, -0.209970862, -0.50000006)
  679. Vector3Value109.Name = "OriginalPosition"
  680. Vector3Value109.Parent = Attachment108
  681. Vector3Value109.Value = Vector3.new(-1.32219867e-07, -0.199972257, -0.50000006)
  682. Attachment110.Name = "WaistBackAttachment"
  683. Attachment110.Parent = mas
  684. Attachment110.CFrame = CFrame.new(-1.46413214e-07, -0.209970862, 0.50000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  685. Attachment110.Position = Vector3.new(-1.46413214e-07, -0.209970862, 0.50000006)
  686. Vector3Value111.Name = "OriginalPosition"
  687. Vector3Value111.Parent = Attachment110
  688. Vector3Value111.Value = Vector3.new(-1.46413214e-07, -0.199972257, 0.50000006)
  689. Motor6D112.Name = "Root"
  690. Motor6D112.Parent = mas
  691. Motor6D112.C0 = CFrame.new(0, -0.367499977, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  692. Motor6D112.C1 = CFrame.new(-1.1920929e-07, -0.209970862, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  693. Motor6D112.Part0 = Part2
  694. Motor6D112.Part1 = nil
  695. Vector3Value113.Name = "OriginalSize"
  696. Vector3Value113.Parent = mas
  697. Vector3Value113.Value = Vector3.new(1.99999976, 0.400055438, 1.00000012)
  698. Humanoid114.Parent = Model1
  699. Humanoid114.Torso = Part2
  700. Humanoid114.TargetPoint = Vector3.new(1.96067142, 0, -14.7778931)
  701. NumberValue115.Name = "BodyTypeScale"
  702. NumberValue115.Parent = Humanoid114
  703. NumberValue116.Name = "BodyProportionScale"
  704. NumberValue116.Parent = Humanoid114
  705. NumberValue117.Name = "BodyWidthScale"
  706. NumberValue117.Parent = Humanoid114
  707. NumberValue117.Value = 1
  708. NumberValue118.Name = "BodyHeightScale"
  709. NumberValue118.Parent = Humanoid114
  710. NumberValue118.Value = 1.0499999523163
  711. NumberValue119.Name = "BodyDepthScale"
  712. NumberValue119.Parent = Humanoid114
  713. NumberValue119.Value = 1
  714. NumberValue120.Name = "HeadScale"
  715. NumberValue120.Parent = Humanoid114
  716. NumberValue120.Value = 1
  717. Part121.Name = "Head"
  718. Part121.Parent = Model1
  719. Part121.BrickColor = BrickColor.new("Bright yellow")
  720. Part121.Rotation = Vector3.new(2.24000001, -9.47999954, 0.370000005)
  721. Part121.Size = Vector3.new(2, 1, 1)
  722. Part121.CFrame = CFrame.new(0.719004571, 4.60720778, 10.371438, 0.986319363, -0.00635880604, -0.164722592, 1.51921995e-08, 0.999255717, -0.038574338, 0.164845273, 0.0380466133, 0.985585272)
  723. Part121.BottomSurface = Enum.SurfaceType.Smooth
  724. Part121.TopSurface = Enum.SurfaceType.Smooth
  725. Part121.Color = Color3.new(0.960784, 0.803922, 0.188235)
  726. Part121.Position = Vector3.new(0.719004571, 4.60720778, 10.371438)
  727. Part121.Orientation = Vector3.new(2.21000004, -9.48999977, 0)
  728. Part121.Color = Color3.new(0.960784, 0.803922, 0.188235)
  729. SpecialMesh122.Parent = Part121
  730. SpecialMesh122.Scale = Vector3.new(1.25, 1.25, 1.25)
  731. SpecialMesh122.Scale = Vector3.new(1.25, 1.25, 1.25)
  732. Vector3Value123.Name = "OriginalSize"
  733. Vector3Value123.Parent = SpecialMesh122
  734. Vector3Value123.Value = Vector3.new(1.25, 1.25, 1.25)
  735. Attachment124.Name = "FaceCenterAttachment"
  736. Attachment124.Parent = Part121
  737. Attachment124.Rotation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  738. Attachment124.CFrame = CFrame.new(3.93568822e-09, 0, -0.000272244215, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
  739. Attachment124.Position = Vector3.new(3.93568822e-09, 0, -0.000272244215)
  740. Attachment124.Axis = Vector3.new(1, -7.87137555e-09, -3.02998127e-15)
  741. Attachment124.Orientation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  742. Vector3Value125.Name = "OriginalPosition"
  743. Vector3Value125.Parent = Attachment124
  744. Vector3Value125.Value = Vector3.new(3.93568822e-09, 0, -0.000272244215)
  745. Attachment126.Name = "FaceFrontAttachment"
  746. Attachment126.Parent = Part121
  747. Attachment126.Rotation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  748. Attachment126.CFrame = CFrame.new(3.93568866e-09, 0, -0.600272298, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
  749. Attachment126.Position = Vector3.new(3.93568866e-09, 0, -0.600272298)
  750. Attachment126.Axis = Vector3.new(1, -7.87137555e-09, -3.02998127e-15)
  751. Attachment126.Orientation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  752. Vector3Value127.Name = "OriginalPosition"
  753. Vector3Value127.Parent = Attachment126
  754. Vector3Value127.Value = Vector3.new(3.93568866e-09, 0, -0.600272298)
  755. Attachment128.Name = "HairAttachment"
  756. Attachment128.Parent = Part121
  757. Attachment128.Rotation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  758. Attachment128.CFrame = CFrame.new(8.65851391e-09, 0.599999905, -0.000272244215, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
  759. Attachment128.Position = Vector3.new(8.65851391e-09, 0.599999905, -0.000272244215)
  760. Attachment128.Axis = Vector3.new(1, -7.87137555e-09, -3.02998127e-15)
  761. Attachment128.Orientation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  762. Vector3Value129.Name = "OriginalPosition"
  763. Vector3Value129.Parent = Attachment128
  764. Vector3Value129.Value = Vector3.new(8.65851391e-09, 0.599999905, -0.000272244215)
  765. Attachment130.Name = "HatAttachment"
  766. Attachment130.Parent = Part121
  767. Attachment130.Rotation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  768. Attachment130.CFrame = CFrame.new(8.65851391e-09, 0.599999905, -0.000272244215, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
  769. Attachment130.Position = Vector3.new(8.65851391e-09, 0.599999905, -0.000272244215)
  770. Attachment130.Axis = Vector3.new(1, -7.87137555e-09, -3.02998127e-15)
  771. Attachment130.Orientation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  772. Vector3Value131.Name = "OriginalPosition"
  773. Vector3Value131.Parent = Attachment130
  774. Vector3Value131.Value = Vector3.new(8.65851391e-09, 0.599999905, -0.000272244215)
  775. Attachment132.Name = "NeckRigAttachment"
  776. Attachment132.Parent = Part121
  777. Attachment132.CFrame = CFrame.new(-0, -0.500000119, -0.000272244215, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  778. Attachment132.Position = Vector3.new(-0, -0.500000119, -0.000272244215)
  779. Vector3Value133.Name = "OriginalPosition"
  780. Vector3Value133.Parent = Attachment132
  781. Vector3Value133.Value = Vector3.new(-0, -0.500000119, -0.000272244215)
  782. Decal134.Name = "face"
  783. Decal134.Parent = Part121
  784. Decal134.Texture = "rbxasset://textures/face.png"
  785. Motor6D135.Name = "Neck"
  786. Motor6D135.Parent = Part121
  787. Motor6D135.C0 = CFrame.new(-5.96046448e-08, 0.840017915, 1.1920929e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  788. Motor6D135.C1 = CFrame.new(-0, -0.500000119, -0.000272244215, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  789. Motor6D135.Part0 = nil
  790. Motor6D135.Part1 = Part121
  791. Motor6D135.CurrentAngle = 0.010454657487571
  792. Vector3Value136.Name = "OriginalSize"
  793. Vector3Value136.Parent = Part121
  794. Vector3Value136.Value = Vector3.new(2, 1, 1)
  795. Sound137.Name = "GettingUp"
  796. Sound137.Parent = Part121
  797. Sound137.Archivable = false
  798. Sound137.SoundId = "rbxasset://sounds/action_get_up.mp3"
  799. Sound137.Volume = 0.64999997615814
  800. RemoteEvent138.Name = "CharacterSoundEvent"
  801. RemoteEvent138.Parent = Sound137
  802. Sound139.Name = "Died"
  803. Sound139.Parent = Part121
  804. Sound139.Archivable = false
  805. Sound139.SoundId = "rbxasset://sounds/uuhhh.mp3"
  806. Sound139.Volume = 0.64999997615814
  807. RemoteEvent140.Name = "CharacterSoundEvent"
  808. RemoteEvent140.Parent = Sound139
  809. Sound141.Name = "FreeFalling"
  810. Sound141.Parent = Part121
  811. Sound141.Archivable = false
  812. Sound141.SoundId = "rbxasset://sounds/action_falling.mp3"
  813. Sound141.TimePosition = 0.065678287949424
  814. Sound141.Volume = 0.17765899002552
  815. Sound141.Looped = true
  816. RemoteEvent142.Name = "CharacterSoundEvent"
  817. RemoteEvent142.Parent = Sound141
  818. Sound143.Name = "Jumping"
  819. Sound143.Parent = Part121
  820. Sound143.Archivable = false
  821. Sound143.SoundId = "rbxasset://sounds/action_jump.mp3"
  822. Sound143.Volume = 0.64999997615814
  823. RemoteEvent144.Name = "CharacterSoundEvent"
  824. RemoteEvent144.Parent = Sound143
  825. Sound145.Name = "Landing"
  826. Sound145.Parent = Part121
  827. Sound145.Archivable = false
  828. Sound145.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  829. Sound145.Volume = 1
  830. RemoteEvent146.Name = "CharacterSoundEvent"
  831. RemoteEvent146.Parent = Sound145
  832. Sound147.Name = "Splash"
  833. Sound147.Parent = Part121
  834. Sound147.Archivable = false
  835. Sound147.SoundId = "rbxasset://sounds/impact_water.mp3"
  836. Sound147.Volume = 0.64999997615814
  837. RemoteEvent148.Name = "CharacterSoundEvent"
  838. RemoteEvent148.Parent = Sound147
  839. Sound149.Name = "Running"
  840. Sound149.Parent = Part121
  841. Sound149.Archivable = false
  842. Sound149.Pitch = 1.8500000238419
  843. Sound149.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  844. Sound149.TimePosition = 2.369290005993
  845. Sound149.Volume = 0.64999997615814
  846. Sound149.Looped = true
  847. RemoteEvent150.Name = "CharacterSoundEvent"
  848. RemoteEvent150.Parent = Sound149
  849. Sound151.Name = "Swimming"
  850. Sound151.Parent = Part121
  851. Sound151.Archivable = false
  852. Sound151.Pitch = 1.6000000238419
  853. Sound151.SoundId = "rbxasset://sounds/action_swim.mp3"
  854. Sound151.Volume = 0.64999997615814
  855. Sound151.Looped = true
  856. RemoteEvent152.Name = "CharacterSoundEvent"
  857. RemoteEvent152.Parent = Sound151
  858. Sound153.Name = "Climbing"
  859. Sound153.Parent = Part121
  860. Sound153.Archivable = false
  861. Sound153.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  862. Sound153.Volume = 0.64999997615814
  863. Sound153.Looped = true
  864. RemoteEvent154.Name = "CharacterSoundEvent"
  865. RemoteEvent154.Parent = Sound153
  866. Script155.Name = "Sound"
  867. Script155.Parent = Model1
  868. table.insert(cors,sandbox(Script155,function()
  869. --[[
  870. Author: @spotco
  871. This script creates sounds which are placed under the character head.
  872. These sounds are used by the "LocalSound" script.
  873.  
  874. To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
  875. The default Sound script loaded for every character will then be replaced with your copy of the script.
  876. ]]--
  877. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  878. local Players = game:GetService("Players")
  879.  
  880. local SOUND_EVENT_FOLDER_NAME = "DefaultSoundEvents"
  881. local DEFAULT_SERVER_SOUND_EVENT_NAME = "DefaultServerSoundEvent"
  882.  
  883. local SoundEventFolder = ReplicatedStorage:FindFirstChild(SOUND_EVENT_FOLDER_NAME)
  884. local DefaultServerSoundEvent = nil
  885.  
  886. local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
  887. if useSoundDispatcher then
  888. if not SoundEventFolder then
  889. SoundEventFolder = Instance.new("Folder")
  890. SoundEventFolder.Name = SOUND_EVENT_FOLDER_NAME
  891. SoundEventFolder.Archivable = false
  892. SoundEventFolder.Parent = ReplicatedStorage
  893. end
  894.  
  895. DefaultServerSoundEvent = SoundEventFolder:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
  896. else
  897. DefaultServerSoundEvent = ReplicatedStorage:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
  898. end
  899.  
  900. if not DefaultServerSoundEvent then
  901. if useSoundDispatcher then
  902. DefaultServerSoundEvent = Instance.new("RemoteEvent", SoundEventFolder)
  903. else
  904. DefaultServerSoundEvent = Instance.new("RemoteEvent", ReplicatedStorage)
  905. end
  906.  
  907. DefaultServerSoundEvent.Name = DEFAULT_SERVER_SOUND_EVENT_NAME
  908. DefaultServerSoundEvent.OnServerEvent:Connect(function() end)
  909. end
  910.  
  911. local function CreateNewSound(name, id, looped, pitch, parent)
  912. local sound = Instance.new("Sound")
  913. sound.SoundId = id
  914. sound.Name = name
  915. sound.archivable = false
  916. sound.Pitch = pitch
  917. sound.Looped = looped
  918. sound.MinDistance = 5
  919. sound.MaxDistance = 150
  920. sound.Volume = 0.65
  921. sound.Parent = parent
  922.  
  923. if DefaultServerSoundEvent then
  924. local CharacterSoundEvent = Instance.new("RemoteEvent", sound)
  925. CharacterSoundEvent.Name = "CharacterSoundEvent"
  926. CharacterSoundEvent.OnServerEvent:Connect(function(player, playing, resetPosition)
  927. if type(playing) ~= "boolean" then
  928. return
  929. end
  930. if type(resetPosition) ~= "boolean" then
  931. return
  932. end
  933.  
  934. if player.Character ~= script.Parent then
  935. return
  936. end
  937. for _, p in pairs(Players:GetPlayers()) do
  938. if p ~= player then
  939. -- Connect to the dispatcher to check if the player has loaded.
  940. if useSoundDispatcher then
  941. SoundEventFolder:FindFirstChild("SoundDispatcher"):Fire(p, sound, playing, resetPosition)
  942. else
  943. DefaultServerSoundEvent:FireClient(p, sound, playing, resetPosition)
  944. end
  945. end
  946. end
  947. end)
  948. end
  949. return sound
  950. end
  951.  
  952. local head = script.Parent:FindFirstChild("Head")
  953. if not head then
  954. error("Sound script parent has no child Head.")
  955. return
  956. end
  957.  
  958. CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
  959. CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
  960. CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
  961. CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
  962. CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
  963. CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
  964. CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
  965. CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
  966. CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
  967. end))
  968. LocalScript156.Name = "LocalSound"
  969. LocalScript156.Parent = Script155
  970. table.insert(cors,sandbox(LocalScript156,function()
  971. --[[
  972. Author: @spotco
  973. This script runs locally for the player of the given humanoid.
  974. This script triggers humanoid sound play/pause actions locally.
  975.  
  976. The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
  977. immediately for the player and is replicated to all other players.
  978.  
  979. This script is optimized to reduce network traffic through minimizing the amount of property replication.
  980. ]]--
  981.  
  982. --All sounds are referenced by this ID
  983. local SFX = {
  984. Died = 0;
  985. Running = 1;
  986. Swimming = 2;
  987. Climbing = 3,
  988. Jumping = 4;
  989. GettingUp = 5;
  990. FreeFalling = 6;
  991. FallingDown = 7;
  992. Landing = 8;
  993. Splash = 9;
  994. }
  995.  
  996. local useUpdatedLocalSoundFlag = UserSettings():IsUserFeatureEnabled("UserFixCharacterSoundIssues")
  997.  
  998. local Humanoid = nil
  999. local Head = nil
  1000. --SFX ID to Sound object
  1001. local Sounds = {}
  1002. local SoundService = game:GetService("SoundService")
  1003. local soundEventFolderName = "DefaultSoundEvents"
  1004. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  1005. local AddCharacterLoadedEvent = nil
  1006. local RemoveCharacterEvent = nil
  1007. local soundEventFolder = ReplicatedStorage:FindFirstChild(soundEventFolderName)
  1008. local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
  1009.  
  1010. if useSoundDispatcher then
  1011. if not soundEventFolder then
  1012. soundEventFolder = Instance.new("Folder", ReplicatedStorage)
  1013. soundEventFolder.Name = soundEventFolderName
  1014. soundEventFolder.Archivable = false
  1015. end
  1016.  
  1017. -- Load the RemoveCharacterEvent
  1018. RemoveCharacterEvent = soundEventFolder:FindFirstChild("RemoveCharacterEvent")
  1019. if RemoveCharacterEvent == nil then
  1020. RemoveCharacterEvent = Instance.new("RemoteEvent", soundEventFolder)
  1021. RemoveCharacterEvent.Name = "RemoveCharacterEvent"
  1022. end
  1023.  
  1024. AddCharacterLoadedEvent = soundEventFolder:FindFirstChild("AddCharacterLoadedEvent")
  1025. if AddCharacterLoadedEvent == nil then
  1026. AddCharacterLoadedEvent = Instance.new("RemoteEvent", soundEventFolder)
  1027. AddCharacterLoadedEvent.Name = "AddCharacterLoadedEvent"
  1028. end
  1029.  
  1030. -- Notify the server a new character has been loaded
  1031. AddCharacterLoadedEvent:FireServer()
  1032.  
  1033. -- Notify the sound dispatcher this character has left.
  1034. game.Players.LocalPlayer.CharacterRemoving:connect(function(character)
  1035. RemoveCharacterEvent:FireServer(game.Players.LocalPlayer)
  1036. end)
  1037. end
  1038.  
  1039. do
  1040. local Figure = script.Parent.Parent
  1041. Head = Figure:WaitForChild("Head")
  1042. while not Humanoid do
  1043. for _,NewHumanoid in pairs(Figure:GetChildren()) do
  1044. if NewHumanoid:IsA("Humanoid") then
  1045. Humanoid = NewHumanoid
  1046. break
  1047. end
  1048. end
  1049. if Humanoid then break end
  1050. Figure.ChildAdded:wait()
  1051. end
  1052. Sounds[SFX.Died] = Head:WaitForChild("Died")
  1053. Sounds[SFX.Running] = Head:WaitForChild("Running")
  1054. Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
  1055. Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
  1056. Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
  1057. Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
  1058. Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
  1059. Sounds[SFX.Landing] = Head:WaitForChild("Landing")
  1060. Sounds[SFX.Splash] = Head:WaitForChild("Splash")
  1061.  
  1062. local DefaultServerSoundEvent = nil
  1063. if useSoundDispatcher then
  1064. DefaultServerSoundEvent = soundEventFolder:FindFirstChild("DefaultServerSoundEvent")
  1065. else
  1066. DefaultServerSoundEvent = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultServerSoundEvent")
  1067. end
  1068.  
  1069. if DefaultServerSoundEvent then
  1070. DefaultServerSoundEvent.OnClientEvent:connect(function(sound, playing, resetPosition)
  1071. if resetPosition and sound.TimePosition ~= 0 then
  1072. sound.TimePosition = 0
  1073. end
  1074. if sound.IsPlaying ~= playing then
  1075. sound.Playing = playing
  1076. end
  1077. end)
  1078. end
  1079. end
  1080.  
  1081. local IsSoundFilteringEnabled = function()
  1082. return game.Workspace.FilteringEnabled and SoundService.RespectFilteringEnabled
  1083. end
  1084.  
  1085. local Util
  1086. Util = {
  1087.  
  1088. --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
  1089. YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
  1090. --(y - y1)/(x - x1) = m
  1091. local m = (pt1y - pt2y) / (pt1x - pt2x)
  1092. --float b = pt1.y - m * pt1.x;
  1093. local b = (pt1y - m * pt1x)
  1094. return m * x + b
  1095. end;
  1096.  
  1097. --Clamps the value of "val" between the "min" and "max"
  1098. Clamp = function(val,min,max)
  1099. return math.min(max,math.max(min,val))
  1100. end;
  1101.  
  1102. --Gets the horizontal (x,z) velocity magnitude of the given part
  1103. HorizontalSpeed = function(Head)
  1104. local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
  1105. return hVel.magnitude
  1106. end;
  1107.  
  1108. --Gets the vertical (y) velocity magnitude of the given part
  1109. VerticalSpeed = function(Head)
  1110. return math.abs(Head.Velocity.Y)
  1111. end;
  1112.  
  1113. --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
  1114. --If these properties are enabled, use them.
  1115. Play = function(sound)
  1116. if IsSoundFilteringEnabled() then
  1117. sound.CharacterSoundEvent:FireServer(true, true)
  1118. end
  1119. if sound.TimePosition ~= 0 then
  1120. sound.TimePosition = 0
  1121. end
  1122. if not sound.IsPlaying then
  1123. sound.Playing = true
  1124. end
  1125. end;
  1126.  
  1127. Pause = function(sound)
  1128. if IsSoundFilteringEnabled() then
  1129. sound.CharacterSoundEvent:FireServer(false, false)
  1130. end
  1131. if sound.IsPlaying then
  1132. sound.Playing = false
  1133. end
  1134. end;
  1135.  
  1136. Resume = function(sound)
  1137. if IsSoundFilteringEnabled() then
  1138. sound.CharacterSoundEvent:FireServer(true, false)
  1139. end
  1140. if not sound.IsPlaying then
  1141. sound.Playing = true
  1142. end
  1143. end;
  1144.  
  1145. Stop = function(sound)
  1146. if IsSoundFilteringEnabled() then
  1147. sound.CharacterSoundEvent:FireServer(false, true)
  1148. end
  1149. if sound.IsPlaying then
  1150. sound.Playing = false
  1151. end
  1152. if sound.TimePosition ~= 0 then
  1153. sound.TimePosition = 0
  1154. end
  1155. end;
  1156. }
  1157.  
  1158. do
  1159. -- List of all active Looped sounds
  1160. local playingLoopedSounds = {}
  1161.  
  1162. -- Last seen Enum.HumanoidStateType
  1163. local activeState = nil
  1164.  
  1165. local fallSpeed = 0
  1166.  
  1167. -- Verify and set that "sound" is in "playingLoopedSounds".
  1168. function setSoundInPlayingLoopedSounds(sound)
  1169. for i=1, #playingLoopedSounds do
  1170. if playingLoopedSounds[i] == sound then
  1171. return
  1172. end
  1173. end
  1174. table.insert(playingLoopedSounds,sound)
  1175. end
  1176.  
  1177. -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
  1178. function stopPlayingLoopedSoundsExcept(except)
  1179. for i=#playingLoopedSounds,1,-1 do
  1180. if playingLoopedSounds[i] ~= except then
  1181. Util.Pause(playingLoopedSounds[i])
  1182. table.remove(playingLoopedSounds,i)
  1183. end
  1184. end
  1185. end
  1186.  
  1187. -- Table of Enum.HumanoidStateType to handling function
  1188. local stateUpdateHandler = {
  1189. [Enum.HumanoidStateType.Dead] = function()
  1190. stopPlayingLoopedSoundsExcept()
  1191. local sound = Sounds[SFX.Died]
  1192. Util.Play(sound)
  1193. end;
  1194.  
  1195. [Enum.HumanoidStateType.RunningNoPhysics] = function(speed)
  1196. stateUpdated(Enum.HumanoidStateType.Running, speed)
  1197. end;
  1198.  
  1199. [Enum.HumanoidStateType.Running] = function(speed)
  1200. local sound = Sounds[SFX.Running]
  1201. stopPlayingLoopedSoundsExcept(sound)
  1202.  
  1203. if(useUpdatedLocalSoundFlag and activeState == Enum.HumanoidStateType.Freefall and fallSpeed > 0.1) then
  1204. -- Play a landing sound if the character dropped from a large distance
  1205. local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
  1206. local freeFallSound = Sounds[SFX.FreeFalling]
  1207. freeFallSound.Volume = vol
  1208. Util.Play(freeFallSound)
  1209. fallSpeed = 0
  1210. end
  1211. if useUpdatedLocalSoundFlag then
  1212. if speed ~= nil and speed > 0.5 then
  1213. Util.Resume(sound)
  1214. setSoundInPlayingLoopedSounds(sound)
  1215. elseif speed ~= nil then
  1216. stopPlayingLoopedSoundsExcept()
  1217. end
  1218. else
  1219. if Util.HorizontalSpeed(Head) > 0.5 then
  1220. Util.Resume(sound)
  1221. setSoundInPlayingLoopedSounds(sound)
  1222. else
  1223. stopPlayingLoopedSoundsExcept()
  1224. end
  1225. end
  1226. end;
  1227.  
  1228. [Enum.HumanoidStateType.Swimming] = function(speed)
  1229. local threshold
  1230. if useUpdatedLocalSoundFlag then threshold = speed else threshold = Util.VerticalSpeed(Head) end
  1231. if activeState ~= Enum.HumanoidStateType.Swimming and threshold > 0.1 then
  1232. local splashSound = Sounds[SFX.Splash]
  1233. splashSound.Volume = Util.Clamp(
  1234. Util.YForLineGivenXAndTwoPts(
  1235. Util.VerticalSpeed(Head),
  1236. 100, 0.28,
  1237. 350, 1),
  1238. 0,1)
  1239. Util.Play(splashSound)
  1240. end
  1241.  
  1242. do
  1243. local sound = Sounds[SFX.Swimming]
  1244. stopPlayingLoopedSoundsExcept(sound)
  1245. Util.Resume(sound)
  1246. setSoundInPlayingLoopedSounds(sound)
  1247. end
  1248. end;
  1249.  
  1250. [Enum.HumanoidStateType.Climbing] = function(speed)
  1251. local sound = Sounds[SFX.Climbing]
  1252. if useUpdatedLocalSoundFlag then
  1253. if speed ~= nil and math.abs(speed) > 0.1 then
  1254. Util.Resume(sound)
  1255. stopPlayingLoopedSoundsExcept(sound)
  1256. else
  1257. Util.Pause(sound)
  1258. stopPlayingLoopedSoundsExcept(sound)
  1259. end
  1260. else
  1261. if Util.VerticalSpeed(Head) > 0.1 then
  1262. Util.Resume(sound)
  1263. stopPlayingLoopedSoundsExcept(sound)
  1264. else
  1265. stopPlayingLoopedSoundsExcept()
  1266. end
  1267. end
  1268.  
  1269. setSoundInPlayingLoopedSounds(sound)
  1270. end;
  1271.  
  1272. [Enum.HumanoidStateType.Jumping] = function()
  1273. if activeState == Enum.HumanoidStateType.Jumping then
  1274. return
  1275. end
  1276. stopPlayingLoopedSoundsExcept()
  1277. local sound = Sounds[SFX.Jumping]
  1278. Util.Play(sound)
  1279. end;
  1280.  
  1281. [Enum.HumanoidStateType.GettingUp] = function()
  1282. stopPlayingLoopedSoundsExcept()
  1283. local sound = Sounds[SFX.GettingUp]
  1284. Util.Play(sound)
  1285. end;
  1286.  
  1287. [Enum.HumanoidStateType.Freefall] = function()
  1288. if activeState == Enum.HumanoidStateType.Freefall then
  1289. return
  1290. end
  1291. local sound = Sounds[SFX.FreeFalling]
  1292. sound.Volume = 0
  1293. stopPlayingLoopedSoundsExcept()
  1294.  
  1295. fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.y))
  1296. end;
  1297.  
  1298. [Enum.HumanoidStateType.FallingDown] = function()
  1299. stopPlayingLoopedSoundsExcept()
  1300. end;
  1301.  
  1302. [Enum.HumanoidStateType.Landed] = function()
  1303. stopPlayingLoopedSoundsExcept()
  1304. if Util.VerticalSpeed(Head) > 75 then
  1305. local landingSound = Sounds[SFX.Landing]
  1306. landingSound.Volume = Util.Clamp(
  1307. Util.YForLineGivenXAndTwoPts(
  1308. Util.VerticalSpeed(Head),
  1309. 50, 0,
  1310. 100, 1),
  1311. 0,1)
  1312. Util.Play(landingSound)
  1313. end
  1314. end;
  1315.  
  1316. [Enum.HumanoidStateType.Seated] = function()
  1317. stopPlayingLoopedSoundsExcept()
  1318. end;
  1319. }
  1320.  
  1321.  
  1322.  
  1323. -- Handle state event fired or OnChange fired
  1324. function stateUpdated(state, speed)
  1325. if stateUpdateHandler[state] ~= nil then
  1326. if useUpdatedLocalSoundFlag and (state == Enum.HumanoidStateType.Running
  1327. or state == Enum.HumanoidStateType.Climbing
  1328. or state == Enum.HumanoidStateType.Swimming
  1329. or state == Enum.HumanoidStateType.RunningNoPhysics) then
  1330. stateUpdateHandler[state](speed)
  1331. else
  1332. stateUpdateHandler[state]()
  1333. end
  1334. end
  1335. activeState = state
  1336. end
  1337.  
  1338. Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
  1339. Humanoid.Running:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Running, speed) end)
  1340. Humanoid.Swimming:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Swimming, speed) end)
  1341. Humanoid.Climbing:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Climbing, speed) end)
  1342. Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
  1343. Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
  1344. Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
  1345. Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
  1346.  
  1347.  
  1348.  
  1349. -- required for proper handling of Landed event
  1350.  
  1351. Humanoid.StateChanged:connect(function(old, new)
  1352. stateUpdated(new)
  1353. end)
  1354.  
  1355.  
  1356.  
  1357. function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
  1358. local stepScale = stepDeltaSeconds / tickSpeedSeconds
  1359. do
  1360. local sound = Sounds[SFX.FreeFalling]
  1361. if activeState == Enum.HumanoidStateType.Freefall then
  1362. if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
  1363. Util.Resume(sound)
  1364.  
  1365. --Volume takes 1.1 seconds to go from volume 0 to 1
  1366. local ANIMATION_LENGTH_SECONDS = 1.1
  1367.  
  1368. local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
  1369. sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
  1370. else
  1371. sound.Volume = 0
  1372. end
  1373. else
  1374. Util.Pause(sound)
  1375. end
  1376. end
  1377.  
  1378. do
  1379. local sound = Sounds[SFX.Running]
  1380. if activeState == Enum.HumanoidStateType.Running then
  1381. if Util.HorizontalSpeed(Head) < 0.5 then
  1382. Util.Pause(sound)
  1383. end
  1384. end
  1385. end
  1386. end
  1387.  
  1388.  
  1389. local lastTick = tick()
  1390. local TICK_SPEED_SECONDS = 0.25
  1391. while true do
  1392. onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
  1393. lastTick = tick()
  1394. wait(TICK_SPEED_SECONDS)
  1395. end
  1396.  
  1397. end
  1398.  
  1399. end))
  1400. Script157.Name = "Health"
  1401. Script157.Parent = Model1
  1402. table.insert(cors,sandbox(Script157,function()
  1403. -- Gradually regenerates the Humanoid's Health over time.
  1404.  
  1405. local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
  1406. local REGEN_STEP = 1 -- Wait this long between each regeneration step.
  1407.  
  1408. --------------------------------------------------------------------------------
  1409.  
  1410. local Character = script.Parent
  1411. local Humanoid = Character:WaitForChild'Humanoid'
  1412.  
  1413. --------------------------------------------------------------------------------
  1414.  
  1415. while true do
  1416. while Humanoid.Health < Humanoid.MaxHealth do
  1417. local dt = wait(REGEN_STEP)
  1418. local dh = dt*REGEN_RATE*Humanoid.MaxHealth
  1419. Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
  1420. end
  1421. Humanoid.HealthChanged:Wait()
  1422. end
  1423. end))
  1424. LocalScript158.Name = "Animate"
  1425. LocalScript158.Parent = Model1
  1426. table.insert(cors,sandbox(LocalScript158,function()
  1427. local Character = script.Parent
  1428. local Humanoid = Character:WaitForChild("Humanoid")
  1429. local pose = "Standing"
  1430.  
  1431. local userNoUpdateOnLoopSuccess, userNoUpdateOnLoopValue = pcall(function() return UserSettings():IsUserFeatureEnabled("UserNoUpdateOnLoop") end)
  1432. local userNoUpdateOnLoop = userNoUpdateOnLoopSuccess and userNoUpdateOnLoopValue
  1433.  
  1434. local currentAnim = ""
  1435. local currentAnimInstance = nil
  1436. local currentAnimTrack = nil
  1437. local currentAnimKeyframeHandler = nil
  1438. local currentAnimSpeed = 1.0
  1439.  
  1440. local runAnimTrack = nil
  1441. local runAnimKeyframeHandler = nil
  1442.  
  1443. local animTable = {}
  1444. local animNames = {
  1445. idle = {
  1446. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  1447. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  1448. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  1449. },
  1450. walk = {
  1451. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  1452. },
  1453. run = {
  1454. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  1455. },
  1456. swim = {
  1457. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  1458. },
  1459. swimidle = {
  1460. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  1461. },
  1462. jump = {
  1463. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  1464. },
  1465. fall = {
  1466. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  1467. },
  1468. climb = {
  1469. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  1470. },
  1471. sit = {
  1472. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  1473. },
  1474. toolnone = {
  1475. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1476. },
  1477. toolslash = {
  1478. { id = "http://www.roblox.com/asset/?id=522635514", weight = 10 }
  1479. },
  1480. toollunge = {
  1481. { id = "http://www.roblox.com/asset/?id=522638767", weight = 10 }
  1482. },
  1483. wave = {
  1484. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  1485. },
  1486. point = {
  1487. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  1488. },
  1489. dance = {
  1490. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  1491. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  1492. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  1493. },
  1494. dance2 = {
  1495. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  1496. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  1497. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  1498. },
  1499. dance3 = {
  1500. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  1501. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  1502. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  1503. },
  1504. laugh = {
  1505. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  1506. },
  1507. cheer = {
  1508. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  1509. },
  1510. }
  1511.  
  1512. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1513. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1514.  
  1515. local PreloadAnimsUserFlag = false
  1516. local successPreloadAnim, msgPreloadAnim = pcall(function()
  1517. PreloadAnimsUserFlag = UserSettings():IsUserFeatureEnabled("UserPreloadAnimations")
  1518. end)
  1519. if not successPreloadAnim then
  1520. PreloadAnimsUserFlag = false
  1521. end
  1522.  
  1523. math.randomseed(tick())
  1524.  
  1525. function configureAnimationSet(name, fileList)
  1526. if (animTable[name] ~= nil) then
  1527. for _, connection in pairs(animTable[name].connections) do
  1528. connection:disconnect()
  1529. end
  1530. end
  1531. animTable[name] = {}
  1532. animTable[name].count = 0
  1533. animTable[name].totalWeight = 0
  1534. animTable[name].connections = {}
  1535.  
  1536. local allowCustomAnimations = true
  1537. local AllowDisableCustomAnimsUserFlag = false
  1538.  
  1539. local success, msg = pcall(function()
  1540. AllowDisableCustomAnimsUserFlag = UserSettings():IsUserFeatureEnabled("UserAllowDisableCustomAnims2")
  1541. end)
  1542.  
  1543. if (AllowDisableCustomAnimsUserFlag) then
  1544. local success, msg = pcall(function() allowCustomAnimations = game:GetService("StarterPlayer").AllowCustomAnimations end)
  1545. if not success then
  1546. allowCustomAnimations = true
  1547. end
  1548. end
  1549.  
  1550. -- check for config values
  1551. local config = script:FindFirstChild(name)
  1552. if (allowCustomAnimations and config ~= nil) then
  1553. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1554. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1555. local idx = 1
  1556. for _, childPart in pairs(config:GetChildren()) do
  1557. if (childPart:IsA("Animation")) then
  1558. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1559. animTable[name][idx] = {}
  1560. animTable[name][idx].anim = childPart
  1561. local weightObject = childPart:FindFirstChild("Weight")
  1562. if (weightObject == nil) then
  1563. animTable[name][idx].weight = 1
  1564. else
  1565. animTable[name][idx].weight = weightObject.Value
  1566. end
  1567. animTable[name].count = animTable[name].count + 1
  1568. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1569. idx = idx + 1
  1570. end
  1571. end
  1572. end
  1573.  
  1574. -- fallback to defaults
  1575. if (animTable[name].count <= 0) then
  1576. for idx, anim in pairs(fileList) do
  1577. animTable[name][idx] = {}
  1578. animTable[name][idx].anim = Instance.new("Animation")
  1579. animTable[name][idx].anim.Name = name
  1580. animTable[name][idx].anim.AnimationId = anim.id
  1581. animTable[name][idx].weight = anim.weight
  1582. animTable[name].count = animTable[name].count + 1
  1583. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1584. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1585. end
  1586. end
  1587.  
  1588. -- preload anims
  1589. if PreloadAnimsUserFlag then
  1590. for i, animType in pairs(animTable) do
  1591. for idx = 1, animType.count, 1 do
  1592. Humanoid:LoadAnimation(animType[idx].anim)
  1593. end
  1594. end
  1595. end
  1596. end
  1597.  
  1598. -- Setup animation objects
  1599. function scriptChildModified(child)
  1600. local fileList = animNames[child.Name]
  1601. if (fileList ~= nil) then
  1602. configureAnimationSet(child.Name, fileList)
  1603. end
  1604. end
  1605.  
  1606. script.ChildAdded:connect(scriptChildModified)
  1607. script.ChildRemoved:connect(scriptChildModified)
  1608.  
  1609.  
  1610. for name, fileList in pairs(animNames) do
  1611. configureAnimationSet(name, fileList)
  1612. end
  1613.  
  1614. -- ANIMATION
  1615.  
  1616. -- declarations
  1617. local toolAnim = "None"
  1618. local toolAnimTime = 0
  1619.  
  1620. local jumpAnimTime = 0
  1621. local jumpAnimDuration = 0.31
  1622.  
  1623. local toolTransitionTime = 0.1
  1624. local fallTransitionTime = 0.2
  1625.  
  1626. -- functions
  1627.  
  1628. function stopAllAnimations()
  1629. local oldAnim = currentAnim
  1630.  
  1631. -- return to idle if finishing an emote
  1632. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1633. oldAnim = "idle"
  1634. end
  1635.  
  1636. currentAnim = ""
  1637. currentAnimInstance = nil
  1638. if (currentAnimKeyframeHandler ~= nil) then
  1639. currentAnimKeyframeHandler:disconnect()
  1640. end
  1641.  
  1642. if (currentAnimTrack ~= nil) then
  1643. currentAnimTrack:Stop()
  1644. currentAnimTrack:Destroy()
  1645. currentAnimTrack = nil
  1646. end
  1647.  
  1648. -- clean up walk if there is one
  1649. if (runAnimKeyframeHandler ~= nil) then
  1650. runAnimKeyframeHandler:disconnect()
  1651. end
  1652.  
  1653. if (runAnimTrack ~= nil) then
  1654. runAnimTrack:Stop()
  1655. runAnimTrack:Destroy()
  1656. runAnimTrack = nil
  1657. end
  1658.  
  1659. return oldAnim
  1660. end
  1661.  
  1662. function getHeightScale()
  1663. if Humanoid then
  1664. local bodyHeightScale = Humanoid:FindFirstChild("BodyHeightScale")
  1665. if bodyHeightScale and bodyHeightScale:IsA("NumberValue") then
  1666. return bodyHeightScale.Value
  1667. end
  1668. end
  1669.  
  1670. return 1
  1671. end
  1672.  
  1673. local smallButNotZero = 0.0001
  1674. function setRunSpeed(speed)
  1675. if speed < 0.33 then
  1676. currentAnimTrack:AdjustWeight(1.0)
  1677. runAnimTrack:AdjustWeight(smallButNotZero)
  1678. elseif speed < 0.66 then
  1679. local weight = ((speed - 0.33) / 0.33)
  1680. currentAnimTrack:AdjustWeight(1.0 - weight + smallButNotZero)
  1681. runAnimTrack:AdjustWeight(weight + smallButNotZero)
  1682. else
  1683. currentAnimTrack:AdjustWeight(smallButNotZero)
  1684. runAnimTrack:AdjustWeight(1.0)
  1685. end
  1686.  
  1687. local speedScaled = speed * 1.25
  1688.  
  1689. local heightScale = getHeightScale()
  1690.  
  1691. runAnimTrack:AdjustSpeed(speedScaled / heightScale)
  1692. currentAnimTrack:AdjustSpeed(speedScaled / heightScale)
  1693. end
  1694.  
  1695.  
  1696. function setAnimationSpeed(speed)
  1697. if speed ~= currentAnimSpeed then
  1698. currentAnimSpeed = speed
  1699. if currentAnim == "walk" then
  1700. setRunSpeed(speed)
  1701. else
  1702. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1703. end
  1704. end
  1705. end
  1706.  
  1707. function keyFrameReachedFunc(frameName)
  1708. if (frameName == "End") then
  1709. if currentAnim == "walk" then
  1710. if userNoUpdateOnLoop == true then
  1711. if runAnimTrack.Looped ~= true then
  1712. runAnimTrack.TimePosition = 0.0
  1713. end
  1714. if currentAnimTrack.Looped ~= true then
  1715. currentAnimTrack.TimePosition = 0.0
  1716. end
  1717. else
  1718. runAnimTrack.TimePosition = 0.0
  1719. currentAnimTrack.TimePosition = 0.0
  1720. end
  1721. else
  1722. local repeatAnim = currentAnim
  1723. -- return to idle if finishing an emote
  1724. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1725. repeatAnim = "idle"
  1726. end
  1727.  
  1728. local animSpeed = currentAnimSpeed
  1729. playAnimation(repeatAnim, 0.15, Humanoid)
  1730. setAnimationSpeed(animSpeed)
  1731. end
  1732. end
  1733. end
  1734.  
  1735. function rollAnimation(animName)
  1736. local roll = math.random(1, animTable[animName].totalWeight)
  1737. local origRoll = roll
  1738. local idx = 1
  1739. while (roll > animTable[animName][idx].weight) do
  1740. roll = roll - animTable[animName][idx].weight
  1741. idx = idx + 1
  1742. end
  1743. return idx
  1744. end
  1745.  
  1746. function playAnimation(animName, transitionTime, humanoid)
  1747. local idx = rollAnimation(animName)
  1748. local anim = animTable[animName][idx].anim
  1749.  
  1750. -- switch animation
  1751. if (anim ~= currentAnimInstance) then
  1752.  
  1753. if (currentAnimTrack ~= nil) then
  1754. currentAnimTrack:Stop(transitionTime)
  1755. currentAnimTrack:Destroy()
  1756. end
  1757.  
  1758. if (runAnimTrack ~= nil) then
  1759. runAnimTrack:Stop(transitionTime)
  1760. runAnimTrack:Destroy()
  1761. if userNoUpdateOnLoop == true then
  1762. runAnimTrack = nil
  1763. end
  1764. end
  1765.  
  1766. currentAnimSpeed = 1.0
  1767.  
  1768. -- load it to the humanoid; get AnimationTrack
  1769. currentAnimTrack = humanoid:LoadAnimation(anim)
  1770. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  1771.  
  1772. -- play the animation
  1773. currentAnimTrack:Play(transitionTime)
  1774. currentAnim = animName
  1775. currentAnimInstance = anim
  1776.  
  1777. -- set up keyframe name triggers
  1778. if (currentAnimKeyframeHandler ~= nil) then
  1779. currentAnimKeyframeHandler:disconnect()
  1780. end
  1781. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1782.  
  1783. -- check to see if we need to blend a walk/run animation
  1784. if animName == "walk" then
  1785. local runAnimName = "run"
  1786. local runIdx = rollAnimation(runAnimName)
  1787.  
  1788. runAnimTrack = humanoid:LoadAnimation(animTable[runAnimName][runIdx].anim)
  1789. runAnimTrack.Priority = Enum.AnimationPriority.Core
  1790. runAnimTrack:Play(transitionTime)
  1791.  
  1792. if (runAnimKeyframeHandler ~= nil) then
  1793. runAnimKeyframeHandler:disconnect()
  1794. end
  1795. runAnimKeyframeHandler = runAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1796. end
  1797. end
  1798.  
  1799. end
  1800.  
  1801. -------------------------------------------------------------------------------------------
  1802. -------------------------------------------------------------------------------------------
  1803.  
  1804. local toolAnimName = ""
  1805. local toolAnimTrack = nil
  1806. local toolAnimInstance = nil
  1807. local currentToolAnimKeyframeHandler = nil
  1808.  
  1809. function toolKeyFrameReachedFunc(frameName)
  1810. if (frameName == "End") then
  1811. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1812. end
  1813. end
  1814.  
  1815.  
  1816. function playToolAnimation(animName, transitionTime, humanoid, priority)
  1817. local idx = rollAnimation(animName)
  1818. local anim = animTable[animName][idx].anim
  1819.  
  1820. if (toolAnimInstance ~= anim) then
  1821.  
  1822. if (toolAnimTrack ~= nil) then
  1823. toolAnimTrack:Stop()
  1824. toolAnimTrack:Destroy()
  1825. transitionTime = 0
  1826. end
  1827.  
  1828. -- load it to the humanoid; get AnimationTrack
  1829. toolAnimTrack = humanoid:LoadAnimation(anim)
  1830. if priority then
  1831. toolAnimTrack.Priority = priority
  1832. end
  1833.  
  1834. -- play the animation
  1835. toolAnimTrack:Play(transitionTime)
  1836. toolAnimName = animName
  1837. toolAnimInstance = anim
  1838.  
  1839. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1840. end
  1841. end
  1842.  
  1843. function stopToolAnimations()
  1844. local oldAnim = toolAnimName
  1845.  
  1846. if (currentToolAnimKeyframeHandler ~= nil) then
  1847. currentToolAnimKeyframeHandler:disconnect()
  1848. end
  1849.  
  1850. toolAnimName = ""
  1851. toolAnimInstance = nil
  1852. if (toolAnimTrack ~= nil) then
  1853. toolAnimTrack:Stop()
  1854. toolAnimTrack:Destroy()
  1855. toolAnimTrack = nil
  1856. end
  1857.  
  1858. return oldAnim
  1859. end
  1860.  
  1861. -------------------------------------------------------------------------------------------
  1862. -------------------------------------------------------------------------------------------
  1863. -- STATE CHANGE HANDLERS
  1864.  
  1865. function onRunning(speed)
  1866. if speed > 0.5 then
  1867. local scale = 16.0
  1868. playAnimation("walk", 0.2, Humanoid)
  1869. setAnimationSpeed(speed / scale)
  1870. pose = "Running"
  1871. else
  1872. if emoteNames[currentAnim] == nil then
  1873. playAnimation("idle", 0.2, Humanoid)
  1874. pose = "Standing"
  1875. end
  1876. end
  1877. end
  1878.  
  1879. function onDied()
  1880. pose = "Dead"
  1881. end
  1882.  
  1883. function onJumping()
  1884. playAnimation("jump", 0.1, Humanoid)
  1885. jumpAnimTime = jumpAnimDuration
  1886. pose = "Jumping"
  1887. end
  1888.  
  1889. function onClimbing(speed)
  1890. local scale = 5.0
  1891. playAnimation("climb", 0.1, Humanoid)
  1892. setAnimationSpeed(speed / scale)
  1893. pose = "Climbing"
  1894. end
  1895.  
  1896. function onGettingUp()
  1897. pose = "GettingUp"
  1898. end
  1899.  
  1900. function onFreeFall()
  1901. if (jumpAnimTime <= 0) then
  1902. playAnimation("fall", fallTransitionTime, Humanoid)
  1903. end
  1904. pose = "FreeFall"
  1905. end
  1906.  
  1907. function onFallingDown()
  1908. pose = "FallingDown"
  1909. end
  1910.  
  1911. function onSeated()
  1912. pose = "Seated"
  1913. end
  1914.  
  1915. function onPlatformStanding()
  1916. pose = "PlatformStanding"
  1917. end
  1918.  
  1919. -------------------------------------------------------------------------------------------
  1920. -------------------------------------------------------------------------------------------
  1921.  
  1922. function onSwimming(speed)
  1923. if speed > 1.00 then
  1924. local scale = 10.0
  1925. playAnimation("swim", 0.4, Humanoid)
  1926. setAnimationSpeed(speed / scale)
  1927. pose = "Swimming"
  1928. else
  1929. playAnimation("swimidle", 0.4, Humanoid)
  1930. pose = "Standing"
  1931. end
  1932. end
  1933.  
  1934. function animateTool()
  1935. if (toolAnim == "None") then
  1936. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  1937. return
  1938. end
  1939.  
  1940. if (toolAnim == "Slash") then
  1941. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  1942. return
  1943. end
  1944.  
  1945. if (toolAnim == "Lunge") then
  1946. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  1947. return
  1948. end
  1949. end
  1950.  
  1951. function getToolAnim(tool)
  1952. for _, c in ipairs(tool:GetChildren()) do
  1953. if c.Name == "toolanim" and c.className == "StringValue" then
  1954. return c
  1955. end
  1956. end
  1957. return nil
  1958. end
  1959.  
  1960. local lastTick = 0
  1961.  
  1962. function stepAnimate(currentTime)
  1963. local amplitude = 1
  1964. local frequency = 1
  1965. local deltaTime = currentTime - lastTick
  1966. lastTick = currentTime
  1967.  
  1968. local climbFudge = 0
  1969. local setAngles = false
  1970.  
  1971. if (jumpAnimTime > 0) then
  1972. jumpAnimTime = jumpAnimTime - deltaTime
  1973. end
  1974.  
  1975. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1976. playAnimation("fall", fallTransitionTime, Humanoid)
  1977. elseif (pose == "Seated") then
  1978. playAnimation("sit", 0.5, Humanoid)
  1979. return
  1980. elseif (pose == "Running") then
  1981. playAnimation("walk", 0.2, Humanoid)
  1982. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1983. stopAllAnimations()
  1984. amplitude = 0.1
  1985. frequency = 1
  1986. setAngles = true
  1987. end
  1988.  
  1989. -- Tool Animation handling
  1990. local tool = Character:FindFirstChildOfClass("Tool")
  1991. if tool and tool:FindFirstChild("Handle") then
  1992. local animStringValueObject = getToolAnim(tool)
  1993.  
  1994. if animStringValueObject then
  1995. toolAnim = animStringValueObject.Value
  1996. -- message recieved, delete StringValue
  1997. animStringValueObject.Parent = nil
  1998. toolAnimTime = currentTime + .3
  1999. end
  2000.  
  2001. if currentTime > toolAnimTime then
  2002. toolAnimTime = 0
  2003. toolAnim = "None"
  2004. end
  2005.  
  2006. animateTool()
  2007. else
  2008. stopToolAnimations()
  2009. toolAnim = "None"
  2010. toolAnimInstance = nil
  2011. toolAnimTime = 0
  2012. end
  2013. end
  2014.  
  2015. -- connect events
  2016. Humanoid.Died:connect(onDied)
  2017. Humanoid.Running:connect(onRunning)
  2018. Humanoid.Jumping:connect(onJumping)
  2019. Humanoid.Climbing:connect(onClimbing)
  2020. Humanoid.GettingUp:connect(onGettingUp)
  2021. Humanoid.FreeFalling:connect(onFreeFall)
  2022. Humanoid.FallingDown:connect(onFallingDown)
  2023. Humanoid.Seated:connect(onSeated)
  2024. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2025. Humanoid.Swimming:connect(onSwimming)
  2026.  
  2027. -- setup emote chat hook
  2028. game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
  2029. local emote = ""
  2030. if (string.sub(msg, 1, 3) == "/e ") then
  2031. emote = string.sub(msg, 4)
  2032. elseif (string.sub(msg, 1, 7) == "/emote ") then
  2033. emote = string.sub(msg, 8)
  2034. end
  2035.  
  2036. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  2037. playAnimation(emote, 0.1, Humanoid)
  2038. end
  2039. end)
  2040.  
  2041.  
  2042.  
  2043. -- initialize to idle
  2044. playAnimation("idle", 0.1, Humanoid)
  2045. pose = "Standing"
  2046.  
  2047. -- loop to handle timed state transitions and tool animations
  2048. while Character.Parent ~= nil do
  2049. local _, currentGameTime = wait(0.1)
  2050. stepAnimate(currentGameTime)
  2051. end
  2052.  
  2053.  
  2054. end))
  2055. StringValue159.Name = "cheer"
  2056. StringValue159.Parent = LocalScript158
  2057. Animation160.Name = "CheerAnim"
  2058. Animation160.Parent = StringValue159
  2059. Animation160.AnimationId = "http://www.roblox.com/asset/?id=507770677"
  2060. StringValue161.Name = "climb"
  2061. StringValue161.Parent = LocalScript158
  2062. Animation162.Name = "ClimbAnim"
  2063. Animation162.Parent = StringValue161
  2064. Animation162.AnimationId = "http://www.roblox.com/asset/?id=507765644"
  2065. StringValue163.Name = "dance"
  2066. StringValue163.Parent = LocalScript158
  2067. Animation164.Name = "Animation1"
  2068. Animation164.Parent = StringValue163
  2069. Animation164.AnimationId = "http://www.roblox.com/asset/?id=507771019"
  2070. NumberValue165.Name = "Weight"
  2071. NumberValue165.Parent = Animation164
  2072. NumberValue165.Value = 10
  2073. Animation166.Name = "Animation2"
  2074. Animation166.Parent = StringValue163
  2075. Animation166.AnimationId = "http://www.roblox.com/asset/?id=507771955"
  2076. NumberValue167.Name = "Weight"
  2077. NumberValue167.Parent = Animation166
  2078. NumberValue167.Value = 10
  2079. Animation168.Name = "Animation3"
  2080. Animation168.Parent = StringValue163
  2081. Animation168.AnimationId = "http://www.roblox.com/asset/?id=507772104"
  2082. NumberValue169.Name = "Weight"
  2083. NumberValue169.Parent = Animation168
  2084. NumberValue169.Value = 10
  2085. StringValue170.Name = "dance2"
  2086. StringValue170.Parent = LocalScript158
  2087. Animation171.Name = "Animation1"
  2088. Animation171.Parent = StringValue170
  2089. Animation171.AnimationId = "http://www.roblox.com/asset/?id=507776043"
  2090. NumberValue172.Name = "Weight"
  2091. NumberValue172.Parent = Animation171
  2092. NumberValue172.Value = 10
  2093. Animation173.Name = "Animation2"
  2094. Animation173.Parent = StringValue170
  2095. Animation173.AnimationId = "http://www.roblox.com/asset/?id=507776720"
  2096. NumberValue174.Name = "Weight"
  2097. NumberValue174.Parent = Animation173
  2098. NumberValue174.Value = 10
  2099. Animation175.Name = "Animation3"
  2100. Animation175.Parent = StringValue170
  2101. Animation175.AnimationId = "http://www.roblox.com/asset/?id=507776879"
  2102. NumberValue176.Name = "Weight"
  2103. NumberValue176.Parent = Animation175
  2104. NumberValue176.Value = 10
  2105. StringValue177.Name = "dance3"
  2106. StringValue177.Parent = LocalScript158
  2107. Animation178.Name = "Animation1"
  2108. Animation178.Parent = StringValue177
  2109. Animation178.AnimationId = "http://www.roblox.com/asset/?id=507777268"
  2110. NumberValue179.Name = "Weight"
  2111. NumberValue179.Parent = Animation178
  2112. NumberValue179.Value = 10
  2113. Animation180.Name = "Animation2"
  2114. Animation180.Parent = StringValue177
  2115. Animation180.AnimationId = "http://www.roblox.com/asset/?id=507777451"
  2116. NumberValue181.Name = "Weight"
  2117. NumberValue181.Parent = Animation180
  2118. NumberValue181.Value = 10
  2119. Animation182.Name = "Animation3"
  2120. Animation182.Parent = StringValue177
  2121. Animation182.AnimationId = "http://www.roblox.com/asset/?id=507777623"
  2122. NumberValue183.Name = "Weight"
  2123. NumberValue183.Parent = Animation182
  2124. NumberValue183.Value = 10
  2125. StringValue184.Name = "fall"
  2126. StringValue184.Parent = LocalScript158
  2127. Animation185.Name = "FallAnim"
  2128. Animation185.Parent = StringValue184
  2129. Animation185.AnimationId = "http://www.roblox.com/asset/?id=507767968"
  2130. StringValue186.Name = "idle"
  2131. StringValue186.Parent = LocalScript158
  2132. Animation187.Name = "Animation1"
  2133. Animation187.Parent = StringValue186
  2134. Animation187.AnimationId = "http://www.roblox.com/asset/?id=507766388"
  2135. NumberValue188.Name = "Weight"
  2136. NumberValue188.Parent = Animation187
  2137. NumberValue188.Value = 9
  2138. Animation189.Name = "Animation2"
  2139. Animation189.Parent = StringValue186
  2140. Animation189.AnimationId = "http://www.roblox.com/asset/?id=507766666"
  2141. NumberValue190.Name = "Weight"
  2142. NumberValue190.Parent = Animation189
  2143. NumberValue190.Value = 1
  2144. StringValue191.Name = "jump"
  2145. StringValue191.Parent = LocalScript158
  2146. Animation192.Name = "JumpAnim"
  2147. Animation192.Parent = StringValue191
  2148. Animation192.AnimationId = "http://www.roblox.com/asset/?id=507765000"
  2149. StringValue193.Name = "laugh"
  2150. StringValue193.Parent = LocalScript158
  2151. Animation194.Name = "LaughAnim"
  2152. Animation194.Parent = StringValue193
  2153. Animation194.AnimationId = "http://www.roblox.com/asset/?id=507770818"
  2154. StringValue195.Name = "point"
  2155. StringValue195.Parent = LocalScript158
  2156. Animation196.Name = "PointAnim"
  2157. Animation196.Parent = StringValue195
  2158. Animation196.AnimationId = "http://www.roblox.com/asset/?id=507770453"
  2159. StringValue197.Name = "run"
  2160. StringValue197.Parent = LocalScript158
  2161. Animation198.Name = "RunAnim"
  2162. Animation198.Parent = StringValue197
  2163. Animation198.AnimationId = "http://www.roblox.com/asset/?id=507767714"
  2164. StringValue199.Name = "sit"
  2165. StringValue199.Parent = LocalScript158
  2166. Animation200.Name = "SitAnim"
  2167. Animation200.Parent = StringValue199
  2168. Animation200.AnimationId = "http://www.roblox.com/asset/?id=507768133"
  2169. StringValue201.Name = "swim"
  2170. StringValue201.Parent = LocalScript158
  2171. Animation202.Name = "Swim"
  2172. Animation202.Parent = StringValue201
  2173. Animation202.AnimationId = "http://www.roblox.com/asset/?id=507784897"
  2174. StringValue203.Name = "swimidle"
  2175. StringValue203.Parent = LocalScript158
  2176. Animation204.Name = "SwimIdle"
  2177. Animation204.Parent = StringValue203
  2178. Animation204.AnimationId = "http://www.roblox.com/asset/?id=481825862"
  2179. StringValue205.Name = "toollunge"
  2180. StringValue205.Parent = LocalScript158
  2181. Animation206.Name = "ToolLungeAnim"
  2182. Animation206.Parent = StringValue205
  2183. Animation206.AnimationId = "http://www.roblox.com/asset/?id=522638767"
  2184. StringValue207.Name = "toolnone"
  2185. StringValue207.Parent = LocalScript158
  2186. Animation208.Name = "ToolNoneAnim"
  2187. Animation208.Parent = StringValue207
  2188. Animation208.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  2189. StringValue209.Name = "toolslash"
  2190. StringValue209.Parent = LocalScript158
  2191. Animation210.Name = "ToolSlashAnim"
  2192. Animation210.Parent = StringValue209
  2193. Animation210.AnimationId = "http://www.roblox.com/asset/?id=522635514"
  2194. StringValue211.Name = "walk"
  2195. StringValue211.Parent = LocalScript158
  2196. Animation212.Name = "WalkAnim"
  2197. Animation212.Parent = StringValue211
  2198. Animation212.AnimationId = "http://www.roblox.com/asset/?id=540798782"
  2199. StringValue213.Name = "wave"
  2200. StringValue213.Parent = LocalScript158
  2201. Animation214.Name = "WaveAnim"
  2202. Animation214.Parent = StringValue213
  2203. Animation214.AnimationId = "http://www.roblox.com/asset/?id=507770239"
  2204. BodyColors215.Parent = Model1
  2205. BodyColors215.HeadColor = BrickColor.new("Bright yellow")
  2206. BodyColors215.LeftArmColor = BrickColor.new("Bright yellow")
  2207. BodyColors215.LeftLegColor = BrickColor.new("Shamrock")
  2208. BodyColors215.RightArmColor = BrickColor.new("Bright yellow")
  2209. BodyColors215.RightLegColor = BrickColor.new("Shamrock")
  2210. BodyColors215.TorsoColor = BrickColor.new("Steel blue")
  2211. ShirtGraphic216.Parent = Model1
  2212. ShirtGraphic216.Graphic = "http://www.roblox.com/asset/?id=1798362789"
  2213. Shirt217.Name = "Shirt"
  2214. Shirt217.Parent = Model1
  2215. Shirt217.ShirtTemplate = "http://www.roblox.com/asset/?id=1215556026"
  2216. Pants218.Name = "Pants"
  2217. Pants218.Parent = Model1
  2218. Pants218.PantsTemplate = "http://www.roblox.com/asset/?id=1223238596"
  2219. for i,v in pairs(mas:GetChildren()) do
  2220. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  2221. pcall(function() v:MakeJoints() end)
  2222. end
  2223. mas:Destroy()
  2224. for i,v in pairs(cors) do
  2225. spawn(function()
  2226. pcall(v)
  2227. end)
  2228. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement