Advertisement
RandomMagics

Restaurant Tycoon 2 |UNPACTHED| Instant Cook | NPC Reach | Auto Collect

Nov 30th, 2022
1,195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. ---NPC Instant Cook & Reach:
  2. -----------------------------------
  3. local chiefInstantCook = true
  4. local npcReach = true
  5.  
  6. local Client = game.Players.LocalPlayer
  7. local PS = Client.PlayerScripts
  8. local Module = require(PS.ClientMain.Replications.Workers.DummyWalkSequence)
  9. local Worker = require(PS.CookingNew.WorkerComponents.WorkerDefault)
  10. local M1 = require(PS.ClientMain.Replications.Customers.GetNPCFolder)
  11.  
  12.  
  13.  
  14. if npcReach then
  15. Module.Run = function(data)
  16. return (data.completeCallback or task.wait)()
  17. end
  18. end
  19.  
  20. if chiefInstantCook then
  21. Worker.event = function(...)
  22. local args = {...}
  23. local npc = M1.GetNPCFolder(args[1]).ClientWorkers:FindFirstChild(args[2])
  24. local M2 = game.ReplicatedStorage.MiscModules.CookingSharedCharacter:FindFirstChild(args[4])
  25. if M2 then
  26. require(M2).finishInteract(npc,args[3],args[4])
  27. end
  28. return
  29. end
  30. end
  31. ************************************
  32. Auto Collect
  33. Code:
  34. ___________________________
  35. warn("Requiring API")do
  36. loadstring(game:HttpGet("https://pastebin.com/raw/KMc6aBky"))();
  37. end warn("API Loaded")
  38.  
  39. local child = object.child
  40. local descendant = object.descendant
  41. local check = object.check
  42.  
  43. local Tycoon = game.Players.LocalPlayer.Tycoon.Value
  44. descendant.foreach(Tycoon.Items.OftenFiltered.Surface,"Bill",function(Bill)
  45. local Settings = {
  46. ["name"] = "CollectBill",
  47. ["model"] = Bill.Parent
  48. }
  49.  
  50. game.ReplicatedStorage.Events.ClientTycoonInput:FireServer(Tycoon,Settings)
  51. end)
  52.  
  53. local Connection,Code = descendant.on_add(Tycoon.Items.OftenFiltered.Surface,function(Bill)
  54. check.it(Bill.Name == "Bill",function()
  55. local Settings = {
  56. ["name"] = "CollectBill",
  57. ["model"] = Bill.Parent
  58. }
  59.  
  60. game.ReplicatedStorage.Events.ClientTycoonInput:FireServer(Tycoon,Settings)
  61. end)
  62. end)
  63. ****************************
  64. Player Instant Cook
  65. Code:
  66. _______________________________
  67. local Cooking = game.Players.LocalPlayer.PlayerScripts.CookingNew
  68. local CookProgress = require(Cooking.CookProgress)
  69. local MultiClick = require(Cooking.InputDetectors.MultiClick)
  70. local MouseMovement = require(Cooking.InputDetectors.MouseMovement)
  71. local MouseSpin = require(Cooking.InputDetectors.MouseSpin)
  72.  
  73. local run = CookProgress.run
  74. CookProgress.run = function(...)
  75. local ARGS = {...}
  76. ARGS[3] = 0
  77. return run(unpack(ARGS))
  78. end
  79.  
  80. MultiClick.start = function(...)
  81. ({...})[3]()
  82. end
  83.  
  84. MouseMovement.start = function(...)
  85. ({...})[3]()
  86. end
  87.  
  88. MouseSpin.start = function(...)
  89. ({...})[3]()
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement