sawgamer1

Untitled

Jun 24th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.37 KB | None | 0 0
  1.  
  2. local runDummyScript = function(f,scri)
  3. local oldenv = getfenv(f)
  4. local newenv = setmetatable({}, {
  5. __index = function(_, k)
  6. if k:lower() == 'script' then
  7. return scri
  8. else
  9. return oldenv[k]
  10. end
  11. end
  12. })
  13. setfenv(f, newenv)
  14. ypcall(function() f() end)
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. mas.Name = "CompiledModel"
  19. o1 = Instance.new("Model")
  20. o2 = Instance.new("Part")
  21. o3 = Instance.new("SpecialMesh")
  22. o4 = Instance.new("Decal")
  23. o5 = Instance.new("BodyColors")
  24. o6 = Instance.new("Part")
  25. o7 = Instance.new("Part")
  26. o8 = Instance.new("Part")
  27. o9 = Instance.new("Weld")
  28. o10 = Instance.new("Weld")
  29. o11 = Instance.new("Weld")
  30. o12 = Instance.new("Weld")
  31. o13 = Instance.new("Weld")
  32. o14 = Instance.new("Weld")
  33. o15 = Instance.new("Weld")
  34. o16 = Instance.new("Weld")
  35. o17 = Instance.new("Weld")
  36. o18 = Instance.new("Weld")
  37. o19 = Instance.new("Weld")
  38. o20 = Instance.new("Weld")
  39. o21 = Instance.new("Weld")
  40. o22 = Instance.new("Weld")
  41. o23 = Instance.new("Weld")
  42. o24 = Instance.new("Weld")
  43. o25 = Instance.new("Weld")
  44. o26 = Instance.new("Weld")
  45. o27 = Instance.new("Weld")
  46. o28 = Instance.new("Weld")
  47. o29 = Instance.new("Weld")
  48. o30 = Instance.new("Weld")
  49. o31 = Instance.new("Weld")
  50. o32 = Instance.new("Weld")
  51. o33 = Instance.new("Weld")
  52. o34 = Instance.new("Weld")
  53. o35 = Instance.new("Weld")
  54. o36 = Instance.new("Weld")
  55. o37 = Instance.new("Weld")
  56. o38 = Instance.new("Weld")
  57. o39 = Instance.new("Weld")
  58. o40 = Instance.new("Weld")
  59. o41 = Instance.new("Weld")
  60. o42 = Instance.new("Weld")
  61. o43 = Instance.new("Weld")
  62. o44 = Instance.new("Weld")
  63. o45 = Instance.new("Part")
  64. o46 = Instance.new("Part")
  65. o47 = Instance.new("Snap")
  66. o48 = Instance.new("Motor")
  67. o49 = Instance.new("Motor")
  68. o50 = Instance.new("Motor")
  69. o51 = Instance.new("Motor")
  70. o52 = Instance.new("Script")
  71. o53 = Instance.new("Script")
  72. o54 = Instance.new("ScreenGui")
  73. o55 = Instance.new("ImageLabel")
  74. o56 = Instance.new("Frame")
  75. o57 = Instance.new("LocalScript")
  76. o58 = Instance.new("Sound")
  77. o59 = Instance.new("Sound")
  78. o60 = Instance.new("Humanoid")
  79. o61 = Instance.new("Configuration")
  80. o62 = Instance.new("NumberValue")
  81. o63 = Instance.new("StringValue")
  82. o64 = Instance.new("Sound")
  83. o1.Name = ""
  84. o1.Parent = mas
  85. o2.Name = "Head"
  86. o2.Parent = o1
  87. o2.Material = Enum.Material.SmoothPlastic
  88. o2.BrickColor = BrickColor.new("Really black")
  89. o2.Position = Vector3.new(-37.9800339, 6.50000906, 88.9100571)
  90. o2.Rotation = Vector3.new(0, 45, 0)
  91. o2.FormFactor = Enum.FormFactor.Symmetric
  92. o2.Friction = 0
  93. o2.Size = Vector3.new(2, 1, 1)
  94. o2.CFrame = CFrame.new(-37.9800339, 6.50000906, 88.9100571, 0.707110345, 1.06415979e-23, 0.707110345, -1.45688978e-23, 1, -4.80657486e-25, -0.707110345, -9.9620053e-24, 0.707110345)
  95. o2.TopSurface = Enum.SurfaceType.Smooth
  96. o2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  97. o2.Position = Vector3.new(-37.9800339, 6.50000906, 88.9100571)
  98. o3.Parent = o2
  99. o3.Scale = Vector3.new(1.25, 1.25, 1.25)
  100. o4.Parent = o2
  101. o4.Texture = "http://www.roblox.com/asset/?id=121958034"
  102. o5.Parent = o1
  103. o5.HeadColor = BrickColor.new("Olive")
  104. o5.LeftArmColor = BrickColor.new("Olive")
  105. o5.LeftLegColor = BrickColor.new("Olive")
  106. o5.RightArmColor = BrickColor.new("Olive")
  107. o5.RightLegColor = BrickColor.new("Olive")
  108. o5.TorsoColor = BrickColor.new("Olive")
  109. o6.Name = "Left Arm"
  110. o6.Parent = o1
  111. o6.Material = Enum.Material.SmoothPlastic
  112. o6.BrickColor = BrickColor.new("Really black")
  113. o6.Position = Vector3.new(-39.0406952, 5.00000906, 89.9707184)
  114. o6.Rotation = Vector3.new(0, 45, 0)
  115. o6.CanCollide = false
  116. o6.FormFactor = Enum.FormFactor.Symmetric
  117. o6.Size = Vector3.new(1, 2, 1)
  118. o6.CFrame = CFrame.new(-39.0406952, 5.00000906, 89.9707184, 0.707107902, 1.09863925e-23, 0.707107902, -1.469474e-23, 1, -8.4238354e-25, -0.707107902, -9.79513361e-24, 0.707107902)
  119. o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  120. o6.Position = Vector3.new(-39.0406952, 5.00000906, 89.9707184)
  121. o7.Name = "Left Leg"
  122. o7.Parent = o1
  123. o7.Material = Enum.Material.SmoothPlastic
  124. o7.BrickColor = BrickColor.new("Really black")
  125. o7.Position = Vector3.new(-38.3335876, 3.00000906, 89.2636108)
  126. o7.Rotation = Vector3.new(0, 45, 0)
  127. o7.CanCollide = false
  128. o7.FormFactor = Enum.FormFactor.Symmetric
  129. o7.Size = Vector3.new(1, 2, 1)
  130. o7.CFrame = CFrame.new(-38.3335876, 3.00000906, 89.2636108, 0.707107902, 1.09863925e-23, 0.707107902, -1.469474e-23, 1, -8.4238354e-25, -0.707107902, -9.79513361e-24, 0.707107902)
  131. o7.BottomSurface = Enum.SurfaceType.Smooth
  132. o7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  133. o7.Position = Vector3.new(-38.3335876, 3.00000906, 89.2636108)
  134. o8.Name = "Right Arm"
  135. o8.Parent = o1
  136. o8.Material = Enum.Material.SmoothPlastic
  137. o8.BrickColor = BrickColor.new("Really black")
  138. o8.Position = Vector3.new(-36.9193726, 5.00000906, 87.8493958)
  139. o8.Rotation = Vector3.new(0, 45, 0)
  140. o8.CanCollide = false
  141. o8.FormFactor = Enum.FormFactor.Symmetric
  142. o8.Size = Vector3.new(1, 2, 1)
  143. o8.CFrame = CFrame.new(-36.9193726, 5.00000906, 87.8493958, 0.707107902, 1.09863925e-23, 0.707107902, -1.469474e-23, 1, -8.4238354e-25, -0.707107902, -9.79513361e-24, 0.707107902)
  144. o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  145. o8.Position = Vector3.new(-36.9193726, 5.00000906, 87.8493958)
  146. o9.Name = "RightGrip"
  147. o9.Parent = o8
  148. o9.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  149. o9.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  150. o10.Name = "RightGrip"
  151. o10.Parent = o8
  152. o10.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  153. o10.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  154. o11.Name = "RightGrip"
  155. o11.Parent = o8
  156. o11.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  157. o11.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  158. o12.Name = "RightGrip"
  159. o12.Parent = o8
  160. o12.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  161. o12.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  162. o13.Name = "RightGrip"
  163. o13.Parent = o8
  164. o13.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  165. o13.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  166. o14.Name = "RightGrip"
  167. o14.Parent = o8
  168. o14.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  169. o14.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  170. o15.Name = "RightGrip"
  171. o15.Parent = o8
  172. o15.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  173. o15.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  174. o16.Name = "RightGrip"
  175. o16.Parent = o8
  176. o16.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  177. o16.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  178. o17.Name = "RightGrip"
  179. o17.Parent = o8
  180. o17.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  181. o17.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  182. o18.Name = "RightGrip"
  183. o18.Parent = o8
  184. o18.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  185. o18.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  186. o19.Name = "RightGrip"
  187. o19.Parent = o8
  188. o19.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  189. o19.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  190. o20.Name = "RightGrip"
  191. o20.Parent = o8
  192. o20.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  193. o20.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  194. o21.Name = "RightGrip"
  195. o21.Parent = o8
  196. o21.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  197. o21.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  198. o22.Name = "RightGrip"
  199. o22.Parent = o8
  200. o22.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  201. o22.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  202. o23.Name = "RightGrip"
  203. o23.Parent = o8
  204. o23.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  205. o23.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  206. o24.Name = "RightGrip"
  207. o24.Parent = o8
  208. o24.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  209. o24.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  210. o25.Name = "RightGrip"
  211. o25.Parent = o8
  212. o25.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  213. o25.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  214. o26.Name = "RightGrip"
  215. o26.Parent = o8
  216. o26.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  217. o26.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  218. o27.Name = "RightGrip"
  219. o27.Parent = o8
  220. o27.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  221. o27.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  222. o28.Name = "RightGrip"
  223. o28.Parent = o8
  224. o28.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  225. o28.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  226. o29.Name = "RightGrip"
  227. o29.Parent = o8
  228. o29.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  229. o29.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  230. o30.Name = "RightGrip"
  231. o30.Parent = o8
  232. o30.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  233. o30.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  234. o31.Name = "RightGrip"
  235. o31.Parent = o8
  236. o31.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  237. o31.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  238. o32.Name = "RightGrip"
  239. o32.Parent = o8
  240. o32.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  241. o32.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  242. o33.Name = "RightGrip"
  243. o33.Parent = o8
  244. o33.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  245. o33.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  246. o34.Name = "RightGrip"
  247. o34.Parent = o8
  248. o34.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  249. o34.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  250. o35.Name = "RightGrip"
  251. o35.Parent = o8
  252. o35.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  253. o35.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  254. o36.Name = "RightGrip"
  255. o36.Parent = o8
  256. o36.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  257. o36.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  258. o37.Name = "RightGrip"
  259. o37.Parent = o8
  260. o37.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  261. o37.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  262. o38.Name = "RightGrip"
  263. o38.Parent = o8
  264. o38.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  265. o38.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  266. o39.Name = "RightGrip"
  267. o39.Parent = o8
  268. o39.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  269. o39.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  270. o40.Name = "RightGrip"
  271. o40.Parent = o8
  272. o40.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  273. o40.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  274. o41.Name = "RightGrip"
  275. o41.Parent = o8
  276. o41.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  277. o41.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  278. o42.Name = "RightGrip"
  279. o42.Parent = o8
  280. o42.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  281. o42.C1 = CFrame.new(0, 0, 1.5, 0.996552646, 0, -0.0829627588, 0.0829627588, 0, 0.996552646, 0, -1, 0)
  282. o43.Name = "RightGrip"
  283. o43.Parent = o8
  284. o43.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  285. o43.C1 = CFrame.new(0, 0, 1.5, 0.996552646, 0, -0.0829627588, 0.0829627588, 0, 0.996552646, 0, -1, 0)
  286. o44.Name = "RightGrip"
  287. o44.Parent = o8
  288. o44.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  289. o44.C1 = CFrame.new(0, 0, 1.5, 0.996552646, 0, -0.0829627588, 0.0829627588, 0, 0.996552646, 0, -1, 0)
  290. o45.Name = "Right Leg"
  291. o45.Parent = o1
  292. o45.Material = Enum.Material.SmoothPlastic
  293. o45.BrickColor = BrickColor.new("Really black")
  294. o45.Position = Vector3.new(-37.6264801, 3.00000906, 88.5565033)
  295. o45.Rotation = Vector3.new(0, 45, 0)
  296. o45.CanCollide = false
  297. o45.FormFactor = Enum.FormFactor.Symmetric
  298. o45.Size = Vector3.new(1, 2, 1)
  299. o45.CFrame = CFrame.new(-37.6264801, 3.00000906, 88.5565033, 0.707107902, 1.09863925e-23, 0.707107902, -1.469474e-23, 1, -8.4238354e-25, -0.707107902, -9.79513361e-24, 0.707107902)
  300. o45.BottomSurface = Enum.SurfaceType.Smooth
  301. o45.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  302. o45.Position = Vector3.new(-37.6264801, 3.00000906, 88.5565033)
  303. o46.Name = "Torso"
  304. o46.Parent = o1
  305. o46.Material = Enum.Material.SmoothPlastic
  306. o46.BrickColor = BrickColor.new("Really black")
  307. o46.Position = Vector3.new(-37.9800339, 5.00000906, 88.9100571)
  308. o46.Rotation = Vector3.new(0, 45, 0)
  309. o46.FormFactor = Enum.FormFactor.Symmetric
  310. o46.Friction = 0
  311. o46.Size = Vector3.new(2, 2, 1)
  312. o46.CFrame = CFrame.new(-37.9800339, 5.00000906, 88.9100571, 0.707107902, 1.09863925e-23, 0.707107902, -1.469474e-23, 1, -8.4238354e-25, -0.707107902, -9.79513361e-24, 0.707107902)
  313. o46.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  314. o46.Position = Vector3.new(-37.9800339, 5.00000906, 88.9100571)
  315. o47.Name = "Neck"
  316. o47.Parent = o46
  317. o47.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  318. o47.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  319. o48.Name = "Left Shoulder"
  320. o48.Parent = o46
  321. o48.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  322. o48.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  323. o48.Part0 = o6
  324. o48.Part1 = o46
  325. o48.DesiredAngle = 0.068711988627911
  326. o48.MaxVelocity = 0.15000000596046
  327. o49.Name = "Right Shoulder"
  328. o49.Parent = o46
  329. o49.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  330. o49.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  331. o49.Part0 = o8
  332. o49.Part1 = o46
  333. o49.DesiredAngle = 1.5700000524521
  334. o49.MaxVelocity = 0.15000000596046
  335. o50.Name = "Right Hip"
  336. o50.Parent = o46
  337. o50.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  338. o50.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  339. o50.Part0 = o46
  340. o50.Part1 = o45
  341. o50.DesiredAngle = -0.068711988627911
  342. o50.MaxVelocity = 0.5
  343. o51.Name = "Left Hip"
  344. o51.Parent = o46
  345. o51.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  346. o51.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  347. o51.Part0 = o46
  348. o51.Part1 = o7
  349. o51.DesiredAngle = -0.068711988627911
  350. o51.MaxVelocity = 0.5
  351. o52.Name = "Animate"
  352. o52.Parent = o1
  353. table.insert(cors,coroutine.create(function()
  354. wait()
  355. runDummyScript(function()
  356. function waitForChild(parent, childName)
  357. local child = parent:findFirstChild(childName)
  358. if child then return child end
  359. while true do
  360. child = parent.ChildAdded:wait()
  361. if child.Name==childName then return child end
  362. end
  363. end
  364.  
  365. -- ANIMATION
  366.  
  367. -- declarations
  368.  
  369. local Figure = script.Parent
  370. local Torso = waitForChild(Figure, "Torso")
  371. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  372. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  373. local RightHip = waitForChild(Torso, "Right Hip")
  374. local LeftHip = waitForChild(Torso, "Left Hip")
  375. local Neck = waitForChild(Torso, "Neck")
  376. local Humanoid = waitForChild(Figure, "Zombie")
  377. local pose = "Standing"
  378.  
  379. local toolAnim = "None"
  380. local toolAnimTime = 0
  381.  
  382. -- functions
  383.  
  384. function onRunning(speed)
  385. if speed>0 then
  386. pose = "Running"
  387. else
  388. pose = "Standing"
  389. end
  390. end
  391.  
  392. function onDied()
  393. pose = "Dead"
  394. end
  395.  
  396. function onJumping()
  397. pose = "Jumping"
  398. end
  399.  
  400. function onClimbing()
  401. pose = "Climbing"
  402. end
  403.  
  404. function onGettingUp()
  405. pose = "GettingUp"
  406. end
  407.  
  408. function onFreeFall()
  409. pose = "FreeFall"
  410. end
  411.  
  412. function onFallingDown()
  413. pose = "FallingDown"
  414. end
  415.  
  416. function onSeated()
  417. pose = "Seated"
  418. end
  419.  
  420. function onPlatformStanding()
  421. pose = "PlatformStanding"
  422. end
  423.  
  424. function moveJump()
  425. RightShoulder.MaxVelocity = 0.5
  426. LeftShoulder.MaxVelocity = 0.5
  427. RightShoulder.DesiredAngle = 3.14
  428. LeftShoulder.DesiredAngle = -3.14
  429. RightHip.DesiredAngle = 0
  430. LeftHip.DesiredAngle = 0
  431. end
  432.  
  433.  
  434. -- same as jump for now
  435.  
  436. function moveFreeFall()
  437. RightShoulder.MaxVelocity = 0.5
  438. LeftShoulder.MaxVelocity = 0.5
  439. RightShoulder.DesiredAngle = 3.14
  440. LeftShoulder.DesiredAngle = -3.14
  441. RightHip.DesiredAngle = 0
  442. LeftHip.DesiredAngle = 0
  443. end
  444.  
  445. function moveSit()
  446. RightShoulder.MaxVelocity = 0.15
  447. LeftShoulder.MaxVelocity = 0.15
  448. RightShoulder.DesiredAngle = 3.14/2
  449. LeftShoulder.DesiredAngle = -3.14/2
  450. RightHip.DesiredAngle = 3.14/2
  451. LeftHip.DesiredAngle = -3.14/2
  452. end
  453.  
  454. function getTool()
  455. for _, kid in ipairs(Figure:GetChildren()) do
  456. if kid.className == "Tool" then return kid end
  457. end
  458. return nil
  459. end
  460.  
  461. function getToolAnim(tool)
  462. for _, c in ipairs(tool:GetChildren()) do
  463. if c.Name == "toolanim" and c.className == "StringValue" then
  464. return c
  465. end
  466. end
  467. return nil
  468. end
  469.  
  470. function animateTool()
  471.  
  472. if (toolAnim == "None") then
  473. RightShoulderdDesiredAngle = 1.57
  474. return
  475. end
  476.  
  477. if (toolAnim == "Slash") then
  478. RightShoulder.MaxVelocity = 0.5
  479. RightShoulder.DesiredAngle = 0
  480. return
  481. end
  482.  
  483. if (toolAnim == "Lunge") then
  484. RightShoulder.MaxVelocity = 0.5
  485. LeftShoulder.MaxVelocity = 0.5
  486. RightHip.MaxVelocity = 0.5
  487. LeftHip.MaxVelocity = 0.5
  488. RightShoulder.DesiredAngle = 1.57
  489. LeftShoulder.DesiredAngle = 0
  490. RightHip.DesiredAngle = 1.57
  491. LeftHip.DesiredAngle = 1.0
  492. return
  493. end
  494. end
  495.  
  496. function move(time)
  497. local amplitude
  498. local frequency
  499.  
  500. if (pose == "Jumping") then
  501. moveJump()
  502. return
  503. end
  504.  
  505. if (pose == "FreeFall") then
  506. moveFreeFall()
  507. return
  508. end
  509.  
  510. if (pose == "Seated") then
  511. moveSit()
  512. return
  513. end
  514.  
  515. local climbFudge = 0
  516.  
  517. if (pose == "Running") then
  518. RightShoulder.MaxVelocity = 0.15
  519. LeftShoulder.MaxVelocity = 0.15
  520. amplitude = 1
  521. frequency = 9
  522. elseif (pose == "Climbing") then
  523. RightShoulder.MaxVelocity = 0.5
  524. LeftShoulder.MaxVelocity = 0.5
  525. amplitude = 1
  526. frequency = 9
  527. climbFudge = 3.14
  528. else
  529. amplitude = 0.1
  530. frequency = 1
  531. end
  532.  
  533. desiredAngle = amplitude * math.sin(time*frequency)
  534.  
  535. RightShoulder.DesiredAngle = desiredAngle + climbFudge
  536. LeftShoulder.DesiredAngle = desiredAngle - climbFudge
  537. RightHip.DesiredAngle = -desiredAngle
  538. LeftHip.DesiredAngle = -desiredAngle
  539.  
  540. local tool = getTool()
  541.  
  542. if tool then
  543.  
  544. animStringValueObject = getToolAnim(tool)
  545.  
  546. if animStringValueObject then
  547. toolAnim = animStringValueObject.Value
  548. -- message recieved, delete StringValue
  549. animStringValueObject.Parent = nil
  550. toolAnimTime = time + .3
  551. end
  552.  
  553. if time > toolAnimTime then
  554. toolAnimTime = 0
  555. toolAnim = "None"
  556. end
  557.  
  558. animateTool()
  559.  
  560.  
  561. else
  562. toolAnim = "None"
  563. toolAnimTime = 0
  564. end
  565. end
  566.  
  567.  
  568. -- connect events
  569.  
  570. Humanoid.Died:connect(onDied)
  571. Humanoid.Running:connect(onRunning)
  572. Humanoid.Jumping:connect(onJumping)
  573. Humanoid.Climbing:connect(onClimbing)
  574. Humanoid.GettingUp:connect(onGettingUp)
  575. Humanoid.FreeFalling:connect(onFreeFall)
  576. Humanoid.FallingDown:connect(onFallingDown)
  577. Humanoid.Seated:connect(onSeated)
  578. Humanoid.PlatformStanding:connect(onPlatformStanding)
  579.  
  580. -- main program
  581.  
  582. local runService = game:service("RunService");
  583.  
  584. while Figure.Parent~=nil do
  585. local _, time = wait(0.1)
  586. move(time)
  587. end
  588.  
  589. end,o52)
  590. end))
  591. o53.Name = "Animatronic_AI"
  592. o53.Parent = o1
  593. table.insert(cors,coroutine.create(function()
  594. wait()
  595. runDummyScript(function()
  596. local zomb = script.Parent:WaitForChild("Zombie")
  597. local info = script.Parent:WaitForChild("Info")
  598. local jumpscare = script:WaitForChild("ONO")
  599. local shades = nil
  600.  
  601.  
  602.  
  603.  
  604. local distance = 100
  605. local detectdistance = 80
  606. local detectspeed = 5
  607.  
  608. Spawn(function()
  609. if script.Parent:FindFirstChild("Hair") then
  610. local W = Instance.new("Weld")
  611. W.Part0 = script.Parent.Head
  612. W.Part1 = script.Parent.Hair
  613. W.C0 = script.Parent.Head.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  614. W.C1 = script.Parent.Hair.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  615. W.Parent = script.Parent.Torso
  616. script.Parent:FindFirstChild("Hair").Anchored = false
  617. end
  618. if script.Parent:FindFirstChild("Eye1") then
  619. local W = Instance.new("Weld")
  620. W.Part0 = script.Parent.Head
  621. W.Part1 = script.Parent.Eye1
  622. W.C0 = script.Parent.Head.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  623. W.C1 = script.Parent.Eye1.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  624. W.Parent = script.Parent.Torso
  625. script.Parent:FindFirstChild("Eye1").Anchored = false
  626. end
  627. if script.Parent:FindFirstChild("Eye2") then
  628. local W = Instance.new("Weld")
  629. W.Part0 = script.Parent.Head
  630. W.Part1 = script.Parent.Eye2
  631. W.C0 = script.Parent.Head.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  632. W.C1 = script.Parent.Eye2.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  633. W.Parent = script.Parent.Torso
  634. script.Parent:FindFirstChild("Eye2").Anchored = false
  635. end
  636. if script.Parent:FindFirstChild("Top") then
  637. local W = Instance.new("Weld")
  638. W.Part0 = script.Parent.Head
  639. W.Part1 = script.Parent.Top
  640. W.C0 = script.Parent.Head.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  641. W.C1 = script.Parent.Top.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  642. W.Parent = script.Parent.Torso
  643. script.Parent:FindFirstChild("Top").Anchored = false
  644. end
  645. if script.Parent:FindFirstChild("Jaw") then
  646. local W = Instance.new("Weld")
  647. W.Part0 = script.Parent.Head
  648. W.Part1 = script.Parent.Jaw
  649. W.C0 = script.Parent.Head.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  650. W.C1 = script.Parent.Jaw.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  651. W.Parent = script.Parent.Torso
  652. script.Parent:FindFirstChild("Jaw").Anchored = false
  653. end
  654. if script.Parent:FindFirstChild("Shades") then
  655. shades = script.Parent:FindFirstChild("Shades")
  656. local W = Instance.new("Weld")
  657. W.Part0 = script.Parent.Head
  658. W.Part1 = script.Parent.Shades
  659. W.C0 = script.Parent.Head.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  660. W.C1 = script.Parent.Shades.CFrame:inverse()*CFrame.new(script.Parent.Head.Position)
  661. W.Parent = script.Parent.Torso
  662. shades.Anchored = false
  663. shades.Transparency = 0
  664. end
  665. end)
  666.  
  667. function findNearestTorso(pos)
  668. local list = game.Workspace:children()
  669. local torso = nil
  670. local dist = distance
  671. local temp = nil
  672. local human = nil
  673. local temp2 = nil
  674. for x = 1, #list do
  675. temp2 = list[x]
  676. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  677. temp = temp2:findFirstChild("Torso")
  678. human = temp2:findFirstChild("Humanoid")
  679. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  680. if (temp.Position - pos).magnitude < dist then
  681. torso = temp
  682. dist = (temp.Position - pos).magnitude
  683. end
  684. end
  685. end
  686. end
  687. return torso
  688. end
  689.  
  690. damage = true
  691. function Hit(hit)
  692. local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
  693. if plr and damage == true and info.Mode.Value == "Angry" then
  694. damage = false
  695. jumpscare:Clone().Parent = plr.PlayerGui
  696. info.Mode.Value = "Walk"
  697. wait(2)
  698. damage = true
  699. end
  700. end
  701.  
  702. script.Parent["Left Arm"].Touched:connect(Hit)
  703. script.Parent["Right Arm"].Touched:connect(Hit)
  704. script.Parent["Left Leg"].Touched:connect(Hit)
  705. script.Parent["Right Leg"].Touched:connect(Hit)
  706. script.Parent["Torso"].Touched:connect(Hit)
  707. script.Parent["Head"].Touched:connect(Hit)
  708.  
  709. walked = true
  710. low = true
  711.  
  712. info.Mode.Changed:connect(function()
  713. while info.Mode.Value == "Walk" do
  714. wait(0.1)
  715. Spawn(function()
  716. if walked == true then
  717. walked = false
  718. a = 1024
  719. zomb:MoveTo(Vector3.new(math.random(-a, a), 0, math.random(-a, a)), game.Workspace.Terrain)
  720. wait(12)
  721. walked = true
  722. end
  723. end)
  724. Spawn(function()
  725. if info.DetectPercent.Value > 0 and low == true then
  726. low = false
  727. wait(5)
  728. info.DetectPercent.Value = info.DetectPercent.Value - 5
  729. low = true
  730. end
  731. end)
  732.  
  733. if shades then shades.Transparency = 0 end
  734. zomb.WalkSpeed = 6
  735. local target = findNearestTorso(script.Parent.Head.Position)
  736. if target ~= nil then
  737. info.DetectPercent.Value = info.DetectPercent.Value + detectspeed
  738.  
  739. if info.DetectPercent.Value >= 100 then
  740. info.DetectPercent.Value = 100
  741. info.Mode.Value = "Angry"
  742. game:GetService("Chat"):Chat(script.Parent.Head,lines[math.random(1, #lines)],"Red")
  743. end
  744.  
  745. if info.DetectPercent.Value < 0 then
  746. info.DetectPercent.Value = 0
  747. end
  748.  
  749. end
  750. target = nil
  751. end
  752.  
  753. while info.Mode.Value == "Angry" do
  754. wait(0.1)
  755. if shades then shades.Transparency = 1 end
  756. zomb.WalkSpeed = 30
  757. local target = findNearestTorso(script.Parent.Head.Position)
  758. if target ~= nil then
  759. zomb:MoveTo(target.Position+(Vector3.new(1,1,1)*(2*((math.random()*2)-1))),target)
  760. else
  761. info.Mode.Value = "Walk"
  762. info.DetectPercent.Value = 0
  763. end
  764. target = nil
  765. end
  766. end)
  767. info.Mode.Value = "Walk"
  768. end,o53)
  769. end))
  770. o54.Name = "ONO"
  771. o54.Parent = o53
  772. o55.Parent = o54
  773. o55.Position = UDim2.new(0.5,-575,0.5,-380)
  774. o55.Size = UDim2.new(0,1150,0,790)
  775. o55.Position = UDim2.new(0.5,-575,0.5,-380)
  776. o55.BackgroundColor3 = Color3.new(1, 1, 1)
  777. o55.BackgroundTransparency = 1
  778. o55.ZIndex = 8
  779. o55.Image = "rbxassetid://121958034"
  780. o56.Parent = o54
  781. o56.Position = UDim2.new(0,-100,0,-100)
  782. o56.Size = UDim2.new(0,9999,0,9999)
  783. o56.Position = UDim2.new(0,-100,0,-100)
  784. o56.BackgroundColor3 = Color3.new(0, 0, 0)
  785. o56.BorderSizePixel = 0
  786. o56.ZIndex = 7
  787. o57.Parent = o54
  788. table.insert(cors,coroutine.create(function()
  789. wait()
  790. runDummyScript(function()
  791. local Loleris = script.Parent:WaitForChild("ImageLabel")
  792. oldpos = Loleris.Position
  793. local Frame = script.Parent:WaitForChild("Frame")
  794.  
  795. local scream = script.Parent:WaitForChild("XSCREAM")
  796. local boom = script.Parent:WaitForChild("Boom")
  797.  
  798.  
  799.  
  800. if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  801. scream:Play()
  802. Spawn(function()
  803. wait(.7) boom:Play()
  804. wait(.1) scream:Stop()
  805. Frame.ZIndex = 9
  806. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  807. end)
  808. game:GetService("RunService").RenderStepped:connect(function()
  809. Loleris.Position = oldpos + UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  810. end)
  811. end
  812. end,o57)
  813. end))
  814. o58.Name = "Boom"
  815. o58.Parent = o54
  816. o58.SoundId = "rbxassetid://130976109"
  817. o58.Volume = 1
  818. o59.Name = "XSCREAM"
  819. o59.Parent = o54
  820. o59.SoundId = "rbxassetid://515093461"
  821. o59.Volume = 1
  822. o60.Name = "Zombie"
  823. o60.Parent = o1
  824. o60.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  825. o60.RightLeg = o45
  826. o60.LeftLeg = o7
  827. o60.Torso = o46
  828. o60.WalkSpeed = 6
  829. o61.Name = "Info"
  830. o61.Parent = o1
  831. o62.Name = "DetectPercent"
  832. o62.Parent = o61
  833. o63.Name = "Mode"
  834. o63.Parent = o61
  835. o64.Parent = o1
  836. o64.SoundId = "rbxassetid://163417981"
  837. o64.Looped = true
  838. mas.Parent = workspace
  839. mas:MakeJoints()
  840. local mas1 = mas:GetChildren()
  841. for i=1,#mas1 do
  842. mas1[i].Parent = workspace
  843. ypcall(function() mas1[i]:MakeJoints() end)
  844. end
  845. mas:Destroy()
  846. for i=1,#cors do
  847. coroutine.resume(cors[i])
  848. end
  849.  
  850. game:GetService("Lighting").Ambient = Color3.new(0.498039, 0.498039, 0.498039)
  851. game:GetService("Lighting").Brightness = 5
  852. game:GetService("Lighting").ColorShift_Bottom = Color3.new(1, 1, 1)
  853. game:GetService("Lighting").ColorShift_Top = Color3.new(1, 1, 1)
  854. game:GetService("Lighting").GlobalShadows = true
  855. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.631373, 0.631373, 0.631373)
  856. game:GetService("Lighting").Outlines = false
  857. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  858. game:GetService("Lighting").TimeOfDay = "16:00:00"
  859. game:GetService("Lighting").FogColor = Color3.new(0, -7.50588, 0)
  860. game:GetService("Lighting").FogEnd = 1.0000000037683e+14
  861. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment