jokianeee

CashierAuto

Jan 10th, 2019
26,325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 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)
Advertisement
Add Comment
Please, Sign In to add comment