Advertisement
markusip

Restaurant tycoon 2

Dec 1st, 2021
7,026
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. -------------------------------------------- chef instant cook ----------------------------------------------------
  2. local PS = game.Players.LocalPlayer.PlayerScripts
  3. local Worker = require(PS.CookingNew.WorkerComponents.WorkerDefault)
  4. local M1 = require(PS.ClientMain.Replications.Customers.GetNPCFolder)
  5.  
  6.  
  7. Worker.event = function(...)
  8. local args = {...}
  9. local npc = M1.GetNPCFolder(args[1]).ClientWorkers:FindFirstChild(args[2])
  10. local M2 = game.ReplicatedStorage.Resources.NewCookingResources.SharedCharacterComponents:FindFirstChild(args[4])
  11. if M2 then
  12. local Task = require(M2)
  13. Task.finishInteract(npc,args[3],args[4])
  14. end
  15. return
  16. end
  17.  
  18. --------------------------------------- player instant cook ----------------------------------------
  19. local Cooking = game.Players.LocalPlayer.PlayerScripts.CookingNew
  20. local CookProgress = require(Cooking.CookProgress)
  21. local MultiClick = require(Cooking.InputDetectors.MultiClick)
  22. local MouseMovement = require(Cooking.InputDetectors.MouseMovement)
  23. local MouseSpin = require(Cooking.InputDetectors.MouseSpin)
  24.  
  25. local run = CookProgress.run
  26. CookProgress.run = function(...)
  27. local ARGS = {...}
  28. ARGS[3] = 0
  29. return run(unpack(ARGS))
  30. end
  31.  
  32. MultiClick.start = function(...)
  33. local ARGS = {...}
  34. ARGS[3]()
  35. end
  36.  
  37. MouseMovement.start = function(...)
  38. local ARGS = {...}
  39. ARGS[3]()
  40. end
  41.  
  42. MouseSpin.start = function(...)
  43. local ARGS = {...}
  44. ARGS[3]()
  45. end
  46.  
  47. ------------------------------------- auto collect money -------------------------------------
  48.  
  49. warn("Requiring API")do
  50. loadstring(game:HttpGet("https://pastebin.com/raw/KMc6aBky"))();
  51. end warn("API Loaded")
  52.  
  53. local child = getgenv().object.child
  54. local descendant = getgenv().object.descendant
  55. local check = getgenv().object.check
  56.  
  57. local Tycoon = game.Players.LocalPlayer.Tycoon.Value
  58. descendant.foreach(Tycoon.Items.OftenFiltered.Surface,"Bill",function(Bill)
  59. local Settings = {
  60. ["name"] = "CollectBill",
  61. ["model"] = Bill.Parent
  62. }
  63.  
  64. game.ReplicatedStorage.Events.ClientTycoonInput:FireServer(Tycoon,Settings)
  65. end)
  66.  
  67. local Connection,Code = descendant.on_add(Tycoon.Items.OftenFiltered.Surface,function(Bill)
  68. check.it(Bill.Name == "Bill",function()
  69. local Settings = {
  70. ["name"] = "CollectBill",
  71. ["model"] = Bill.Parent
  72. }
  73.  
  74. game.ReplicatedStorage.Events.ClientTycoonInput:FireServer(Tycoon,Settings)
  75. end)
  76. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement