Advertisement
ManOhMan

GUEST

Jul 10th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.71 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: Attachment,MeshPart,Accessory,Camera,Animator,Status
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Model")
  29. o2 = Instance.new("Part")
  30. o4 = Instance.new("Vector3Value")
  31. o5 = Instance.new("Vector3Value")
  32. o8 = Instance.new("Vector3Value")
  33. o10 = Instance.new("Vector3Value")
  34. o11 = Instance.new("Vector3Value")
  35. o12 = Instance.new("Motor6D")
  36. o13 = Instance.new("Script")
  37. o16 = Instance.new("Vector3Value")
  38. o18 = Instance.new("Vector3Value")
  39. o19 = Instance.new("Vector3Value")
  40. o20 = Instance.new("Motor6D")
  41. o23 = Instance.new("Vector3Value")
  42. o25 = Instance.new("Vector3Value")
  43. o26 = Instance.new("Vector3Value")
  44. o27 = Instance.new("Motor6D")
  45. o30 = Instance.new("Vector3Value")
  46. o32 = Instance.new("Vector3Value")
  47. o34 = Instance.new("Vector3Value")
  48. o35 = Instance.new("Vector3Value")
  49. o36 = Instance.new("Motor6D")
  50. o39 = Instance.new("Vector3Value")
  51. o41 = Instance.new("Vector3Value")
  52. o42 = Instance.new("Vector3Value")
  53. o43 = Instance.new("Motor6D")
  54. o46 = Instance.new("Vector3Value")
  55. o48 = Instance.new("Vector3Value")
  56. o49 = Instance.new("Vector3Value")
  57. o50 = Instance.new("Motor6D")
  58. o53 = Instance.new("Vector3Value")
  59. o55 = Instance.new("Vector3Value")
  60. o56 = Instance.new("Vector3Value")
  61. o57 = Instance.new("Motor6D")
  62. o60 = Instance.new("Vector3Value")
  63. o61 = Instance.new("Vector3Value")
  64. o62 = Instance.new("Motor6D")
  65. o65 = Instance.new("Vector3Value")
  66. o67 = Instance.new("Vector3Value")
  67. o68 = Instance.new("Vector3Value")
  68. o69 = Instance.new("Motor6D")
  69. o71 = Instance.new("Part")
  70. o72 = Instance.new("SpecialMesh")
  71. o74 = Instance.new("Vector3Value")
  72. o75 = Instance.new("Weld")
  73. o79 = Instance.new("Vector3Value")
  74. o80 = Instance.new("Vector3Value")
  75. o81 = Instance.new("Motor6D")
  76. o84 = Instance.new("Vector3Value")
  77. o86 = Instance.new("Vector3Value")
  78. o87 = Instance.new("Vector3Value")
  79. o88 = Instance.new("Motor6D")
  80. o91 = Instance.new("Vector3Value")
  81. o93 = Instance.new("Vector3Value")
  82. o95 = Instance.new("Vector3Value")
  83. o97 = Instance.new("Vector3Value")
  84. o99 = Instance.new("Vector3Value")
  85. o101 = Instance.new("Vector3Value")
  86. o103 = Instance.new("Vector3Value")
  87. o105 = Instance.new("Vector3Value")
  88. o107 = Instance.new("Vector3Value")
  89. o108 = Instance.new("Vector3Value")
  90. o109 = Instance.new("Motor6D")
  91. o110 = Instance.new("Humanoid")
  92. o112 = Instance.new("NumberValue")
  93. o113 = Instance.new("NumberValue")
  94. o114 = Instance.new("NumberValue")
  95. o115 = Instance.new("NumberValue")
  96. o117 = Instance.new("Part")
  97. o118 = Instance.new("SpecialMesh")
  98. o119 = Instance.new("Vector3Value")
  99. o121 = Instance.new("Vector3Value")
  100. o123 = Instance.new("Vector3Value")
  101. o125 = Instance.new("Vector3Value")
  102. o127 = Instance.new("Vector3Value")
  103. o129 = Instance.new("Vector3Value")
  104. o130 = Instance.new("Vector3Value")
  105. o131 = Instance.new("Sound")
  106. o132 = Instance.new("Sound")
  107. o133 = Instance.new("Sound")
  108. o134 = Instance.new("Sound")
  109. o135 = Instance.new("Sound")
  110. o136 = Instance.new("Sound")
  111. o137 = Instance.new("Sound")
  112. o138 = Instance.new("Sound")
  113. o139 = Instance.new("Sound")
  114. o140 = Instance.new("Motor6D")
  115. o141 = Instance.new("Decal")
  116. o142 = Instance.new("Shirt")
  117. o143 = Instance.new("Pants")
  118. o146 = Instance.new("Vector3Value")
  119. o148 = Instance.new("Vector3Value")
  120. o150 = Instance.new("Vector3Value")
  121. o152 = Instance.new("Vector3Value")
  122. o154 = Instance.new("Vector3Value")
  123. o156 = Instance.new("Vector3Value")
  124. o158 = Instance.new("Vector3Value")
  125. o159 = Instance.new("Vector3Value")
  126. o160 = Instance.new("Motor6D")
  127. o161 = Instance.new("BodyColors")
  128. o162 = Instance.new("Script")
  129. o163 = Instance.new("Script")
  130. o164 = Instance.new("LocalScript")
  131. o165 = Instance.new("StringValue")
  132. o166 = Instance.new("Animation")
  133. o167 = Instance.new("StringValue")
  134. o168 = Instance.new("Animation")
  135. o169 = Instance.new("StringValue")
  136. o170 = Instance.new("Animation")
  137. o171 = Instance.new("NumberValue")
  138. o172 = Instance.new("Animation")
  139. o173 = Instance.new("NumberValue")
  140. o174 = Instance.new("StringValue")
  141. o175 = Instance.new("Animation")
  142. o176 = Instance.new("StringValue")
  143. o177 = Instance.new("Animation")
  144. o178 = Instance.new("StringValue")
  145. o179 = Instance.new("Animation")
  146. o180 = Instance.new("StringValue")
  147. o181 = Instance.new("Animation")
  148. o182 = Instance.new("StringValue")
  149. o183 = Instance.new("Animation")
  150. o184 = Instance.new("StringValue")
  151. o185 = Instance.new("Animation")
  152. o186 = Instance.new("StringValue")
  153. o187 = Instance.new("Animation")
  154. o190 = Instance.new("Vector3Value")
  155. o192 = Instance.new("Vector3Value")
  156. o194 = Instance.new("Vector3Value")
  157. o195 = Instance.new("Vector3Value")
  158. o196 = Instance.new("Motor6D")
  159. o1.Name = ""
  160. o1.Parent = mas
  161. o1.PrimaryPart = o2
  162. o2.Name = "HumanoidRootPart"
  163. o2.Parent = o1
  164. o2.BrickColor = BrickColor.new("Fossil")
  165. o2.Transparency = 1
  166. o2.Position = Vector3.new(-16.0358047, 2.84820652, 26.2238865)
  167. o2.Rotation = Vector3.new(0, -1.08000004, 0)
  168. o2.Size = Vector3.new(2, 2, 1)
  169. o2.CFrame = CFrame.new(-16.0358047, 2.84820652, 26.2238865, 0.999822617, 0, -0.0188379921, 0, 1, 0, 0.0188379921, 0, 0.999822617)
  170. o2.Color = Color3.new(0.623529, 0.631373, 0.67451)
  171. o2.Position = Vector3.new(-16.0358047, 2.84820652, 26.2238865)
  172. o4.Name = "OriginalPosition"
  173. o4.Parent = mas
  174. o5.Name = "OriginalSize"
  175. o5.Parent = o2
  176. o5.Value = Vector3.new(2, 2, 1)
  177. o8.Name = "OriginalPosition"
  178. o8.Parent = mas
  179. o8.Value = Vector3.new(-0.0358767509, 0.40380016, -0.000202059746)
  180. o10.Name = "OriginalPosition"
  181. o10.Parent = mas
  182. o10.Value = Vector3.new(-0.0358767509, -0.396199822, -0.000202059746)
  183. o11.Name = "OriginalSize"
  184. o11.Parent = mas
  185. o11.Value = Vector3.new(0.827857256, 0.925159276, 0.877025366)
  186. o12.Name = "LeftElbow"
  187. o12.Parent = mas
  188. o12.C0 = CFrame.new(-0.187108159, -0.361013532, -0.0245017558, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  189. o12.C1 = CFrame.new(-0.0358767509, 0.40380016, -0.000202059746, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  190. o12.Active = true
  191. o12.Part0 = mas
  192. o12.Part1 = mas
  193. o13.Parent = o1
  194. table.insert(cors,coroutine.create(function()
  195. wait()
  196. runDummyScript(function()
  197. wait(3)
  198. local hum = script.Parent.Humanoid
  199.  
  200. local anim = hum:LoadAnimation(script.Parent.Animation)
  201.  
  202. anim:Play()
  203. end,o13)
  204. end))
  205. o16.Name = "OriginalPosition"
  206. o16.Parent = mas
  207. o16.Value = Vector3.new(-0.0572995245, 0.406759053, 0.0292848647)
  208. o18.Name = "OriginalPosition"
  209. o18.Parent = mas
  210. o18.Value = Vector3.new(-0.0572995245, -0.393240929, 0.0292848647)
  211. o19.Name = "OriginalSize"
  212. o19.Parent = mas
  213. o19.Value = Vector3.new(0.678933918, 1.34023976, 0.83825773)
  214. o20.Name = "LeftHip"
  215. o20.Parent = mas
  216. o20.C0 = CFrame.new(-0.500000596, -0.317417175, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  217. o20.C1 = CFrame.new(-0.0572995245, 0.406759113, 0.0292848647, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  218. o20.Active = true
  219. o20.Part0 = mas
  220. o20.Part1 = mas
  221. o23.Name = "OriginalPosition"
  222. o23.Parent = mas
  223. o23.Value = Vector3.new(0.0363556147, 0.403800189, -0.00020223856)
  224. o25.Name = "OriginalPosition"
  225. o25.Parent = mas
  226. o25.Value = Vector3.new(0.0363556147, -0.396199793, -0.00020223856)
  227. o26.Name = "OriginalSize"
  228. o26.Parent = mas
  229. o26.Value = Vector3.new(0.827857256, 0.925159216, 0.877025485)
  230. o27.Name = "RightElbow"
  231. o27.Parent = mas
  232. o27.C0 = CFrame.new(0.187587023, -0.361013532, -0.0245021135, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  233. o27.C1 = CFrame.new(0.0363556147, 0.403800189, -0.00020223856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  234. o27.Active = true
  235. o27.Part0 = mas
  236. o27.Part1 = mas
  237. o30.Name = "OriginalPosition"
  238. o30.Parent = mas
  239. o30.Value = Vector3.new(-0.0624326468, 0.288986444, -0.0245021135)
  240. o32.Name = "OriginalPosition"
  241. o32.Parent = mas
  242. o32.Value = Vector3.new(0.187587023, -0.361013532, -0.0245021135)
  243. o34.Name = "OriginalPosition"
  244. o34.Parent = mas
  245. o34.Value = Vector3.new(0.187586665, 0.538986921, -0.0245022308)
  246. o35.Name = "OriginalSize"
  247. o35.Parent = mas
  248. o35.Value = Vector3.new(0.675612688, 1.12489867, 0.826949239)
  249. o36.Name = "RightShoulder"
  250. o36.Parent = mas
  251. o36.C0 = CFrame.new(1.24997997, 0.584590554, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  252. o36.C1 = CFrame.new(-0.0624326468, 0.288986444, -0.0245021135, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  253. o36.Active = true
  254. o36.Part0 = mas
  255. o36.Part1 = mas
  256. o39.Name = "OriginalPosition"
  257. o39.Parent = mas
  258. o39.Value = Vector3.new(0.0106925964, 0.110724702, -0.0063508749)
  259. o41.Name = "OriginalPosition"
  260. o41.Parent = mas
  261. o41.Value = Vector3.new(0.0102136135, -0.189274922, -0.00635108072)
  262. o42.Name = "OriginalSize"
  263. o42.Parent = mas
  264. o42.Value = Vector3.new(0.775964022, 0.955060005, 0.760477781)
  265. o43.Name = "LeftWrist"
  266. o43.Parent = mas
  267. o43.C0 = CFrame.new(-0.0358767509, -0.396199822, -0.000202059746, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  268. o43.C1 = CFrame.new(0.0106925964, 0.110724702, -0.0063508749, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  269. o43.Active = true
  270. o43.Part0 = mas
  271. o43.Part1 = mas
  272. o46.Name = "OriginalPosition"
  273. o46.Parent = mas
  274. o46.Value = Vector3.new(-0.0102137327, 0.110724702, -0.00635111332)
  275. o48.Name = "OriginalPosition"
  276. o48.Parent = mas
  277. o48.Value = Vector3.new(-0.0102140903, -0.189274922, -0.00635131914)
  278. o49.Name = "OriginalSize"
  279. o49.Parent = mas
  280. o49.Value = Vector3.new(0.775964022, 0.955060005, 0.760477781)
  281. o50.Name = "RightWrist"
  282. o50.Parent = mas
  283. o50.C0 = CFrame.new(0.0363556147, -0.396199793, -0.00020223856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  284. o50.C1 = CFrame.new(-0.0102137327, 0.110724702, -0.00635111332, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  285. o50.Active = true
  286. o50.Part0 = mas
  287. o50.Part1 = mas
  288. o53.Name = "OriginalPosition"
  289. o53.Parent = mas
  290. o53.Value = Vector3.new(0.0572995543, 0.406759053, 0.0292846859)
  291. o55.Name = "OriginalPosition"
  292. o55.Parent = mas
  293. o55.Value = Vector3.new(0.0572995543, -0.393240929, 0.029328391)
  294. o56.Name = "OriginalSize"
  295. o56.Parent = mas
  296. o56.Value = Vector3.new(0.678933978, 1.34023976, 0.838257849)
  297. o57.Name = "RightHip"
  298. o57.Parent = mas
  299. o57.C0 = CFrame.new(0.499999434, -0.317417175, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  300. o57.C1 = CFrame.new(0.0572995543, 0.406759053, 0.0292846859, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  301. o57.Active = true
  302. o57.Part0 = mas
  303. o57.Part1 = mas
  304. o60.Name = "OriginalPosition"
  305. o60.Parent = mas
  306. o60.Value = Vector3.new(-0.0572988093, -0.0541849136, 0.102052271)
  307. o61.Name = "OriginalSize"
  308. o61.Parent = mas
  309. o61.Value = Vector3.new(0.804975927, 0.45631969, 1.21525145)
  310. o62.Name = "LeftAnkle"
  311. o62.Parent = mas
  312. o62.C0 = CFrame.new(-0.0572988987, -0.554775894, 0.00460058777, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  313. o62.C1 = CFrame.new(-0.0572988093, -0.0541849211, 0.102052271, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  314. o62.Active = true
  315. o62.Part0 = mas
  316. o62.Part1 = mas
  317. o65.Name = "OriginalPosition"
  318. o65.Parent = mas
  319. o65.Value = Vector3.new(-0.0572987199, 0.445221424, 0.00459977984)
  320. o67.Name = "OriginalPosition"
  321. o67.Parent = mas
  322. o67.Value = Vector3.new(-0.0572988987, -0.554775834, 0.00460058777)
  323. o68.Name = "OriginalSize"
  324. o68.Parent = mas
  325. o68.Value = Vector3.new(0.722899318, 0.919740438, 0.897220731)
  326. o69.Name = "LeftKnee"
  327. o69.Parent = mas
  328. o69.C0 = CFrame.new(-0.0572995245, -0.393240988, 0.0292848647, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  329. o69.C1 = CFrame.new(-0.0572987199, 0.445221484, 0.00459977984, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  330. o69.Active = true
  331. o69.Part0 = mas
  332. o69.Part1 = mas
  333. o71.Name = "Handle"
  334. o71.Parent = mas
  335. o71.Position = Vector3.new(-16.0358105, 4.79820633, 26.2241611)
  336. o71.Rotation = Vector3.new(0, -1.08000004, 0)
  337. o71.CanCollide = false
  338. o71.FormFactor = Enum.FormFactor.Custom
  339. o71.Size = Vector3.new(1.3400265, 1.34999824, 0.779999673)
  340. o71.CFrame = CFrame.new(-16.0358105, 4.79820633, 26.2241611, 0.999822617, -6.98092676e-24, -0.0188379921, 1.35200779e-39, 1, -3.70576914e-22, 0.0188379921, 3.7051118e-22, 0.999822617)
  341. o71.BottomSurface = Enum.SurfaceType.Smooth
  342. o71.TopSurface = Enum.SurfaceType.Smooth
  343. o71.Position = Vector3.new(-16.0358105, 4.79820633, 26.2241611)
  344. o72.Parent = o71
  345. o72.MeshId = "http://www.roblox.com/asset/?id=188004660 "
  346. o72.TextureId = "http://www.roblox.com/asset/?id=451217406"
  347. o72.MeshType = Enum.MeshType.FileMesh
  348. o74.Name = "OriginalSize"
  349. o74.Parent = o71
  350. o74.Value = Vector3.new(1.3400265, 1.34999824, 0.779999673)
  351. o75.Name = "AccessoryWeld"
  352. o75.Parent = o71
  353. o75.C0 = CFrame.new(8.65838956e-09, 0.150000095, -0.000272244215, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  354. o75.C1 = CFrame.new(0, 0.600000024, 0, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
  355. o75.Active = true
  356. o75.Part0 = o71
  357. o75.Part1 = o117
  358. o79.Name = "OriginalPosition"
  359. o79.Parent = mas
  360. o79.Value = Vector3.new(0.0572986603, -0.0541877747, 0.102150455)
  361. o80.Name = "OriginalSize"
  362. o80.Parent = mas
  363. o80.Value = Vector3.new(0.804975271, 0.456319809, 1.21525121)
  364. o81.Name = "RightAnkle"
  365. o81.Parent = mas
  366. o81.C0 = CFrame.new(0.0572987497, -0.554778814, 0.00469824811, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  367. o81.C1 = CFrame.new(0.0572986603, -0.0541877747, 0.102150455, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  368. o81.Active = true
  369. o81.Part0 = mas
  370. o81.Part1 = mas
  371. o84.Name = "OriginalPosition"
  372. o84.Parent = mas
  373. o84.Value = Vector3.new(0.0572987497, 0.445221305, 0.00464349939)
  374. o86.Name = "OriginalPosition"
  375. o86.Parent = mas
  376. o86.Value = Vector3.new(0.0572987497, -0.554778814, 0.00469824811)
  377. o87.Name = "OriginalSize"
  378. o87.Parent = mas
  379. o87.Value = Vector3.new(0.722899377, 0.919740558, 0.897220731)
  380. o88.Name = "RightKnee"
  381. o88.Parent = mas
  382. o88.C0 = CFrame.new(0.0572995543, -0.393240929, 0.029328391, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  383. o88.C1 = CFrame.new(0.0572987497, 0.445221305, 0.00464349939, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  384. o88.Active = true
  385. o88.Part0 = mas
  386. o88.Part1 = mas
  387. o91.Name = "OriginalPosition"
  388. o91.Parent = mas
  389. o91.Value = Vector3.new(-4.17232513e-07, -0.415409416, 0.0607423484)
  390. o93.Name = "OriginalPosition"
  391. o93.Parent = mas
  392. o93.Value = Vector3.new(-4.17232513e-07, 0.834590554, 0.0607423484)
  393. o95.Name = "OriginalPosition"
  394. o95.Parent = mas
  395. o95.Value = Vector3.new(-1.24989152, 0.584590554, 0.0607423484)
  396. o97.Name = "OriginalPosition"
  397. o97.Parent = mas
  398. o97.Value = Vector3.new(1.24997997, 0.584590554, 0.0607423484)
  399. o99.Name = "OriginalPosition"
  400. o99.Parent = mas
  401. o99.Value = Vector3.new(-1.00000024, 0.834590793, 0.0607421547)
  402. o101.Name = "OriginalPosition"
  403. o101.Parent = mas
  404. o101.Value = Vector3.new(0.999999583, 0.834590554, 0.0607422739)
  405. o103.Name = "OriginalPosition"
  406. o103.Parent = mas
  407. o103.Value = Vector3.new(-4.08213822e-07, 0.834590554, 0.0607423)
  408. o105.Name = "OriginalPosition"
  409. o105.Parent = mas
  410. o105.Value = Vector3.new(-4.17232513e-07, -0.165409446, 0.560742259)
  411. o107.Name = "OriginalPosition"
  412. o107.Parent = mas
  413. o107.Value = Vector3.new(-4.17232513e-07, -0.165409446, -0.439257652)
  414. o108.Name = "OriginalSize"
  415. o108.Parent = mas
  416. o108.Value = Vector3.new(2.03200006, 1.86928844, 1.12989664)
  417. o109.Name = "Waist"
  418. o109.Parent = mas
  419. o109.C0 = CFrame.new(-5.66244125e-07, 0.432582825, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  420. o109.C1 = CFrame.new(-4.17232513e-07, -0.415409416, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  421. o109.Active = true
  422. o109.Part0 = mas
  423. o109.Part1 = mas
  424. o110.Parent = o1
  425. o110.RightLeg = mas
  426. o110.LeftLeg = mas
  427. o110.Torso = o2
  428. o112.Name = "BodyWidthScale"
  429. o112.Parent = o110
  430. o112.Value = 1
  431. o113.Name = "BodyHeightScale"
  432. o113.Parent = o110
  433. o113.Value = 1
  434. o114.Name = "BodyDepthScale"
  435. o114.Parent = o110
  436. o114.Value = 1
  437. o115.Name = "HeadScale"
  438. o115.Parent = o110
  439. o115.Value = 1
  440. o117.Name = "Head"
  441. o117.Parent = o1
  442. o117.BrickColor = BrickColor.new("Institutional white")
  443. o117.Position = Vector3.new(-16.0358047, 4.34820652, 26.2238884)
  444. o117.Rotation = Vector3.new(0, -1.08000004, 0)
  445. o117.Size = Vector3.new(2, 1, 1)
  446. o117.CFrame = CFrame.new(-16.0358047, 4.34820652, 26.2238884, 0.999822617, 0, -0.0188379921, 0, 1, 0, 0.0188379921, 0, 0.999822617)
  447. o117.BottomSurface = Enum.SurfaceType.Smooth
  448. o117.TopSurface = Enum.SurfaceType.Smooth
  449. o117.Color = Color3.new(0.972549, 0.972549, 0.972549)
  450. o117.Position = Vector3.new(-16.0358047, 4.34820652, 26.2238884)
  451. o118.Parent = o117
  452. o118.Scale = Vector3.new(1.25, 1.25, 1.25)
  453. o119.Name = "OriginalSize"
  454. o119.Parent = o118
  455. o119.Value = Vector3.new(1.25, 1.25, 1.25)
  456. o121.Name = "OriginalPosition"
  457. o121.Parent = mas
  458. o123.Name = "OriginalPosition"
  459. o123.Parent = mas
  460. o123.Value = Vector3.new(0, 0, -0.600000024)
  461. o125.Name = "OriginalPosition"
  462. o125.Parent = mas
  463. o125.Value = Vector3.new(0, 0.600000024, 0)
  464. o127.Name = "OriginalPosition"
  465. o127.Parent = mas
  466. o127.Value = Vector3.new(0, 0.600000024, 0)
  467. o129.Name = "OriginalPosition"
  468. o129.Parent = mas
  469. o129.Value = Vector3.new(0, -0.5, 0)
  470. o130.Name = "OriginalSize"
  471. o130.Parent = o117
  472. o130.Value = Vector3.new(2, 1, 1)
  473. o131.Name = "GettingUp"
  474. o131.Parent = o117
  475. o131.SoundId = "rbxasset://sounds/action_get_up.mp3"
  476. o131.Volume = 0.64999997615814
  477. o132.Name = "Died"
  478. o132.Parent = o117
  479. o132.SoundId = "rbxasset://sounds/uuhhh.mp3"
  480. o132.Volume = 0.64999997615814
  481. o133.Name = "FreeFalling"
  482. o133.Parent = o117
  483. o133.SoundId = "rbxasset://sounds/action_falling.mp3"
  484. o133.Volume = 0.64999997615814
  485. o133.Looped = true
  486. o134.Name = "Jumping"
  487. o134.Parent = o117
  488. o134.SoundId = "rbxasset://sounds/action_jump.mp3"
  489. o134.Volume = 0.64999997615814
  490. o135.Name = "Landing"
  491. o135.Parent = o117
  492. o135.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  493. o135.Volume = 0.64999997615814
  494. o136.Name = "Splash"
  495. o136.Parent = o117
  496. o136.SoundId = "rbxasset://sounds/impact_water.mp3"
  497. o136.Volume = 0.64999997615814
  498. o137.Name = "Running"
  499. o137.Parent = o117
  500. o137.Pitch = 1.8500000238419
  501. o137.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  502. o137.Volume = 0.64999997615814
  503. o137.Looped = true
  504. o138.Name = "Swimming"
  505. o138.Parent = o117
  506. o138.Pitch = 1.6000000238419
  507. o138.SoundId = "rbxasset://sounds/action_swim.mp3"
  508. o138.Volume = 0.64999997615814
  509. o138.Looped = true
  510. o139.Name = "Climbing"
  511. o139.Parent = o117
  512. o139.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  513. o139.Volume = 0.64999997615814
  514. o139.Looped = true
  515. o140.Name = "Neck"
  516. o140.Parent = o117
  517. o140.C0 = CFrame.new(-4.17232513e-07, 0.834590554, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  518. o140.C1 = CFrame.new(0, -0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  519. o140.Active = true
  520. o140.Part0 = mas
  521. o140.Part1 = o117
  522. o141.Name = "face"
  523. o141.Parent = o117
  524. o141.Texture = "rbxassetid://2779681178"
  525. o142.Name = "Shirt"
  526. o142.Parent = o1
  527. o142.ShirtTemplate = "rbxassetid://1268378286"
  528. o143.Name = "Pants"
  529. o143.Parent = o1
  530. o143.PantsTemplate = "rbxassetid://1261244472"
  531. o146.Name = "OriginalPosition"
  532. o146.Parent = mas
  533. o146.Value = Vector3.new(-5.66244125e-07, 0.0325828269, 0.0487938523)
  534. o148.Name = "OriginalPosition"
  535. o148.Parent = mas
  536. o148.Value = Vector3.new(-5.66244125e-07, 0.432582825, 0.0487938523)
  537. o150.Name = "OriginalPosition"
  538. o150.Parent = mas
  539. o150.Value = Vector3.new(-0.500000596, -0.317417175, 0.0487938523)
  540. o152.Name = "OriginalPosition"
  541. o152.Parent = mas
  542. o152.Value = Vector3.new(0.499999434, -0.317417175, 0.0487938523)
  543. o154.Name = "OriginalPosition"
  544. o154.Parent = mas
  545. o154.Value = Vector3.new(-8.69035716e-07, -0.317417175, 0.0487938523)
  546. o156.Name = "OriginalPosition"
  547. o156.Parent = mas
  548. o156.Value = Vector3.new(-5.79254674e-07, -0.317417175, -0.451206207)
  549. o158.Name = "OriginalPosition"
  550. o158.Parent = mas
  551. o158.Value = Vector3.new(-5.93448078e-07, -0.317417175, 0.548793912)
  552. o159.Name = "OriginalSize"
  553. o159.Parent = mas
  554. o159.Value = Vector3.new(1.68052888, 0.508752942, 1.01567388)
  555. o160.Name = "Root"
  556. o160.Parent = mas
  557. o160.C0 = CFrame.new(0, -0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  558. o160.C1 = CFrame.new(-5.66244125e-07, 0.0325828269, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  559. o160.Active = true
  560. o160.Part0 = o2
  561. o160.Part1 = mas
  562. o161.Parent = o1
  563. o161.HeadColor = BrickColor.new("Institutional white")
  564. o161.LeftArmColor = BrickColor.new("Institutional white")
  565. o161.LeftLegColor = BrickColor.new("Really black")
  566. o161.RightArmColor = BrickColor.new("Institutional white")
  567. o161.RightLegColor = BrickColor.new("Really black")
  568. o161.TorsoColor = BrickColor.new("Institutional white")
  569. o162.Name = "Animate"
  570. o162.Parent = o1
  571. table.insert(cors,coroutine.create(function()
  572. wait()
  573. runDummyScript(function()
  574. function waitForChild(parent, childName)
  575. local child = parent:findFirstChild(childName)
  576. if child then return child end
  577. while true do
  578. child = parent.ChildAdded:wait()
  579. if child.Name==childName then return child end
  580. end
  581. end
  582.  
  583. local Figure = script.Parent
  584. local Humanoid = waitForChild(Figure, "Humanoid")
  585. local pose = "Standing"
  586.  
  587. local currentAnim = ""
  588. local currentAnimInstance = nil
  589. local currentAnimTrack = nil
  590. local currentAnimKeyframeHandler = nil
  591. local currentAnimSpeed = 1.0
  592. local animTable = {}
  593. local animNames = {
  594. idle = {
  595. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  596. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  597. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  598. },
  599. walk = {
  600. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  601. },
  602. run = {
  603. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  604. },
  605. swim = {
  606. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  607. },
  608. swimidle = {
  609. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  610. },
  611. jump = {
  612. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  613. },
  614. fall = {
  615. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  616. },
  617. climb = {
  618. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  619. },
  620. sit = {
  621. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  622. },
  623. toolnone = {
  624. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  625. },
  626. toolslash = {
  627. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  628. -- { id = "slash.xml", weight = 10 }
  629. },
  630. toollunge = {
  631. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  632. },
  633. wave = {
  634. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  635. },
  636. point = {
  637. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  638. },
  639. dance = {
  640. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  641. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  642. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  643. },
  644. dance2 = {
  645. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  646. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  647. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  648. },
  649. dance3 = {
  650. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  651. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  652. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  653. },
  654. laugh = {
  655. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  656. },
  657. cheer = {
  658. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  659. },
  660. }
  661.  
  662. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  663. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  664.  
  665. math.randomseed(tick())
  666.  
  667. function configureAnimationSet(name, fileList)
  668. if (animTable[name] ~= nil) then
  669. for _, connection in pairs(animTable[name].connections) do
  670. connection:disconnect()
  671. end
  672. end
  673. animTable[name] = {}
  674. animTable[name].count = 0
  675. animTable[name].totalWeight = 0
  676. animTable[name].connections = {}
  677.  
  678. -- check for config values
  679. local config = script:FindFirstChild(name)
  680. if (config ~= nil) then
  681. -- print("Loading anims " .. name)
  682. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  683. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  684. local idx = 1
  685. for _, childPart in pairs(config:GetChildren()) do
  686. if (childPart:IsA("Animation")) then
  687. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  688. animTable[name][idx] = {}
  689. animTable[name][idx].anim = childPart
  690. local weightObject = childPart:FindFirstChild("Weight")
  691. if (weightObject == nil) then
  692. animTable[name][idx].weight = 1
  693. else
  694. animTable[name][idx].weight = weightObject.Value
  695. end
  696. animTable[name].count = animTable[name].count + 1
  697. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  698. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  699. idx = idx + 1
  700. end
  701. end
  702. end
  703.  
  704. -- fallback to defaults
  705. if (animTable[name].count <= 0) then
  706. for idx, anim in pairs(fileList) do
  707. animTable[name][idx] = {}
  708. animTable[name][idx].anim = Instance.new("Animation")
  709. animTable[name][idx].anim.Name = name
  710. animTable[name][idx].anim.AnimationId = anim.id
  711. animTable[name][idx].weight = anim.weight
  712. animTable[name].count = animTable[name].count + 1
  713. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  714. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  715. end
  716. end
  717. end
  718.  
  719. -- Setup animation objects
  720. function scriptChildModified(child)
  721. local fileList = animNames[child.Name]
  722. if (fileList ~= nil) then
  723. configureAnimationSet(child.Name, fileList)
  724. end
  725. end
  726.  
  727. script.ChildAdded:connect(scriptChildModified)
  728. script.ChildRemoved:connect(scriptChildModified)
  729.  
  730.  
  731. for name, fileList in pairs(animNames) do
  732. configureAnimationSet(name, fileList)
  733. end
  734.  
  735. -- ANIMATION
  736.  
  737. -- declarations
  738. local toolAnim = "None"
  739. local toolAnimTime = 0
  740.  
  741. local jumpAnimTime = 0
  742. local jumpAnimDuration = 0.31
  743.  
  744. local toolTransitionTime = 0.1
  745. local fallTransitionTime = 0.2
  746.  
  747. -- functions
  748.  
  749. function stopAllAnimations()
  750. local oldAnim = currentAnim
  751.  
  752. -- return to idle if finishing an emote
  753. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  754. oldAnim = "idle"
  755. end
  756.  
  757. currentAnim = ""
  758. currentAnimInstance = nil
  759. if (currentAnimKeyframeHandler ~= nil) then
  760. currentAnimKeyframeHandler:disconnect()
  761. end
  762.  
  763. if (currentAnimTrack ~= nil) then
  764. currentAnimTrack:Stop()
  765. currentAnimTrack:Destroy()
  766. currentAnimTrack = nil
  767. end
  768. return oldAnim
  769. end
  770.  
  771. function setAnimationSpeed(speed)
  772. if speed ~= currentAnimSpeed then
  773. currentAnimSpeed = speed
  774. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  775. end
  776. end
  777.  
  778. function keyFrameReachedFunc(frameName)
  779. if (frameName == "End") then
  780. -- print("Keyframe : ".. frameName)
  781.  
  782. local repeatAnim = currentAnim
  783. -- return to idle if finishing an emote
  784. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  785. repeatAnim = "idle"
  786. end
  787.  
  788. local animSpeed = currentAnimSpeed
  789. playAnimation(repeatAnim, 0.15, Humanoid)
  790. setAnimationSpeed(animSpeed)
  791. end
  792. end
  793.  
  794. -- Preload animations
  795. function playAnimation(animName, transitionTime, humanoid)
  796.  
  797. local roll = math.random(1, animTable[animName].totalWeight)
  798. local origRoll = roll
  799. local idx = 1
  800. while (roll > animTable[animName][idx].weight) do
  801. roll = roll - animTable[animName][idx].weight
  802. idx = idx + 1
  803. end
  804.  
  805. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  806.  
  807. local anim = animTable[animName][idx].anim
  808.  
  809. -- switch animation
  810. if (anim ~= currentAnimInstance) then
  811.  
  812. if (currentAnimTrack ~= nil) then
  813. currentAnimTrack:Stop(transitionTime)
  814. currentAnimTrack:Destroy()
  815. end
  816.  
  817. currentAnimSpeed = 1.0
  818.  
  819. -- load it to the humanoid; get AnimationTrack
  820. currentAnimTrack = humanoid:LoadAnimation(anim)
  821.  
  822. -- play the animation
  823. currentAnimTrack:Play(transitionTime)
  824. currentAnim = animName
  825. currentAnimInstance = anim
  826.  
  827. -- set up keyframe name triggers
  828. if (currentAnimKeyframeHandler ~= nil) then
  829. currentAnimKeyframeHandler:disconnect()
  830. end
  831. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  832.  
  833. end
  834.  
  835. end
  836.  
  837. -------------------------------------------------------------------------------------------
  838. -------------------------------------------------------------------------------------------
  839.  
  840. local toolAnimName = ""
  841. local toolAnimTrack = nil
  842. local toolAnimInstance = nil
  843. local currentToolAnimKeyframeHandler = nil
  844.  
  845. function toolKeyFrameReachedFunc(frameName)
  846. if (frameName == "End") then
  847. -- print("Keyframe : ".. frameName)
  848. playToolAnimation(toolAnimName, 0.0, Humanoid)
  849. end
  850. end
  851.  
  852.  
  853. function playToolAnimation(animName, transitionTime, humanoid)
  854.  
  855. local roll = math.random(1, animTable[animName].totalWeight)
  856. local origRoll = roll
  857. local idx = 1
  858. while (roll > animTable[animName][idx].weight) do
  859. roll = roll - animTable[animName][idx].weight
  860. idx = idx + 1
  861. end
  862. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  863. local anim = animTable[animName][idx].anim
  864.  
  865. if (toolAnimInstance ~= anim) then
  866.  
  867. if (toolAnimTrack ~= nil) then
  868. toolAnimTrack:Stop()
  869. toolAnimTrack:Destroy()
  870. transitionTime = 0
  871. end
  872.  
  873. -- load it to the humanoid; get AnimationTrack
  874. toolAnimTrack = humanoid:LoadAnimation(anim)
  875.  
  876. -- play the animation
  877. toolAnimTrack:Play(transitionTime)
  878. toolAnimName = animName
  879. toolAnimInstance = anim
  880.  
  881. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  882. end
  883. end
  884.  
  885. function stopToolAnimations()
  886. local oldAnim = toolAnimName
  887.  
  888. if (currentToolAnimKeyframeHandler ~= nil) then
  889. currentToolAnimKeyframeHandler:disconnect()
  890. end
  891.  
  892. toolAnimName = ""
  893. toolAnimInstance = nil
  894. if (toolAnimTrack ~= nil) then
  895. toolAnimTrack:Stop()
  896. toolAnimTrack:Destroy()
  897. toolAnimTrack = nil
  898. end
  899.  
  900.  
  901. return oldAnim
  902. end
  903.  
  904. -------------------------------------------------------------------------------------------
  905. -------------------------------------------------------------------------------------------
  906.  
  907.  
  908. function onRunning(speed)
  909. if speed > 0.01 then
  910. local scale = 15.0
  911. playAnimation("walk", 0.1, Humanoid)
  912. setAnimationSpeed(speed / scale)
  913. pose = "Running"
  914. else
  915. if emoteNames[currentAnim] == nil then
  916. playAnimation("idle", 0.1, Humanoid)
  917. pose = "Standing"
  918. end
  919. end
  920. end
  921.  
  922. function onDied()
  923. pose = "Dead"
  924. end
  925.  
  926. function onJumping()
  927. playAnimation("jump", 0.1, Humanoid)
  928. jumpAnimTime = jumpAnimDuration
  929. pose = "Jumping"
  930. end
  931.  
  932. function onClimbing(speed)
  933. local scale = 5.0
  934. playAnimation("climb", 0.1, Humanoid)
  935. setAnimationSpeed(speed / scale)
  936. pose = "Climbing"
  937. end
  938.  
  939. function onGettingUp()
  940. pose = "GettingUp"
  941. end
  942.  
  943. function onFreeFall()
  944. if (jumpAnimTime <= 0) then
  945. playAnimation("fall", fallTransitionTime, Humanoid)
  946. end
  947. pose = "FreeFall"
  948. end
  949.  
  950. function onFallingDown()
  951. pose = "FallingDown"
  952. end
  953.  
  954. function onSeated()
  955. pose = "Seated"
  956. end
  957.  
  958. function onPlatformStanding()
  959. pose = "PlatformStanding"
  960. end
  961.  
  962. function onSwimming(speed)
  963. if speed > 1.00 then
  964. local scale = 10.0
  965. playAnimation("swim", 0.4, Humanoid)
  966. setAnimationSpeed(speed / scale)
  967. pose = "Swimming"
  968. else
  969. playAnimation("swimidle", 0.4, Humanoid)
  970. pose = "Standing"
  971. end
  972. end
  973.  
  974. function getTool()
  975. for _, kid in ipairs(Figure:GetChildren()) do
  976. if kid.className == "Tool" then return kid end
  977. end
  978. return nil
  979. end
  980.  
  981. function getToolAnim(tool)
  982. for _, c in ipairs(tool:GetChildren()) do
  983. if c.Name == "toolanim" and c.className == "StringValue" then
  984. return c
  985. end
  986. end
  987. return nil
  988. end
  989.  
  990. function animateTool()
  991.  
  992. if (toolAnim == "None") then
  993. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  994. return
  995. end
  996.  
  997. if (toolAnim == "Slash") then
  998. playToolAnimation("toolslash", 0, Humanoid)
  999. return
  1000. end
  1001.  
  1002. if (toolAnim == "Lunge") then
  1003. playToolAnimation("toollunge", 0, Humanoid)
  1004. return
  1005. end
  1006. end
  1007.  
  1008. function moveSit()
  1009. RightShoulder.MaxVelocity = 0.15
  1010. LeftShoulder.MaxVelocity = 0.15
  1011. RightShoulder:SetDesiredAngle(3.14 /2)
  1012. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1013. RightHip:SetDesiredAngle(3.14 /2)
  1014. LeftHip:SetDesiredAngle(-3.14 /2)
  1015. end
  1016.  
  1017. local lastTick = 0
  1018.  
  1019. function move(time)
  1020. local amplitude = 1
  1021. local frequency = 1
  1022. local deltaTime = time - lastTick
  1023. lastTick = time
  1024.  
  1025. local climbFudge = 0
  1026. local setAngles = false
  1027.  
  1028. if (jumpAnimTime > 0) then
  1029. jumpAnimTime = jumpAnimTime - deltaTime
  1030. end
  1031.  
  1032. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1033. playAnimation("fall", fallTransitionTime, Humanoid)
  1034. elseif (pose == "Seated") then
  1035. playAnimation("sit", 0.5, Humanoid)
  1036. return
  1037. elseif (pose == "Running") then
  1038. playAnimation("walk", 0.1, Humanoid)
  1039. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1040. stopAllAnimations()
  1041. amplitude = 0.1
  1042. frequency = 1
  1043. setAngles = true
  1044. end
  1045.  
  1046. -- Tool Animation handling
  1047. local tool = getTool()
  1048. if tool and (tool.RequiresHandle or tool:FindFirstChild("Handle")) then
  1049.  
  1050. animStringValueObject = getToolAnim(tool)
  1051.  
  1052. if animStringValueObject then
  1053. toolAnim = animStringValueObject.Value
  1054. -- message recieved, delete StringValue
  1055. animStringValueObject.Parent = nil
  1056. toolAnimTime = time + .3
  1057. end
  1058.  
  1059. if time > toolAnimTime then
  1060. toolAnimTime = 0
  1061. toolAnim = "None"
  1062. end
  1063.  
  1064. animateTool()
  1065. else
  1066. stopToolAnimations()
  1067. toolAnim = "None"
  1068. toolAnimInstance = nil
  1069. toolAnimTime = 0
  1070. end
  1071. end
  1072.  
  1073. -- connect events
  1074. Humanoid.Died:connect(onDied)
  1075. Humanoid.Running:connect(onRunning)
  1076. Humanoid.Jumping:connect(onJumping)
  1077. Humanoid.Climbing:connect(onClimbing)
  1078. Humanoid.GettingUp:connect(onGettingUp)
  1079. Humanoid.FreeFalling:connect(onFreeFall)
  1080. Humanoid.FallingDown:connect(onFallingDown)
  1081. Humanoid.Seated:connect(onSeated)
  1082. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1083. Humanoid.Swimming:connect(onSwimming)
  1084.  
  1085. -- setup emote chat hook
  1086. Game.Players.LocalPlayer.Chatted:connect(function(msg)
  1087. local emote = ""
  1088. if (string.sub(msg, 1, 3) == "/e ") then
  1089. emote = string.sub(msg, 4)
  1090. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1091. emote = string.sub(msg, 8)
  1092. end
  1093.  
  1094. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1095. playAnimation(emote, 0.1, Humanoid)
  1096. end
  1097. -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1098. end)
  1099.  
  1100.  
  1101. -- main program
  1102.  
  1103. local runService = game:service("RunService");
  1104.  
  1105. -- print("bottom")
  1106.  
  1107. -- initialize to idle
  1108. playAnimation("idle", 0.1, Humanoid)
  1109. pose = "Standing"
  1110.  
  1111. while Figure.Parent~=nil do
  1112. local _, time = wait(0.1)
  1113. move(time)
  1114. end
  1115.  
  1116.  
  1117.  
  1118. end,o162)
  1119. end))
  1120. o163.Name = "Health"
  1121. o163.Parent = o1
  1122. table.insert(cors,coroutine.create(function()
  1123. wait()
  1124. runDummyScript(function()
  1125. --Responsible for regening a player's humanoid's health
  1126.  
  1127. -- declarations
  1128. local Figure = script.Parent
  1129. local Head = Figure:WaitForChild("Head")
  1130. local Humanoid = Figure:WaitForChild("Humanoid")
  1131. local regening = false
  1132.  
  1133. -- regeneration
  1134. function regenHealth()
  1135. if regening then return end
  1136. regening = true
  1137.  
  1138. while Humanoid.Health < Humanoid.MaxHealth do
  1139. local s = wait(1)
  1140. local health = Humanoid.Health
  1141. if health > 0 and health < Humanoid.MaxHealth then
  1142. local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  1143. health = health + newHealthDelta
  1144. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  1145. end
  1146. end
  1147.  
  1148. if Humanoid.Health > Humanoid.MaxHealth then
  1149. Humanoid.Health = Humanoid.MaxHealth
  1150. end
  1151.  
  1152. regening = false
  1153. end
  1154.  
  1155. Humanoid.HealthChanged:connect(regenHealth)
  1156.  
  1157. end,o163)
  1158. end))
  1159. o164.Name = "Animate"
  1160. o164.Parent = o1
  1161. table.insert(cors,coroutine.create(function()
  1162. wait()
  1163. runDummyScript(function()
  1164. function waitForChild(parent, childName)
  1165. local child = parent:findFirstChild(childName)
  1166. if child then return child end
  1167. while true do
  1168. child = parent.ChildAdded:wait()
  1169. if child.Name==childName then return child end
  1170. end
  1171. end
  1172.  
  1173. local Figure = script.Parent
  1174. local Humanoid = waitForChild(Figure, "Humanoid")
  1175. local pose = "Standing"
  1176.  
  1177. local currentAnim = ""
  1178. local currentAnimInstance = nil
  1179. local currentAnimTrack = nil
  1180. local currentAnimKeyframeHandler = nil
  1181. local currentAnimSpeed = 1.0
  1182. local animTable = {}
  1183. local animNames = {
  1184. idle = {
  1185. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  1186. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  1187. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  1188. },
  1189. walk = {
  1190. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  1191. },
  1192. run = {
  1193. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  1194. },
  1195. swim = {
  1196. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  1197. },
  1198. swimidle = {
  1199. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  1200. },
  1201. jump = {
  1202. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  1203. },
  1204. fall = {
  1205. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  1206. },
  1207. climb = {
  1208. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  1209. },
  1210. sit = {
  1211. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  1212. },
  1213. toolnone = {
  1214. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1215. },
  1216. toolslash = {
  1217. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1218. -- { id = "slash.xml", weight = 10 }
  1219. },
  1220. toollunge = {
  1221. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1222. },
  1223. wave = {
  1224. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  1225. },
  1226. point = {
  1227. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  1228. },
  1229. dance = {
  1230. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  1231. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  1232. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  1233. },
  1234. dance2 = {
  1235. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  1236. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  1237. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  1238. },
  1239. dance3 = {
  1240. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  1241. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  1242. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  1243. },
  1244. laugh = {
  1245. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  1246. },
  1247. cheer = {
  1248. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  1249. },
  1250. }
  1251.  
  1252. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1253. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1254.  
  1255. math.randomseed(tick())
  1256.  
  1257. function configureAnimationSet(name, fileList)
  1258. if (animTable[name] ~= nil) then
  1259. for _, connection in pairs(animTable[name].connections) do
  1260. connection:disconnect()
  1261. end
  1262. end
  1263. animTable[name] = {}
  1264. animTable[name].count = 0
  1265. animTable[name].totalWeight = 0
  1266. animTable[name].connections = {}
  1267.  
  1268. -- check for config values
  1269. local config = script:FindFirstChild(name)
  1270. if (config ~= nil) then
  1271. -- print("Loading anims " .. name)
  1272. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1273. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1274. local idx = 1
  1275. for _, childPart in pairs(config:GetChildren()) do
  1276. if (childPart:IsA("Animation")) then
  1277. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1278. animTable[name][idx] = {}
  1279. animTable[name][idx].anim = childPart
  1280. local weightObject = childPart:FindFirstChild("Weight")
  1281. if (weightObject == nil) then
  1282. animTable[name][idx].weight = 1
  1283. else
  1284. animTable[name][idx].weight = weightObject.Value
  1285. end
  1286. animTable[name].count = animTable[name].count + 1
  1287. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1288. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1289. idx = idx + 1
  1290. end
  1291. end
  1292. end
  1293.  
  1294. -- fallback to defaults
  1295. if (animTable[name].count <= 0) then
  1296. for idx, anim in pairs(fileList) do
  1297. animTable[name][idx] = {}
  1298. animTable[name][idx].anim = Instance.new("Animation")
  1299. animTable[name][idx].anim.Name = name
  1300. animTable[name][idx].anim.AnimationId = anim.id
  1301. animTable[name][idx].weight = anim.weight
  1302. animTable[name].count = animTable[name].count + 1
  1303. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1304. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1305. end
  1306. end
  1307. end
  1308.  
  1309. -- Setup animation objects
  1310. function scriptChildModified(child)
  1311. local fileList = animNames[child.Name]
  1312. if (fileList ~= nil) then
  1313. configureAnimationSet(child.Name, fileList)
  1314. end
  1315. end
  1316.  
  1317. script.ChildAdded:connect(scriptChildModified)
  1318. script.ChildRemoved:connect(scriptChildModified)
  1319.  
  1320.  
  1321. for name, fileList in pairs(animNames) do
  1322. configureAnimationSet(name, fileList)
  1323. end
  1324.  
  1325. -- ANIMATION
  1326.  
  1327. -- declarations
  1328. local toolAnim = "None"
  1329. local toolAnimTime = 0
  1330.  
  1331. local jumpAnimTime = 0
  1332. local jumpAnimDuration = 0.31
  1333.  
  1334. local toolTransitionTime = 0.1
  1335. local fallTransitionTime = 0.2
  1336.  
  1337. -- functions
  1338.  
  1339. function stopAllAnimations()
  1340. local oldAnim = currentAnim
  1341.  
  1342. -- return to idle if finishing an emote
  1343. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1344. oldAnim = "idle"
  1345. end
  1346.  
  1347. currentAnim = ""
  1348. currentAnimInstance = nil
  1349. if (currentAnimKeyframeHandler ~= nil) then
  1350. currentAnimKeyframeHandler:disconnect()
  1351. end
  1352.  
  1353. if (currentAnimTrack ~= nil) then
  1354. currentAnimTrack:Stop()
  1355. currentAnimTrack:Destroy()
  1356. currentAnimTrack = nil
  1357. end
  1358. return oldAnim
  1359. end
  1360.  
  1361. function setAnimationSpeed(speed)
  1362. if speed ~= currentAnimSpeed then
  1363. currentAnimSpeed = speed
  1364. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1365. end
  1366. end
  1367.  
  1368. function keyFrameReachedFunc(frameName)
  1369. if (frameName == "End") then
  1370. -- print("Keyframe : ".. frameName)
  1371.  
  1372. local repeatAnim = currentAnim
  1373. -- return to idle if finishing an emote
  1374. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1375. repeatAnim = "idle"
  1376. end
  1377.  
  1378. local animSpeed = currentAnimSpeed
  1379. playAnimation(repeatAnim, 0.15, Humanoid)
  1380. setAnimationSpeed(animSpeed)
  1381. end
  1382. end
  1383.  
  1384. -- Preload animations
  1385. function playAnimation(animName, transitionTime, humanoid)
  1386.  
  1387. local roll = math.random(1, animTable[animName].totalWeight)
  1388. local origRoll = roll
  1389. local idx = 1
  1390. while (roll > animTable[animName][idx].weight) do
  1391. roll = roll - animTable[animName][idx].weight
  1392. idx = idx + 1
  1393. end
  1394.  
  1395. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1396.  
  1397. local anim = animTable[animName][idx].anim
  1398.  
  1399. -- switch animation
  1400. if (anim ~= currentAnimInstance) then
  1401.  
  1402. if (currentAnimTrack ~= nil) then
  1403. currentAnimTrack:Stop(transitionTime)
  1404. currentAnimTrack:Destroy()
  1405. end
  1406.  
  1407. currentAnimSpeed = 1.0
  1408.  
  1409. -- load it to the humanoid; get AnimationTrack
  1410. currentAnimTrack = humanoid:LoadAnimation(anim)
  1411.  
  1412. -- play the animation
  1413. currentAnimTrack:Play(transitionTime)
  1414. currentAnim = animName
  1415. currentAnimInstance = anim
  1416.  
  1417. -- set up keyframe name triggers
  1418. if (currentAnimKeyframeHandler ~= nil) then
  1419. currentAnimKeyframeHandler:disconnect()
  1420. end
  1421. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1422.  
  1423. end
  1424.  
  1425. end
  1426.  
  1427. -------------------------------------------------------------------------------------------
  1428. -------------------------------------------------------------------------------------------
  1429.  
  1430. local toolAnimName = ""
  1431. local toolAnimTrack = nil
  1432. local toolAnimInstance = nil
  1433. local currentToolAnimKeyframeHandler = nil
  1434.  
  1435. function toolKeyFrameReachedFunc(frameName)
  1436. if (frameName == "End") then
  1437. -- print("Keyframe : ".. frameName)
  1438. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1439. end
  1440. end
  1441.  
  1442.  
  1443. function playToolAnimation(animName, transitionTime, humanoid)
  1444.  
  1445. local roll = math.random(1, animTable[animName].totalWeight)
  1446. local origRoll = roll
  1447. local idx = 1
  1448. while (roll > animTable[animName][idx].weight) do
  1449. roll = roll - animTable[animName][idx].weight
  1450. idx = idx + 1
  1451. end
  1452. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1453. local anim = animTable[animName][idx].anim
  1454.  
  1455. if (toolAnimInstance ~= anim) then
  1456.  
  1457. if (toolAnimTrack ~= nil) then
  1458. toolAnimTrack:Stop()
  1459. toolAnimTrack:Destroy()
  1460. transitionTime = 0
  1461. end
  1462.  
  1463. -- load it to the humanoid; get AnimationTrack
  1464. toolAnimTrack = humanoid:LoadAnimation(anim)
  1465.  
  1466. -- play the animation
  1467. toolAnimTrack:Play(transitionTime)
  1468. toolAnimName = animName
  1469. toolAnimInstance = anim
  1470.  
  1471. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1472. end
  1473. end
  1474.  
  1475. function stopToolAnimations()
  1476. local oldAnim = toolAnimName
  1477.  
  1478. if (currentToolAnimKeyframeHandler ~= nil) then
  1479. currentToolAnimKeyframeHandler:disconnect()
  1480. end
  1481.  
  1482. toolAnimName = ""
  1483. toolAnimInstance = nil
  1484. if (toolAnimTrack ~= nil) then
  1485. toolAnimTrack:Stop()
  1486. toolAnimTrack:Destroy()
  1487. toolAnimTrack = nil
  1488. end
  1489.  
  1490.  
  1491. return oldAnim
  1492. end
  1493.  
  1494. -------------------------------------------------------------------------------------------
  1495. -------------------------------------------------------------------------------------------
  1496.  
  1497.  
  1498. function onRunning(speed)
  1499. if speed > 0.01 then
  1500. local scale = 15.0
  1501. playAnimation("walk", 0.1, Humanoid)
  1502. setAnimationSpeed(speed / scale)
  1503. pose = "Running"
  1504. else
  1505. if emoteNames[currentAnim] == nil then
  1506. playAnimation("idle", 0.1, Humanoid)
  1507. pose = "Standing"
  1508. end
  1509. end
  1510. end
  1511.  
  1512. function onDied()
  1513. pose = "Dead"
  1514. end
  1515.  
  1516. function onJumping()
  1517. playAnimation("jump", 0.1, Humanoid)
  1518. jumpAnimTime = jumpAnimDuration
  1519. pose = "Jumping"
  1520. end
  1521.  
  1522. function onClimbing(speed)
  1523. local scale = 5.0
  1524. playAnimation("climb", 0.1, Humanoid)
  1525. setAnimationSpeed(speed / scale)
  1526. pose = "Climbing"
  1527. end
  1528.  
  1529. function onGettingUp()
  1530. pose = "GettingUp"
  1531. end
  1532.  
  1533. function onFreeFall()
  1534. if (jumpAnimTime <= 0) then
  1535. playAnimation("fall", fallTransitionTime, Humanoid)
  1536. end
  1537. pose = "FreeFall"
  1538. end
  1539.  
  1540. function onFallingDown()
  1541. pose = "FallingDown"
  1542. end
  1543.  
  1544. function onSeated()
  1545. pose = "Seated"
  1546. end
  1547.  
  1548. function onPlatformStanding()
  1549. pose = "PlatformStanding"
  1550. end
  1551.  
  1552. function onSwimming(speed)
  1553. if speed > 1.00 then
  1554. local scale = 10.0
  1555. playAnimation("swim", 0.4, Humanoid)
  1556. setAnimationSpeed(speed / scale)
  1557. pose = "Swimming"
  1558. else
  1559. playAnimation("swimidle", 0.4, Humanoid)
  1560. pose = "Standing"
  1561. end
  1562. end
  1563.  
  1564. function getTool()
  1565. for _, kid in ipairs(Figure:GetChildren()) do
  1566. if kid.className == "Tool" then return kid end
  1567. end
  1568. return nil
  1569. end
  1570.  
  1571. function getToolAnim(tool)
  1572. for _, c in ipairs(tool:GetChildren()) do
  1573. if c.Name == "toolanim" and c.className == "StringValue" then
  1574. return c
  1575. end
  1576. end
  1577. return nil
  1578. end
  1579.  
  1580. function animateTool()
  1581.  
  1582. if (toolAnim == "None") then
  1583. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1584. return
  1585. end
  1586.  
  1587. if (toolAnim == "Slash") then
  1588. playToolAnimation("toolslash", 0, Humanoid)
  1589. return
  1590. end
  1591.  
  1592. if (toolAnim == "Lunge") then
  1593. playToolAnimation("toollunge", 0, Humanoid)
  1594. return
  1595. end
  1596. end
  1597.  
  1598. function moveSit()
  1599. RightShoulder.MaxVelocity = 0.15
  1600. LeftShoulder.MaxVelocity = 0.15
  1601. RightShoulder:SetDesiredAngle(3.14 /2)
  1602. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1603. RightHip:SetDesiredAngle(3.14 /2)
  1604. LeftHip:SetDesiredAngle(-3.14 /2)
  1605. end
  1606.  
  1607. local lastTick = 0
  1608.  
  1609. function move(time)
  1610. local amplitude = 1
  1611. local frequency = 1
  1612. local deltaTime = time - lastTick
  1613. lastTick = time
  1614.  
  1615. local climbFudge = 0
  1616. local setAngles = false
  1617.  
  1618. if (jumpAnimTime > 0) then
  1619. jumpAnimTime = jumpAnimTime - deltaTime
  1620. end
  1621.  
  1622. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1623. playAnimation("fall", fallTransitionTime, Humanoid)
  1624. elseif (pose == "Seated") then
  1625. playAnimation("sit", 0.5, Humanoid)
  1626. return
  1627. elseif (pose == "Running") then
  1628. playAnimation("walk", 0.1, Humanoid)
  1629. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1630. stopAllAnimations()
  1631. amplitude = 0.1
  1632. frequency = 1
  1633. setAngles = true
  1634. end
  1635.  
  1636. -- Tool Animation handling
  1637. local tool = getTool()
  1638. if tool and (tool.RequiresHandle or tool:FindFirstChild("Handle")) then
  1639.  
  1640. animStringValueObject = getToolAnim(tool)
  1641.  
  1642. if animStringValueObject then
  1643. toolAnim = animStringValueObject.Value
  1644. -- message recieved, delete StringValue
  1645. animStringValueObject.Parent = nil
  1646. toolAnimTime = time + .3
  1647. end
  1648.  
  1649. if time > toolAnimTime then
  1650. toolAnimTime = 0
  1651. toolAnim = "None"
  1652. end
  1653.  
  1654. animateTool()
  1655. else
  1656. stopToolAnimations()
  1657. toolAnim = "None"
  1658. toolAnimInstance = nil
  1659. toolAnimTime = 0
  1660. end
  1661. end
  1662.  
  1663. -- connect events
  1664. Humanoid.Died:connect(onDied)
  1665. Humanoid.Running:connect(onRunning)
  1666. Humanoid.Jumping:connect(onJumping)
  1667. Humanoid.Climbing:connect(onClimbing)
  1668. Humanoid.GettingUp:connect(onGettingUp)
  1669. Humanoid.FreeFalling:connect(onFreeFall)
  1670. Humanoid.FallingDown:connect(onFallingDown)
  1671. Humanoid.Seated:connect(onSeated)
  1672. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1673. Humanoid.Swimming:connect(onSwimming)
  1674.  
  1675. -- setup emote chat hook
  1676. Game.Players.LocalPlayer.Chatted:connect(function(msg)
  1677. local emote = ""
  1678. if (string.sub(msg, 1, 3) == "/e ") then
  1679. emote = string.sub(msg, 4)
  1680. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1681. emote = string.sub(msg, 8)
  1682. end
  1683.  
  1684. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1685. playAnimation(emote, 0.1, Humanoid)
  1686. end
  1687. -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1688. end)
  1689.  
  1690.  
  1691. -- main program
  1692.  
  1693. local runService = game:service("RunService");
  1694.  
  1695. -- print("bottom")
  1696.  
  1697. -- initialize to idle
  1698. playAnimation("idle", 0.1, Humanoid)
  1699. pose = "Standing"
  1700.  
  1701. while Figure.Parent~=nil do
  1702. local _, time = wait(0.1)
  1703. move(time)
  1704. end
  1705.  
  1706.  
  1707.  
  1708. end,o164)
  1709. end))
  1710. o165.Name = "climb"
  1711. o165.Parent = o164
  1712. o166.Name = "ClimbAnim"
  1713. o166.Parent = o165
  1714. o166.AnimationId = "http://www.roblox.com/asset/?id=507765644"
  1715. o167.Name = "fall"
  1716. o167.Parent = o164
  1717. o168.Name = "FallAnim"
  1718. o168.Parent = o167
  1719. o168.AnimationId = "http://www.roblox.com/asset/?id=507767968"
  1720. o169.Name = "idle"
  1721. o169.Parent = o164
  1722. o170.Name = "Animation1"
  1723. o170.Parent = o169
  1724. o170.AnimationId = "http://www.roblox.com/asset/?id=507766388"
  1725. o171.Name = "Weight"
  1726. o171.Parent = o170
  1727. o171.Value = 9
  1728. o172.Name = "Animation2"
  1729. o172.Parent = o169
  1730. o172.AnimationId = "http://www.roblox.com/asset/?id=507766666"
  1731. o173.Name = "Weight"
  1732. o173.Parent = o172
  1733. o173.Value = 1
  1734. o174.Name = "jump"
  1735. o174.Parent = o164
  1736. o175.Name = "JumpAnim"
  1737. o175.Parent = o174
  1738. o175.AnimationId = "http://www.roblox.com/asset/?id=507765000"
  1739. o176.Name = "run"
  1740. o176.Parent = o164
  1741. o177.Name = "RunAnim"
  1742. o177.Parent = o176
  1743. o177.AnimationId = "http://www.roblox.com/asset/?id=5077677142"
  1744. o178.Name = "sit"
  1745. o178.Parent = o164
  1746. o179.Name = "SitAnim"
  1747. o179.Parent = o178
  1748. o179.AnimationId = "http://www.roblox.com/asset/?id=507768133"
  1749. o180.Name = "toolnone"
  1750. o180.Parent = o164
  1751. o181.Name = "ToolNoneAnim"
  1752. o181.Parent = o180
  1753. o181.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1754. o182.Name = "walk"
  1755. o182.Parent = o164
  1756. o183.Name = "RunAnim"
  1757. o183.Parent = o182
  1758. o183.AnimationId = "http://www.roblox.com/asset/?id=507777826"
  1759. o184.Name = "swimidle"
  1760. o184.Parent = o164
  1761. o185.Name = "SwimIdle"
  1762. o185.Parent = o184
  1763. o185.AnimationId = "http://www.roblox.com/asset/?id=481825862"
  1764. o186.Name = "swim"
  1765. o186.Parent = o164
  1766. o187.Name = "Swim"
  1767. o187.Parent = o186
  1768. o187.AnimationId = "http://www.roblox.com/asset/?id=507784897"
  1769. o190.Name = "OriginalPosition"
  1770. o190.Parent = mas
  1771. o190.Value = Vector3.new(0.0625219345, 0.288986444, -0.0245017558)
  1772. o192.Name = "OriginalPosition"
  1773. o192.Parent = mas
  1774. o192.Value = Vector3.new(-0.187108159, -0.361013532, -0.0245017558)
  1775. o194.Name = "OriginalPosition"
  1776. o194.Parent = mas
  1777. o194.Value = Vector3.new(-0.187587023, 0.538986921, -0.0245018732)
  1778. o195.Name = "OriginalSize"
  1779. o195.Parent = mas
  1780. o195.Value = Vector3.new(0.675612688, 1.12489867, 0.826949)
  1781. o196.Name = "LeftShoulder"
  1782. o196.Parent = mas
  1783. o196.C0 = CFrame.new(-1.24989152, 0.584590554, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1784. o196.C1 = CFrame.new(0.0625219345, 0.288986444, -0.0245017558, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1785. o196.Active = true
  1786. o196.Part0 = mas
  1787. o196.Part1 = mas
  1788. mas.Parent = workspace
  1789. mas:MakeJoints()
  1790. local mas1 = mas:GetChildren()
  1791. for i=1,#mas1 do
  1792. mas1[i].Parent = workspace
  1793. ypcall(function() mas1[i]:MakeJoints() end)
  1794. end
  1795. mas:Destroy()
  1796. for i=1,#cors do
  1797. coroutine.resume(cors[i])
  1798. end
  1799.  
  1800. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  1801. game:GetService("Lighting").Brightness = 2
  1802. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  1803. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  1804. game:GetService("Lighting").GlobalShadows = true
  1805. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
  1806. game:GetService("Lighting").Outlines = false
  1807. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  1808. game:GetService("Lighting").TimeOfDay = "14:00:00"
  1809. game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  1810. game:GetService("Lighting").FogEnd = 100000
  1811. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement