sawgamer1

Untitled

Jun 23rd, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.16 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: MeshPart,Camera
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Model")
  29. o2 = Instance.new("Part")
  30. o3 = Instance.new("Decal")
  31. o4 = Instance.new("Script")
  32. o5 = Instance.new("Sound")
  33. o6 = Instance.new("Sound")
  34. o7 = Instance.new("Texture")
  35. o8 = Instance.new("Texture")
  36. o9 = Instance.new("Texture")
  37. o10 = Instance.new("Texture")
  38. o11 = Instance.new("Decal")
  39. o12 = Instance.new("Decal")
  40. o13 = Instance.new("Part")
  41. o14 = Instance.new("BlockMesh")
  42. o15 = Instance.new("Part")
  43. o16 = Instance.new("BlockMesh")
  44. o17 = Instance.new("Part")
  45. o18 = Instance.new("BlockMesh")
  46. o19 = Instance.new("Part")
  47. o20 = Instance.new("BlockMesh")
  48. o21 = Instance.new("Part")
  49. o22 = Instance.new("BlockMesh")
  50. o23 = Instance.new("Part")
  51. o24 = Instance.new("BlockMesh")
  52. o25 = Instance.new("Model")
  53. o26 = Instance.new("Part")
  54. o27 = Instance.new("Model")
  55. o30 = Instance.new("Script")
  56. o32 = Instance.new("Decal")
  57. o33 = Instance.new("Decal")
  58. o34 = Instance.new("Model")
  59. o35 = Instance.new("Model")
  60. o36 = Instance.new("Part")
  61. o37 = Instance.new("SpecialMesh")
  62. o38 = Instance.new("Part")
  63. o39 = Instance.new("Part")
  64. o40 = Instance.new("Part")
  65. o41 = Instance.new("Part")
  66. o42 = Instance.new("Part")
  67. o43 = Instance.new("Motor6D")
  68. o44 = Instance.new("Motor6D")
  69. o45 = Instance.new("Motor6D")
  70. o46 = Instance.new("Motor6D")
  71. o47 = Instance.new("Motor6D")
  72. o48 = Instance.new("Part")
  73. o49 = Instance.new("Motor6D")
  74. o50 = Instance.new("Script")
  75. o51 = Instance.new("Script")
  76. o52 = Instance.new("Part")
  77. o53 = Instance.new("Decal")
  78. o54 = Instance.new("Decal")
  79. o55 = Instance.new("Script")
  80. o56 = Instance.new("Humanoid")
  81. o59 = Instance.new("Part")
  82. o60 = Instance.new("BlockMesh")
  83. o61 = Instance.new("Decal")
  84. o62 = Instance.new("Part")
  85. o63 = Instance.new("SpecialMesh")
  86. o64 = Instance.new("PointLight")
  87. o1.Name = "office"
  88. o1.Parent = mas
  89. o2.Name = "BlueDoor"
  90. o2.Parent = o1
  91. o2.Material = Enum.Material.SmoothPlastic
  92. o2.BrickColor = BrickColor.new("Institutional white")
  93. o2.Transparency = 1
  94. o2.Position = Vector3.new(44.9199905, 7.40003204, -126.240005)
  95. o2.Anchored = true
  96. o2.Size = Vector3.new(10.3999996, 14.8000011, 0.400000155)
  97. o2.CFrame = CFrame.new(44.9199905, 7.40003204, -126.240005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  98. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  99. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  100. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  101. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  102. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  103. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  104. o2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  105. o2.Position = Vector3.new(44.9199905, 7.40003204, -126.240005)
  106. o3.Name = "FrontOpen"
  107. o3.Parent = o2
  108. o3.Transparency = 1
  109. o3.Texture = "http://www.roblox.com/asset/?id=1804457660"
  110. o3.Face = Enum.NormalId.Back
  111. o4.Name = "Main"
  112. o4.Parent = o2
  113. table.insert(cors,coroutine.create(function()
  114. wait()
  115. runDummyScript(function()
  116. --Made By: Virtecc
  117. --Blue Door
  118. --6/8/2018
  119. --Goes Great With Textured Brick Walls From The Game
  120.  
  121.  
  122. script.Parent.Touched:connect(function(otherPart)
  123. if otherPart.Parent:FindFirstChild("Humanoid") ~= nil then
  124. script.Open:Play()
  125. script.Parent.CanCollide = false
  126. script.Parent.FrontClosed.Transparency = 1
  127. script.Parent.FrontOpen.Transparency = 0
  128. script.Parent.BackClosed.Transparency = 1
  129. script.Parent.BackOpen.Transparency = 0
  130. wait(4)
  131. script.Parent.CanCollide = true
  132. script.Close:Play()
  133. script.Parent.FrontOpen.Transparency = 1
  134. script.Parent.BackOpen.Transparency = 1
  135. script.Parent.BackClosed.Transparency = 0
  136. script.Parent.FrontClosed.Transparency = 0
  137. end
  138. end)
  139. end,o4)
  140. end))
  141. o5.Name = "Open"
  142. o5.Parent = o4
  143. o5.SoundId = "rbxassetid://1874737174"
  144. o5.Volume = 10
  145. o6.Name = "Close"
  146. o6.Parent = o4
  147. o6.SoundId = "rbxassetid://1874737540"
  148. o6.Volume = 10
  149. o7.Parent = o2
  150. o7.Texture = "rbxassetid://1803626284"
  151. o7.Face = Enum.NormalId.Left
  152. o7.StudsPerTileU = 5
  153. o7.StudsPerTileV = 5
  154. o8.Parent = o2
  155. o8.Texture = "rbxassetid://1803626284"
  156. o8.Face = Enum.NormalId.Right
  157. o8.StudsPerTileU = 5
  158. o8.StudsPerTileV = 5
  159. o9.Parent = o2
  160. o9.Texture = "rbxassetid://1803626284"
  161. o9.Face = Enum.NormalId.Top
  162. o9.StudsPerTileU = 5
  163. o9.StudsPerTileV = 5
  164. o10.Parent = o2
  165. o10.Texture = "rbxassetid://1803626284"
  166. o10.Face = Enum.NormalId.Bottom
  167. o10.StudsPerTileU = 5
  168. o10.StudsPerTileV = 5
  169. o11.Parent = o2
  170. o11.Texture = "http://www.roblox.com/asset/?id=1887587283"
  171. o12.Parent = o2
  172. o12.Texture = "http://www.roblox.com/asset/?id=1887587283"
  173. o12.Face = Enum.NormalId.Back
  174. o13.Parent = o2
  175. o13.Material = Enum.Material.Brick
  176. o13.BrickColor = BrickColor.new("Institutional white")
  177. o13.Position = Vector3.new(65.6200027, 7.50002909, -126.539993)
  178. o13.Anchored = true
  179. o13.FormFactor = Enum.FormFactor.Symmetric
  180. o13.Size = Vector3.new(31, 15, 1)
  181. o13.CFrame = CFrame.new(65.6200027, 7.50002909, -126.539993, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  182. o13.BottomSurface = Enum.SurfaceType.Smooth
  183. o13.TopSurface = Enum.SurfaceType.Smooth
  184. o13.Color = Color3.new(0.972549, 0.972549, 0.972549)
  185. o13.Position = Vector3.new(65.6200027, 7.50002909, -126.539993)
  186. o14.Parent = o13
  187. o15.Parent = o2
  188. o15.Material = Enum.Material.Brick
  189. o15.BrickColor = BrickColor.new("Institutional white")
  190. o15.Position = Vector3.new(30.1200027, 7.50002909, -126.539993)
  191. o15.Anchored = true
  192. o15.FormFactor = Enum.FormFactor.Symmetric
  193. o15.Size = Vector3.new(18, 15, 1)
  194. o15.CFrame = CFrame.new(30.1200027, 7.50002909, -126.539993, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  195. o15.BottomSurface = Enum.SurfaceType.Smooth
  196. o15.TopSurface = Enum.SurfaceType.Smooth
  197. o15.Color = Color3.new(0.972549, 0.972549, 0.972549)
  198. o15.Position = Vector3.new(30.1200027, 7.50002909, -126.539993)
  199. o16.Parent = o15
  200. o17.Parent = o2
  201. o17.Material = Enum.Material.Brick
  202. o17.BrickColor = BrickColor.new("Institutional white")
  203. o17.Position = Vector3.new(52.1200027, 16.0000267, -102.539993)
  204. o17.Rotation = Vector3.new(-180, 0, 0)
  205. o17.Anchored = true
  206. o17.FormFactor = Enum.FormFactor.Symmetric
  207. o17.Size = Vector3.new(62, 2, 47)
  208. o17.CFrame = CFrame.new(52.1200027, 16.0000267, -102.539993, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  209. o17.BottomSurface = Enum.SurfaceType.Smooth
  210. o17.TopSurface = Enum.SurfaceType.Smooth
  211. o17.Color = Color3.new(0.972549, 0.972549, 0.972549)
  212. o17.Position = Vector3.new(52.1200027, 16.0000267, -102.539993)
  213. o18.Parent = o17
  214. o19.Parent = o2
  215. o19.Material = Enum.Material.Brick
  216. o19.BrickColor = BrickColor.new("Institutional white")
  217. o19.Position = Vector3.new(21.6200027, 7.50002909, -102.539993)
  218. o19.Rotation = Vector3.new(0, 90, 0)
  219. o19.Anchored = true
  220. o19.FormFactor = Enum.FormFactor.Symmetric
  221. o19.Size = Vector3.new(47, 15, 1)
  222. o19.CFrame = CFrame.new(21.6200027, 7.50002909, -102.539993, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  223. o19.BottomSurface = Enum.SurfaceType.Smooth
  224. o19.TopSurface = Enum.SurfaceType.Smooth
  225. o19.Color = Color3.new(0.972549, 0.972549, 0.972549)
  226. o19.Position = Vector3.new(21.6200027, 7.50002909, -102.539993)
  227. o20.Parent = o19
  228. o21.Parent = o2
  229. o21.Material = Enum.Material.Brick
  230. o21.BrickColor = BrickColor.new("Institutional white")
  231. o21.Position = Vector3.new(52.6200027, 7.50002909, -79.5399933)
  232. o21.Rotation = Vector3.new(-180, 0, 0)
  233. o21.Anchored = true
  234. o21.FormFactor = Enum.FormFactor.Symmetric
  235. o21.Size = Vector3.new(61, 15, 1)
  236. o21.CFrame = CFrame.new(52.6200027, 7.50002909, -79.5399933, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  237. o21.BottomSurface = Enum.SurfaceType.Smooth
  238. o21.TopSurface = Enum.SurfaceType.Smooth
  239. o21.Color = Color3.new(0.972549, 0.972549, 0.972549)
  240. o21.Position = Vector3.new(52.6200027, 7.50002909, -79.5399933)
  241. o22.Parent = o21
  242. o23.Parent = o2
  243. o23.Material = Enum.Material.Brick
  244. o23.BrickColor = BrickColor.new("Institutional white")
  245. o23.Position = Vector3.new(82.1200027, 7.50002909, -103.539993)
  246. o23.Rotation = Vector3.new(-180, -90, 0)
  247. o23.Anchored = true
  248. o23.FormFactor = Enum.FormFactor.Symmetric
  249. o23.Size = Vector3.new(47, 15, 2)
  250. o23.CFrame = CFrame.new(82.1200027, 7.50002909, -103.539993, 0, 0, -1, 0, -1, -0, -1, 0, -0)
  251. o23.BottomSurface = Enum.SurfaceType.Smooth
  252. o23.TopSurface = Enum.SurfaceType.Smooth
  253. o23.Color = Color3.new(0.972549, 0.972549, 0.972549)
  254. o23.Position = Vector3.new(82.1200027, 7.50002909, -103.539993)
  255. o24.Parent = o23
  256. o25.Name = "Filename2"
  257. o25.Parent = o1
  258. o26.Parent = o25
  259. o26.Material = Enum.Material.Grass
  260. o26.BrickColor = BrickColor.new("Lime green")
  261. o26.Transparency = 1
  262. o26.Position = Vector3.new(53.3950043, 7.34504604, -86.5899353)
  263. o26.Size = Vector3.new(14.8700008, 14.6900015, 2)
  264. o26.CFrame = CFrame.new(53.3950043, 7.34504604, -86.5899353, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  265. o26.BottomSurface = Enum.SurfaceType.Smooth
  266. o26.TopSurface = Enum.SurfaceType.Smooth
  267. o26.Color = Color3.new(0, 1, 0)
  268. o26.Position = Vector3.new(53.3950043, 7.34504604, -86.5899353)
  269. o27.Name = "Noise"
  270. o27.Parent = o26
  271. o30.Parent = mas
  272. table.insert(cors,coroutine.create(function()
  273. wait()
  274. runDummyScript(function()
  275. while true do
  276. script.Parent.Position = script.Parent.Parent.Pos2.Position
  277. wait(0.05)
  278. script.Parent.Position = script.Parent.Parent.Pos1.Position
  279. wait(0.05)
  280. end
  281. end,o30)
  282. end))
  283. o32.Parent = o26
  284. o32.Texture = "http://www.roblox.com/asset/?id=1939597561"
  285. o32.Face = Enum.NormalId.Back
  286. o33.Parent = o26
  287. o33.Texture = "http://www.roblox.com/asset/?id=1939597561"
  288. o34.Name = "Baldi"
  289. o34.Parent = o1
  290. o35.Name = ""
  291. o35.Parent = o34
  292. o36.Name = "Head"
  293. o36.Parent = o35
  294. o36.BrickColor = BrickColor.new("Pastel brown")
  295. o36.Transparency = 0.99000000953674
  296. o36.Position = Vector3.new(42.9895325, 7.39762115, -103.993065)
  297. o36.Rotation = Vector3.new(179.949997, 0.0299999993, -180)
  298. o36.FormFactor = Enum.FormFactor.Symmetric
  299. o36.Size = Vector3.new(3.27546906, 1.63773453, 1.63773453)
  300. o36.CFrame = CFrame.new(42.9895325, 7.39762115, -103.993065, -0.999999881, 9.79722881e-06, 0.000534521125, 9.34397212e-06, 0.999999642, -0.000847964839, -0.000534529216, -0.000847959716, -0.999999523)
  301. o36.BottomSurface = Enum.SurfaceType.Smooth
  302. o36.TopSurface = Enum.SurfaceType.Smooth
  303. o36.Color = Color3.new(1, 0.8, 0.6)
  304. o36.Position = Vector3.new(42.9895325, 7.39762115, -103.993065)
  305. o37.Parent = o36
  306. o37.Scale = Vector3.new(1.25, 1.25, 1.25)
  307. o38.Name = "Right Arm"
  308. o38.Parent = o35
  309. o38.BrickColor = BrickColor.new("Pastel brown")
  310. o38.Transparency = 1
  311. o38.Position = Vector3.new(40.5329094, 4.9410429, -103.992294)
  312. o38.Rotation = Vector3.new(179.949997, 0.0299999993, -180)
  313. o38.CanCollide = false
  314. o38.FormFactor = Enum.FormFactor.Symmetric
  315. o38.Size = Vector3.new(1.63773453, 3.27546906, 1.63773453)
  316. o38.CFrame = CFrame.new(40.5329094, 4.9410429, -103.992294, -0.999999881, 9.7972279e-06, 0.000534521125, 9.34397212e-06, 0.999999523, -0.000847964839, -0.000534529216, -0.0008479596, -0.999999523)
  317. o38.BottomSurface = Enum.SurfaceType.Smooth
  318. o38.TopSurface = Enum.SurfaceType.Smooth
  319. o38.Color = Color3.new(1, 0.8, 0.6)
  320. o38.Position = Vector3.new(40.5329094, 4.9410429, -103.992294)
  321. o39.Name = "Left Arm"
  322. o39.Parent = o35
  323. o39.BrickColor = BrickColor.new("Pastel brown")
  324. o39.Transparency = 1
  325. o39.Position = Vector3.new(45.4461098, 4.94099712, -103.98967)
  326. o39.Rotation = Vector3.new(179.949997, 0.0299999993, -180)
  327. o39.CanCollide = false
  328. o39.FormFactor = Enum.FormFactor.Symmetric
  329. o39.Size = Vector3.new(1.63773453, 3.27546906, 1.63773453)
  330. o39.CFrame = CFrame.new(45.4461098, 4.94099712, -103.98967, -0.999999881, 9.7972279e-06, 0.000534521125, 9.34397212e-06, 0.999999523, -0.000847964839, -0.000534529216, -0.0008479596, -0.999999523)
  331. o39.BottomSurface = Enum.SurfaceType.Smooth
  332. o39.TopSurface = Enum.SurfaceType.Smooth
  333. o39.Color = Color3.new(1, 0.8, 0.6)
  334. o39.Position = Vector3.new(45.4461098, 4.94099712, -103.98967)
  335. o40.Name = "Right Leg"
  336. o40.Parent = o35
  337. o40.BrickColor = BrickColor.new("Pastel brown")
  338. o40.Transparency = 1
  339. o40.Position = Vector3.new(42.1706085, 1.66556001, -103.98864)
  340. o40.Rotation = Vector3.new(179.949997, 0.0299999993, -180)
  341. o40.CanCollide = false
  342. o40.FormFactor = Enum.FormFactor.Symmetric
  343. o40.Size = Vector3.new(1.63773453, 3.27546906, 1.63773453)
  344. o40.CFrame = CFrame.new(42.1706085, 1.66556001, -103.98864, -0.999999881, 9.7972279e-06, 0.000534521125, 9.34397212e-06, 0.999999523, -0.000847964839, -0.000534529216, -0.0008479596, -0.999999523)
  345. o40.BottomSurface = Enum.SurfaceType.Smooth
  346. o40.TopSurface = Enum.SurfaceType.Smooth
  347. o40.Color = Color3.new(1, 0.8, 0.6)
  348. o40.Position = Vector3.new(42.1706085, 1.66556001, -103.98864)
  349. o41.Name = "Left Leg"
  350. o41.Parent = o35
  351. o41.BrickColor = BrickColor.new("Pastel brown")
  352. o41.Transparency = 1
  353. o41.Position = Vector3.new(43.8083458, 1.66554475, -103.98777)
  354. o41.Rotation = Vector3.new(179.949997, 0.0299999993, -180)
  355. o41.CanCollide = false
  356. o41.FormFactor = Enum.FormFactor.Symmetric
  357. o41.Size = Vector3.new(1.63773453, 3.27546906, 1.63773453)
  358. o41.CFrame = CFrame.new(43.8083458, 1.66554475, -103.98777, -0.999999881, 9.7972279e-06, 0.000534521125, 9.34397212e-06, 0.999999523, -0.000847964839, -0.000534529216, -0.0008479596, -0.999999523)
  359. o41.BottomSurface = Enum.SurfaceType.Smooth
  360. o41.TopSurface = Enum.SurfaceType.Smooth
  361. o41.Color = Color3.new(1, 0.8, 0.6)
  362. o41.Position = Vector3.new(43.8083458, 1.66554475, -103.98777)
  363. o42.Name = "Torso"
  364. o42.Parent = o35
  365. o42.BrickColor = BrickColor.new("Pastel brown")
  366. o42.Transparency = 1
  367. o42.Position = Vector3.new(42.9895096, 4.94102001, -103.990982)
  368. o42.Rotation = Vector3.new(179.949997, 0.0299999993, -180)
  369. o42.CanCollide = false
  370. o42.FormFactor = Enum.FormFactor.Symmetric
  371. o42.Size = Vector3.new(3.27546906, 3.27546906, 1.63773453)
  372. o42.CFrame = CFrame.new(42.9895096, 4.94102001, -103.990982, -0.999999881, 9.79722881e-06, 0.000534521125, 9.34397212e-06, 0.999999642, -0.000847964839, -0.000534529216, -0.000847959716, -0.999999523)
  373. o42.BottomSurface = Enum.SurfaceType.Smooth
  374. o42.TopSurface = Enum.SurfaceType.Smooth
  375. o42.Color = Color3.new(1, 0.8, 0.6)
  376. o42.Position = Vector3.new(42.9895096, 4.94102001, -103.990982)
  377. o43.Name = "Left Hip"
  378. o43.Parent = o42
  379. o43.C0 = CFrame.new(-1.63773453, -1.63773453, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  380. o43.C1 = CFrame.new(-0.818867266, 1.63773453, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  381. o43.Part0 = o42
  382. o43.Part1 = o41
  383. o43.MaxVelocity = 0.10000000149012
  384. o44.Name = "Right Hip"
  385. o44.Parent = o42
  386. o44.C0 = CFrame.new(1.63773453, -1.63773453, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  387. o44.C1 = CFrame.new(0.818867266, 1.63773453, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  388. o44.Part0 = o42
  389. o44.Part1 = o40
  390. o44.MaxVelocity = 0.10000000149012
  391. o45.Name = "Left Shoulder"
  392. o45.Parent = o42
  393. o45.C0 = CFrame.new(-1.63773453, 0.818867266, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  394. o45.C1 = CFrame.new(0.818867266, 0.818867266, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  395. o45.Part0 = o42
  396. o45.Part1 = o39
  397. o45.MaxVelocity = 0.10000000149012
  398. o46.Name = "Right Shoulder"
  399. o46.Parent = o42
  400. o46.C0 = CFrame.new(1.63773453, 0.818867266, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  401. o46.C1 = CFrame.new(-0.818867266, 0.818867266, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  402. o46.Part0 = o42
  403. o46.Part1 = o38
  404. o46.MaxVelocity = 0.10000000149012
  405. o47.Name = "Neck"
  406. o47.Parent = o42
  407. o47.C0 = CFrame.new(0, 1.63773453, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  408. o47.C1 = CFrame.new(0, -0.818867266, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  409. o47.Part0 = o42
  410. o47.Part1 = o36
  411. o47.MaxVelocity = 0.10000000149012
  412. o48.Name = "HumanoidRootPart"
  413. o48.Parent = o35
  414. o48.BrickColor = BrickColor.new("Bright blue")
  415. o48.Transparency = 1
  416. o48.Position = Vector3.new(42.9895096, 4.94102001, -103.990982)
  417. o48.Rotation = Vector3.new(179.949997, 0.0299999993, -180)
  418. o48.FormFactor = Enum.FormFactor.Symmetric
  419. o48.Size = Vector3.new(3.27546906, 3.27546906, 1.63773453)
  420. o48.CFrame = CFrame.new(42.9895096, 4.94102001, -103.990982, -0.999999881, 9.79722881e-06, 0.000534521125, 9.34397212e-06, 0.999999642, -0.000847964839, -0.000534529216, -0.000847959716, -0.999999523)
  421. o48.BottomSurface = Enum.SurfaceType.Smooth
  422. o48.TopSurface = Enum.SurfaceType.Smooth
  423. o48.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  424. o48.Position = Vector3.new(42.9895096, 4.94102001, -103.990982)
  425. o49.Name = "Root Hip"
  426. o49.Parent = o48
  427. o49.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  428. o49.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  429. o49.Part0 = o48
  430. o49.Part1 = o42
  431. o49.MaxVelocity = 0.10000000149012
  432. o50.Name = "AI Chase"
  433. o50.Parent = o35
  434. table.insert(cors,coroutine.create(function()
  435. wait()
  436. runDummyScript(function()
  437. -- 22/5/2018: So turns out, Baldi without a humanoid body is too skinny to move --
  438. --DuruTeru
  439. --[[
  440.  
  441. ____________________________________________________________________________________________________________________
  442.  
  443. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  444. ____________________________________________________________________________________________________________________
  445. ___ ___
  446. ( ) ( ) .-.
  447. .--. .--. | |_ | |_ ( __) ___ .-. .--. .--.
  448. / _ \ / \ ( __) ( __) (''") ( ) \ / \ / _ \
  449. . .' `. ; | .-. ; | | | | | | | .-. . ; ,-. ' . .' `. ;
  450. | ' | | | | | | | | ___ | | ___ | | | | | | | | | | | ' | |
  451. _\_`.(___) | |/ | | |( ) | |( ) | | | | | | | | | | _\_`.(___)
  452. ( ). '. | ' _.' | | | | | | | | | | | | | | | | | | ( ). '.
  453. | | `\ | | .'.-. | ' | | | ' | | | | | | | | | ' | | | | `\ |
  454. ; '._,' ' ' `-' / ' `-' ; ' `-' ; | | | | | | ' `-' | ; '._,' '
  455. '.___.' `.__.' `.__. `.__. (___) (___)(___) `.__. | '.___.'
  456. ( `-' ;
  457. `.__.
  458. ____________________________________________________________________________________________________________________
  459.  
  460. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  461. ____________________________________________________________________________________________________________________
  462.  
  463. --]]
  464.  
  465.  
  466. local SearchDistance = 100000 -- How far a player can be before it detects you
  467.  
  468. local ZombieDamage = 100000000000000000 -- How much damage the Zombie inficts towards the player
  469.  
  470. --[[
  471.  
  472. ____________________________________________________________________________________________________________________
  473.  
  474. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  475. ____________________________________________________________________________________________________________________
  476.  
  477. -- OPTIONAL --]]
  478.  
  479. local canWander = false
  480. local WanderX, WanderZ = 30, 30
  481. -- How many studs the zombie can wander on the x and z axis in studs
  482.  
  483. --]]
  484.  
  485.  
  486. function getHumanoid(model)
  487. for _, v in pairs(model:GetChildren()) do
  488. if v:IsA'Humanoid' then
  489. return v
  490. end
  491. end
  492. end
  493.  
  494.  
  495. local zombie = script.Parent
  496. local human = getHumanoid(zombie)
  497. local hroot = zombie.HumanoidRootPart
  498. local zspeed = hroot.Velocity.magnitude
  499.  
  500.  
  501. local pfs = game:GetService("PathfindingService")
  502.  
  503. function GetPlayerNames()
  504. local players = game:GetService('Players'):GetChildren()
  505. local name = nil
  506. for _, v in pairs(players) do
  507. if v:IsA'Player' then
  508. name = tostring(v.Name)
  509. end
  510. end
  511. return name
  512. end
  513.  
  514. spawn(function()
  515. while wait() do
  516. print("THIS BALDI MODEL WAS MADE BY ANPHU04, DO NOT TRUST ANYBODY THAT USES THIS!")
  517. end
  518. end)
  519.  
  520. function GetPlayersBodyParts(t)
  521. local torso = t
  522. if torso then
  523. local figure = torso.Parent
  524. for _, v in pairs(figure:GetChildren()) do
  525. if v:IsA'Part' then
  526. return v.Name
  527. end
  528. end
  529. else
  530. return "HumanoidRootPart"
  531. end
  532. end
  533.  
  534. function GetTorso(part)
  535. local chars = game.Workspace:GetChildren()
  536. local torso = nil
  537. for _, v in pairs(chars) do
  538. if v:IsA'Model' and v ~= script.Parent and v.Name == GetPlayerNames() then
  539. local charRoot = v:FindFirstChild'HumanoidRootPart'
  540. if (charRoot.Position - part).magnitude < SearchDistance then
  541. torso = charRoot
  542. end
  543. end
  544. end
  545. return torso
  546. end
  547.  
  548. for _, zambieparts in pairs(zombie:GetChildren()) do
  549. if zambieparts:IsA'Part' then
  550. zambieparts.Touched:connect(function(p)
  551. if p.Parent.Name == GetPlayerNames() and p.Parent.Name ~= zombie.Name then -- damage
  552. local enemy = p.Parent
  553. local enemyhuman = getHumanoid(enemy)
  554. enemyhuman:TakeDamage(ZombieDamage)
  555. end
  556. end)
  557. end
  558. end
  559.  
  560. -- no touchy
  561. local path
  562. local waypoint
  563. local oldpoints
  564. local isWandering = 0
  565.  
  566. if canWander then
  567. spawn(function()
  568. while isWandering == 0 do
  569. isWandering = 1
  570. local desgx, desgz = hroot.Position.x + math.random(-WanderX, WanderX), hroot.Position.z + math.random(-WanderZ, WanderZ)
  571. human:MoveTo( Vector3.new(desgx, 0, desgz) )
  572. wait(math.random(4, 6))
  573. isWandering = 0
  574. end
  575. end)
  576. end
  577.  
  578. while wait() do
  579. local enemytorso = GetTorso(hroot.Position)
  580. if enemytorso ~= nil then -- if player detected
  581. isWandering = 1
  582. local function checkw(t)
  583. local ci = 3
  584. if ci > #t then
  585. ci = 3
  586. end
  587. if t[ci] == nil and ci < #t then
  588. repeat
  589. ci = ci + 1
  590. wait()
  591. until t[ci] ~= nil
  592. return Vector3.new(1, 0, 0) + t[ci]
  593. else
  594. ci = 3
  595. return t[ci]
  596. end
  597. end
  598.  
  599. path = pfs:FindPathAsync(hroot.Position, enemytorso.Position)
  600. waypoint = path:GetWaypoints()
  601. oldpoints = waypoint
  602. local connection;
  603.  
  604. local direct = Vector3.FromNormalId(Enum.NormalId.Front)
  605. local ncf = hroot.CFrame * CFrame.new(direct)
  606. direct = ncf.p.unit
  607. local rootr = Ray.new(hroot.Position, direct)
  608. local phit, ppos = game.Workspace:FindPartOnRay(rootr, hroot)
  609.  
  610. if path and waypoint or checkw(waypoint) then
  611. if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Walk then
  612. human:MoveTo( checkw(waypoint).Position )
  613. human.Jump = false
  614. end
  615.  
  616. -- CANNOT LET BALDI JUMPS --
  617. --[[if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Jump then
  618. human.Jump = true
  619. connection = human.Changed:connect(function()
  620. human.Jump = true
  621. end)
  622. human:MoveTo( checkw(waypoint).Position )
  623. else
  624. human.Jump = false
  625. end]]
  626.  
  627. --[[hroot.Touched:connect(function(p)
  628. local bodypartnames = GetPlayersBodyParts(enemytorso)
  629. if p:IsA'Part' and not p.Name == bodypartnames and phit and phit.Name ~= bodypartnames and phit:IsA'Part' and rootr:Distance(phit.Position) < 5 then
  630. connection = human.Changed:connect(function()
  631. human.Jump = true
  632. end)
  633. else
  634. human.Jump = false
  635. end
  636. end)]]
  637.  
  638. if connection then
  639. connection:Disconnect()
  640. end
  641.  
  642. else
  643. for i = 3, #oldpoints do
  644. human:MoveTo( oldpoints[i].Position )
  645. end
  646. end
  647. elseif enemytorso == nil and canWander then -- if player not detected
  648. isWandering = 0
  649. path = nil
  650. waypoint = nil
  651. human.MoveToFinished:Wait()
  652. end
  653. end
  654. end,o50)
  655. end))
  656. o51.Name = "Movement"
  657. o51.Parent = o35
  658. table.insert(cors,coroutine.create(function()
  659. wait()
  660. runDummyScript(function()
  661. -- 21/5/2018 --
  662. -- SLAPPING INTENSIFIES --
  663. local npc = script.Parent
  664. local hum = npc.Humanoid
  665. local speed = npc.Speed
  666. local decalp = npc.DecalPart
  667.  
  668. while true do
  669. local waittime = 2/speed.Value
  670. local oldwalkspeed = hum.WalkSpeed
  671. decalp.Front.Texture = "http://www.roblox.com/asset/?id=1814500416"
  672. decalp.Back.Texture = "http://www.roblox.com/asset/?id=1814500416"
  673. decalp.Slap:Play()
  674.  
  675. wait(0.4)
  676.  
  677. hum.WalkSpeed = 0
  678. decalp.Front.Texture = "http://www.roblox.com/asset/?id=1814499405"
  679. decalp.Back.Texture = "http://www.roblox.com/asset/?id=1814499405"
  680.  
  681. wait(waittime)
  682.  
  683. hum.WalkSpeed = oldwalkspeed
  684. end
  685.  
  686. end,o51)
  687. end))
  688. o52.Name = "DecalPart"
  689. o52.Parent = o35
  690. o52.Transparency = 1
  691. o52.Position = Vector3.new(43.3560562, 6.90540791, -103.989883)
  692. o52.Rotation = Vector3.new(180, 0, -180)
  693. o52.CanCollide = false
  694. o52.Size = Vector3.new(6.87848186, 13.7569695, 0.185904995)
  695. o52.CFrame = CFrame.new(43.3560562, 6.90540791, -103.989883, -1, 9.34498075e-06, -4.70659955e-07, 9.34498166e-06, 1, -1.94262611e-06, 4.70641794e-07, -1.94263066e-06, -1)
  696. o52.BottomSurface = Enum.SurfaceType.Smooth
  697. o52.TopSurface = Enum.SurfaceType.Smooth
  698. o52.Position = Vector3.new(43.3560562, 6.90540791, -103.989883)
  699. o53.Name = "Front"
  700. o53.Parent = o52
  701. o53.Texture = "rbxassetid://1814499405"
  702. o54.Name = "Back"
  703. o54.Parent = o52
  704. o54.Texture = "rbxassetid://1814499405"
  705. o54.Face = Enum.NormalId.Back
  706. o55.Name = "BaldiWeld"
  707. o55.Parent = o35
  708. table.insert(cors,coroutine.create(function()
  709. wait()
  710. runDummyScript(function()
  711. -- 21/5/2018 --
  712. -- We can already make the decal part anchored and move it along with the rootpart
  713. function weld(thing)
  714. local w = Instance.new("Weld")
  715. w.Part0 = script.Parent.HumanoidRootPart
  716. w.Part1 = thing
  717. w.C0 = script.Parent.HumanoidRootPart.CFrame:inverse()
  718. w.C1 = thing.CFrame:inverse()
  719. w.Parent = thing
  720. end
  721. weld(script.Parent.DecalPart)
  722.  
  723. end,o55)
  724. end))
  725. o56.Parent = o35
  726. o56.RightLeg = o40
  727. o56.LeftLeg = o41
  728. o56.Torso = o48
  729. o56.WalkSpeed = 100
  730. o59.Parent = o1
  731. o59.BrickColor = BrickColor.new("Institutional white")
  732. o59.Position = Vector3.new(45.1200027, 8.00003147, -180.039993)
  733. o59.Anchored = true
  734. o59.FormFactor = Enum.FormFactor.Symmetric
  735. o59.Size = Vector3.new(18, 16, 4)
  736. o59.CFrame = CFrame.new(45.1200027, 8.00003147, -180.039993, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  737. o59.BottomSurface = Enum.SurfaceType.Smooth
  738. o59.TopSurface = Enum.SurfaceType.Smooth
  739. o59.Color = Color3.new(0.972549, 0.972549, 0.972549)
  740. o59.Position = Vector3.new(45.1200027, 8.00003147, -180.039993)
  741. o60.Parent = o59
  742. o61.Parent = o59
  743. o61.Texture = "http://www.roblox.com/asset/?id=1848526467"
  744. o61.Face = Enum.NormalId.Back
  745. o62.Parent = o1
  746. o62.Material = Enum.Material.Concrete
  747. o62.BrickColor = BrickColor.new("New Yeller")
  748. o62.Position = Vector3.new(64.6200027, 17.6000347, -112.539993)
  749. o62.Rotation = Vector3.new(0, 90, 0)
  750. o62.Anchored = true
  751. o62.Size = Vector3.new(1, 1.20000005, 1)
  752. o62.CFrame = CFrame.new(64.6200027, 17.6000347, -112.539993, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  753. o62.TopSurface = Enum.SurfaceType.Smooth
  754. o62.Color = Color3.new(1, 1, 0)
  755. o62.Position = Vector3.new(64.6200027, 17.6000347, -112.539993)
  756. o63.Name = "SpecialMesh"
  757. o63.Parent = o62
  758. o64.Parent = o62
  759. o64.Brightness = 8.9999998285242e+20
  760. o64.Range = 60
  761. mas.Parent = workspace
  762. mas:MakeJoints()
  763. local mas1 = mas:GetChildren()
  764. for i=1,#mas1 do
  765. mas1[i].Parent = workspace
  766. ypcall(function() mas1[i]:MakeJoints() end)
  767. end
  768. mas:Destroy()
  769. for i=1,#cors do
  770. coroutine.resume(cors[i])
  771. end
  772.  
  773. game:GetService("Lighting").Ambient = Color3.new(0.498039, 0.498039, 0.498039)
  774. game:GetService("Lighting").Brightness = 5
  775. game:GetService("Lighting").ColorShift_Bottom = Color3.new(1, 1, 1)
  776. game:GetService("Lighting").ColorShift_Top = Color3.new(1, 1, 1)
  777. game:GetService("Lighting").GlobalShadows = true
  778. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.631373, 0.631373, 0.631373)
  779. game:GetService("Lighting").Outlines = false
  780. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  781. game:GetService("Lighting").TimeOfDay = "16:00:00"
  782. game:GetService("Lighting").FogColor = Color3.new(0, -7.50588, 0)
  783. game:GetService("Lighting").FogEnd = 1.0000000037683e+14
  784. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment