Advertisement
Cizzy

Untitled

Mar 16th, 2021
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. for i,v in pairs(getgc(true)) do
  2. if type(v) == "function" and getinfo(v).name == "CreateChatBubble" then
  3. old = hookfunction(v, function(...)
  4. local a = old(...)
  5. local order = ({...})[2].Parent.Order
  6. for _,workstation in pairs(workspace.Environment.Locations.BloxyBurgers.CashierWorkstations:GetChildren()) do
  7. if not workstation.OrderDisplay.DisplayMain.CashierGUI.Used.Visible and workstation.Occupied.Value == order.Parent then
  8. local cashier = workstation.OrderDisplay.DisplayMain.CashierGUI.Frame
  9.  
  10. for i,v in pairs(getconnections(cashier[order.Burger.Value].Activated)) do
  11. v:Fire()
  12. end
  13.  
  14. if order.Fries.Value then
  15. for i,v in pairs(getconnections(cashier.Fries.Activated)) do
  16. v:Fire()
  17. end
  18. end
  19.  
  20. if order.Cola.Value then
  21. for i,v in pairs(getconnections(cashier.Cola.Activated)) do
  22. v:Fire()
  23. end
  24. end
  25.  
  26. for i,v in pairs(getconnections(cashier.Done.Activated)) do
  27. v:Fire()
  28. end
  29. end
  30. end
  31. return a
  32. end)
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement