Advertisement
Shutupdevs1

Rat Washing Tycoon

Sep 11th, 2022 (edited)
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.23 KB | None | 0 0
  1. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  2. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  3. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  4. local Window = Library.CreateLib("Rat Washing Tycoon", "GrapeTheme")
  5. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  6.  
  7. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  8. local MainTab = Window:NewTab("Main")
  9. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  10. local MainSection = MainTab:NewSection("Main Functions")
  11. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  12.  
  13. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  14. getgenv().AutoSell = false
  15. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  16. MainSection:NewToggle("Auto Wash Rats", "Auto washes the rats", function(state)
  17. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  18.     if state then
  19. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  20.        getgenv().AutoSell = true
  21. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  22.        repeat
  23. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  24.         task.wait(0.1)
  25. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  26.         local Event = game:GetService("ReplicatedStorage").Knit.Services.TycoonService.RE.SellRats
  27. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  28.         Event:FireServer()
  29. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  30.        until getgenv().AutoSell == false
  31. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  32.     else
  33. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  34.         getgenv().AutoSell = false
  35. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  36.     end
  37. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  38. end)
  39. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  40.  
  41. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  42. getgenv().AutoCollect = false
  43. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  44. MainSection:NewToggle("Auto Collect Rats", "Auto collects the rats", function(state)
  45. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  46.     if state then
  47. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  48.        getgenv().AutoCollect = true
  49. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  50.        local Tycoon = game:GetService("ReplicatedStorage").Knit.Services.TycoonService.RF.getTycoon:InvokeServer()
  51. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  52.        repeat
  53. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  54.        task.wait(0.1)
  55. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  56.        for _,v in pairs(Tycoon.Rats:GetChildren()) do
  57. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  58.            if getgenv().AutoCollect == true then
  59. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  60.                local A_1 = tonumber(v.Name)
  61. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  62.         local Event = game:GetService("ReplicatedStorage").Knit.Services.TycoonService.RE.CollectRat
  63. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  64.         Event:FireServer(A_1)
  65. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  66.             end
  67. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  68.        end
  69. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  70.        until getgenv().AutoCollect == false
  71. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  72.     else
  73. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  74.         getgenv().AutoCollect = false
  75. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  76.     end
  77. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  78. end)
  79. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  80.  
  81. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  82. local CreditsTab = Window:NewTab("Credits")
  83. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  84. local CreditsSection = CreditsTab:NewSection("Credits")
  85. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  86. CreditsSection:NewLabel("Made by Valco#7818")
  87. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  88.  
  89. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  90. CreditsSection:NewButton("Join Discord", "Joins the discord server.", function()
  91. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  92.     local http = game:GetService('HttpService')
  93. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  94.     local req = syn and syn.request or http and http.request or http_request or fluxus and fluxus.request or getgenv().request or request
  95. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  96.     if req then
  97. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  98.         req({
  99. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  100.             Url = 'http://127.0.0.1:6463/rpc?v=1',
  101. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  102.             Method = 'POST',
  103. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  104.             Headers = {
  105. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  106.                 ['Content-Type'] = 'application/json',
  107. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  108.                 Origin = 'https://discord.com'
  109. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  110.             },
  111. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  112.             Body = http:JSONEncode({
  113. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  114.                 cmd = 'INVITE_BROWSER',
  115. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  116.                 nonce = http:GenerateGUID(false),
  117. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  118.                 args = {code = 'nFKSeMVTG7'}
  119. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  120.             })
  121. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  122.         })
  123. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  124.     end
  125. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  126. end)
  127. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  128.  
  129. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  130. local vu = game:GetService("VirtualUser")
  131. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  132.     game:GetService("Players").LocalPlayer.Idled:connect(function()
  133. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  134.         vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  135. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  136.         wait(1)
  137. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  138.         vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  139. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  140.     end)
  141. -- [[ dsc.gg/grimcity | Copyright © 2022 Grims Community™ ]] --
  142.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement