Advertisement
pastebinxx

Untitled

Mar 21st, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. local network
  2. local reg = (getreg or debug.getregistry)()
  3. for i=1,#reg do
  4. local f = reg[i]
  5. if type(f)=="table" and rawget(f,"FireServer") and rawget(f,"BindEvents") then
  6. network = f
  7. end
  8. end
  9.  
  10. workspace.Customers.ChildAdded:Connect(function(c)
  11. task.wait(1)
  12. if c:FindFirstChild("Head") then
  13. local dialog = c.Head.Dialog.Correct.ResponseDialog or ''
  14. local rootMoved = false
  15.  
  16. local order = "MountainDew"
  17. if dialog:sub(-8)=="instead." then
  18. dialog = dialog:sub(-30)
  19. end
  20. if dialog:find("pepperoni",1,true) then
  21. order = "PepperoniPizza"
  22. elseif dialog:find("sausage",1,true) then
  23. order = "SausagePizza"
  24. elseif dialog:find("cheese",1,true) then
  25. order = "CheesePizza"
  26. end
  27. while true do task.wait(.30)
  28. network:FireServer("OrderComplete", c, order, workspace.Register3)
  29. end
  30. end
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement