Advertisement
BobMe

MemoDoll

Apr 21st, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.33 KB | None | 0 0
  1. --Assited with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. Part1 = Instance.new("Part")
  20. Model2 = Instance.new("Model")
  21. Part3 = Instance.new("Part")
  22. SpecialMesh4 = Instance.new("SpecialMesh")
  23. Attachment5 = Instance.new("Attachment")
  24. Attachment6 = Instance.new("Attachment")
  25. Attachment7 = Instance.new("Attachment")
  26. Attachment8 = Instance.new("Attachment")
  27. Sound9 = Instance.new("Sound")
  28. RemoteEvent10 = Instance.new("RemoteEvent")
  29. Sound11 = Instance.new("Sound")
  30. RemoteEvent12 = Instance.new("RemoteEvent")
  31. Sound13 = Instance.new("Sound")
  32. RemoteEvent14 = Instance.new("RemoteEvent")
  33. Sound15 = Instance.new("Sound")
  34. RemoteEvent16 = Instance.new("RemoteEvent")
  35. Sound17 = Instance.new("Sound")
  36. RemoteEvent18 = Instance.new("RemoteEvent")
  37. Sound19 = Instance.new("Sound")
  38. RemoteEvent20 = Instance.new("RemoteEvent")
  39. Sound21 = Instance.new("Sound")
  40. RemoteEvent22 = Instance.new("RemoteEvent")
  41. Sound23 = Instance.new("Sound")
  42. RemoteEvent24 = Instance.new("RemoteEvent")
  43. Sound25 = Instance.new("Sound")
  44. RemoteEvent26 = Instance.new("RemoteEvent")
  45. Decal27 = Instance.new("Decal")
  46. Part28 = Instance.new("Part")
  47. Decal29 = Instance.new("Decal")
  48. Attachment30 = Instance.new("Attachment")
  49. Attachment31 = Instance.new("Attachment")
  50. Attachment32 = Instance.new("Attachment")
  51. Attachment33 = Instance.new("Attachment")
  52. Attachment34 = Instance.new("Attachment")
  53. Attachment35 = Instance.new("Attachment")
  54. Attachment36 = Instance.new("Attachment")
  55. Attachment37 = Instance.new("Attachment")
  56. Motor6D38 = Instance.new("Motor6D")
  57. Motor6D39 = Instance.new("Motor6D")
  58. Motor6D40 = Instance.new("Motor6D")
  59. Motor6D41 = Instance.new("Motor6D")
  60. Motor6D42 = Instance.new("Motor6D")
  61. Part43 = Instance.new("Part")
  62. Attachment44 = Instance.new("Attachment")
  63. Attachment45 = Instance.new("Attachment")
  64. Part46 = Instance.new("Part")
  65. Attachment47 = Instance.new("Attachment")
  66. Attachment48 = Instance.new("Attachment")
  67. Part49 = Instance.new("Part")
  68. Attachment50 = Instance.new("Attachment")
  69. Part51 = Instance.new("Part")
  70. Attachment52 = Instance.new("Attachment")
  71. Humanoid53 = Instance.new("Humanoid")
  72. Part54 = Instance.new("Part")
  73. Attachment55 = Instance.new("Attachment")
  74. Motor6D56 = Instance.new("Motor6D")
  75. Script57 = Instance.new("Script")
  76. LocalScript58 = Instance.new("LocalScript")
  77. Script59 = Instance.new("Script")
  78. LocalScript60 = Instance.new("LocalScript")
  79. StringValue61 = Instance.new("StringValue")
  80. Animation62 = Instance.new("Animation")
  81. NumberValue63 = Instance.new("NumberValue")
  82. Animation64 = Instance.new("Animation")
  83. NumberValue65 = Instance.new("NumberValue")
  84. StringValue66 = Instance.new("StringValue")
  85. Animation67 = Instance.new("Animation")
  86. StringValue68 = Instance.new("StringValue")
  87. Animation69 = Instance.new("Animation")
  88. StringValue70 = Instance.new("StringValue")
  89. Animation71 = Instance.new("Animation")
  90. StringValue72 = Instance.new("StringValue")
  91. Animation73 = Instance.new("Animation")
  92. StringValue74 = Instance.new("StringValue")
  93. Animation75 = Instance.new("Animation")
  94. StringValue76 = Instance.new("StringValue")
  95. Animation77 = Instance.new("Animation")
  96. StringValue78 = Instance.new("StringValue")
  97. Animation79 = Instance.new("Animation")
  98. BodyColors80 = Instance.new("BodyColors")
  99. CharacterMesh81 = Instance.new("CharacterMesh")
  100. Shirt82 = Instance.new("Shirt")
  101. Accessory83 = Instance.new("Accessory")
  102. Part84 = Instance.new("Part")
  103. SpecialMesh85 = Instance.new("SpecialMesh")
  104. Attachment86 = Instance.new("Attachment")
  105. Weld87 = Instance.new("Weld")
  106. CharacterMesh88 = Instance.new("CharacterMesh")
  107. CharacterMesh89 = Instance.new("CharacterMesh")
  108. CharacterMesh90 = Instance.new("CharacterMesh")
  109. ShirtGraphic91 = Instance.new("ShirtGraphic")
  110. CharacterMesh92 = Instance.new("CharacterMesh")
  111. Accessory93 = Instance.new("Accessory")
  112. Part94 = Instance.new("Part")
  113. SpecialMesh95 = Instance.new("SpecialMesh")
  114. Attachment96 = Instance.new("Attachment")
  115. Vector3Value97 = Instance.new("Vector3Value")
  116. Weld98 = Instance.new("Weld")
  117. Pants99 = Instance.new("Pants")
  118. Accessory100 = Instance.new("Accessory")
  119. Part101 = Instance.new("Part")
  120. SpecialMesh102 = Instance.new("SpecialMesh")
  121. Vector3Value103 = Instance.new("Vector3Value")
  122. Attachment104 = Instance.new("Attachment")
  123. Weld105 = Instance.new("Weld")
  124. Accessory106 = Instance.new("Accessory")
  125. Part107 = Instance.new("Part")
  126. SpecialMesh108 = Instance.new("SpecialMesh")
  127. Attachment109 = Instance.new("Attachment")
  128. Vector3Value110 = Instance.new("Vector3Value")
  129. Weld111 = Instance.new("Weld")
  130. Accessory112 = Instance.new("Accessory")
  131. Part113 = Instance.new("Part")
  132. SpecialMesh114 = Instance.new("SpecialMesh")
  133. Attachment115 = Instance.new("Attachment")
  134. Weld116 = Instance.new("Weld")
  135. Weld117 = Instance.new("Weld")
  136. Tool0.Parent = mas
  137. Part1.Name = "Handle"
  138. Part1.Parent = Tool0
  139. Part1.Size = Vector3.new(0.145240039, 0.145240039, 0.145240039)
  140. Part1.CFrame = CFrame.new(0, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  141. Part1.BottomSurface = Enum.SurfaceType.Smooth
  142. Part1.TopSurface = Enum.SurfaceType.Smooth
  143. Part1.Position = Vector3.new(0, 0.871440172, 0.337475598)
  144. Model2.Name = "Mini Memo1332"
  145. Model2.Parent = Part1
  146. Model2.PrimaryPart = Part3
  147. Part3.Name = "Head"
  148. Part3.Parent = Model2
  149. Part3.BrickColor = BrickColor.new("Light orange")
  150. Part3.Locked = true
  151. Part3.FormFactor = Enum.FormFactor.Symmetric
  152. Part3.Size = Vector3.new(0.580960155, 0.290480077, 0.290480077)
  153. Part3.CFrame = CFrame.new(0, 1.30716026, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  154. Part3.TopSurface = Enum.SurfaceType.Smooth
  155. Part3.Color = Color3.new(0.917647, 0.721569, 0.572549)
  156. Part3.Position = Vector3.new(0, 1.30716026, 0.337475598)
  157. Part3.Color = Color3.new(0.917647, 0.721569, 0.572549)
  158. SpecialMesh4.Parent = Part3
  159. SpecialMesh4.Scale = Vector3.new(1.25, 1.25, 1.25)
  160. SpecialMesh4.Scale = Vector3.new(1.25, 1.25, 1.25)
  161. Attachment5.Name = "HairAttachment"
  162. Attachment5.Parent = Part3
  163. Attachment5.CFrame = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  164. Attachment5.Position = Vector3.new(0, 0.174288049, 0)
  165. Attachment6.Name = "HatAttachment"
  166. Attachment6.Parent = Part3
  167. Attachment6.CFrame = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  168. Attachment6.Position = Vector3.new(0, 0.174288049, 0)
  169. Attachment7.Name = "FaceFrontAttachment"
  170. Attachment7.Parent = Part3
  171. Attachment7.CFrame = CFrame.new(0, 0, -0.174288049, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  172. Attachment7.Position = Vector3.new(0, 0, -0.174288049)
  173. Attachment8.Name = "FaceCenterAttachment"
  174. Attachment8.Parent = Part3
  175. Sound9.Name = "GettingUp"
  176. Sound9.Parent = Part3
  177. Sound9.SoundId = "rbxasset://sounds/action_get_up.mp3"
  178. Sound9.Volume = 0.64999997615814
  179. RemoteEvent10.Name = "CharacterSoundEvent"
  180. RemoteEvent10.Parent = Sound9
  181. Sound11.Name = "Died"
  182. Sound11.Parent = Part3
  183. Sound11.SoundId = "rbxasset://sounds/uuhhh.mp3"
  184. Sound11.Volume = 0.64999997615814
  185. RemoteEvent12.Name = "CharacterSoundEvent"
  186. RemoteEvent12.Parent = Sound11
  187. Sound13.Name = "FreeFalling"
  188. Sound13.Parent = Part3
  189. Sound13.SoundId = "rbxasset://sounds/action_falling.mp3"
  190. Sound13.TimePosition = 0.034005937717666
  191. Sound13.Volume = 0
  192. Sound13.Looped = true
  193. RemoteEvent14.Name = "CharacterSoundEvent"
  194. RemoteEvent14.Parent = Sound13
  195. Sound15.Name = "Jumping"
  196. Sound15.Parent = Part3
  197. Sound15.SoundId = "rbxasset://sounds/action_jump.mp3"
  198. Sound15.Volume = 0.64999997615814
  199. RemoteEvent16.Name = "CharacterSoundEvent"
  200. RemoteEvent16.Parent = Sound15
  201. Sound17.Name = "Landing"
  202. Sound17.Parent = Part3
  203. Sound17.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  204. Sound17.Volume = 1
  205. RemoteEvent18.Name = "CharacterSoundEvent"
  206. RemoteEvent18.Parent = Sound17
  207. Sound19.Name = "Splash"
  208. Sound19.Parent = Part3
  209. Sound19.SoundId = "rbxasset://sounds/impact_water.mp3"
  210. Sound19.Volume = 0.64999997615814
  211. RemoteEvent20.Name = "CharacterSoundEvent"
  212. RemoteEvent20.Parent = Sound19
  213. Sound21.Name = "Running"
  214. Sound21.Parent = Part3
  215. Sound21.Pitch = 1.8500000238419
  216. Sound21.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  217. Sound21.Volume = 0.64999997615814
  218. Sound21.Looped = true
  219. RemoteEvent22.Name = "CharacterSoundEvent"
  220. RemoteEvent22.Parent = Sound21
  221. Sound23.Name = "Swimming"
  222. Sound23.Parent = Part3
  223. Sound23.Pitch = 1.6000000238419
  224. Sound23.SoundId = "rbxasset://sounds/action_swim.mp3"
  225. Sound23.Volume = 0.64999997615814
  226. Sound23.Looped = true
  227. RemoteEvent24.Name = "CharacterSoundEvent"
  228. RemoteEvent24.Parent = Sound23
  229. Sound25.Name = "Climbing"
  230. Sound25.Parent = Part3
  231. Sound25.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  232. Sound25.Volume = 0.64999997615814
  233. Sound25.Looped = true
  234. RemoteEvent26.Name = "CharacterSoundEvent"
  235. RemoteEvent26.Parent = Sound25
  236. Decal27.Name = "face"
  237. Decal27.Parent = Part3
  238. Decal27.Texture = "http://www.roblox.com/asset/?id=15365479"
  239. Part28.Name = "Torso"
  240. Part28.Parent = Model2
  241. Part28.BrickColor = BrickColor.new("Light orange")
  242. Part28.Locked = true
  243. Part28.FormFactor = Enum.FormFactor.Symmetric
  244. Part28.Size = Vector3.new(0.580960155, 0.580960155, 0.290480077)
  245. Part28.CFrame = CFrame.new(0, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  246. Part28.LeftSurface = Enum.SurfaceType.Weld
  247. Part28.RightSurface = Enum.SurfaceType.Weld
  248. Part28.Color = Color3.new(0.917647, 0.721569, 0.572549)
  249. Part28.Position = Vector3.new(0, 0.871440172, 0.337475598)
  250. Part28.Color = Color3.new(0.917647, 0.721569, 0.572549)
  251. Decal29.Name = "roblox"
  252. Decal29.Parent = Part28
  253. Decal29.Texture = "http://www.roblox.com/asset/?id=1394291048"
  254. Attachment30.Name = "NeckAttachment"
  255. Attachment30.Parent = Part28
  256. Attachment30.CFrame = CFrame.new(0, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  257. Attachment30.Position = Vector3.new(0, 0.290480018, 0)
  258. Attachment31.Name = "BodyFrontAttachment"
  259. Attachment31.Parent = Part28
  260. Attachment31.CFrame = CFrame.new(0, 0, -0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  261. Attachment31.Position = Vector3.new(0, 0, -0.145240009)
  262. Attachment32.Name = "BodyBackAttachment"
  263. Attachment32.Parent = Part28
  264. Attachment32.CFrame = CFrame.new(0, 0, 0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  265. Attachment32.Position = Vector3.new(0, 0, 0.145240009)
  266. Attachment33.Name = "LeftCollarAttachment"
  267. Attachment33.Parent = Part28
  268. Attachment33.CFrame = CFrame.new(-0.290480018, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  269. Attachment33.Position = Vector3.new(-0.290480018, 0.290480018, 0)
  270. Attachment34.Name = "RightCollarAttachment"
  271. Attachment34.Parent = Part28
  272. Attachment34.CFrame = CFrame.new(0.290480018, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  273. Attachment34.Position = Vector3.new(0.290480018, 0.290480018, 0)
  274. Attachment35.Name = "WaistFrontAttachment"
  275. Attachment35.Parent = Part28
  276. Attachment35.CFrame = CFrame.new(0, -0.290480018, -0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. Attachment35.Position = Vector3.new(0, -0.290480018, -0.145240009)
  278. Attachment36.Name = "WaistCenterAttachment"
  279. Attachment36.Parent = Part28
  280. Attachment36.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  281. Attachment36.Position = Vector3.new(0, -0.290480018, 0)
  282. Attachment37.Name = "WaistBackAttachment"
  283. Attachment37.Parent = Part28
  284. Attachment37.CFrame = CFrame.new(0, -0.290480018, 0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  285. Attachment37.Position = Vector3.new(0, -0.290480018, 0.145240009)
  286. Motor6D38.Name = "Right Shoulder"
  287. Motor6D38.Parent = Part28
  288. Motor6D38.C0 = CFrame.new(0.290480077, 0.145240039, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  289. Motor6D38.C1 = CFrame.new(-0.145240039, 0.145240039, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  290. Motor6D38.Part0 = Part28
  291. Motor6D38.Part1 = Part46
  292. Motor6D38.MaxVelocity = 0.10000000149012
  293. Motor6D39.Name = "Left Shoulder"
  294. Motor6D39.Parent = Part28
  295. Motor6D39.C0 = CFrame.new(-0.290480077, 0.145240039, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  296. Motor6D39.C1 = CFrame.new(0.145240039, 0.145240039, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  297. Motor6D39.Part0 = Part28
  298. Motor6D39.Part1 = Part43
  299. Motor6D39.MaxVelocity = 0.10000000149012
  300. Motor6D40.Name = "Right Hip"
  301. Motor6D40.Parent = Part28
  302. Motor6D40.C0 = CFrame.new(0.290480077, -0.290480077, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  303. Motor6D40.C1 = CFrame.new(0.145240039, 0.290480077, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  304. Motor6D40.Part0 = Part28
  305. Motor6D40.Part1 = Part51
  306. Motor6D40.MaxVelocity = 0.10000000149012
  307. Motor6D41.Name = "Left Hip"
  308. Motor6D41.Parent = Part28
  309. Motor6D41.C0 = CFrame.new(-0.290480077, -0.290480077, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  310. Motor6D41.C1 = CFrame.new(-0.145240039, 0.290480077, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  311. Motor6D41.Part0 = Part28
  312. Motor6D41.Part1 = Part49
  313. Motor6D41.MaxVelocity = 0.10000000149012
  314. Motor6D42.Name = "Neck"
  315. Motor6D42.Parent = Part28
  316. Motor6D42.C0 = CFrame.new(0, 0.290480077, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  317. Motor6D42.C1 = CFrame.new(0, -0.145240039, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  318. Motor6D42.Part0 = Part28
  319. Motor6D42.Part1 = Part3
  320. Motor6D42.MaxVelocity = 0.10000000149012
  321. Part43.Name = "Left Arm"
  322. Part43.Parent = Model2
  323. Part43.BrickColor = BrickColor.new("Light orange")
  324. Part43.CanCollide = false
  325. Part43.Locked = true
  326. Part43.FormFactor = Enum.FormFactor.Symmetric
  327. Part43.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
  328. Part43.CFrame = CFrame.new(-0.435720116, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  329. Part43.Color = Color3.new(0.917647, 0.721569, 0.572549)
  330. Part43.Position = Vector3.new(-0.435720116, 0.871440172, 0.337475598)
  331. Part43.Color = Color3.new(0.917647, 0.721569, 0.572549)
  332. Attachment44.Name = "LeftShoulderAttachment"
  333. Attachment44.Parent = Part43
  334. Attachment44.CFrame = CFrame.new(0, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  335. Attachment44.Position = Vector3.new(0, 0.290480018, 0)
  336. Attachment45.Name = "LeftGripAttachment"
  337. Attachment45.Parent = Part43
  338. Attachment45.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  339. Attachment45.Position = Vector3.new(0, -0.290480018, 0)
  340. Part46.Name = "Right Arm"
  341. Part46.Parent = Model2
  342. Part46.BrickColor = BrickColor.new("Light orange")
  343. Part46.CanCollide = false
  344. Part46.Locked = true
  345. Part46.FormFactor = Enum.FormFactor.Symmetric
  346. Part46.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
  347. Part46.CFrame = CFrame.new(0.435720116, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  348. Part46.Color = Color3.new(0.917647, 0.721569, 0.572549)
  349. Part46.Position = Vector3.new(0.435720116, 0.871440172, 0.337475598)
  350. Part46.Color = Color3.new(0.917647, 0.721569, 0.572549)
  351. Attachment47.Name = "RightShoulderAttachment"
  352. Attachment47.Parent = Part46
  353. Attachment47.CFrame = CFrame.new(0, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  354. Attachment47.Position = Vector3.new(0, 0.290480018, 0)
  355. Attachment48.Name = "RightGripAttachment"
  356. Attachment48.Parent = Part46
  357. Attachment48.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  358. Attachment48.Position = Vector3.new(0, -0.290480018, 0)
  359. Part49.Name = "Left Leg"
  360. Part49.Parent = Model2
  361. Part49.BrickColor = BrickColor.new("Light orange")
  362. Part49.CanCollide = false
  363. Part49.Locked = true
  364. Part49.FormFactor = Enum.FormFactor.Symmetric
  365. Part49.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
  366. Part49.CFrame = CFrame.new(-0.145240039, 0.290480018, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  367. Part49.BottomSurface = Enum.SurfaceType.Smooth
  368. Part49.Color = Color3.new(0.917647, 0.721569, 0.572549)
  369. Part49.Position = Vector3.new(-0.145240039, 0.290480018, 0.337475598)
  370. Part49.Color = Color3.new(0.917647, 0.721569, 0.572549)
  371. Attachment50.Name = "LeftFootAttachment"
  372. Attachment50.Parent = Part49
  373. Attachment50.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  374. Attachment50.Position = Vector3.new(0, -0.290480018, 0)
  375. Part51.Name = "Right Leg"
  376. Part51.Parent = Model2
  377. Part51.BrickColor = BrickColor.new("Light orange")
  378. Part51.CanCollide = false
  379. Part51.Locked = true
  380. Part51.FormFactor = Enum.FormFactor.Symmetric
  381. Part51.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
  382. Part51.CFrame = CFrame.new(0.145240039, 0.290480018, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  383. Part51.BottomSurface = Enum.SurfaceType.Smooth
  384. Part51.Color = Color3.new(0.917647, 0.721569, 0.572549)
  385. Part51.Position = Vector3.new(0.145240039, 0.290480018, 0.337475598)
  386. Part51.Color = Color3.new(0.917647, 0.721569, 0.572549)
  387. Attachment52.Name = "RightFootAttachment"
  388. Attachment52.Parent = Part51
  389. Attachment52.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  390. Attachment52.Position = Vector3.new(0, -0.290480018, 0)
  391. Humanoid53.Parent = Model2
  392. Humanoid53.RightLeg = Part51
  393. Humanoid53.LeftLeg = Part49
  394. Humanoid53.Torso = Part54
  395. Part54.Name = "HumanoidRootPart"
  396. Part54.Parent = Model2
  397. Part54.Transparency = 1
  398. Part54.CanCollide = false
  399. Part54.Locked = true
  400. Part54.FormFactor = Enum.FormFactor.Symmetric
  401. Part54.Size = Vector3.new(0.580960155, 0.580960155, 0.290480077)
  402. Part54.CFrame = CFrame.new(0, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  403. Part54.BottomSurface = Enum.SurfaceType.Smooth
  404. Part54.TopSurface = Enum.SurfaceType.Smooth
  405. Part54.Position = Vector3.new(0, 0.871440172, 0.337475598)
  406. Attachment55.Name = "RootAttachment"
  407. Attachment55.Parent = Part54
  408. Motor6D56.Name = "RootJoint"
  409. Motor6D56.Parent = Part54
  410. Motor6D56.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  411. Motor6D56.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  412. Motor6D56.Part0 = Part54
  413. Motor6D56.Part1 = Part28
  414. Motor6D56.MaxVelocity = 0.10000000149012
  415. Script57.Name = "Sound"
  416. Script57.Parent = Model2
  417. table.insert(cors,sandbox(Script57,function()
  418. --[[
  419. Author: @spotco
  420. This script creates sounds which are placed under the character head.
  421. These sounds are used by the "LocalSound" script.
  422.  
  423. To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
  424. The default Sound script loaded for every character will then be replaced with your copy of the script.
  425. ]]--
  426. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  427. local Players = game:GetService("Players")
  428.  
  429. local SOUND_EVENT_FOLDER_NAME = "DefaultSoundEvents"
  430. local DEFAULT_SERVER_SOUND_EVENT_NAME = "DefaultServerSoundEvent"
  431.  
  432. local SoundEventFolder = ReplicatedStorage:FindFirstChild(SOUND_EVENT_FOLDER_NAME)
  433. local DefaultServerSoundEvent = nil
  434.  
  435. local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
  436. if useSoundDispatcher then
  437. if not SoundEventFolder then
  438. SoundEventFolder = Instance.new("Folder")
  439. SoundEventFolder.Name = SOUND_EVENT_FOLDER_NAME
  440. SoundEventFolder.Archivable = false
  441. SoundEventFolder.Parent = ReplicatedStorage
  442. end
  443.  
  444. DefaultServerSoundEvent = SoundEventFolder:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
  445. else
  446. DefaultServerSoundEvent = ReplicatedStorage:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
  447. end
  448.  
  449. if not DefaultServerSoundEvent then
  450. if useSoundDispatcher then
  451. DefaultServerSoundEvent = Instance.new("RemoteEvent", SoundEventFolder)
  452. else
  453. DefaultServerSoundEvent = Instance.new("RemoteEvent", ReplicatedStorage)
  454. end
  455.  
  456. DefaultServerSoundEvent.Name = DEFAULT_SERVER_SOUND_EVENT_NAME
  457. DefaultServerSoundEvent.OnServerEvent:Connect(function() end)
  458. end
  459.  
  460. local function CreateNewSound(name, id, looped, pitch, parent)
  461. local sound = Instance.new("Sound")
  462. sound.SoundId = id
  463. sound.Name = name
  464. sound.archivable = false
  465. sound.Pitch = pitch
  466. sound.Looped = looped
  467. sound.MinDistance = 5
  468. sound.MaxDistance = 150
  469. sound.Volume = 0.65
  470. sound.Parent = parent
  471.  
  472. if DefaultServerSoundEvent then
  473. local CharacterSoundEvent = Instance.new("RemoteEvent", sound)
  474. CharacterSoundEvent.Name = "CharacterSoundEvent"
  475. CharacterSoundEvent.OnServerEvent:Connect(function(player, playing, resetPosition)
  476. if type(playing) ~= "boolean" then
  477. return
  478. end
  479. if type(resetPosition) ~= "boolean" then
  480. return
  481. end
  482.  
  483. if player.Character ~= script.Parent then
  484. return
  485. end
  486. for _, p in pairs(Players:GetPlayers()) do
  487. if p ~= player then
  488. -- Connect to the dispatcher to check if the player has loaded.
  489. if useSoundDispatcher then
  490. SoundEventFolder:FindFirstChild("SoundDispatcher"):Fire(p, sound, playing, resetPosition)
  491. else
  492. DefaultServerSoundEvent:FireClient(p, sound, playing, resetPosition)
  493. end
  494. end
  495. end
  496. end)
  497. end
  498. return sound
  499. end
  500.  
  501. local head = script.Parent:FindFirstChild("Head")
  502. if not head then
  503. error("Sound script parent has no child Head.")
  504. return
  505. end
  506.  
  507. CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
  508. CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
  509. CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
  510. CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
  511. CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
  512. CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
  513. CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
  514. CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
  515. CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
  516. end))
  517. LocalScript58.Name = "LocalSound"
  518. LocalScript58.Parent = Script57
  519. table.insert(cors,sandbox(LocalScript58,function()
  520. --[[
  521. Author: @spotco
  522. This script runs locally for the player of the given humanoid.
  523. This script triggers humanoid sound play/pause actions locally.
  524.  
  525. The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
  526. immediately for the player and is replicated to all other players.
  527.  
  528. This script is optimized to reduce network traffic through minimizing the amount of property replication.
  529. ]]--
  530.  
  531. --All sounds are referenced by this ID
  532. local SFX = {
  533. Died = 0;
  534. Running = 1;
  535. Swimming = 2;
  536. Climbing = 3,
  537. Jumping = 4;
  538. GettingUp = 5;
  539. FreeFalling = 6;
  540. FallingDown = 7;
  541. Landing = 8;
  542. Splash = 9;
  543. }
  544.  
  545. local useUpdatedLocalSoundFlag = UserSettings():IsUserFeatureEnabled("UserFixCharacterSoundIssues")
  546.  
  547. local Humanoid = nil
  548. local Head = nil
  549. --SFX ID to Sound object
  550. local Sounds = {}
  551. local SoundService = game:GetService("SoundService")
  552. local soundEventFolderName = "DefaultSoundEvents"
  553. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  554. local AddCharacterLoadedEvent = nil
  555. local RemoveCharacterEvent = nil
  556. local soundEventFolder = ReplicatedStorage:FindFirstChild(soundEventFolderName)
  557. local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
  558.  
  559. if useSoundDispatcher then
  560. if not soundEventFolder then
  561. soundEventFolder = Instance.new("Folder", ReplicatedStorage)
  562. soundEventFolder.Name = soundEventFolderName
  563. soundEventFolder.Archivable = false
  564. end
  565.  
  566. -- Load the RemoveCharacterEvent
  567. RemoveCharacterEvent = soundEventFolder:FindFirstChild("RemoveCharacterEvent")
  568. if RemoveCharacterEvent == nil then
  569. RemoveCharacterEvent = Instance.new("RemoteEvent", soundEventFolder)
  570. RemoveCharacterEvent.Name = "RemoveCharacterEvent"
  571. end
  572.  
  573. AddCharacterLoadedEvent = soundEventFolder:FindFirstChild("AddCharacterLoadedEvent")
  574. if AddCharacterLoadedEvent == nil then
  575. AddCharacterLoadedEvent = Instance.new("RemoteEvent", soundEventFolder)
  576. AddCharacterLoadedEvent.Name = "AddCharacterLoadedEvent"
  577. end
  578.  
  579. -- Notify the server a new character has been loaded
  580. AddCharacterLoadedEvent:FireServer()
  581.  
  582. -- Notify the sound dispatcher this character has left.
  583. game.Players.LocalPlayer.CharacterRemoving:connect(function(character)
  584. RemoveCharacterEvent:FireServer(game.Players.LocalPlayer)
  585. end)
  586. end
  587.  
  588. do
  589. local Figure = script.Parent.Parent
  590. Head = Figure:WaitForChild("Head")
  591. while not Humanoid do
  592. for _,NewHumanoid in pairs(Figure:GetChildren()) do
  593. if NewHumanoid:IsA("Humanoid") then
  594. Humanoid = NewHumanoid
  595. break
  596. end
  597. end
  598. if Humanoid then break end
  599. Figure.ChildAdded:wait()
  600. end
  601. Sounds[SFX.Died] = Head:WaitForChild("Died")
  602. Sounds[SFX.Running] = Head:WaitForChild("Running")
  603. Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
  604. Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
  605. Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
  606. Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
  607. Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
  608. Sounds[SFX.Landing] = Head:WaitForChild("Landing")
  609. Sounds[SFX.Splash] = Head:WaitForChild("Splash")
  610.  
  611. local DefaultServerSoundEvent = nil
  612. if useSoundDispatcher then
  613. DefaultServerSoundEvent = soundEventFolder:FindFirstChild("DefaultServerSoundEvent")
  614. else
  615. DefaultServerSoundEvent = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultServerSoundEvent")
  616. end
  617.  
  618. if DefaultServerSoundEvent then
  619. DefaultServerSoundEvent.OnClientEvent:connect(function(sound, playing, resetPosition)
  620. if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") then
  621. if resetPosition and sound.TimePosition ~= 0 then
  622. sound.TimePosition = 0
  623. end
  624. if sound.IsPlaying ~= playing then
  625. sound.Playing = playing
  626. end
  627. else
  628. if sound.TimePosition ~= 0 then
  629. sound.TimePosition = 0
  630. end
  631. if not sound.IsPlaying then
  632. sound.Playing = true
  633. end
  634. end
  635. end)
  636. end
  637. end
  638.  
  639. local IsSoundFilteringEnabled = function()
  640. return game.Workspace.FilteringEnabled and SoundService.RespectFilteringEnabled
  641. end
  642.  
  643. local Util
  644. Util = {
  645.  
  646. --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
  647. YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
  648. --(y - y1)/(x - x1) = m
  649. local m = (pt1y - pt2y) / (pt1x - pt2x)
  650. --float b = pt1.y - m * pt1.x;
  651. local b = (pt1y - m * pt1x)
  652. return m * x + b
  653. end;
  654.  
  655. --Clamps the value of "val" between the "min" and "max"
  656. Clamp = function(val,min,max)
  657. return math.min(max,math.max(min,val))
  658. end;
  659.  
  660. --Gets the horizontal (x,z) velocity magnitude of the given part
  661. HorizontalSpeed = function(Head)
  662. local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
  663. return hVel.magnitude
  664. end;
  665.  
  666. --Gets the vertical (y) velocity magnitude of the given part
  667. VerticalSpeed = function(Head)
  668. return math.abs(Head.Velocity.Y)
  669. end;
  670.  
  671. --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
  672. --If these properties are enabled, use them.
  673. Play = function(sound)
  674. if IsSoundFilteringEnabled() then
  675. sound.CharacterSoundEvent:FireServer(true, true)
  676. end
  677. if sound.TimePosition ~= 0 then
  678. sound.TimePosition = 0
  679. end
  680. if not sound.IsPlaying then
  681. sound.Playing = true
  682. end
  683. end;
  684.  
  685. Pause = function(sound)
  686. if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") and IsSoundFilteringEnabled() then
  687. sound.CharacterSoundEvent:FireServer(false, false)
  688. end
  689. if sound.IsPlaying then
  690. sound.Playing = false
  691. end
  692. end;
  693.  
  694. Resume = function(sound)
  695. if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") and IsSoundFilteringEnabled() then
  696. sound.CharacterSoundEvent:FireServer(true, false)
  697. end
  698. if not sound.IsPlaying then
  699. sound.Playing = true
  700. end
  701. end;
  702.  
  703. Stop = function(sound)
  704. if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") and IsSoundFilteringEnabled() then
  705. sound.CharacterSoundEvent:FireServer(false, true)
  706. end
  707. if sound.IsPlaying then
  708. sound.Playing = false
  709. end
  710. if sound.TimePosition ~= 0 then
  711. sound.TimePosition = 0
  712. end
  713. end;
  714. }
  715.  
  716. do
  717. -- List of all active Looped sounds
  718. local playingLoopedSounds = {}
  719.  
  720. -- Last seen Enum.HumanoidStateType
  721. local activeState = nil
  722.  
  723. local fallSpeed = 0
  724.  
  725. -- Verify and set that "sound" is in "playingLoopedSounds".
  726. function setSoundInPlayingLoopedSounds(sound)
  727. for i=1, #playingLoopedSounds do
  728. if playingLoopedSounds[i] == sound then
  729. return
  730. end
  731. end
  732. table.insert(playingLoopedSounds,sound)
  733. end
  734.  
  735. -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
  736. function stopPlayingLoopedSoundsExcept(except)
  737. for i=#playingLoopedSounds,1,-1 do
  738. if playingLoopedSounds[i] ~= except then
  739. Util.Pause(playingLoopedSounds[i])
  740. table.remove(playingLoopedSounds,i)
  741. end
  742. end
  743. end
  744.  
  745. -- Table of Enum.HumanoidStateType to handling function
  746. local stateUpdateHandler = {
  747. [Enum.HumanoidStateType.Dead] = function()
  748. stopPlayingLoopedSoundsExcept()
  749. local sound = Sounds[SFX.Died]
  750. Util.Play(sound)
  751. end;
  752.  
  753. [Enum.HumanoidStateType.RunningNoPhysics] = function(speed)
  754. stateUpdated(Enum.HumanoidStateType.Running, speed)
  755. end;
  756.  
  757. [Enum.HumanoidStateType.Running] = function(speed)
  758. local sound = Sounds[SFX.Running]
  759. stopPlayingLoopedSoundsExcept(sound)
  760.  
  761. if(useUpdatedLocalSoundFlag and activeState == Enum.HumanoidStateType.Freefall and fallSpeed > 0.1) then
  762. -- Play a landing sound if the character dropped from a large distance
  763. local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
  764. local freeFallSound = Sounds[SFX.FreeFalling]
  765. freeFallSound.Volume = vol
  766. Util.Play(freeFallSound)
  767. fallSpeed = 0
  768. end
  769. if useUpdatedLocalSoundFlag then
  770. if speed ~= nil and speed > 0.5 then
  771. Util.Resume(sound)
  772. setSoundInPlayingLoopedSounds(sound)
  773. elseif speed ~= nil then
  774. stopPlayingLoopedSoundsExcept()
  775. end
  776. else
  777. if Util.HorizontalSpeed(Head) > 0.5 then
  778. Util.Resume(sound)
  779. setSoundInPlayingLoopedSounds(sound)
  780. else
  781. stopPlayingLoopedSoundsExcept()
  782. end
  783. end
  784. end;
  785.  
  786. [Enum.HumanoidStateType.Swimming] = function(speed)
  787. local threshold
  788. if useUpdatedLocalSoundFlag then threshold = speed else threshold = Util.VerticalSpeed(Head) end
  789. if activeState ~= Enum.HumanoidStateType.Swimming and threshold > 0.1 then
  790. local splashSound = Sounds[SFX.Splash]
  791. splashSound.Volume = Util.Clamp(
  792. Util.YForLineGivenXAndTwoPts(
  793. Util.VerticalSpeed(Head),
  794. 100, 0.28,
  795. 350, 1),
  796. 0,1)
  797. Util.Play(splashSound)
  798. end
  799.  
  800. do
  801. local sound = Sounds[SFX.Swimming]
  802. stopPlayingLoopedSoundsExcept(sound)
  803. Util.Resume(sound)
  804. setSoundInPlayingLoopedSounds(sound)
  805. end
  806. end;
  807.  
  808. [Enum.HumanoidStateType.Climbing] = function(speed)
  809. local sound = Sounds[SFX.Climbing]
  810. if useUpdatedLocalSoundFlag then
  811. if speed ~= nil and math.abs(speed) > 0.1 then
  812. Util.Resume(sound)
  813. stopPlayingLoopedSoundsExcept(sound)
  814. else
  815. Util.Pause(sound)
  816. stopPlayingLoopedSoundsExcept(sound)
  817. end
  818. else
  819. if Util.VerticalSpeed(Head) > 0.1 then
  820. Util.Resume(sound)
  821. stopPlayingLoopedSoundsExcept(sound)
  822. else
  823. stopPlayingLoopedSoundsExcept()
  824. end
  825. end
  826.  
  827. setSoundInPlayingLoopedSounds(sound)
  828. end;
  829.  
  830. [Enum.HumanoidStateType.Jumping] = function()
  831. if activeState == Enum.HumanoidStateType.Jumping then
  832. return
  833. end
  834. stopPlayingLoopedSoundsExcept()
  835. local sound = Sounds[SFX.Jumping]
  836. Util.Play(sound)
  837. end;
  838.  
  839. [Enum.HumanoidStateType.GettingUp] = function()
  840. stopPlayingLoopedSoundsExcept()
  841. local sound = Sounds[SFX.GettingUp]
  842. Util.Play(sound)
  843. end;
  844.  
  845. [Enum.HumanoidStateType.Freefall] = function()
  846. if activeState == Enum.HumanoidStateType.Freefall then
  847. return
  848. end
  849. local sound = Sounds[SFX.FreeFalling]
  850. sound.Volume = 0
  851. stopPlayingLoopedSoundsExcept()
  852.  
  853. fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.y))
  854. end;
  855.  
  856. [Enum.HumanoidStateType.FallingDown] = function()
  857. stopPlayingLoopedSoundsExcept()
  858. end;
  859.  
  860. [Enum.HumanoidStateType.Landed] = function()
  861. stopPlayingLoopedSoundsExcept()
  862. if Util.VerticalSpeed(Head) > 75 then
  863. local landingSound = Sounds[SFX.Landing]
  864. landingSound.Volume = Util.Clamp(
  865. Util.YForLineGivenXAndTwoPts(
  866. Util.VerticalSpeed(Head),
  867. 50, 0,
  868. 100, 1),
  869. 0,1)
  870. Util.Play(landingSound)
  871. end
  872. end;
  873.  
  874. [Enum.HumanoidStateType.Seated] = function()
  875. stopPlayingLoopedSoundsExcept()
  876. end;
  877. }
  878.  
  879.  
  880.  
  881. -- Handle state event fired or OnChange fired
  882. function stateUpdated(state, speed)
  883. if stateUpdateHandler[state] ~= nil then
  884. if useUpdatedLocalSoundFlag and (state == Enum.HumanoidStateType.Running
  885. or state == Enum.HumanoidStateType.Climbing
  886. or state == Enum.HumanoidStateType.Swimming
  887. or state == Enum.HumanoidStateType.RunningNoPhysics) then
  888. stateUpdateHandler[state](speed)
  889. else
  890. stateUpdateHandler[state]()
  891. end
  892. end
  893. activeState = state
  894. end
  895.  
  896. Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
  897. Humanoid.Running:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Running, speed) end)
  898. Humanoid.Swimming:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Swimming, speed) end)
  899. Humanoid.Climbing:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Climbing, speed) end)
  900. Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
  901. Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
  902. Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
  903. Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
  904.  
  905.  
  906.  
  907. -- required for proper handling of Landed event
  908.  
  909. Humanoid.StateChanged:connect(function(old, new)
  910. stateUpdated(new)
  911. end)
  912.  
  913.  
  914.  
  915. function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
  916. local stepScale = stepDeltaSeconds / tickSpeedSeconds
  917. do
  918. local sound = Sounds[SFX.FreeFalling]
  919. if activeState == Enum.HumanoidStateType.Freefall then
  920. if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
  921. Util.Resume(sound)
  922.  
  923. --Volume takes 1.1 seconds to go from volume 0 to 1
  924. local ANIMATION_LENGTH_SECONDS = 1.1
  925.  
  926. local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
  927. sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
  928. else
  929. sound.Volume = 0
  930. end
  931. else
  932. Util.Pause(sound)
  933. end
  934. end
  935.  
  936. do
  937. local sound = Sounds[SFX.Running]
  938. if activeState == Enum.HumanoidStateType.Running then
  939. if Util.HorizontalSpeed(Head) < 0.5 then
  940. Util.Pause(sound)
  941. end
  942. end
  943. end
  944. end
  945.  
  946.  
  947. local lastTick = tick()
  948. local TICK_SPEED_SECONDS = 0.25
  949. while true do
  950. onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
  951. lastTick = tick()
  952. wait(TICK_SPEED_SECONDS)
  953. end
  954.  
  955. end
  956.  
  957. end))
  958. Script59.Name = "Health"
  959. Script59.Parent = Model2
  960. table.insert(cors,sandbox(Script59,function()
  961. -- Gradually regenerates the Humanoid's Health over time.
  962.  
  963. local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
  964. local REGEN_STEP = 1 -- Wait this long between each regeneration step.
  965.  
  966. --------------------------------------------------------------------------------
  967.  
  968. local Character = script.Parent
  969. local Humanoid = Character:WaitForChild'Humanoid'
  970.  
  971. --------------------------------------------------------------------------------
  972.  
  973. while true do
  974. while Humanoid.Health < Humanoid.MaxHealth do
  975. local dt = wait(REGEN_STEP)
  976. local dh = dt*REGEN_RATE*Humanoid.MaxHealth
  977. Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
  978. end
  979. Humanoid.HealthChanged:Wait()
  980. end
  981. end))
  982. LocalScript60.Name = "Animate"
  983. LocalScript60.Parent = Model2
  984. table.insert(cors,sandbox(LocalScript60,function()
  985. local Figure = script.Parent
  986. local Torso = Figure:WaitForChild("Torso")
  987. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  988. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  989. local RightHip = Torso:WaitForChild("Right Hip")
  990. local LeftHip = Torso:WaitForChild("Left Hip")
  991. local Neck = Torso:WaitForChild("Neck")
  992. local Humanoid = Figure:WaitForChild("Humanoid")
  993. local pose = "Standing"
  994.  
  995. local currentAnim = ""
  996. local currentAnimInstance = nil
  997. local currentAnimTrack = nil
  998. local currentAnimKeyframeHandler = nil
  999. local currentAnimSpeed = 1.0
  1000. local animTable = {}
  1001. local animNames = {
  1002. idle = {
  1003. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  1004. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  1005. },
  1006. walk = {
  1007. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  1008. },
  1009. run = {
  1010. { id = "run.xml", weight = 10 }
  1011. },
  1012. jump = {
  1013. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  1014. },
  1015. fall = {
  1016. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  1017. },
  1018. climb = {
  1019. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  1020. },
  1021. sit = {
  1022. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  1023. },
  1024. toolnone = {
  1025. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  1026. },
  1027. toolslash = {
  1028. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  1029. -- { id = "slash.xml", weight = 10 }
  1030. },
  1031. toollunge = {
  1032. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  1033. },
  1034. wave = {
  1035. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  1036. },
  1037. point = {
  1038. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  1039. },
  1040. dance1 = {
  1041. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  1042. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  1043. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  1044. },
  1045. dance2 = {
  1046. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  1047. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  1048. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  1049. },
  1050. dance3 = {
  1051. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  1052. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  1053. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  1054. },
  1055. laugh = {
  1056. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  1057. },
  1058. cheer = {
  1059. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  1060. },
  1061. }
  1062. local dances = {"dance1", "dance2", "dance3"}
  1063.  
  1064. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1065. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1066.  
  1067. function configureAnimationSet(name, fileList)
  1068. if (animTable[name] ~= nil) then
  1069. for _, connection in pairs(animTable[name].connections) do
  1070. connection:disconnect()
  1071. end
  1072. end
  1073. animTable[name] = {}
  1074. animTable[name].count = 0
  1075. animTable[name].totalWeight = 0
  1076. animTable[name].connections = {}
  1077.  
  1078. -- check for config values
  1079. local config = script:FindFirstChild(name)
  1080. if (config ~= nil) then
  1081. -- print("Loading anims " .. name)
  1082. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1083. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1084. local idx = 1
  1085. for _, childPart in pairs(config:GetChildren()) do
  1086. if (childPart:IsA("Animation")) then
  1087. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1088. animTable[name][idx] = {}
  1089. animTable[name][idx].anim = childPart
  1090. local weightObject = childPart:FindFirstChild("Weight")
  1091. if (weightObject == nil) then
  1092. animTable[name][idx].weight = 1
  1093. else
  1094. animTable[name][idx].weight = weightObject.Value
  1095. end
  1096. animTable[name].count = animTable[name].count + 1
  1097. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1098. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1099. idx = idx + 1
  1100. end
  1101. end
  1102. end
  1103.  
  1104. -- fallback to defaults
  1105. if (animTable[name].count <= 0) then
  1106. for idx, anim in pairs(fileList) do
  1107. animTable[name][idx] = {}
  1108. animTable[name][idx].anim = Instance.new("Animation")
  1109. animTable[name][idx].anim.Name = name
  1110. animTable[name][idx].anim.AnimationId = anim.id
  1111. animTable[name][idx].weight = anim.weight
  1112. animTable[name].count = animTable[name].count + 1
  1113. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1114. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1115. end
  1116. end
  1117. end
  1118.  
  1119. -- Setup animation objects
  1120. function scriptChildModified(child)
  1121. local fileList = animNames[child.Name]
  1122. if (fileList ~= nil) then
  1123. configureAnimationSet(child.Name, fileList)
  1124. end
  1125. end
  1126.  
  1127. script.ChildAdded:connect(scriptChildModified)
  1128. script.ChildRemoved:connect(scriptChildModified)
  1129.  
  1130.  
  1131. for name, fileList in pairs(animNames) do
  1132. configureAnimationSet(name, fileList)
  1133. end
  1134.  
  1135. -- ANIMATION
  1136.  
  1137. -- declarations
  1138. local toolAnim = "None"
  1139. local toolAnimTime = 0
  1140.  
  1141. local jumpAnimTime = 0
  1142. local jumpAnimDuration = 0.3
  1143.  
  1144. local toolTransitionTime = 0.1
  1145. local fallTransitionTime = 0.3
  1146. local jumpMaxLimbVelocity = 0.75
  1147.  
  1148. -- functions
  1149.  
  1150. function stopAllAnimations()
  1151. local oldAnim = currentAnim
  1152.  
  1153. -- return to idle if finishing an emote
  1154. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1155. oldAnim = "idle"
  1156. end
  1157.  
  1158. currentAnim = ""
  1159. currentAnimInstance = nil
  1160. if (currentAnimKeyframeHandler ~= nil) then
  1161. currentAnimKeyframeHandler:disconnect()
  1162. end
  1163.  
  1164. if (currentAnimTrack ~= nil) then
  1165. currentAnimTrack:Stop()
  1166. currentAnimTrack:Destroy()
  1167. currentAnimTrack = nil
  1168. end
  1169. return oldAnim
  1170. end
  1171.  
  1172. function setAnimationSpeed(speed)
  1173. if speed ~= currentAnimSpeed then
  1174. currentAnimSpeed = speed
  1175. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1176. end
  1177. end
  1178.  
  1179. function keyFrameReachedFunc(frameName)
  1180. if (frameName == "End") then
  1181.  
  1182. local repeatAnim = currentAnim
  1183. -- return to idle if finishing an emote
  1184. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1185. repeatAnim = "idle"
  1186. end
  1187.  
  1188. local animSpeed = currentAnimSpeed
  1189. playAnimation(repeatAnim, 0.0, Humanoid)
  1190. setAnimationSpeed(animSpeed)
  1191. end
  1192. end
  1193.  
  1194. -- Preload animations
  1195. function playAnimation(animName, transitionTime, humanoid)
  1196.  
  1197. local roll = math.random(1, animTable[animName].totalWeight)
  1198. local origRoll = roll
  1199. local idx = 1
  1200. while (roll > animTable[animName][idx].weight) do
  1201. roll = roll - animTable[animName][idx].weight
  1202. idx = idx + 1
  1203. end
  1204. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1205. local anim = animTable[animName][idx].anim
  1206.  
  1207. -- switch animation
  1208. if (anim ~= currentAnimInstance) then
  1209.  
  1210. if (currentAnimTrack ~= nil) then
  1211. currentAnimTrack:Stop(transitionTime)
  1212. currentAnimTrack:Destroy()
  1213. end
  1214.  
  1215. currentAnimSpeed = 1.0
  1216.  
  1217. -- load it to the humanoid; get AnimationTrack
  1218. currentAnimTrack = humanoid:LoadAnimation(anim)
  1219. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  1220.  
  1221. -- play the animation
  1222. currentAnimTrack:Play(transitionTime)
  1223. currentAnim = animName
  1224. currentAnimInstance = anim
  1225.  
  1226. -- set up keyframe name triggers
  1227. if (currentAnimKeyframeHandler ~= nil) then
  1228. currentAnimKeyframeHandler:disconnect()
  1229. end
  1230. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1231.  
  1232. end
  1233.  
  1234. end
  1235.  
  1236. -------------------------------------------------------------------------------------------
  1237. -------------------------------------------------------------------------------------------
  1238.  
  1239. local toolAnimName = ""
  1240. local toolAnimTrack = nil
  1241. local toolAnimInstance = nil
  1242. local currentToolAnimKeyframeHandler = nil
  1243.  
  1244. function toolKeyFrameReachedFunc(frameName)
  1245. if (frameName == "End") then
  1246. -- print("Keyframe : ".. frameName)
  1247. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1248. end
  1249. end
  1250.  
  1251.  
  1252. function playToolAnimation(animName, transitionTime, humanoid, priority)
  1253.  
  1254. local roll = math.random(1, animTable[animName].totalWeight)
  1255. local origRoll = roll
  1256. local idx = 1
  1257. while (roll > animTable[animName][idx].weight) do
  1258. roll = roll - animTable[animName][idx].weight
  1259. idx = idx + 1
  1260. end
  1261. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1262. local anim = animTable[animName][idx].anim
  1263.  
  1264. if (toolAnimInstance ~= anim) then
  1265.  
  1266. if (toolAnimTrack ~= nil) then
  1267. toolAnimTrack:Stop()
  1268. toolAnimTrack:Destroy()
  1269. transitionTime = 0
  1270. end
  1271.  
  1272. -- load it to the humanoid; get AnimationTrack
  1273. toolAnimTrack = humanoid:LoadAnimation(anim)
  1274. if priority then
  1275. toolAnimTrack.Priority = priority
  1276. end
  1277.  
  1278. -- play the animation
  1279. toolAnimTrack:Play(transitionTime)
  1280. toolAnimName = animName
  1281. toolAnimInstance = anim
  1282.  
  1283. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1284. end
  1285. end
  1286.  
  1287. function stopToolAnimations()
  1288. local oldAnim = toolAnimName
  1289.  
  1290. if (currentToolAnimKeyframeHandler ~= nil) then
  1291. currentToolAnimKeyframeHandler:disconnect()
  1292. end
  1293.  
  1294. toolAnimName = ""
  1295. toolAnimInstance = nil
  1296. if (toolAnimTrack ~= nil) then
  1297. toolAnimTrack:Stop()
  1298. toolAnimTrack:Destroy()
  1299. toolAnimTrack = nil
  1300. end
  1301.  
  1302.  
  1303. return oldAnim
  1304. end
  1305.  
  1306. -------------------------------------------------------------------------------------------
  1307. -------------------------------------------------------------------------------------------
  1308.  
  1309.  
  1310. function onRunning(speed)
  1311. if speed > 0.01 then
  1312. playAnimation("walk", 0.1, Humanoid)
  1313. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  1314. setAnimationSpeed(speed / 14.5)
  1315. end
  1316. pose = "Running"
  1317. else
  1318. if emoteNames[currentAnim] == nil then
  1319. playAnimation("idle", 0.1, Humanoid)
  1320. pose = "Standing"
  1321. end
  1322. end
  1323. end
  1324.  
  1325. function onDied()
  1326. pose = "Dead"
  1327. end
  1328.  
  1329. function onJumping()
  1330. playAnimation("jump", 0.1, Humanoid)
  1331. jumpAnimTime = jumpAnimDuration
  1332. pose = "Jumping"
  1333. end
  1334.  
  1335. function onClimbing(speed)
  1336. playAnimation("climb", 0.1, Humanoid)
  1337. setAnimationSpeed(speed / 12.0)
  1338. pose = "Climbing"
  1339. end
  1340.  
  1341. function onGettingUp()
  1342. pose = "GettingUp"
  1343. end
  1344.  
  1345. function onFreeFall()
  1346. if (jumpAnimTime <= 0) then
  1347. playAnimation("fall", fallTransitionTime, Humanoid)
  1348. end
  1349. pose = "FreeFall"
  1350. end
  1351.  
  1352. function onFallingDown()
  1353. pose = "FallingDown"
  1354. end
  1355.  
  1356. function onSeated()
  1357. pose = "Seated"
  1358. end
  1359.  
  1360. function onPlatformStanding()
  1361. pose = "PlatformStanding"
  1362. end
  1363.  
  1364. function onSwimming(speed)
  1365. if speed > 0 then
  1366. pose = "Running"
  1367. else
  1368. pose = "Standing"
  1369. end
  1370. end
  1371.  
  1372. function getTool()
  1373. for _, kid in ipairs(Figure:GetChildren()) do
  1374. if kid.className == "Tool" then return kid end
  1375. end
  1376. return nil
  1377. end
  1378.  
  1379. function getToolAnim(tool)
  1380. for _, c in ipairs(tool:GetChildren()) do
  1381. if c.Name == "toolanim" and c.className == "StringValue" then
  1382. return c
  1383. end
  1384. end
  1385. return nil
  1386. end
  1387.  
  1388. function animateTool()
  1389.  
  1390. if (toolAnim == "None") then
  1391. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  1392. return
  1393. end
  1394.  
  1395. if (toolAnim == "Slash") then
  1396. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  1397. return
  1398. end
  1399.  
  1400. if (toolAnim == "Lunge") then
  1401. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  1402. return
  1403. end
  1404. end
  1405.  
  1406. function moveSit()
  1407. RightShoulder.MaxVelocity = 0.15
  1408. LeftShoulder.MaxVelocity = 0.15
  1409. RightShoulder:SetDesiredAngle(3.14 /2)
  1410. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1411. RightHip:SetDesiredAngle(3.14 /2)
  1412. LeftHip:SetDesiredAngle(-3.14 /2)
  1413. end
  1414.  
  1415. local lastTick = 0
  1416.  
  1417. function move(time)
  1418. local amplitude = 1
  1419. local frequency = 1
  1420. local deltaTime = time - lastTick
  1421. lastTick = time
  1422.  
  1423. local climbFudge = 0
  1424. local setAngles = false
  1425.  
  1426. if (jumpAnimTime > 0) then
  1427. jumpAnimTime = jumpAnimTime - deltaTime
  1428. end
  1429.  
  1430. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1431. playAnimation("fall", fallTransitionTime, Humanoid)
  1432. elseif (pose == "Seated") then
  1433. playAnimation("sit", 0.5, Humanoid)
  1434. return
  1435. elseif (pose == "Running") then
  1436. playAnimation("walk", 0.1, Humanoid)
  1437. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1438. -- print("Wha " .. pose)
  1439. stopAllAnimations()
  1440. amplitude = 0.1
  1441. frequency = 1
  1442. setAngles = true
  1443. end
  1444.  
  1445. if (setAngles) then
  1446. local desiredAngle = amplitude * math.sin(time * frequency)
  1447.  
  1448. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1449. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1450. RightHip:SetDesiredAngle(-desiredAngle)
  1451. LeftHip:SetDesiredAngle(-desiredAngle)
  1452. end
  1453.  
  1454. -- Tool Animation handling
  1455. local tool = getTool()
  1456. if tool and tool:FindFirstChild("Handle") then
  1457.  
  1458. local animStringValueObject = getToolAnim(tool)
  1459.  
  1460. if animStringValueObject then
  1461. toolAnim = animStringValueObject.Value
  1462. -- message recieved, delete StringValue
  1463. animStringValueObject.Parent = nil
  1464. toolAnimTime = time + .3
  1465. end
  1466.  
  1467. if time > toolAnimTime then
  1468. toolAnimTime = 0
  1469. toolAnim = "None"
  1470. end
  1471.  
  1472. animateTool()
  1473. else
  1474. stopToolAnimations()
  1475. toolAnim = "None"
  1476. toolAnimInstance = nil
  1477. toolAnimTime = 0
  1478. end
  1479. end
  1480.  
  1481. -- connect events
  1482. Humanoid.Died:connect(onDied)
  1483. Humanoid.Running:connect(onRunning)
  1484. Humanoid.Jumping:connect(onJumping)
  1485. Humanoid.Climbing:connect(onClimbing)
  1486. Humanoid.GettingUp:connect(onGettingUp)
  1487. Humanoid.FreeFalling:connect(onFreeFall)
  1488. Humanoid.FallingDown:connect(onFallingDown)
  1489. Humanoid.Seated:connect(onSeated)
  1490. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1491. Humanoid.Swimming:connect(onSwimming)
  1492.  
  1493. -- setup emote chat hook
  1494. game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
  1495. local emote = ""
  1496. if msg == "/e dance" then
  1497. emote = dances[math.random(1, #dances)]
  1498. elseif (string.sub(msg, 1, 3) == "/e ") then
  1499. emote = string.sub(msg, 4)
  1500. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1501. emote = string.sub(msg, 8)
  1502. end
  1503.  
  1504. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1505. playAnimation(emote, 0.1, Humanoid)
  1506. end
  1507.  
  1508. end)
  1509.  
  1510.  
  1511. -- main program
  1512.  
  1513. -- initialize to idle
  1514. playAnimation("idle", 0.1, Humanoid)
  1515. pose = "Standing"
  1516.  
  1517. while Figure.Parent ~= nil do
  1518. local _, time = wait(0.1)
  1519. move(time)
  1520. end
  1521.  
  1522.  
  1523.  
  1524. end))
  1525. StringValue61.Name = "idle"
  1526. StringValue61.Parent = LocalScript60
  1527. Animation62.Name = "Animation1"
  1528. Animation62.Parent = StringValue61
  1529. Animation62.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1530. NumberValue63.Name = "Weight"
  1531. NumberValue63.Parent = Animation62
  1532. NumberValue63.Value = 9
  1533. Animation64.Name = "Animation2"
  1534. Animation64.Parent = StringValue61
  1535. Animation64.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  1536. NumberValue65.Name = "Weight"
  1537. NumberValue65.Parent = Animation64
  1538. NumberValue65.Value = 1
  1539. StringValue66.Name = "walk"
  1540. StringValue66.Parent = LocalScript60
  1541. Animation67.Name = "WalkAnim"
  1542. Animation67.Parent = StringValue66
  1543. Animation67.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1544. StringValue68.Name = "run"
  1545. StringValue68.Parent = LocalScript60
  1546. Animation69.Name = "RunAnim"
  1547. Animation69.Parent = StringValue68
  1548. Animation69.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1549. StringValue70.Name = "jump"
  1550. StringValue70.Parent = LocalScript60
  1551. Animation71.Name = "JumpAnim"
  1552. Animation71.Parent = StringValue70
  1553. Animation71.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1554. StringValue72.Name = "climb"
  1555. StringValue72.Parent = LocalScript60
  1556. Animation73.Name = "ClimbAnim"
  1557. Animation73.Parent = StringValue72
  1558. Animation73.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1559. StringValue74.Name = "toolnone"
  1560. StringValue74.Parent = LocalScript60
  1561. Animation75.Name = "ToolNoneAnim"
  1562. Animation75.Parent = StringValue74
  1563. Animation75.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1564. StringValue76.Name = "fall"
  1565. StringValue76.Parent = LocalScript60
  1566. Animation77.Name = "FallAnim"
  1567. Animation77.Parent = StringValue76
  1568. Animation77.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1569. StringValue78.Name = "sit"
  1570. StringValue78.Parent = LocalScript60
  1571. Animation79.Name = "SitAnim"
  1572. Animation79.Parent = StringValue78
  1573. Animation79.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1574. BodyColors80.Parent = Model2
  1575. BodyColors80.HeadColor = BrickColor.new("Light orange")
  1576. BodyColors80.LeftArmColor = BrickColor.new("Light orange")
  1577. BodyColors80.LeftLegColor = BrickColor.new("Light orange")
  1578. BodyColors80.RightArmColor = BrickColor.new("Light orange")
  1579. BodyColors80.RightLegColor = BrickColor.new("Light orange")
  1580. BodyColors80.TorsoColor = BrickColor.new("Light orange")
  1581. CharacterMesh81.Parent = Model2
  1582. CharacterMesh81.MeshId = 27111882
  1583. CharacterMesh81.BodyPart = Enum.BodyPart.RightLeg
  1584. Shirt82.Name = "Shirt"
  1585. Shirt82.Parent = Model2
  1586. Shirt82.ShirtTemplate = "http://www.roblox.com/asset/?id=1024462364"
  1587. Accessory83.Name = "SnowyOwlWings"
  1588. Accessory83.Parent = Model2
  1589. Accessory83.AttachmentPos = Vector3.new(0, 1.79999995, 0)
  1590. Part84.Name = "Handle"
  1591. Part84.Parent = Accessory83
  1592. Part84.CanCollide = false
  1593. Part84.Locked = true
  1594. Part84.FormFactor = Enum.FormFactor.Custom
  1595. Part84.Size = Vector3.new(0.671016872, 0.206240326, 0.554817736)
  1596. Part84.CFrame = CFrame.new(0, 1.01668024, 0.686051667, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1597. Part84.BottomSurface = Enum.SurfaceType.Smooth
  1598. Part84.TopSurface = Enum.SurfaceType.Smooth
  1599. Part84.Position = Vector3.new(0, 1.01668024, 0.686051667)
  1600. SpecialMesh85.Parent = Part84
  1601. SpecialMesh85.MeshId = "rbxassetid://1179223095"
  1602. SpecialMesh85.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
  1603. SpecialMesh85.TextureId = "rbxassetid://1241033906"
  1604. SpecialMesh85.MeshType = Enum.MeshType.FileMesh
  1605. SpecialMesh85.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
  1606. Attachment86.Name = "BodyBackAttachment"
  1607. Attachment86.Parent = Part84
  1608. Attachment86.CFrame = CFrame.new(0, -0.145240009, -0.20333606, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1609. Attachment86.Position = Vector3.new(0, -0.145240009, -0.20333606)
  1610. Weld87.Name = "AccessoryWeld"
  1611. Weld87.Parent = Part84
  1612. Weld87.C0 = CFrame.new(0, -0.145240009, -0.20333606, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1613. Weld87.C1 = CFrame.new(0, 0, 0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1614. Weld87.Part0 = Part84
  1615. Weld87.Part1 = Part28
  1616. CharacterMesh88.Parent = Model2
  1617. CharacterMesh88.MeshId = 27111857
  1618. CharacterMesh88.BodyPart = Enum.BodyPart.LeftLeg
  1619. CharacterMesh89.Name = "Roblox 2.0 Right Arm"
  1620. CharacterMesh89.Parent = Model2
  1621. CharacterMesh89.MeshId = 27111864
  1622. CharacterMesh89.BodyPart = Enum.BodyPart.RightArm
  1623. CharacterMesh90.Parent = Model2
  1624. CharacterMesh90.MeshId = 27111419
  1625. CharacterMesh90.BodyPart = Enum.BodyPart.LeftArm
  1626. ShirtGraphic91.Parent = Model2
  1627. ShirtGraphic91.Graphic = "http://www.roblox.com/asset/?id=1394291048"
  1628. CharacterMesh92.Parent = Model2
  1629. CharacterMesh92.MeshId = 27111894
  1630. CharacterMesh92.BodyPart = Enum.BodyPart.Torso
  1631. Accessory93.Name = "HolidayReefCrown"
  1632. Accessory93.Parent = Model2
  1633. Part94.Name = "Handle"
  1634. Part94.Parent = Accessory93
  1635. Part94.CanCollide = false
  1636. Part94.Locked = true
  1637. Part94.FormFactor = Enum.FormFactor.Custom
  1638. Part94.Size = Vector3.new(0.551911473, 0.174288005, 0.580960214)
  1639. Part94.CFrame = CFrame.new(-2.28644192e-09, 1.45240033, 0.337554693, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  1640. Part94.BottomSurface = Enum.SurfaceType.Smooth
  1641. Part94.TopSurface = Enum.SurfaceType.Smooth
  1642. Part94.Position = Vector3.new(-2.28644192e-09, 1.45240033, 0.337554693)
  1643. SpecialMesh95.Parent = Part94
  1644. SpecialMesh95.MeshId = "http://www.roblox.com/asset/?id=138937497"
  1645. SpecialMesh95.Scale = Vector3.new(0.217860103, 0.217860103, 0.217860103)
  1646. SpecialMesh95.TextureId = "http://www.roblox.com/asset/?id=138937524 "
  1647. SpecialMesh95.MeshType = Enum.MeshType.FileMesh
  1648. SpecialMesh95.Scale = Vector3.new(0.217860103, 0.217860103, 0.217860103)
  1649. Attachment96.Name = "HatAttachment"
  1650. Attachment96.Parent = Part94
  1651. Attachment96.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1652. Attachment96.CFrame = CFrame.new(2.51508969e-09, 0.0290479958, -7.90815466e-05, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1653. Attachment96.Position = Vector3.new(2.51508969e-09, 0.0290479958, -7.90815466e-05)
  1654. Attachment96.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1655. Attachment96.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1656. Vector3Value97.Name = "OriginalSize"
  1657. Vector3Value97.Parent = Part94
  1658. Vector3Value97.Value = Vector3.new(1.89999771, 0.599999845, 2.00000024)
  1659. Weld98.Name = "AccessoryWeld"
  1660. Weld98.Parent = Part94
  1661. Weld98.C0 = CFrame.new(2.51508969e-09, 0.0290479958, -7.90815466e-05, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1662. Weld98.C1 = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1663. Weld98.Part0 = Part94
  1664. Weld98.Part1 = Part3
  1665. Pants99.Name = "Pants"
  1666. Pants99.Parent = Model2
  1667. Pants99.PantsTemplate = "http://www.roblox.com/asset/?id=1068407713"
  1668. Accessory100.Name = "BearMask"
  1669. Accessory100.Parent = Model2
  1670. Accessory100.AttachmentPos = Vector3.new(0, 0.730000019, 0.0199999996)
  1671. Part101.Name = "Handle"
  1672. Part101.Parent = Accessory100
  1673. Part101.CanCollide = false
  1674. Part101.Locked = true
  1675. Part101.FormFactor = Enum.FormFactor.Custom
  1676. Part101.Size = Vector3.new(0.34857583, 0.174288005, 0.348576099)
  1677. Part101.CFrame = CFrame.new(5.25889665e-10, 1.24034989, 0.32876122, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  1678. Part101.BottomSurface = Enum.SurfaceType.Smooth
  1679. Part101.TopSurface = Enum.SurfaceType.Smooth
  1680. Part101.Position = Vector3.new(5.25889665e-10, 1.24034989, 0.32876122)
  1681. SpecialMesh102.Parent = Part101
  1682. SpecialMesh102.MeshId = "rbxassetid://1192459566"
  1683. SpecialMesh102.Scale = Vector3.new(0.580960035, 0.580960035, 0.580960035)
  1684. SpecialMesh102.TextureId = "rbxassetid://1467298640"
  1685. SpecialMesh102.MeshType = Enum.MeshType.FileMesh
  1686. SpecialMesh102.Scale = Vector3.new(0.580960035, 0.580960035, 0.580960035)
  1687. Vector3Value103.Name = "OriginalSize"
  1688. Vector3Value103.Parent = Part101
  1689. Vector3Value103.Value = Vector3.new(1.19999909, 0.599999845, 1.20000005)
  1690. Attachment104.Name = "FaceFrontAttachment"
  1691. Attachment104.Parent = Part101
  1692. Attachment104.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1693. Attachment104.CFrame = CFrame.new(0, 0.0668103918, -0.165573686, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1694. Attachment104.Position = Vector3.new(0, 0.0668103918, -0.165573686)
  1695. Attachment104.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1696. Attachment104.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1697. Weld105.Name = "AccessoryWeld"
  1698. Weld105.Parent = Part101
  1699. Weld105.C0 = CFrame.new(0, 0.0668103918, -0.165573686, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1700. Weld105.C1 = CFrame.new(0, 0, -0.174288049, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1701. Weld105.Part0 = Part101
  1702. Weld105.Part1 = Part3
  1703. Accessory106.Name = "LongHairHeadBand"
  1704. Accessory106.Parent = Model2
  1705. Accessory106.AttachmentForward = Vector3.new(-0, -0.0995037183, -0.995037198)
  1706. Accessory106.AttachmentPos = Vector3.new(0, 0.899999976, 0)
  1707. Accessory106.AttachmentUp = Vector3.new(0, 0.995037198, -0.0995037183)
  1708. Part107.Name = "Handle"
  1709. Part107.Parent = Accessory106
  1710. Part107.Rotation = Vector3.new(5.71000004, 0, 0)
  1711. Part107.CanCollide = false
  1712. Part107.Locked = true
  1713. Part107.FormFactor = Enum.FormFactor.Plate
  1714. Part107.Size = Vector3.new(0.290480077, 0.697152197, 0.580960155)
  1715. Part107.CFrame = CFrame.new(-2.38823988e-10, 1.19226563, 0.3115412, 1, -7.83231258e-09, 7.83188625e-10, 7.87137289e-09, 0.995037198, -0.0995037183, 4.24105195e-14, 0.0995037183, 0.995037198)
  1716. Part107.BottomSurface = Enum.SurfaceType.Smooth
  1717. Part107.TopSurface = Enum.SurfaceType.Smooth
  1718. Part107.Position = Vector3.new(-2.38823988e-10, 1.19226563, 0.3115412)
  1719. Part107.Orientation = Vector3.new(5.71000004, 0, 0)
  1720. SpecialMesh108.Parent = Part107
  1721. SpecialMesh108.MeshId = "http://www.roblox.com/asset/?id=13070796"
  1722. SpecialMesh108.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
  1723. SpecialMesh108.TextureId = "http://www.roblox.com/asset/?id=292357315 "
  1724. SpecialMesh108.MeshType = Enum.MeshType.FileMesh
  1725. SpecialMesh108.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
  1726. Attachment109.Name = "HairAttachment"
  1727. Attachment109.Parent = Part107
  1728. Attachment109.Rotation = Vector3.new(-5.71059322, 2.42994383e-12, -4.50996453e-07)
  1729. Attachment109.CFrame = CFrame.new(2.51508969e-09, 0.290328085, -0.00296907593, 1, 7.87137289e-09, 4.24105195e-14, -7.83231258e-09, 0.995037198, 0.0995037183, 7.83188625e-10, -0.0995037183, 0.995037198)
  1730. Attachment109.Position = Vector3.new(2.51508969e-09, 0.290328085, -0.00296907593)
  1731. Attachment109.Axis = Vector3.new(1, -7.83231258e-09, 7.83188625e-10)
  1732. Attachment109.Orientation = Vector3.new(-5.71059322, 2.44206326e-12, -4.50996652e-07)
  1733. Vector3Value110.Name = "OriginalSize"
  1734. Vector3Value110.Parent = Part107
  1735. Vector3Value110.Value = Vector3.new(1, 2.4000001, 2)
  1736. Weld111.Name = "AccessoryWeld"
  1737. Weld111.Parent = Part107
  1738. Weld111.C0 = CFrame.new(2.51508969e-09, 0.290328085, -0.00296907593, 1, 7.87137289e-09, 4.24105195e-14, -7.83231258e-09, 0.995037198, 0.0995037183, 7.83188625e-10, -0.0995037183, 0.995037198)
  1739. Weld111.C1 = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1740. Weld111.Part0 = Part107
  1741. Weld111.Part1 = Part3
  1742. Accessory112.Name = "FriendlySnowfOX"
  1743. Accessory112.Parent = Model2
  1744. Accessory112.AttachmentPos = Vector3.new(0, 1.79999995, 0)
  1745. Part113.Name = "Handle"
  1746. Part113.Parent = Accessory112
  1747. Part113.CanCollide = false
  1748. Part113.Locked = true
  1749. Part113.FormFactor = Enum.FormFactor.Custom
  1750. Part113.Size = Vector3.new(0.209153548, 0.383433163, 0.554817736)
  1751. Part113.CFrame = CFrame.new(0.290480018, 1.35073221, 0.366523594, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1752. Part113.BottomSurface = Enum.SurfaceType.Smooth
  1753. Part113.TopSurface = Enum.SurfaceType.Smooth
  1754. Part113.Position = Vector3.new(0.290480018, 1.35073221, 0.366523594)
  1755. SpecialMesh114.Parent = Part113
  1756. SpecialMesh114.MeshId = "rbxassetid://1241037817"
  1757. SpecialMesh114.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
  1758. SpecialMesh114.TextureId = "rbxassetid://1241038471"
  1759. SpecialMesh114.MeshType = Enum.MeshType.FileMesh
  1760. SpecialMesh114.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
  1761. Attachment115.Name = "RightCollarAttachment"
  1762. Attachment115.Parent = Part113
  1763. Attachment115.CFrame = CFrame.new(0, -0.188812032, -0.029048007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1764. Attachment115.Position = Vector3.new(0, -0.188812032, -0.029048007)
  1765. Weld116.Name = "AccessoryWeld"
  1766. Weld116.Parent = Part113
  1767. Weld116.C0 = CFrame.new(0, -0.188812032, -0.029048007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1768. Weld116.C1 = CFrame.new(0.290480018, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1769. Weld116.Part0 = Part113
  1770. Weld116.Part1 = Part28
  1771. Weld117.Parent = Model2
  1772. Weld117.Part0 = Part28
  1773. Weld117.Part1 = Part1
  1774. for i,v in pairs(mas:GetChildren()) do
  1775. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1776. pcall(function() v:MakeJoints() end)
  1777. end
  1778. mas:Destroy()
  1779. for i,v in pairs(cors) do
  1780. spawn(function()
  1781. pcall(v)
  1782. end)
  1783. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement