DylanD2003

Untitled

Oct 13th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. --HI VENGEFUL HERE
  2. --You'll need a script executor for this to work
  3. --And this script auto fills customer orders when you're a cashier.
  4.  
  5. local lplr = Game:GetService("Players").LocalPlayer
  6. for i, c in pairs(workspace.Customers:GetChildren()) do
  7. local d = c.Head:FindFirstChild("Dialog")
  8. if d then
  9. local correct = d.Correct
  10. local head = c.Head
  11. workspace.TutorialService.PlayerAction:FireServer("ClickedBubble", true)
  12. workspace.Dialog:FireServer("ResponseSelected", correct, head)
  13. workspace.GameService.OrderCompleted:FireServer(c, false)
  14. end
  15. end
  16. workspace.Customers.ChildAdded:connect(function(c)
  17. local torso = c:WaitForChild("Torso")
  18. while wait() do
  19. if math.floor(torso.Position.Z) <= 104 then
  20. local d = c.Head:FindFirstChild("Dialog")
  21. if d then
  22. local correct = d.Correct
  23. local head = c.Head
  24. workspace.TutorialService.PlayerAction:FireServer("ClickedBubble", true)
  25. workspace.Dialog:FireServer("ResponseSelected", correct, head)
  26. workspace.GameService.OrderCompleted:FireServer(c, false)
  27. break
  28. end
  29. end
  30. end
  31. end)
Add Comment
Please, Sign In to add comment