The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Pet Store Tycoon! script pastebin roblox
By LINK GAME on 2024-09-21 08:00 am | Syntax: LUA | Views: 13



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local library = loadstring(game:HttpGet(('https://pastebin.com/raw/FsJak6AT')))()
  2. local w = library:CreateWindow("Pet Store Tycoon")
  3. local b = w:CreateFolder("AutoFarm")
  4. local f = w:CreateFolder("AutoBuy")
  5. local e = w:CreateFolder("Mix")
  6. local u = w:CreateFolder("Credits")
  7. --Toggle
  8. b:Toggle("AutoFillWater (R)",function(bool)
  9.     shared.toggle = bool
  10.     AutoFillWaterR = bool
  11. end)
  12.  
  13. b:Toggle("AutoFillWater (L)",function(bool)
  14.     shared.toggle = bool
  15.     AutoFillWaterL = bool
  16. end)
  17.  
  18. b:Toggle("AutoFillFood",function(bool)
  19.     shared.toggle = bool
  20.     AutoFillFood = bool
  21. end)
  22.  
  23. b:Toggle("NpcTalk",function(bool)
  24.     shared.toggle = bool
  25.     NpcTalk = bool
  26. end)
  27.  
  28. b:Toggle("WalkPet",function(bool)
  29.     shared.toggle = bool
  30.     WalkPet = bool
  31. end)
  32.  
  33. f:Toggle("AutoCollectButtons",function(bool)
  34.     shared.toggle = bool
  35.     AutoCollectButtons = bool
  36. end)
  37.  
  38. f:Toggle("PayForElec",function(bool)
  39.     shared.toggle = bool
  40.     PayForElec = bool
  41. end)
  42.  
  43. f:Toggle("Food",function(bool)
  44.     shared.toggle = bool
  45.     AutoBuyFood = bool
  46. end)
  47.  
  48. f:Toggle("Dental Sticks",function(bool)
  49.     shared.toggle = bool
  50.     AutoBuyDentalSticks = bool
  51. end)
  52.  
  53. e:Toggle("EscPets",function(bool)
  54.     shared.toggle = bool
  55.     EscPets = bool
  56. end)
  57.  
  58. e:Toggle("AntiAfk",function(bool)
  59.     shared.toggle = bool
  60.     AntiAfk = bool
  61. end)
  62. --Credits
  63. u:Button("maxgat5#8395",function()
  64.     setclipboard("maxgat5#8395")
  65. end)
  66.  
  67. u:Button("Discrod Server",function()
  68.     setclipboard("https://discord.gg/K4txdRSVfq")
  69. end)
  70.  
  71. while wait() do
  72.     if AutoCollectButtons == true then
  73.         if game:GetService("CoreGui"):FindFirstChild("PurchasePromptApp") then
  74.             game:GetService("CoreGui").PurchasePromptApp:Destroy()
  75.         end
  76.         if game:GetService("Players").LocalPlayer.PlayerGui.MainUI:FindFirstChild("BuyMoneyUI") then
  77.             game:GetService("Players").LocalPlayer.PlayerGui.MainUI.BuyMoneyUI:Destroy()
  78.         end
  79.         for i,v in pairs(game.workspace:GetDescendants()) do
  80.             if v.ClassName == "StringValue" then
  81.                 if v.Value == game.Players.LocalPlayer.Name then
  82.                     for i,v1 in pairs(v.Parent.BuyObjects:GetChildren()) do
  83.                         v1.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,100)
  84.                         wait()
  85.                         v1.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  86.                         wait()
  87.                     end
  88.                 end
  89.             end
  90.         end
  91.     end
  92.  
  93.     if NpcTalk == true then
  94.         for i,v in pairs(game.workspace:GetDescendants()) do
  95.             if v.ClassName == "ClickDetector" then
  96.                 if v.Parent.Name == "MobileTalk" then
  97.                     fireclickdetector(v, 0)
  98.                 end
  99.             end
  100.         end
  101.         wait(1)
  102.     end
  103.    
  104.     if AutoFillWaterR == true then
  105.         for i, v in pairs(game.workspace:GetDescendants()) do
  106.             if v.ClassName == "StringValue" then
  107.                 if v.Value == game.Players.LocalPlayer.Name then
  108.                     for i, v1 in pairs(v.Parent.ScriptableObjects:GetDescendants()) do
  109.                         if v1.ClassName == "ClickDetector" then
  110.                             for number = 1, 6 do
  111.                                 if AutoFillWaterR == true then
  112.                                     if v1.Parent.Parent.Name == number .. "_Drink" then
  113.                                         game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
  114.                                         fireclickdetector(v1, 0)
  115.                                         fireclickdetector(v1, 1)
  116.                                         wait(1)
  117.                                         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.ScriptableObjects.SinkButton.ParticlePart.CFrame.Position + Vector3.new(5, 0, 2))
  118.                                         wait(1)
  119.                                         game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Workspace.CurrentCamera.CFrame.Position,v.Parent.Building.Sink.Box.Position)
  120.                                         for i = 1, 5 do
  121.                                             mouse1press()
  122.                                             mouse1release()
  123.                                         end
  124.                                         wait(1)
  125.                                         game:GetService("ReplicatedStorage").Events.PutDownBowl:FireServer(v1.Parent.Parent)
  126.                                         game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = math.huge
  127.                                         wait(1)
  128.                                     end
  129.                                 end
  130.                             end
  131.                         end
  132.                     end
  133.                 end
  134.             end
  135.         end
  136.     end
  137.    
  138.     if AutoFillWaterL == true then
  139.         for i, v in pairs(game.workspace:GetDescendants()) do
  140.             if v.ClassName == "StringValue" then
  141.                 if v.Value == game.Players.LocalPlayer.Name then
  142.                     for i, v1 in pairs(v.Parent.ScriptableObjects:GetDescendants()) do
  143.                         if v1.ClassName == "ClickDetector" then
  144.                             for number = 1, 6 do
  145.                                 if AutoFillWaterL == true then
  146.                                     if v1.Parent.Parent.Name == number .. "_Drink" then
  147.                                         game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
  148.                                         fireclickdetector(v1, 0)
  149.                                         fireclickdetector(v1, 1)
  150.                                         wait(1)
  151.                                         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.ScriptableObjects.SinkButton.ParticlePart.CFrame.Position + Vector3.new(-5, 0, -2))
  152.                                         wait(1)
  153.                                         game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Workspace.CurrentCamera.CFrame.Position,v.Parent.Building.Sink.Box.Position)
  154.                                         for i = 1, 5 do
  155.                                             mouse1press()
  156.                                             mouse1release()
  157.                                         end
  158.                                         wait(1)
  159.                                         game:GetService("ReplicatedStorage").Events.PutDownBowl:FireServer(v1.Parent.Parent)
  160.                                         game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = math.huge
  161.                                         wait(1)
  162.                                     end
  163.                                 end
  164.                             end
  165.                         end
  166.                     end
  167.                 end
  168.             end
  169.         end
  170.     end
  171.    
  172.     if AutoFillFood == true then
  173.         for i,v in pairs(game.workspace:GetDescendants()) do
  174.             if v.ClassName == "StringValue" then
  175.                 if v.Value == game.Players.LocalPlayer.Name then
  176.                     for i=1,6 do
  177.                         if v.Parent.ScriptableObjects[i.."_Food"].Food.Transparency == 1 then
  178.                             game:GetService("ReplicatedStorage").Events.FillFood:FireServer(v.Parent.ScriptableObjects[i.."_Food"],"DefaultDogFood")
  179.                         end
  180.                     end
  181.                 end
  182.             end
  183.         end
  184.     end
  185.    
  186.     if PayForElec == true then
  187.         game:GetService("ReplicatedStorage").Events.PayBill:FireServer()
  188.     end
  189.    
  190.     if AutoBuyFood == true then
  191.         game:GetService("ReplicatedStorage").Events.Purchase:FireServer(1,"DefaultDogFood")
  192.     end
  193.    
  194.     if AutoBuyDentalSticks == true then
  195.         game:GetService("ReplicatedStorage").Events.Purchase:FireServer(1,"DentalSticks")
  196.     end
  197.    
  198.     if EscPets == true then
  199.         for i,v in pairs(game:GetService("Workspace").EscapedDogSpawns:GetChildren()) do
  200.             game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
  201.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.CFrame.Position + Vector3.new(-3, 0, 0))
  202.             wait(1)
  203.             game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Workspace.CurrentCamera.CFrame.Position,v.Position)
  204.             for i = 1, 5 do
  205.                 mouse1press()
  206.                 mouse1release()
  207.             end
  208.             game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = math.huge
  209.         end
  210.     end
  211.    
  212.     if WalkPet == true then
  213.         for i,v in pairs(game.workspace:GetDescendants()) do
  214.             if v.ClassName == "StringValue" then
  215.                 if v.Value == game.Players.LocalPlayer.Name then
  216.                     for i,v1 in pairs(v.Parent.Animals:GetChildren()) do
  217.                         game:GetService("ReplicatedStorage").Events.RequestDogWalk:FireServer(v1)
  218.                     end
  219.                 end
  220.             end
  221.         end
  222.     end
  223.  
  224.     if AntiAfk == true then
  225.         local bb=game:service'VirtualUser'
  226.         bb:CaptureController()
  227.         bb:ClickButton2(Vector2.new())
  228.     end
  229. end