Advertisement
BNutty07

Untitled

Nov 4th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.89 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. PointLight2 = Instance.new("PointLight")
  22. SpecialMesh3 = Instance.new("SpecialMesh")
  23. Decal4 = Instance.new("Decal")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Sound8 = Instance.new("Sound")
  28. Weld9 = Instance.new("Weld")
  29. Weld10 = Instance.new("Weld")
  30. Weld11 = Instance.new("Weld")
  31. Part12 = Instance.new("Part")
  32. Decal13 = Instance.new("Decal")
  33. Motor6D14 = Instance.new("Motor6D")
  34. Motor6D15 = Instance.new("Motor6D")
  35. Motor6D16 = Instance.new("Motor6D")
  36. Motor6D17 = Instance.new("Motor6D")
  37. Motor6D18 = Instance.new("Motor6D")
  38. Decal19 = Instance.new("Decal")
  39. Part20 = Instance.new("Part")
  40. Decal21 = Instance.new("Decal")
  41. SpecialMesh22 = Instance.new("SpecialMesh")
  42. Part23 = Instance.new("Part")
  43. Decal24 = Instance.new("Decal")
  44. SpecialMesh25 = Instance.new("SpecialMesh")
  45. Part26 = Instance.new("Part")
  46. Decal27 = Instance.new("Decal")
  47. Part28 = Instance.new("Part")
  48. Decal29 = Instance.new("Decal")
  49. Humanoid30 = Instance.new("Humanoid")
  50. Part31 = Instance.new("Part")
  51. Motor6D32 = Instance.new("Motor6D")
  52. SpecialMesh33 = Instance.new("SpecialMesh")
  53. Decal34 = Instance.new("Decal")
  54. CharacterMesh35 = Instance.new("CharacterMesh")
  55. Script36 = Instance.new("Script")
  56. Script37 = Instance.new("Script")
  57. StringValue38 = Instance.new("StringValue")
  58. Animation39 = Instance.new("Animation")
  59. StringValue40 = Instance.new("StringValue")
  60. Animation41 = Instance.new("Animation")
  61. StringValue42 = Instance.new("StringValue")
  62. Animation43 = Instance.new("Animation")
  63. NumberValue44 = Instance.new("NumberValue")
  64. Animation45 = Instance.new("Animation")
  65. NumberValue46 = Instance.new("NumberValue")
  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. StringValue53 = Instance.new("StringValue")
  73. Animation54 = Instance.new("Animation")
  74. StringValue55 = Instance.new("StringValue")
  75. Animation56 = Instance.new("Animation")
  76. Script57 = Instance.new("Script")
  77. Script58 = Instance.new("Script")
  78. CharacterMesh59 = Instance.new("CharacterMesh")
  79. BodyColors60 = Instance.new("BodyColors")
  80. Sound61 = Instance.new("Sound")
  81. Script62 = Instance.new("Script")
  82. CharacterMesh63 = Instance.new("CharacterMesh")
  83. Hat64 = Instance.new("Hat")
  84. Part65 = Instance.new("Part")
  85. SpecialMesh66 = Instance.new("SpecialMesh")
  86. Hat67 = Instance.new("Hat")
  87. Part68 = Instance.new("Part")
  88. SpecialMesh69 = Instance.new("SpecialMesh")
  89. Hat70 = Instance.new("Hat")
  90. Part71 = Instance.new("Part")
  91. SpecialMesh72 = Instance.new("SpecialMesh")
  92. Decal73 = Instance.new("Decal")
  93. Decal74 = Instance.new("Decal")
  94. Decal75 = Instance.new("Decal")
  95. Decal76 = Instance.new("Decal")
  96. Decal77 = Instance.new("Decal")
  97. Sound78 = Instance.new("Sound")
  98. Model0.Name = "Scp-096."
  99. Model0.Parent = mas
  100. Model0.PrimaryPart = Part1
  101. Part1.Name = "Head"
  102. Part1.Parent = Model0
  103. Part1.Material = Enum.Material.SmoothPlastic
  104. Part1.BrickColor = BrickColor.new("Institutional white")
  105. Part1.CanCollide = false
  106. Part1.Elasticity = 0
  107. Part1.FormFactor = Enum.FormFactor.Symmetric
  108. Part1.Friction = 0
  109. Part1.Size = Vector3.new(2, 1, 1)
  110. Part1.CFrame = CFrame.new(-14.5499878, 4.50002003, -55.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  111. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  112. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  113. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  114. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  115. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  116. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  117. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  118. Part1.Position = Vector3.new(-14.5499878, 4.50002003, -55.75)
  119. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  120. PointLight2.Parent = Part1
  121. PointLight2.Color = Color3.new(1, 0, 0)
  122. PointLight2.Brightness = inf
  123. PointLight2.Range = 9
  124. PointLight2.Color = Color3.new(1, 0, 0)
  125. SpecialMesh3.Parent = Part1
  126. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=36869983"
  127. SpecialMesh3.Scale = Vector3.new(0.949999988, 0.899999976, 0.949999988)
  128. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=36869975"
  129. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  130. SpecialMesh3.Scale = Vector3.new(0.949999988, 0.899999976, 0.949999988)
  131. Decal4.Parent = Part1
  132. Decal4.Texture = "http://www.roblox.com/asset/?id=382210323"
  133. Sound5.Name = "Damage5"
  134. Sound5.Parent = Part1
  135. Sound5.SoundId = "rbxassetid://256509968"
  136. Sound5.Volume = 1
  137. Sound6.Name = "Idle"
  138. Sound6.Parent = Part1
  139. Sound6.SoundId = "rbxassetid://254932698"
  140. Sound6.Volume = 1
  141. Sound6.Looped = true
  142. Sound7.Name = "Panic"
  143. Sound7.Parent = Part1
  144. Sound7.SoundId = "rbxassetid://306192776"
  145. Sound7.Volume = 1
  146. Sound8.Name = "Screaming"
  147. Sound8.Parent = Part1
  148. Sound8.SoundId = "rbxassetid://325096496"
  149. Sound8.Volume = 1
  150. Sound8.Looped = true
  151. Weld9.Name = "HeadWeld"
  152. Weld9.Parent = Part1
  153. Weld9.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  154. Weld9.C1 = CFrame.new(-0.200000003, -0.419999987, 0.300000012, 1, 2.18651817e-08, -4.31581502e-05, -4.31581466e-05, 0.00100303721, -0.999999523, 2.14240572e-08, 0.999999523, 0.00100303721)
  155. Weld9.Part0 = Part1
  156. Weld9.Part1 = Part65
  157. Weld10.Name = "HeadWeld"
  158. Weld10.Parent = Part1
  159. Weld10.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  160. Weld10.C1 = CFrame.new(0.200000003, -0.449999988, 0.300000012, 1, 2.18651817e-08, -4.31581502e-05, -4.31581466e-05, 0.00100303721, -0.999999523, 2.14240572e-08, 0.999999523, 0.00100303721)
  161. Weld10.Part0 = Part1
  162. Weld10.Part1 = Part68
  163. Weld11.Name = "HeadWeld"
  164. Weld11.Parent = Part1
  165. Weld11.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  166. Weld11.C1 = CFrame.new(0, 0.5, 1.29999995, -1, -2.37697755e-08, 4.31562403e-05, 4.31562366e-05, -0.00106867601, 0.999999404, 2.2350271e-08, 0.999999404, 0.00106867612)
  167. Weld11.Part0 = Part1
  168. Weld11.Part1 = Part71
  169. Part12.Name = "Torso"
  170. Part12.Parent = Model0
  171. Part12.Material = Enum.Material.SmoothPlastic
  172. Part12.BrickColor = BrickColor.new("Institutional white")
  173. Part12.CanCollide = false
  174. Part12.Locked = true
  175. Part12.Elasticity = 0
  176. Part12.FormFactor = Enum.FormFactor.Symmetric
  177. Part12.Friction = 2
  178. Part12.Size = Vector3.new(2, 2, 1)
  179. Part12.CFrame = CFrame.new(-14.5499878, 3.00002003, -55.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  180. Part12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  181. Part12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  182. Part12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  183. Part12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  184. Part12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  185. Part12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  186. Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
  187. Part12.Position = Vector3.new(-14.5499878, 3.00002003, -55.75)
  188. Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
  189. Decal13.Name = "roblox"
  190. Decal13.Parent = Part12
  191. Motor6D14.Name = "Right Shoulder"
  192. Motor6D14.Parent = Part12
  193. Motor6D14.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  194. Motor6D14.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  195. Motor6D14.Part0 = Part12
  196. Motor6D14.Part1 = Part23
  197. Motor6D14.MaxVelocity = 0.10000000149012
  198. Motor6D15.Name = "Left Shoulder"
  199. Motor6D15.Parent = Part12
  200. Motor6D15.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  201. Motor6D15.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  202. Motor6D15.Part0 = Part12
  203. Motor6D15.Part1 = Part20
  204. Motor6D15.MaxVelocity = 0.10000000149012
  205. Motor6D16.Name = "Right Hip"
  206. Motor6D16.Parent = Part12
  207. Motor6D16.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  208. Motor6D16.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  209. Motor6D16.Part0 = Part12
  210. Motor6D16.Part1 = Part28
  211. Motor6D16.MaxVelocity = 0.10000000149012
  212. Motor6D17.Name = "Left Hip"
  213. Motor6D17.Parent = Part12
  214. Motor6D17.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  215. Motor6D17.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  216. Motor6D17.Part0 = Part12
  217. Motor6D17.Part1 = Part26
  218. Motor6D17.MaxVelocity = 0.10000000149012
  219. Motor6D18.Name = "Neck"
  220. Motor6D18.Parent = Part12
  221. Motor6D18.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  222. Motor6D18.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  223. Motor6D18.Part0 = Part12
  224. Motor6D18.Part1 = Part1
  225. Motor6D18.MaxVelocity = 0.10000000149012
  226. Decal19.Parent = Part12
  227. Decal19.Texture = "http://www.roblox.com/asset/?id=378017683"
  228. Decal19.Face = Enum.NormalId.Top
  229. Part20.Name = "Left Arm"
  230. Part20.Parent = Model0
  231. Part20.Material = Enum.Material.SmoothPlastic
  232. Part20.BrickColor = BrickColor.new("Institutional white")
  233. Part20.CanCollide = false
  234. Part20.Locked = true
  235. Part20.Elasticity = 0
  236. Part20.FormFactor = Enum.FormFactor.Symmetric
  237. Part20.Friction = 2
  238. Part20.Size = Vector3.new(1, 2, 1)
  239. Part20.CFrame = CFrame.new(-16.0499878, 3.00002003, -55.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  240. Part20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  241. Part20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  242. Part20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  243. Part20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  244. Part20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  245. Part20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  246. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  247. Part20.Position = Vector3.new(-16.0499878, 3.00002003, -55.75)
  248. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  249. Decal21.Parent = Part20
  250. Decal21.Texture = "http://www.roblox.com/asset/?id=378017584"
  251. SpecialMesh22.Parent = Part20
  252. SpecialMesh22.MeshId = "http://www.roblox.com/asset/?id=36780032"
  253. SpecialMesh22.Scale = Vector3.new(1.5, 1.5, 1.5)
  254. SpecialMesh22.TextureId = "http://www.roblox.com/asset/?id=29578966"
  255. SpecialMesh22.MeshType = Enum.MeshType.FileMesh
  256. SpecialMesh22.Scale = Vector3.new(1.5, 1.5, 1.5)
  257. Part23.Name = "Right Arm"
  258. Part23.Parent = Model0
  259. Part23.Material = Enum.Material.SmoothPlastic
  260. Part23.BrickColor = BrickColor.new("Institutional white")
  261. Part23.CanCollide = false
  262. Part23.Locked = true
  263. Part23.Elasticity = 0
  264. Part23.FormFactor = Enum.FormFactor.Symmetric
  265. Part23.Friction = 2
  266. Part23.Size = Vector3.new(1, 2, 1)
  267. Part23.CFrame = CFrame.new(-13.0499878, 3.00002003, -55.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  268. Part23.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  269. Part23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  270. Part23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  271. Part23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  272. Part23.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  273. Part23.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  274. Part23.Color = Color3.new(0.972549, 0.972549, 0.972549)
  275. Part23.Position = Vector3.new(-13.0499878, 3.00002003, -55.75)
  276. Part23.Color = Color3.new(0.972549, 0.972549, 0.972549)
  277. Decal24.Parent = Part23
  278. Decal24.Texture = "http://www.roblox.com/asset/?id=378017584"
  279. SpecialMesh25.Parent = Part23
  280. SpecialMesh25.MeshId = "http://www.roblox.com/asset/?id=36780156"
  281. SpecialMesh25.Scale = Vector3.new(1.5, 1.5, 1.5)
  282. SpecialMesh25.TextureId = "http://www.roblox.com/asset/?id=29578966"
  283. SpecialMesh25.MeshType = Enum.MeshType.FileMesh
  284. SpecialMesh25.Scale = Vector3.new(1.5, 1.5, 1.5)
  285. Part26.Name = "Left Leg"
  286. Part26.Parent = Model0
  287. Part26.Material = Enum.Material.SmoothPlastic
  288. Part26.BrickColor = BrickColor.new("Really black")
  289. Part26.CanCollide = false
  290. Part26.Locked = true
  291. Part26.Elasticity = 0
  292. Part26.FormFactor = Enum.FormFactor.Symmetric
  293. Part26.Friction = 2
  294. Part26.Size = Vector3.new(1, 2, 1)
  295. Part26.CFrame = CFrame.new(-15.0499878, 1.00002003, -55.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  296. Part26.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  297. Part26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  298. Part26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  299. Part26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  300. Part26.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  301. Part26.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  302. Part26.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  303. Part26.Position = Vector3.new(-15.0499878, 1.00002003, -55.75)
  304. Part26.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  305. Decal27.Parent = Part26
  306. Decal27.Texture = "http://www.roblox.com/asset/?id=378017584"
  307. Part28.Name = "Right Leg"
  308. Part28.Parent = Model0
  309. Part28.Material = Enum.Material.SmoothPlastic
  310. Part28.BrickColor = BrickColor.new("Really black")
  311. Part28.CanCollide = false
  312. Part28.Locked = true
  313. Part28.Elasticity = 0
  314. Part28.FormFactor = Enum.FormFactor.Symmetric
  315. Part28.Friction = 2
  316. Part28.Size = Vector3.new(1, 2, 1)
  317. Part28.CFrame = CFrame.new(-14.0499878, 1.00002003, -55.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  318. Part28.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  319. Part28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  320. Part28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  321. Part28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  322. Part28.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  323. Part28.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  324. Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  325. Part28.Position = Vector3.new(-14.0499878, 1.00002003, -55.75)
  326. Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  327. Decal29.Parent = Part28
  328. Decal29.Texture = "http://www.roblox.com/asset/?id=378017584"
  329. Humanoid30.Parent = Model0
  330. Humanoid30.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  331. Humanoid30.RightLeg = Part28
  332. Humanoid30.LeftLeg = Part26
  333. Humanoid30.Torso = Part31
  334. Part31.Name = "HumanoidRootPart"
  335. Part31.Parent = Model0
  336. Part31.Material = Enum.Material.SmoothPlastic
  337. Part31.BrickColor = BrickColor.new("Bright blue")
  338. Part31.Transparency = 1
  339. Part31.CanCollide = false
  340. Part31.Locked = true
  341. Part31.Elasticity = 0
  342. Part31.FormFactor = Enum.FormFactor.Symmetric
  343. Part31.Friction = 0
  344. Part31.Size = Vector3.new(2, 2, 1)
  345. Part31.CFrame = CFrame.new(-14.5499878, 3.00002003, -55.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  346. Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  347. Part31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  348. Part31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  349. Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  350. Part31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  351. Part31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  352. Part31.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  353. Part31.Position = Vector3.new(-14.5499878, 3.00002003, -55.75)
  354. Part31.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  355. Motor6D32.Name = "RootJoint"
  356. Motor6D32.Parent = Part31
  357. Motor6D32.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  358. Motor6D32.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  359. Motor6D32.Part0 = Part31
  360. Motor6D32.Part1 = Part12
  361. Motor6D32.MaxVelocity = 0.10000000149012
  362. SpecialMesh33.Parent = Part31
  363. SpecialMesh33.MeshId = "http://www.roblox.com/asset/?id=36780113"
  364. SpecialMesh33.MeshType = Enum.MeshType.FileMesh
  365. Decal34.Parent = Part31
  366. Decal34.Texture = "http://www.roblox.com/asset/?id=378017584"
  367. CharacterMesh35.Name = "Alien torso"
  368. CharacterMesh35.Parent = Model0
  369. CharacterMesh35.MeshId = 27493004
  370. CharacterMesh35.BodyPart = Enum.BodyPart.Torso
  371. Script36.Name = "Health"
  372. Script36.Parent = Model0
  373. table.insert(cors,sandbox(Script36,function()
  374. --Responsible for regening a player's humanoid's health
  375.  
  376. -- declarations
  377. local Figure = script.Parent
  378. local Head = Figure:WaitForChild("Head")
  379. local Humanoid;
  380. for _,Child in pairs(Figure:GetChildren())do
  381. if Child and Child.ClassName=="Humanoid"then
  382. Humanoid=Child;
  383. end;
  384. end;
  385. local regening = false
  386.  
  387. -- regeneration
  388. function regenHealth()
  389. if regening then return end
  390. regening = true
  391.  
  392. while Humanoid.Health < Humanoid.MaxHealth do
  393. local s = wait(1)
  394. local health = Humanoid.Health
  395. if health~=0 and health < Humanoid.MaxHealth then
  396. local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  397. health = health + newHealthDelta
  398. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  399. end
  400. end
  401.  
  402. if Humanoid.Health > Humanoid.MaxHealth then
  403. Humanoid.Health = Humanoid.MaxHealth
  404. end
  405.  
  406. regening = false
  407. end
  408.  
  409. Humanoid.HealthChanged:connect(regenHealth)
  410.  
  411. end))
  412. Script37.Name = "AnimateSauce"
  413. Script37.Parent = Model0
  414. table.insert(cors,sandbox(Script37,function()
  415. function waitForChild(parent, childName)
  416. local child = parent:findFirstChild(childName)
  417. if child then return child end
  418. while true do
  419. child = parent.ChildAdded:wait()
  420. if child.Name==childName then return child end
  421. end
  422. end
  423. local Figure = script.Parent
  424. local Torso = waitForChild(Figure, "Torso")
  425. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  426. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  427. local RightHip = waitForChild(Torso, "Right Hip")
  428. local LeftHip = waitForChild(Torso, "Left Hip")
  429. local Neck = waitForChild(Torso, "Neck")
  430. local Humanoid;
  431. for _,Child in pairs(Figure:GetChildren())do
  432. if Child and Child.ClassName=="Humanoid"then
  433. Humanoid=Child;
  434. end;
  435. end;
  436. local pose = "Standing"
  437. local currentAnim = ""
  438. local currentAnimInstance = nil
  439. local currentAnimTrack = nil
  440. local currentAnimKeyframeHandler = nil
  441. local currentAnimSpeed = 1.0
  442. local animTable = {}
  443. local animNames = {
  444. idle = {
  445. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  446. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  447. },
  448. walk = {
  449. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  450. },
  451. run = {
  452. { id = "http://www.roblox.com/asset/?id=252557606", weight = 20 }
  453. },
  454. jump = {
  455. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  456. },
  457. fall = {
  458. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  459. },
  460. climb = {
  461. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  462. },
  463. sit = {
  464. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  465. },
  466. toolnone = {
  467. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  468. },
  469. toolslash = {
  470. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  471. --{ id = "slash.xml", weight = 10 }
  472. },
  473. toollunge = {
  474. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  475. },
  476. wave = {
  477. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  478. },
  479. point = {
  480. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  481. },
  482. dance1 = {
  483. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  484. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  485. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  486. },
  487. dance2 = {
  488. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  489. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  490. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  491. },
  492. dance3 = {
  493. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  494. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  495. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  496. },
  497. laugh = {
  498. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  499. },
  500. cheer = {
  501. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  502. },
  503. }
  504. local dances = {"dance1", "dance2", "dance3"}
  505.  
  506. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  507. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  508.  
  509. function configureAnimationSet(name, fileList)
  510. if (animTable[name] ~= nil) then
  511. for _, connection in pairs(animTable[name].connections) do
  512. connection:disconnect()
  513. end
  514. end
  515. animTable[name] = {}
  516. animTable[name].count = 0
  517. animTable[name].totalWeight = 0
  518. animTable[name].connections = {}
  519.  
  520. -- check for config values
  521. local config = script:FindFirstChild(name)
  522. if (config ~= nil) then
  523. --print("Loading anims " .. name)
  524. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  525. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  526. local idx = 1
  527. for _, childPart in pairs(config:GetChildren()) do
  528. if (childPart:IsA("Animation")) then
  529. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  530. animTable[name][idx] = {}
  531. animTable[name][idx].anim = childPart
  532. local weightObject = childPart:FindFirstChild("Weight")
  533. if (weightObject == nil) then
  534. animTable[name][idx].weight = 1
  535. else
  536. animTable[name][idx].weight = weightObject.Value
  537. end
  538. animTable[name].count = animTable[name].count + 1
  539. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  540. --print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  541. idx = idx + 1
  542. end
  543. end
  544. end
  545.  
  546. -- fallback to defaults
  547. if (animTable[name].count <= 0) then
  548. for idx, anim in pairs(fileList) do
  549. animTable[name][idx] = {}
  550. animTable[name][idx].anim = Instance.new("Animation")
  551. animTable[name][idx].anim.Name = name
  552. animTable[name][idx].anim.AnimationId = anim.id
  553. animTable[name][idx].weight = anim.weight
  554. animTable[name].count = animTable[name].count + 1
  555. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  556. --print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  557. end
  558. end
  559. end
  560.  
  561. -- Setup animation objects
  562. function scriptChildModified(child)
  563. local fileList = animNames[child.Name]
  564. if (fileList ~= nil) then
  565. configureAnimationSet(child.Name, fileList)
  566. end
  567. end
  568.  
  569. script.ChildAdded:connect(scriptChildModified)
  570. script.ChildRemoved:connect(scriptChildModified)
  571.  
  572.  
  573. for name, fileList in pairs(animNames) do
  574. configureAnimationSet(name, fileList)
  575. end
  576.  
  577. -- ANIMATION
  578.  
  579. -- declarations
  580. local toolAnim = "None"
  581. local toolAnimTime = 0
  582.  
  583. local jumpAnimTime = 0
  584. local jumpAnimDuration = 0.3
  585.  
  586. local toolTransitionTime = 0.1
  587. local fallTransitionTime = 0.3
  588. local jumpMaxLimbVelocity = 0.75
  589.  
  590. -- functions
  591.  
  592. function stopAllAnimations()
  593. local oldAnim = currentAnim
  594.  
  595. -- return to idle if finishing an emote
  596. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  597. oldAnim = "idle"
  598. end
  599.  
  600. currentAnim = ""
  601. currentAnimInstance = nil
  602. if (currentAnimKeyframeHandler ~= nil) then
  603. currentAnimKeyframeHandler:disconnect()
  604. end
  605.  
  606. if (currentAnimTrack ~= nil) then
  607. currentAnimTrack:Stop()
  608. currentAnimTrack:Destroy()
  609. currentAnimTrack = nil
  610. end
  611. return oldAnim
  612. end
  613.  
  614. function setAnimationSpeed(speed)
  615. if speed ~= currentAnimSpeed then
  616. currentAnimSpeed = speed
  617. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  618. end
  619. end
  620.  
  621. function keyFrameReachedFunc(frameName)
  622. if (frameName == "End") then
  623.  
  624. local repeatAnim = currentAnim
  625. -- return to idle if finishing an emote
  626. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  627. repeatAnim = "idle"
  628. end
  629.  
  630. local animSpeed = currentAnimSpeed
  631. playAnimation(repeatAnim, 0.0, Humanoid)
  632. setAnimationSpeed(animSpeed)
  633. end
  634. end
  635.  
  636. -- Preload animations
  637. function playAnimation(animName, transitionTime, humanoid)
  638.  
  639. local roll = math.random(1, animTable[animName].totalWeight)
  640. local origRoll = roll
  641. local idx = 1
  642. while (roll > animTable[animName][idx].weight) do
  643. roll = roll - animTable[animName][idx].weight
  644. idx = idx + 1
  645. end
  646. --print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  647. local anim = animTable[animName][idx].anim
  648. -- switch animation
  649. if (anim ~= currentAnimInstance) then
  650. if (currentAnimTrack ~= nil) then
  651. currentAnimTrack:Stop(transitionTime)
  652. currentAnimTrack:Destroy()
  653. end
  654. currentAnimSpeed = 1.0
  655. -- load it to the humanoid; get AnimationTrack
  656. currentAnimTrack = humanoid:LoadAnimation(anim)
  657. -- play the animation
  658. currentAnimTrack:Play(transitionTime)
  659. currentAnim = animName
  660. currentAnimInstance = anim
  661. -- set up keyframe name triggers
  662. if (currentAnimKeyframeHandler ~= nil) then
  663. currentAnimKeyframeHandler:disconnect()
  664. end
  665. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  666. end
  667. end
  668. -------------------------------------------------------------------------------------------
  669. -------------------------------------------------------------------------------------------
  670. local toolAnimName = ""
  671. local toolAnimTrack = nil
  672. local toolAnimInstance = nil
  673. local currentToolAnimKeyframeHandler = nil
  674. function toolKeyFrameReachedFunc(frameName)
  675. if (frameName == "End") then
  676. --print("Keyframe : ".. frameName)
  677. playToolAnimation(toolAnimName, 0.0, Humanoid)
  678. end
  679. end
  680. function playToolAnimation(animName, transitionTime, humanoid)
  681. local roll = math.random(1, animTable[animName].totalWeight)
  682. local origRoll = roll
  683. local idx = 1
  684. while (roll > animTable[animName][idx].weight) do
  685. roll = roll - animTable[animName][idx].weight
  686. idx = idx + 1
  687. end
  688. --print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  689. local anim = animTable[animName][idx].anim
  690. if (toolAnimInstance ~= anim) then
  691. if (toolAnimTrack ~= nil) then
  692. toolAnimTrack:Stop()
  693. toolAnimTrack:Destroy()
  694. transitionTime = 0
  695. end
  696. -- load it to the humanoid; get AnimationTrack
  697. toolAnimTrack = humanoid:LoadAnimation(anim)
  698. -- play the animation
  699. toolAnimTrack:Play(transitionTime)
  700. toolAnimName = animName
  701. toolAnimInstance = anim
  702. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  703. end
  704. end
  705. function stopToolAnimations()
  706. local oldAnim = toolAnimName
  707. if (currentToolAnimKeyframeHandler ~= nil) then
  708. currentToolAnimKeyframeHandler:disconnect()
  709. end
  710. toolAnimName = ""
  711. toolAnimInstance = nil
  712. if (toolAnimTrack ~= nil) then
  713. toolAnimTrack:Stop()
  714. toolAnimTrack:Destroy()
  715. toolAnimTrack = nil
  716. end
  717. return oldAnim
  718. end
  719. -------------------------------------------------------------------------------------------
  720. -------------------------------------------------------------------------------------------
  721. function onRunning(speed)
  722. if speed>0.01 then
  723. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  724. playAnimation("walk", 0.1, Humanoid);
  725. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  726. playAnimation("run", 0.1, Humanoid);
  727. end;
  728. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  729. setAnimationSpeed(speed / 14.5)
  730. end
  731. pose = "Running"
  732. else
  733. playAnimation("idle", 0.1, Humanoid)
  734. pose = "Standing"
  735. end
  736. end
  737. function onDied()
  738. pose = "Dead"
  739. end
  740. function onJumping()
  741. playAnimation("jump", 0.1, Humanoid)
  742. jumpAnimTime = jumpAnimDuration
  743. pose = "Jumping"
  744. end
  745. function onClimbing(speed)
  746. playAnimation("climb", 0.1, Humanoid)
  747. setAnimationSpeed(speed / 12.0)
  748. pose = "Climbing"
  749. end
  750. function onGettingUp()
  751. pose = "GettingUp"
  752. end
  753. function onFreeFall()
  754. if (jumpAnimTime <= 0) then
  755. playAnimation("fall", fallTransitionTime, Humanoid)
  756. end
  757. pose = "FreeFall"
  758. end
  759. function onFallingDown()
  760. pose = "FallingDown"
  761. end
  762. function onSeated()
  763. pose = "Seated"
  764. end
  765. function onPlatformStanding()
  766. pose = "PlatformStanding"
  767. end
  768. function onSwimming(speed)
  769. if speed>0 then
  770. pose = "Running"
  771. else
  772. pose = "Standing"
  773. end
  774. end
  775.  
  776. function getTool()
  777. for _, kid in ipairs(Figure:GetChildren()) do
  778. if kid.className == "Tool" then return kid end
  779. end
  780. return nil
  781. end
  782.  
  783. function getToolAnim(tool)
  784. for _, c in ipairs(tool:GetChildren()) do
  785. if c.Name == "toolanim" and c.className == "StringValue" then
  786. return c
  787. end
  788. end
  789. return nil
  790. end
  791.  
  792. function animateTool()
  793.  
  794. if (toolAnim == "None") then
  795. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  796. return
  797. end
  798.  
  799. if (toolAnim == "Slash") then
  800. playToolAnimation("toolslash", 0, Humanoid)
  801. return
  802. end
  803.  
  804. if (toolAnim == "Lunge") then
  805. playToolAnimation("toollunge", 0, Humanoid)
  806. return
  807. end
  808. end
  809.  
  810. function moveSit()
  811. RightShoulder.MaxVelocity = 0.15
  812. LeftShoulder.MaxVelocity = 0.15
  813. RightShoulder:SetDesiredAngle(3.14 /2)
  814. LeftShoulder:SetDesiredAngle(-3.14 /2)
  815. RightHip:SetDesiredAngle(3.14 /2)
  816. LeftHip:SetDesiredAngle(-3.14 /2)
  817. end
  818.  
  819. local lastTick = 0
  820.  
  821. function move(time)
  822. local amplitude = 1
  823. local frequency = 1
  824. local deltaTime = time - lastTick
  825. lastTick = time
  826.  
  827. local climbFudge = 0
  828. local setAngles = false
  829.  
  830. if (jumpAnimTime > 0) then
  831. jumpAnimTime = jumpAnimTime - deltaTime
  832. end
  833.  
  834. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  835. playAnimation("fall", fallTransitionTime, Humanoid)
  836. elseif (pose == "Seated") then
  837. playAnimation("sit", 0.5, Humanoid)
  838. return
  839. elseif (pose == "Running") then
  840. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  841. playAnimation("walk", 0.1, Humanoid);
  842. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  843. playAnimation("run", 0.1, Humanoid);
  844. end;
  845. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  846. stopAllAnimations()
  847. amplitude = 0.1
  848. frequency = 1
  849. setAngles = true
  850. end
  851. if (setAngles) then
  852. local desiredAngle = amplitude * math.sin(time * frequency)
  853. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  854. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  855. RightHip:SetDesiredAngle(-desiredAngle)
  856. LeftHip:SetDesiredAngle(-desiredAngle)
  857. end
  858. -- Tool Animation handling
  859. local tool = getTool()
  860. if tool and tool:FindFirstChild("Handle") then
  861. local animStringValueObject = getToolAnim(tool)
  862. if animStringValueObject then
  863. toolAnim = animStringValueObject.Value
  864. -- message recieved, delete StringValue
  865. animStringValueObject.Parent = nil
  866. toolAnimTime = time + .3
  867. end
  868. if time > toolAnimTime then
  869. toolAnimTime = 0
  870. toolAnim = "None"
  871. end
  872. animateTool()
  873. else
  874. stopToolAnimations()
  875. toolAnim = "None"
  876. toolAnimInstance = nil
  877. toolAnimTime = 0
  878. end
  879. end
  880. -- connect events
  881. Humanoid.Died:connect(onDied)
  882. Humanoid.Running:connect(onRunning)
  883. Humanoid.Jumping:connect(onJumping)
  884. Humanoid.Climbing:connect(onClimbing)
  885. Humanoid.GettingUp:connect(onGettingUp)
  886. Humanoid.FreeFalling:connect(onFreeFall)
  887. Humanoid.FallingDown:connect(onFallingDown)
  888. Humanoid.Seated:connect(onSeated)
  889. Humanoid.PlatformStanding:connect(onPlatformStanding)
  890. Humanoid.Swimming:connect(onSwimming)
  891. local runService = game:GetService("RunService");
  892. playAnimation("idle", 0.1, Humanoid)
  893. pose = "Standing"
  894. while Wait(0)do
  895. local _,time=wait(0)
  896. move(time)
  897. end
  898. end))
  899. StringValue38.Name = "climb"
  900. StringValue38.Parent = Script37
  901. Animation39.Name = "ClimbAnim"
  902. Animation39.Parent = StringValue38
  903. Animation39.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  904. StringValue40.Name = "fall"
  905. StringValue40.Parent = Script37
  906. Animation41.Name = "FallAnim"
  907. Animation41.Parent = StringValue40
  908. Animation41.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  909. StringValue42.Name = "idle"
  910. StringValue42.Parent = Script37
  911. Animation43.Name = "Animation1"
  912. Animation43.Parent = StringValue42
  913. Animation43.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  914. NumberValue44.Name = "Weight"
  915. NumberValue44.Parent = Animation43
  916. NumberValue44.Value = 9
  917. Animation45.Name = "Animation2"
  918. Animation45.Parent = StringValue42
  919. Animation45.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  920. NumberValue46.Name = "Weight"
  921. NumberValue46.Parent = Animation45
  922. NumberValue46.Value = 1
  923. StringValue47.Name = "jump"
  924. StringValue47.Parent = Script37
  925. Animation48.Name = "JumpAnim"
  926. Animation48.Parent = StringValue47
  927. Animation48.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  928. StringValue49.Name = "run"
  929. StringValue49.Parent = Script37
  930. Animation50.Name = "RunAnim"
  931. Animation50.Parent = StringValue49
  932. Animation50.AnimationId = "http://www.roblox.com/asset/?id=252557606"
  933. StringValue51.Name = "sit"
  934. StringValue51.Parent = Script37
  935. Animation52.Name = "SitAnim"
  936. Animation52.Parent = StringValue51
  937. Animation52.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  938. StringValue53.Name = "toolnone"
  939. StringValue53.Parent = Script37
  940. Animation54.Name = "ToolNoneAnim"
  941. Animation54.Parent = StringValue53
  942. Animation54.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  943. StringValue55.Name = "walk"
  944. StringValue55.Parent = Script37
  945. Animation56.Name = "WalkAnim"
  946. Animation56.Parent = StringValue55
  947. Animation56.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  948. Script57.Name = "MainAnimation"
  949. Script57.Parent = Model0
  950. table.insert(cors,sandbox(Script57,function()
  951. --[[ By: Brutez. ]]--
  952. local AnimationScript=script;
  953. repeat Wait(0);until script and script.ClassName=="Script"and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Torso")and script.Parent:FindFirstChild("Head");
  954. local SCP096=AnimationScript.Parent;
  955. local SCP096Torso=SCP096:FindFirstChild("Torso");
  956. local LeftHip=SCP096Torso:FindFirstChild("Left Hip");
  957. local LeftShoulder=SCP096Torso:FindFirstChild("Left Shoulder");
  958. local Neck=SCP096Torso:FindFirstChild("Neck");
  959. local RightHip=SCP096Torso:FindFirstChild("Right Hip");
  960. local RightShoulder=SCP096Torso:FindFirstChild("Right Shoulder");
  961. local SCP096Humanoid;
  962. for _,Child in pairs(SCP096:GetChildren())do
  963. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  964. SCP096Humanoid=Child;
  965. end;
  966. end;
  967. local CurrentPose="WhaaPose";
  968. local CurrentToolAnimation="None";
  969. local CurrentToolAnimationTime=0;
  970. function AquireTool()
  971. for _,Child in ipairs(SCP096:GetChildren()) do
  972. if Child and Child~=nil and Child.className=="Tool"then
  973. return Child;
  974. end;
  975. end;
  976. end;
  977. function AquireToolAnimation(ToolChild)
  978. for _,Child in ipairs(ToolChild:GetChildren()) do
  979. if Child and Child~=nil and Child.Name=="toolanim"and Child.className=="StringValue"then
  980. return Child;
  981. end;
  982. end;
  983. end;
  984. function ToolAnimation()
  985. if CurrentToolAnimation=="None"then
  986. RightShoulder.DesiredAngle=1.57;
  987. return;
  988. elseif CurrentToolAnimation=="Slash"then
  989. RightShoulder.MaxVelocity=0.5;
  990. RightShoulder.DesiredAngle=0;
  991. return;
  992. elseif CurrentToolAnimation=="Lunge"then
  993. RightShoulder.MaxVelocity=0.5;
  994. LeftShoulder.MaxVelocity=0.5;
  995. RightHip.MaxVelocity=0.5;
  996. LeftHip.MaxVelocity=0.5;
  997. RightShoulder.DesiredAngle=1.57;
  998. LeftShoulder.DesiredAngle=1.0;
  999. RightHip.DesiredAngle=1.57;
  1000. LeftHip.DesiredAngle=1.0;
  1001. return;
  1002. end;
  1003. end;
  1004. function ChangeAngle(time)
  1005. local Amount;
  1006. local Rate;
  1007. local Angle;
  1008. if CurrentPose=="Jumping"then
  1009. LeftHip.MaxVelocity=0.5;
  1010. LeftHip.DesiredAngle=0;
  1011. LeftShoulder.CurrentAngle=-3.14;
  1012. LeftShoulder.DesiredAngle=-3.14;
  1013. Neck.MaxVelocity=5;
  1014. Neck.DesiredAngle=0;
  1015. RightHip.MaxVelocity=0.5;
  1016. RightHip.DesiredAngle=0;
  1017. RightShoulder.CurrentAngle=3.14;
  1018. RightShoulder.MaxVelocity=0.5;
  1019. RightShoulder.DesiredAngle=3.14;
  1020. Amount=nil;
  1021. Rate=nil;
  1022. Angle=nil;
  1023. elseif CurrentPose=="FreeFall"then
  1024. LeftHip.MaxVelocity=0.5;
  1025. LeftHip.DesiredAngle=0;
  1026. LeftShoulder.MaxVelocity=0.5;
  1027. LeftShoulder.DesiredAngle=-3.14;
  1028. Neck.MaxVelocity=5;
  1029. Neck.DesiredAngle=0;
  1030. RightHip.MaxVelocity=0.5;
  1031. RightHip.DesiredAngle=0;
  1032. RightShoulder.MaxVelocity=0.5;
  1033. RightShoulder.DesiredAngle=3.14;
  1034. Amount=nil;
  1035. Rate=nil;
  1036. Angle=nil;
  1037. elseif CurrentPose=="Sitting"then
  1038. LeftHip.MaxVelocity=0.15;
  1039. LeftHip.DesiredAngle=-3.14/2;
  1040. LeftShoulder.MaxVelocity=0.15;
  1041. LeftShoulder.DesiredAngle=-3.14/2;
  1042. Neck.MaxVelocity=0.15;
  1043. Neck.DesiredAngle=0;
  1044. RightHip.MaxVelocity=0.15;
  1045. RightHip.DesiredAngle=3.14/2;
  1046. RightShoulder.MaxVelocity=0.15;
  1047. RightShoulder.DesiredAngle=3.14/2;
  1048. Amount=nil;
  1049. Rate=nil;
  1050. Angle=nil;
  1051. elseif CurrentPose=="Walking"then
  1052. LeftHip.MaxVelocity=0.2;
  1053. LeftShoulder.MaxVelocity=0.2;
  1054. Neck.MaxVelocity=0.02;
  1055. RightHip.MaxVelocity=0.2;
  1056. RightShoulder.MaxVelocity=0.2;
  1057. Amount=0.4;
  1058. Rate=2;
  1059. Angle=0;
  1060. elseif CurrentPose=="Running"then
  1061. LeftHip.MaxVelocity=0.8;
  1062. LeftShoulder.MaxVelocity=5;
  1063. LeftShoulder.DesiredAngle=-3.14/2;
  1064. Neck.MaxVelocity=0.8;
  1065. RightHip.MaxVelocity=0.8;
  1066. RightShoulder.MaxVelocity=5;
  1067. RightShoulder.DesiredAngle=3.14/2;
  1068. Amount=2;
  1069. Rate=15;
  1070. Angle=0;
  1071. elseif CurrentPose=="Panic"then
  1072. LeftHip.DesiredAngle=0;
  1073. LeftHip.MaxVelocity=1;
  1074. LeftShoulder.DesiredAngle=-3.14;
  1075. LeftShoulder.MaxVelocity=1;
  1076. Neck.DesiredAngle=0;
  1077. Neck.MaxVelocity=1;
  1078. RightHip.DesiredAngle=0;
  1079. RightHip.MaxVelocity=1;
  1080. RightShoulder.MaxVelocity=1;
  1081. RightShoulder.DesiredAngle=3.14;
  1082. Amount=nil;
  1083. Rate=nil;
  1084. Angle=nil;
  1085. elseif CurrentPose=="Climbing"then
  1086. LeftHip.MaxVelocity=0.7;
  1087. LeftShoulder.MaxVelocity=0.15;
  1088. Neck.MaxVelocity=1;
  1089. RightHip.MaxVelocity=0.7;
  1090. RightShoulder.MaxVelocity=0.15;
  1091. Amount=1;
  1092. Rate=9;
  1093. Angle=3.14;
  1094. elseif CurrentPose=="Platformed"then
  1095. LeftHip.DesiredAngle=0;
  1096. LeftHip.CurrentAngle=0;
  1097. LeftHip.MaxVelocity=0;
  1098. LeftShoulder.DesiredAngle=0;
  1099. LeftShoulder.CurrentAngle=0;
  1100. LeftShoulder.MaxVelocity=0;
  1101. Neck.DesiredAngle=0;
  1102. Neck.CurrentAngle=0;
  1103. Neck.MaxVelocity=0;
  1104. RightHip.DesiredAngle=0;
  1105. RightHip.CurrentAngle=0;
  1106. RightHip.MaxVelocity=0;
  1107. RightShoulder.MaxVelocity=0;
  1108. RightShoulder.DesiredAngle=0;
  1109. RightShoulder.CurrentAngle=0;
  1110. Amount=nil;
  1111. Rate=nil;
  1112. Angle=nil;
  1113. elseif CurrentPose=="WhaaPose"then
  1114. LeftHip.MaxVelocity=0.05;
  1115. LeftShoulder.MaxVelocity=0.05;
  1116. Neck.MaxVelocity=0.005;
  1117. RightHip.MaxVelocity=0.05;
  1118. RightShoulder.MaxVelocity=0.05;
  1119. Amount=0.1;
  1120. Rate=3;
  1121. Angle=0;
  1122. end;
  1123. if CurrentPose~="Platformed"or CurrentPose~="Jumping"or CurrentPose~="FreeFalling"or CurrentPose~="Sitting"then
  1124. if Amount and Amount~=nil and Rate and Rate~=nil and Angle and Angle~=nil then
  1125. local DesiredAngle=Amount*math.sin(time*Rate);
  1126. if CurrentPose~="Running"and CurrentPose~="Panic"then
  1127. Neck.DesiredAngle=DesiredAngle;
  1128. RightShoulder.DesiredAngle=DesiredAngle+Angle;
  1129. LeftShoulder.DesiredAngle=DesiredAngle-Angle;
  1130. end;
  1131. RightHip.DesiredAngle=-DesiredAngle;
  1132. LeftHip.DesiredAngle=-DesiredAngle;
  1133. end;
  1134. local CurrentTool=AquireTool();
  1135. if CurrentTool and CurrentTool~=nil then
  1136. local animStringValueObject=AquireToolAnimation(CurrentTool);
  1137. if animStringValueObject then
  1138. CurrentToolAnimation=animStringValueObject.Value;
  1139. animStringValueObject.Parent=nil;
  1140. CurrentToolAnimationTime=time+0.3;
  1141. end;
  1142. if time>CurrentToolAnimationTime then
  1143. CurrentToolAnimationTime=0
  1144. CurrentToolAnimation="None"
  1145. end;
  1146. ToolAnimation();
  1147. else
  1148. CurrentToolAnimation="None";
  1149. CurrentToolAnimationTime=0;
  1150. end;
  1151. end;
  1152. end;
  1153. Spawn(function()
  1154. while Wait(0)do
  1155. if AnimationScript and SCP096 and SCP096Torso and SCP096Torso~=nil then
  1156. local FiredRay=Ray.new(SCP096Torso.Position,Vector3.new(0,-5.5,0));
  1157. local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,SCP096);
  1158. if RayTarget and(SCP096Torso.Velocity-Vector3.new(0,SCP096Torso.Velocity.y,0)).magnitude>=5 and SCP096Humanoid and SCP096Humanoid.WalkSpeed==10 and not SCP096Humanoid.Sit and not SCP096Humanoid.PlatformStand then
  1159. CurrentPose="Walking";
  1160. elseif RayTarget and(SCP096Torso.Velocity-Vector3.new(0,SCP096Torso.Velocity.y,0)).magnitude>=5 and SCP096Humanoid and SCP096Humanoid.WalkSpeed==35 and not SCP096Humanoid.Sit and not SCP096Humanoid.PlatformStand then
  1161. CurrentPose="Running";
  1162. elseif SCP096Humanoid and SCP096Humanoid.Sit and not SCP096Humanoid.PlatformStand then
  1163. CurrentPose="Sitting";
  1164. elseif not RayTarget and SCP096Humanoid and not SCP096Humanoid.Sit and not SCP096Humanoid.PlatformStand then
  1165. CurrentPose="Jumping";
  1166. elseif SCP096Humanoid and SCP096Humanoid.PlatformStand then
  1167. CurrentPose="Platformed";
  1168. elseif RayTarget and(SCP096Torso.Velocity-Vector3.new(0,SCP096Torso.Velocity.y,0)).magnitude<=5 and SCP096Humanoid and SCP096Humanoid.WalkSpeed==0 and not SCP096Humanoid.Sit and not SCP096Humanoid.PlatformStand then
  1169. CurrentPose="Panic";
  1170. else
  1171. CurrentPose="WhaaPose";
  1172. end;
  1173. end;
  1174. end;
  1175. end);
  1176. while Wait(0)do
  1177. if SCP096 then
  1178. local _,time=Wait(0);
  1179. ChangeAngle(time);
  1180. else
  1181. break;
  1182. end;
  1183. end;
  1184. --[[ By: Brutez. ]]--
  1185. end))
  1186. Script58.Name = "Main"
  1187. Script58.Parent = Model0
  1188. table.insert(cors,sandbox(Script58,function()
  1189. --[[ By: Brutez. ]]--
  1190. local SCP096Script=script;
  1191. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso")and script.Parent:FindFirstChild("HumanoidRootPart");
  1192. local SCP096=SCP096Script.Parent;
  1193. if SCP096Script and SCP096 and SCP096:FindFirstChild("Thumbnail")then
  1194. SCP096:FindFirstChild("Thumbnail"):Destroy();
  1195. end
  1196. local Hush=SCP096:FindFirstChild("Hush");
  1197. local Notice=SCP096:FindFirstChild("Notice");
  1198. local SCP096Humanoid;
  1199. for _,Child in pairs(SCP096:GetChildren())do
  1200. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1201. SCP096Humanoid=Child;
  1202. end;
  1203. end;
  1204. local CanSee=false;
  1205. local Pathing=false;
  1206. local SCP096Head=SCP096:FindFirstChild("Head");
  1207. local Damage5=SCP096Head:FindFirstChild("Damage5");
  1208. local Idle=SCP096Head:FindFirstChild("Idle");
  1209. local Panic=SCP096Head:FindFirstChild("Panic");
  1210. local Screaming=SCP096Head:FindFirstChild("Screaming");
  1211. local SCP096HumanoidRootPart=SCP096:FindFirstChild("HumanoidRootPart");
  1212. local SCP096Torso=SCP096:FindFirstChild("Torso");
  1213. local AttackDebounce=false;
  1214. local Chasing=false;
  1215. function raycast(Spos,vec,currentdist)
  1216. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),SCP096);
  1217. if hit2~=nil and pos2 then
  1218. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  1219. local currentdist=currentdist-(pos2-Spos).magnitude;
  1220. return raycast(pos2,vec,currentdist);
  1221. end;
  1222. end;
  1223. return hit2,pos2;
  1224. end;
  1225. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  1226. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  1227. end;
  1228. Spawn(function()
  1229. while Wait(0)do
  1230. if SCP096Script and SCP096 and SCP096HumanoidRootPart and SCP096Head and SCP096Humanoid and SCP096Humanoid.Health~=0 then
  1231. local TargetPoint=SCP096Humanoid.TargetPoint;
  1232. local Blockage,BlockagePos=RayCast((SCP096HumanoidRootPart.CFrame+CFrame.new(SCP096HumanoidRootPart.Position,Vector3.new(TargetPoint.X,SCP096HumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(SCP096HumanoidRootPart.Size.Z/2)).p,SCP096HumanoidRootPart.CFrame.lookVector,(SCP096HumanoidRootPart.Size.Z*2.5),{SCP096,SCP096})
  1233. local Jumpable=false;
  1234. if Blockage then
  1235. Jumpable=true;
  1236. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  1237. local BlockageHumanoid;
  1238. for _,Child in pairs(Blockage.Parent:GetChildren())do
  1239. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1240. BlockageHumanoid=Child;
  1241. end;
  1242. end;
  1243. if Blockage and Blockage:IsA("Terrain")then
  1244. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  1245. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  1246. if CellMaterial==Enum.CellMaterial.Water then
  1247. Jumpable=false;
  1248. end;
  1249. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Hat"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Tool"then
  1250. Jumpable=false;
  1251. end;
  1252. end;
  1253. if SCP096Script and SCP096 and SCP096Humanoid and SCP096Humanoid.Health~=0 and not SCP096Humanoid.Sit and Jumpable then
  1254. SCP096Humanoid.Jump=false;
  1255. end;
  1256. end;
  1257. end;
  1258. end;
  1259. end);
  1260. local DynamicWander=true;
  1261. while Wait(0)do
  1262. if SCP096Script and SCP096 and SCP096Humanoid then
  1263. SCP096Humanoid.CameraOffset=Vector3.new(0,0,0);
  1264. SCP096Humanoid.DisplayDistanceType="None";
  1265. SCP096Humanoid.HealthDisplayDistance=0;
  1266. SCP096Humanoid.Name="SCP";
  1267. SCP096Humanoid.NameDisplayDistance=0;
  1268. SCP096Humanoid.NameOcclusion="EnemyOcclusion";
  1269. SCP096Humanoid.Archivable=true;
  1270. SCP096Humanoid.AutoRotate=true;
  1271. SCP096Humanoid.MaxHealth=999999999e999999999;
  1272. SCP096Humanoid.Health=999999999e999999999;
  1273. SCP096Humanoid.JumpPower=100;
  1274. SCP096Humanoid.MaxSlopeAngle=89.9;
  1275. if not Chasing then
  1276. local SwitchWander=math.random(1,2000);
  1277. if SwitchWander==1 and not DynamicWander then
  1278. DynamicWander=true;
  1279. elseif SwitchWander==1 and DynamicWander then
  1280. DynamicWander=false;
  1281. end;
  1282. local WalkChance=math.random(1,100);
  1283. if WalkChance==1 and SCP096Script and SCP096 and SCP096:FindFirstChild("Torso")and SCP096:FindFirstChild("Head")and SCP096Humanoid and SCP096Humanoid.Health~=0 and not DynamicWander then
  1284. SCP096Humanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1285. elseif SCP096Script and SCP096 and SCP096Torso and SCP096Head and SCP096Humanoid and SCP096Humanoid.Health~=0 and DynamicWander then
  1286. local WanderAngle=(math.random()-0.5)*1;
  1287. local RotatingLookVector=CFrame.Angles(0,WanderAngle,0)*SCP096Torso.CFrame.lookVector;
  1288. SCP096Humanoid:MoveTo(SCP096Torso.Position+6*RotatingLookVector,SCP096Torso);
  1289. end;
  1290. SCP096Humanoid.WalkSpeed=8;
  1291. else
  1292. SCP096Humanoid=37;
  1293. end;
  1294. end;
  1295. if SCP096Script and SCP096 and Hush and Hush.IsPlaying then
  1296. Hush:Stop();
  1297. end;
  1298. if SCP096Script and SCP096 and Idle and not Idle.IsPlaying then
  1299. Idle:Play();
  1300. end;
  1301. if SCP096Script and SCP096 and Panic and Panic.IsPlaying then
  1302. Panic:Stop();
  1303. end;
  1304. if SCP096Script and SCP096 and Screaming and Screaming.IsPlaying then
  1305. Screaming:Stop();
  1306. end;
  1307. local NoticeDistance=10;
  1308. local TargetTorso;
  1309. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  1310. if TargetModel.className=="Model"and TargetModel~=SCP096 and TargetModel.Name~=SCP096.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  1311. local TargetPart=TargetModel:FindFirstChild("Torso");
  1312. local FoundHumanoid;
  1313. for _,Child in pairs(TargetModel:GetChildren())do
  1314. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1315. FoundHumanoid=Child;
  1316. end;
  1317. end;
  1318. if TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-SCP096HumanoidRootPart.Position).magnitude<NoticeDistance then
  1319. TargetTorso=TargetPart;
  1320. NoticeDistance=(TargetPart.Position-SCP096HumanoidRootPart.Position).magnitude;
  1321. AttackDebounce=true;
  1322. Spawn(function()
  1323. Chasing=true;
  1324. if SCP096Script and SCP096 and Idle then
  1325. Notice:Play();
  1326. end;
  1327. if SCP096Script and SCP096 and Hush and Hush.IsPlaying then
  1328. Hush:Stop();
  1329. end;
  1330. if SCP096Script and SCP096 and Idle and Idle.IsPlaying then
  1331. Idle:Stop();
  1332. end;
  1333. if SCP096Script and SCP096 and Panic then
  1334. Panic:Play();
  1335. end;
  1336. if SCP096Script and SCP096 and Screaming and Screaming.IsPlaying then
  1337. Screaming:Stop();
  1338. end;
  1339. SCP096Humanoid.WalkSpeed=0;
  1340. SCP096Humanoid:MoveTo(SCP096Torso.Position,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1341. Wait(25);
  1342. if SCP096Script and SCP096 and Hush and not Hush.IsPlaying then
  1343. Hush:Play();
  1344. end;
  1345. if SCP096Script and SCP096 and Idle and Idle.IsPlaying then
  1346. Idle:Stop();
  1347. end;
  1348. if SCP096Script and SCP096 and Panic and Panic.IsPlaying then
  1349. Panic:Stop();
  1350. end;
  1351. if SCP096Script and SCP096 and Screaming and not Screaming.IsPlaying then
  1352. Screaming:Play();
  1353. end;
  1354. SCP096Humanoid.WalkSpeed=37;
  1355. Spawn(function()
  1356. while Wait(0)do
  1357. local hit,pos=raycast(SCP096HumanoidRootPart.Position,(TargetPart.Position-SCP096HumanoidRootPart.Position).unit,500)
  1358. if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("Torso")and hit.Parent:FindFirstChild("Head")then
  1359. CanSee=true;
  1360. else
  1361. CanSee=false;
  1362. end;
  1363. end;
  1364. end);
  1365. repeat
  1366. Wait(0)
  1367. if CanSee then
  1368. SCP096Humanoid:MoveTo(TargetPart.Position+(TargetPart.Position-SCP096HumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1369. end;
  1370. if not CanSee and not Pathing then
  1371. Spawn(function()
  1372. Pathing=true;
  1373. local RenderedPath=game:GetService("PathfindingService"):ComputeRawPathAsync(SCP096Torso.Position,TargetPart.Position,500);
  1374. local RenderedPathCoordinates=RenderedPath:GetPointCoordinates();
  1375. for _=1,#RenderedPathCoordinates do
  1376. if not CanSee then
  1377. local Point=RenderedPathCoordinates[_];
  1378. local PathTimer=0;
  1379. repeat Wait(0);
  1380. SCP096Humanoid:MoveTo(Point);PathTimer=PathTimer+1;
  1381. if PathTimer>15 or CanSee then
  1382. break;
  1383. end;
  1384. until(SCP096Torso.Position-Point).Magnitude<5 or PathTimer>15 or CanSee;
  1385. if PathTimer>15 or CanSee then
  1386. break;
  1387. end;
  1388. end;
  1389. end;
  1390. Pathing=false;
  1391. end);
  1392. end;
  1393. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and (TargetPart.Position-SCP096HumanoidRootPart.Position).magnitude<10 then
  1394. Damage5:Play();
  1395. FoundHumanoid:TakeDamage(99999e99999);
  1396. end
  1397. until TargetModel.Parent==nil or TargetPart.Parent==nil or FoundHumanoid.Parent==nil or TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health==0;
  1398. Chasing=false;
  1399. end);
  1400. repeat Wait(0);until not Chasing;
  1401. AttackDebounce=false
  1402. end;
  1403. end;
  1404. end;
  1405. end;
  1406. --[[ By: Brutez. ]]--
  1407. end))
  1408. CharacterMesh59.Name = "Superhero Left Leg"
  1409. CharacterMesh59.Parent = Model0
  1410. CharacterMesh59.MeshId = 32328520
  1411. CharacterMesh59.BodyPart = Enum.BodyPart.LeftLeg
  1412. BodyColors60.Parent = Model0
  1413. BodyColors60.HeadColor = BrickColor.new("Institutional white")
  1414. BodyColors60.LeftArmColor = BrickColor.new("Institutional white")
  1415. BodyColors60.LeftLegColor = BrickColor.new("Really black")
  1416. BodyColors60.RightArmColor = BrickColor.new("Institutional white")
  1417. BodyColors60.RightLegColor = BrickColor.new("Really black")
  1418. BodyColors60.TorsoColor = BrickColor.new("Institutional white")
  1419. Sound61.Name = "Notice"
  1420. Sound61.Parent = Model0
  1421. Sound61.SoundId = "rbxassetid://257340849"
  1422. Sound61.Volume = 1
  1423. Script62.Name = "Respawn"
  1424. Script62.Parent = Model0
  1425. table.insert(cors,sandbox(Script62,function()
  1426. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1427. local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
  1428. local AdvancedRespawnScript=script;
  1429. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  1430. local JeffTheKiller=AdvancedRespawnScript.Parent;
  1431. if AdvancedRespawnScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then
  1432. JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();
  1433. end;
  1434. local GameDerbis=Game:GetService("Debris");
  1435. local JeffTheKillerHumanoid;
  1436. for _,Child in pairs(JeffTheKiller:GetChildren())do
  1437. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1438. JeffTheKillerHumanoid=Child;
  1439. end;
  1440. end;
  1441. local Respawndant=JeffTheKiller:Clone();
  1442. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  1443. coroutine.resume(coroutine.create(function()
  1444. if JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid:FindFirstChild("Status")and not JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  1445. SpawnModel=Instance.new("Model");
  1446. SpawnModel.Parent=JeffTheKillerHumanoid.Status;
  1447. SpawnModel.Name="AvalibleSpawns";
  1448. else
  1449. SpawnModel=JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  1450. end;
  1451. function FindSpawn(SearchValue)
  1452. local PartsArchivable=SearchValue:GetChildren();
  1453. for AreaSearch=1,#PartsArchivable do
  1454. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  1455. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  1456. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  1457. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  1458. end;
  1459. FindSpawn(PartsArchivable[AreaSearch]);
  1460. end;
  1461. end;
  1462. FindSpawn(Game:GetService("Workspace"));
  1463. local SpawnChilden=SpawnModel:GetChildren();
  1464. if#SpawnChilden>0 then
  1465. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  1466. local RespawningForceField=Instance.new("ForceField");
  1467. RespawningForceField.Parent=JeffTheKiller;
  1468. RespawningForceField.Name="SpawnForceField";
  1469. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  1470. JeffTheKiller:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  1471. else
  1472. if JeffTheKiller:FindFirstChild("SpawnForceField")then
  1473. JeffTheKiller:FindFirstChild("SpawnForceField"):Destroy();
  1474. end;
  1475. JeffTheKiller:MoveTo(Vector3.new(0,115,0));
  1476. end;
  1477. end));
  1478. end;
  1479. function Respawn()
  1480. Wait(5);
  1481. Respawndant.Parent=JeffTheKiller.Parent;
  1482. Respawndant:makeJoints();
  1483. Respawndant:FindFirstChild("Head"):MakeJoints();
  1484. Respawndant:FindFirstChild("Torso"):MakeJoints();
  1485. JeffTheKiller:remove();
  1486. end;
  1487. if AdvancedRespawnScript and JeffTheKiller and JeffTheKillerHumanoid then
  1488. JeffTheKillerHumanoid.Died:connect(Respawn);
  1489. end;
  1490. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1491. end))
  1492. CharacterMesh63.Name = "Superhero Right Leg"
  1493. CharacterMesh63.Parent = Model0
  1494. CharacterMesh63.MeshId = 32328627
  1495. CharacterMesh63.BodyPart = Enum.BodyPart.RightLeg
  1496. Hat64.Name = "Eye"
  1497. Hat64.Parent = Model0
  1498. Hat64.AttachmentForward = Vector3.new(4.31581502e-05, 0.999999523, -0.00100303721)
  1499. Hat64.AttachmentPos = Vector3.new(-0.200000003, -0.419999987, 0.300000012)
  1500. Hat64.AttachmentRight = Vector3.new(1, -4.31581466e-05, 2.14240572e-08)
  1501. Hat64.AttachmentUp = Vector3.new(2.18651817e-08, 0.00100303721, 0.999999523)
  1502. Part65.Name = "Handle"
  1503. Part65.Parent = Hat64
  1504. Part65.Material = Enum.Material.Neon
  1505. Part65.BrickColor = BrickColor.new("Institutional white")
  1506. Part65.Rotation = Vector3.new(-89.9399948, 0, 0)
  1507. Part65.CanCollide = false
  1508. Part65.Locked = true
  1509. Part65.Elasticity = 0
  1510. Part65.FormFactor = Enum.FormFactor.Custom
  1511. Part65.Friction = 2
  1512. Part65.Size = Vector3.new(0.410000026, 0.290000021, 0.310000002)
  1513. Part65.CFrame = CFrame.new(-14.3500061, 4.70044136, -56.170311, 1, -4.31581466e-05, 2.14240572e-08, 2.18651817e-08, 0.00100303721, 0.999999523, -4.31581502e-05, -0.999999523, 0.00100303721)
  1514. Part65.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1515. Part65.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1516. Part65.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1517. Part65.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1518. Part65.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1519. Part65.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1520. Part65.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1521. Part65.Position = Vector3.new(-14.3500061, 4.70044136, -56.170311)
  1522. Part65.Orientation = Vector3.new(-89.9399948, 0, 0)
  1523. Part65.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1524. SpecialMesh66.Parent = Part65
  1525. SpecialMesh66.MeshType = Enum.MeshType.Sphere
  1526. Hat67.Name = "Eye"
  1527. Hat67.Parent = Model0
  1528. Hat67.AttachmentForward = Vector3.new(4.31581502e-05, 0.999999523, -0.00100303721)
  1529. Hat67.AttachmentPos = Vector3.new(0.200000003, -0.449999988, 0.300000012)
  1530. Hat67.AttachmentRight = Vector3.new(1, -4.31581466e-05, 2.14240572e-08)
  1531. Hat67.AttachmentUp = Vector3.new(2.18651817e-08, 0.00100303721, 0.999999523)
  1532. Part68.Name = "Handle"
  1533. Part68.Parent = Hat67
  1534. Part68.Material = Enum.Material.Neon
  1535. Part68.BrickColor = BrickColor.new("Institutional white")
  1536. Part68.Rotation = Vector3.new(-89.9399948, 0, 0)
  1537. Part68.CanCollide = false
  1538. Part68.Locked = true
  1539. Part68.Elasticity = 0
  1540. Part68.FormFactor = Enum.FormFactor.Custom
  1541. Part68.Friction = 2
  1542. Part68.Size = Vector3.new(0.389999986, 0.200000003, 0.319999993)
  1543. Part68.CFrame = CFrame.new(-14.7500076, 4.7004714, -56.2002907, 1, -4.31581466e-05, 2.14240572e-08, 2.18651817e-08, 0.00100303721, 0.999999523, -4.31581502e-05, -0.999999523, 0.00100303721)
  1544. Part68.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1545. Part68.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1546. Part68.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1547. Part68.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1548. Part68.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1549. Part68.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1550. Part68.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1551. Part68.Position = Vector3.new(-14.7500076, 4.7004714, -56.2002907)
  1552. Part68.Orientation = Vector3.new(-89.9399948, 0, 0)
  1553. Part68.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1554. SpecialMesh69.Parent = Part68
  1555. SpecialMesh69.MeshType = Enum.MeshType.Sphere
  1556. Hat70.Name = "Mouth"
  1557. Hat70.Parent = Model0
  1558. Hat70.AttachmentForward = Vector3.new(-4.31562403e-05, -0.999999404, -0.00106867612)
  1559. Hat70.AttachmentPos = Vector3.new(0, 0.5, 1.29999995)
  1560. Hat70.AttachmentRight = Vector3.new(-1, 4.31562366e-05, 2.2350271e-08)
  1561. Hat70.AttachmentUp = Vector3.new(-2.37697755e-08, -0.00106867601, 0.999999404)
  1562. Part71.Name = "Handle"
  1563. Part71.Parent = Hat70
  1564. Part71.Material = Enum.Material.SmoothPlastic
  1565. Part71.BrickColor = BrickColor.new("White")
  1566. Part71.Rotation = Vector3.new(-89.9399948, 0, -180)
  1567. Part71.CanCollide = false
  1568. Part71.Elasticity = 0
  1569. Part71.FormFactor = Enum.FormFactor.Custom
  1570. Part71.Friction = 2
  1571. Part71.Size = Vector3.new(0.820000172, 0.73999989, 1.76999998)
  1572. Part71.CFrame = CFrame.new(-14.5500097, 3.70055509, -56.2513885, -1, 4.31562366e-05, 2.2350271e-08, -2.37697755e-08, -0.00106867601, 0.999999404, 4.31562403e-05, 0.999999404, 0.00106867612)
  1573. Part71.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1574. Part71.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1575. Part71.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1576. Part71.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1577. Part71.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1578. Part71.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1579. Part71.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1580. Part71.Position = Vector3.new(-14.5500097, 3.70055509, -56.2513885)
  1581. Part71.Orientation = Vector3.new(-89.9399948, 0, -180)
  1582. Part71.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1583. SpecialMesh72.Parent = Part71
  1584. SpecialMesh72.MeshType = Enum.MeshType.Sphere
  1585. Decal73.Parent = Part71
  1586. Decal73.Texture = "http://www.roblox.com/asset/?id=369046477"
  1587. Decal73.Face = Enum.NormalId.Left
  1588. Decal74.Parent = Part71
  1589. Decal74.Texture = "http://www.roblox.com/asset/?id=369046300"
  1590. Decal74.Face = Enum.NormalId.Right
  1591. Decal75.Parent = Part71
  1592. Decal75.Texture = "http://www.roblox.com/asset/?id=369040970"
  1593. Decal76.Parent = Part71
  1594. Decal76.Texture = "http://www.roblox.com/asset/?id=402342524"
  1595. Decal76.Face = Enum.NormalId.Back
  1596. Decal77.Parent = Part71
  1597. Decal77.Texture = "http://www.roblox.com/asset/?id=415695307"
  1598. Decal77.Face = Enum.NormalId.Bottom
  1599. Sound78.Name = "Hush"
  1600. Sound78.Parent = Model0
  1601. Sound78.SoundId = "rbxassetid://306207443"
  1602. Sound78.Volume = 1
  1603. Sound78.Looped = true
  1604. for i,v in pairs(mas:GetChildren()) do
  1605. v.Parent = game:GetService("Players").LocalPlayer.Character
  1606. pcall(function() v:MakeJoints() end)
  1607. end
  1608. mas:Destroy()
  1609. for i,v in pairs(cors) do
  1610. spawn(function()
  1611. pcall(v)
  1612. end)
  1613. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement