Guest User

DevCompany

a guest
Mar 21st, 2020
1,963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.05 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.  
  27. function GetTycoon()
  28.     local tycoon = nil
  29.     for i,v in pairs(game:GetService("Workspace")["CompaniesFolder"]:GetChildren()) do
  30.         if v.Owner.Value == plr then
  31.             tycoon = v
  32.         end
  33.     end
  34.     return tycoon
  35. end
  36.  
  37. local tycoon = GetTycoon()
  38.  
  39. function MoveItem(Name,Id,cfrmae)
  40.     local args;
  41.     args = {
  42.         [1] = Name,
  43.         [2] = cfrmae,
  44.         [3] = 1,
  45.         [4] = Id,
  46.         [5] = "Company",
  47.         [6] = 1,
  48.     }
  49.    
  50.     game:GetService("ReplicatedStorage").Remote.MoveItem:InvokeServer(unpack(args))
  51. end
  52.  
  53. function isin(tbl,obj)
  54.     for i,v in pairs(tbl) do
  55.         if i == obj or v == obj then
  56.             return true
  57.         end
  58.     end
  59.     return false
  60. end
  61.  
  62. S1:Cheat("Checkbox","Auto",
  63. function(State)
  64.     if not State then
  65.         local Positions = {}
  66.         _G.on = 0
  67.     else
  68.         _G.on = 1
  69.         while _G.on == 1 do
  70.             if plr["DayStarted"].Value then
  71.                 for i,v in pairs(tycoon["CompanyModel"]["Floors"]:GetChildren()) do
  72.                     for a,b in pairs(v.Company:GetChildren()) do
  73.                         if b then
  74.                             pcall(function()
  75.                                 local I = b.Info
  76.                                 local W = I.Worker
  77.                                 local ID = I.PlacedIndex.Value
  78.                                 if W.WorkerClass.Value == "Programmer" then
  79.                                     if W.Tired.Value then
  80.                                         b.WorkerController.Remote.WakeUp:FireServer()
  81.                                     end
  82.                                     if W.IsWorking.Value and W.CurrentProject.Value == "None" then
  83.                                         if not isin(Positions,ID) then
  84.                                             Positions[ID] = b.Parts["Chair seat"].CFrame
  85.                                         end
  86.                                         MoveItem(b.Name,ID,Positions[ID] * CFrame.new(.12,1.5,-2))
  87.                                         wait(.1)
  88.                                     else
  89.                                         game:GetService("ReplicatedStorage").Remote.StartWorking:InvokeServer(ID,1)
  90.                                     end
  91.                                 elseif W.WorkerClass.Value == "Designer" then
  92.                                     if not W.IsWorking.Value or W.Full.Value then
  93.                                         b.WorkerController.Remote.CollectDesigns:InvokeServer()
  94.                                     end
  95.                                 end
  96.                             end)
  97.                         end
  98.                     end
  99.                 end
  100.             end
  101.             wait()
  102.         end
  103.     end
  104. end
  105. )
  106.  
  107.  
  108. S1:Cheat("Button", "End Day (if bugged)", function() --Button
  109.     game:GetService("ReplicatedStorage")["Remote"]["DayFinished"]:InvokeServer()
  110. end)
Advertisement
Add Comment
Please, Sign In to add comment