Advertisement
skinkillaz

Work at a pizza place 1

Aug 2nd, 2018
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. local lplr = Game:GetService("Players").LocalPlayer
  2. for i, c in pairs(workspace.Customers:GetChildren()) do
  3. local d = c.Head:FindFirstChild("Dialog")
  4. if d then
  5. local correct = d.Correct
  6. local head = c.Head
  7. workspace.TutorialService.PlayerAction:FireServer("ClickedBubble", true)
  8. workspace.Dialog:FireServer("ResponseSelected", correct, head)
  9. workspace.GameService.OrderCompleted:FireServer(c, false)
  10. end
  11. end
  12. workspace.Customers.ChildAdded:connect(function(c)
  13. local torso = c:WaitForChild("Torso")
  14. while wait() do
  15. if math.floor(torso.Position.Z) <= 104 then
  16. local d = c.Head:FindFirstChild("Dialog")
  17. if d then
  18. local correct = d.Correct
  19. local head = c.Head
  20. workspace.TutorialService.PlayerAction:FireServer("ClickedBubble", true)
  21. workspace.Dialog:FireServer("ResponseSelected", correct, head)
  22. workspace.GameService.OrderCompleted:FireServer(c, false)
  23. break
  24. end
  25. end
  26. end
  27. end)
  28.  
  29. Have fun making those pizzas!
  30. [Image: 6d97eca31c60fd76794513dc89acd6db.png]
  31.  
  32.  
  33. Added: Auto Supplier! (People actually have to press the buttons though :c)
  34. yo bois forgot to add it in earlier and now I just add it:
  35. Code:
  36. -- Auto Supply
  37. -- Auto Supply
  38. local crates = workspace.AllSupplyBoxes
  39. local LocalPlayer = game.Players.LocalPlayer
  40. local DropOff = CFrame.new(43.5000114, 4.59913683, -9.79934692, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  41. local event = workspace.GameService.UpdateObjectProperty
  42.  
  43. for i, c in pairs(crates:GetChildren()) do
  44. event:FireServer(c, "CFrame", DropOff)
  45. end
  46.  
  47. crates.ChildAdded:connect(function(c)
  48. event:FireServer(c, "CFrame", DropOff)
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement