Advertisement
Honansik

Farm Life Tycoon Script [Auto Money Collector]

Jul 24th, 2022
1,585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local tycoon = tostring(player.TycoonPointer.Value)
  3.  
  4. _G.loop = true --Set to false and execute again if you want to stop the script
  5. while _G.loop == true do
  6.    wait(0.1)
  7.    for i, v in pairs(game:GetService("Workspace").Tycoons[tycoon].Buttons:GetDescendants()) do
  8.        if v.Name == "DevProductID" then
  9.            v.Parent.Parent:Destroy()
  10.        else
  11.            if v.Name == "Trigger" and v.ClassName == "Part" then
  12.                cash = tonumber(game:GetService("Workspace").Tycoons[tycoon].Data.Money.Value)
  13.                if cash >= tonumber(v.Parent.Configuration.Cost.Value) then
  14.                    firetouchinterest(v, player.Character.HumanoidRootPart, 0)
  15.                    firetouchinterest(v, player.Character.HumanoidRootPart, 1)
  16.                end
  17.            end
  18.        end
  19.        for i, v in pairs(game:GetService("Workspace").Tycoons[tycoon].Entities:GetChildren()) do
  20.            if v.Name == "MoneyCollector" then
  21.                firetouchinterest(v.Trigger, player.Character.HumanoidRootPart, 0)
  22.                firetouchinterest(v.Trigger, player.Character.HumanoidRootPart, 1)
  23.            end
  24.        end
  25.    end
  26. end
  27. --Made by Zenco
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement