Advertisement
brianops1

DevComp

Mar 21st, 2020
2,045
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.36 KB | None | 0 0
  1. --Game: https://www.roblox.com/games/4429677678/Development-Company-Tycoon
  2.  
  3.  
  4. if game:GetService("CoreGui"):FindFirstChild("FinityUI") then
  5.     game.CoreGui.FinityUI:Destroy()
  6. end
  7. local desc = [[
  8. This was a pretty fun script to make ngl
  9. ]]
  10. local plr = game.Players.LocalPlayer
  11. local Finity = loadstring(game:HttpGet("http://finity.vip/scripts/finity_lib.lua"))()
  12. local FinityWindow = Finity.new(true)
  13. FinityWindow.ChangeToggleKey(Enum.KeyCode.Semicolon)
  14. local CreditsCategory = FinityWindow:Category("Credits/Info")
  15. local CreditsCreator = CreditsCategory:Sector("Finity Library Creator:")
  16. local ScriptCredit = CreditsCategory:Sector("Cheat Credit:")
  17. local Description = CreditsCategory:Sector("Description:")
  18. CreditsCreator:Cheat("Label", "detourious @ v3rmillion.net")
  19. ScriptCredit:Cheat("Label", "brianops16 @ v3rmillion.net")
  20. Description:Cheat("Label", desc)
  21. local Cheats = FinityWindow:Category("Cheats")
  22. local S1 = Cheats:Sector("Main Cheats")
  23. --https://detourious.gitbook.io/project-finity/docs
  24.  
  25. local Positions = {}
  26. local AutoType = "Normal"
  27.  
  28. function GetTycoon()
  29.     local tycoon = nil
  30.     for i,v in pairs(game:GetService("Workspace")["CompaniesFolder"]:GetChildren()) do
  31.         if v.Owner.Value == plr then
  32.             tycoon = v
  33.         end
  34.     end
  35.     return tycoon
  36. end
  37.  
  38. local tycoon = GetTycoon()
  39.  
  40. function MoveItem(Name,Id,cfrmae)
  41.     local args;
  42.     args = {
  43.         [1] = Name,
  44.         [2] = cfrmae,
  45.         [3] = 1,
  46.         [4] = Id,
  47.         [5] = "Company",
  48.         [6] = 1,
  49.     }
  50.    
  51.     game:GetService("ReplicatedStorage").Remote.MoveItem:InvokeServer(unpack(args))
  52. end
  53.  
  54. function isin(tbl,obj)
  55.     for i,v in pairs(tbl) do
  56.         if i == obj or v == obj then
  57.             return true
  58.         end
  59.     end
  60.     return false
  61. end
  62.  
  63. S1:Cheat("Dropdown", "Programmer Options", function(Option) --Dropdowns
  64.     AutoType = Option
  65. end, {
  66.     options = {
  67.         "Normal",
  68.         "Fast"
  69.     }
  70. })
  71.  
  72. S1:Cheat("Checkbox","ProgrammerAuto",
  73. function(State)
  74.     if not State then
  75.         Positions = {}
  76.         _G.on = 0
  77.     else
  78.         _G.on = 1
  79.         while _G.on == 1 do
  80.             if plr["DayStarted"].Value then
  81.                 for i,v in pairs(tycoon["CompanyModel"]["Floors"]:GetChildren()) do
  82.                     for a,b in pairs(v.Company:GetChildren()) do
  83.                         if b then
  84.                             pcall(function()
  85.                                 local I = b.Info
  86.                                 local W = I.Worker
  87.                                 local ID = I.PlacedIndex.Value
  88.                                 if W.WorkerClass.Value == "Programmer" then
  89.                                     if W.Tired.Value then
  90.                                         b.WorkerController.Remote.WakeUp:FireServer()
  91.                                     end
  92.                                     if W.IsWorking.Value and W.CurrentProject.Value == "None" then
  93.                                         if not isin(Positions,ID) then
  94.                                             Positions[ID] = b.Parts["Chair seat"].CFrame
  95.                                         end
  96.                                         MoveItem(b.Name,ID,Positions[ID] * CFrame.new(.12,1.5,-2))
  97.                                         wait(.1)
  98.                                     elseif not W.IsWorking.Value and AutoType == "Normal" then
  99.                                         game:GetService("ReplicatedStorage").Remote.StartWorking:InvokeServer(ID,1)
  100.                                     elseif AutoType == "Fast" then
  101.                                         game:GetService("ReplicatedStorage").Remote.StartWorking:InvokeServer(ID,1)
  102.                                     end
  103.                                 end
  104.                             end)
  105.                         end
  106.                     end
  107.                 end
  108.             end
  109.             wait()
  110.         end
  111.     end
  112. end
  113. )
  114. S1:Cheat("Checkbox","DesignerAuto",
  115. function(State)
  116.     if not State then
  117.         Positions = {}
  118.         _G.on1 = 0
  119.     else
  120.         _G.on1 = 1
  121.         while _G.on1 == 1 do
  122.             if plr["DayStarted"].Value then
  123.                 for i,v in pairs(tycoon["CompanyModel"]["Floors"]:GetChildren()) do
  124.                     for a,b in pairs(v.Company:GetChildren()) do
  125.                         if b then
  126.                             pcall(function()
  127.                                 local I = b.Info
  128.                                 local W = I.Worker
  129.                                 local ID = I.PlacedIndex.Value
  130.                                 if W.WorkerClass.Value == "Designer" then
  131.                                     if not W.IsWorking.Value or W.Full.Value then
  132.                                         b.WorkerController.Remote.CollectDesigns:InvokeServer()
  133.                                     end
  134.                                 end
  135.                             end)
  136.                         end
  137.                     end
  138.                 end
  139.             end
  140.             wait()
  141.         end
  142.     end
  143. end
  144. )
  145.  
  146. S1:Cheat("Button", "Refresh Programmers", function() --Button
  147.     for i,v in pairs(tycoon["CompanyModel"]["Floors"]:GetChildren()) do
  148.         for a,b in pairs(v.Company:GetChildren()) do
  149.             if b then
  150.                 pcall(function()
  151.                     local I = b.Info
  152.                     local W = I.Worker
  153.                     local ID = I.PlacedIndex.Value
  154.                     if W.WorkerClass.Value == "Programmer" then
  155.                         if not isin(Positions,ID) then
  156.                             Positions[ID] = b.Parts["Chair seat"].CFrame
  157.                         end
  158.                         MoveItem(b.Name,ID,Positions[ID] * CFrame.new(.12,1.5,-2))
  159.                         wait(.1)
  160.                     end
  161.                 end)
  162.             end
  163.         end
  164.     end
  165. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement