Advertisement
Guest User

Work At A Pizza Place GUI

a guest
Jun 9th, 2018
28,669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. local DoorsEnabled = false
  2. local toggledoor = false
  3. local UnhappyCustomers = false
  4. local togglecustom = false
  5. local BoxEnabled = false
  6. local togglebox = false
  7. local ParanoiaEnabled = false
  8. local togglepara = false
  9. local PlayerService = game:GetService("Players")
  10. function spookcontroller()
  11. while wait() do
  12. if ParanoiaEnabled == true then
  13. local x = workspace.Houses:GetDescendants()
  14. for _,v in pairs(x) do
  15. if v.Name == "FrontDoor" then
  16. v.ClickDetector.Detector:FireServer()
  17. wait(math.random(1,5)/10)
  18. end
  19. end
  20. local x = workspace.Cars:GetChildren()
  21. for _,v in pairs(x) do
  22. if v.Hood2 then
  23. v.Hood2.ClickDetector.Detector:FireServer()
  24. wait()
  25. end
  26. end
  27. local x = workspace:GetChildren()
  28. for _,v in pairs(x) do
  29. if v.Name == "Gate" then
  30. if v.ClickDetector then
  31. v.ClickDetector.Detector:FireServer()
  32. wait()
  33. end
  34. end
  35. end
  36. local x = PlayerService:GetPlayers()
  37. for _,v in pairs(x) do
  38. if v.Character ~= nil then
  39. workspace.Main.ChangeFace:FireServer(v.Character.Head.face, "rbxassetid://76690153")
  40. wait(.1)
  41. end
  42. end
  43. end
  44. end
  45. end
  46. local spookthread = coroutine.create(spookcontroller)
  47. coroutine.resume(spookthread)
  48. function doorcontroller()
  49. while wait() do
  50. if DoorsEnabled == true then
  51. local x = workspace.Ovens:GetChildren()
  52. for _,v in pairs(x) do
  53. wait(math.random(1,3)/10)
  54. v.Door.ClickDetector.Detector:FireServer()
  55. end
  56. end
  57. end
  58. end
  59. local doorthread = coroutine.create(doorcontroller)
  60. coroutine.resume(doorthread)
  61. function boxcontroller()
  62. while wait(.1) do
  63. if BoxEnabled == true then
  64. if workspace.AllBox:FindFirstChild("BoxOpen") then
  65. workspace.GameService.CloseBox:FireServer(workspace.AllBox:FindFirstChild("BoxOpen"))
  66. end
  67. end
  68. end
  69. end
  70. local boxthread = coroutine.create(boxcontroller)
  71. coroutine.resume(boxthread)
  72. function HandleCustomer(obj)
  73. while wait(math.random(1,10)/10) do
  74. if obj then
  75. if UnhappyCustomers == true then
  76. workspace.GameService.OrderCompleted:FireServer(obj, true, workspace.Register1)
  77. end
  78. else
  79. break
  80. end
  81. end
  82. end
  83. workspace.Customers.ChildAdded:connect(function(v)
  84. local CustomerThread = coroutine.create(HandleCustomer)
  85. coroutine.resume(CustomerThread,v)
  86. end)
  87.  
  88. local scr = Instance.new("ScreenGui")
  89. local fr = Instance.new("Frame")
  90. fr.Draggable = true
  91. fr.Active = true
  92. fr.Size = UDim2.new(.3,0,.3,0)
  93. fr.BackgroundColor3 = Color3.new(.2,.2,.2)
  94. fr.Parent = scr
  95. local title = Instance.new("TextLabel")
  96. title.BackgroundTransparency = 1
  97. title.TextScaled = true
  98. title.Size = UDim2.new(1,0,.1,0)
  99. title.TextColor3 = Color3.new(1,1,1)
  100. title.TextTransparency = .6
  101. title.Font = 4
  102. title.Text = "Haunted Pizza Place"
  103. title.Parent = fr
  104. local coreframe = Instance.new("Frame")
  105. coreframe.BackgroundTransparency = .6
  106. coreframe.BackgroundColor3 = Color3.new(.1,.1,.1)
  107. coreframe.Position = UDim2.new(.05,0,0.1,0)
  108. coreframe.Size = UDim2.new(.9,0,.9,0)
  109. coreframe.Parent = fr
  110. local TDB = Instance.new("TextButton")
  111. TDB.BackgroundColor3 = Color3.new(.8,.8,.8)
  112. TDB.BackgroundTransparency = .6
  113. TDB.Position = UDim2.new(.05,0,.05,0)
  114. TDB.Size = UDim2.new(.9,0,.15,0)
  115. TDB.TextScaled = true
  116. TDB.TextTransparency = .6
  117. TDB.TextColor3 = Color3.new(1,1,1)
  118. TDB.Text = "Toggle Oven Doors"
  119. TDB.BorderColor3 = Color3.new(1,0,0)
  120. TDB.Parent = coreframe
  121. local TCB = TDB:Clone()
  122. TCB.Position = UDim2.new(.05,0,.3,0)
  123. TCB.Text = "Toggle Unhappy Customers"
  124. TCB.Parent = coreframe
  125. local TBB = TDB:Clone()
  126. TBB.Position = UDim2.new(.05,0,.55,0)
  127. TBB.Text = "Toggle Closing Boxes"
  128. TBB.Parent = coreframe
  129. local TPB = TDB:Clone()
  130. TPB.Position = UDim2.new(.05,0,.8,0)
  131. TPB.Text = "Toggle Mass Paranoia"
  132. TPB.Parent = coreframe
  133.  
  134.  
  135. TDB.MouseButton1Down:connect(function()
  136. if toggledoor == false then
  137. toggledoor = true
  138. DoorsEnabled = true
  139. TDB.BorderColor3 = Color3.new(0,1,0)
  140. else
  141. toggledoor = false
  142. DoorsEnabled = false
  143. TDB.BorderColor3 = Color3.new(1,0,0)
  144. end
  145. end)
  146.  
  147. TCB.MouseButton1Down:connect(function()
  148. if togglecustom == false then
  149. togglecustom = true
  150. UnhappyCustomers = true
  151. TCB.BorderColor3 = Color3.new(0,1,0)
  152. else
  153. togglecustom = false
  154. UnhappyCustomers = false
  155. TCB.BorderColor3 = Color3.new(1,0,0)
  156. end
  157. end)
  158.  
  159. TBB.MouseButton1Down:connect(function()
  160. if togglebox == false then
  161. togglebox = true
  162. BoxEnabled = true
  163. TBB.BorderColor3 = Color3.new(0,1,0)
  164. else
  165. togglebox = false
  166. BoxEnabled = false
  167. TBB.BorderColor3 = Color3.new(1,0,0)
  168. end
  169. end)
  170.  
  171. TPB.MouseButton1Down:connect(function()
  172. if togglepara == false then
  173. togglepara = true
  174. ParanoiaEnabled = true
  175. TPB.BorderColor3 = Color3.new(0,1,0)
  176. else
  177. togglepara = false
  178. ParanoiaEnabled = false
  179. TPB.BorderColor3 = Color3.new(1,0,0)
  180. end
  181. end)
  182.  
  183.  
  184. scr.Parent = PlayerService.LocalPlayer.PlayerGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement