Facebook
From shugames, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 52
  1. --Join The Discord! https://discord.gg/S44e9DpnXM
  2. --Seeding random
  3. math.randomseed(tick())
  4.  
  5. --Settings
  6. local collectDelay = .55 --Delay for each gem tp (There's also a randomization on top of this delay of about .1-.2 seconds)
  7. local bypassCaptcha = true --Click the bubble captcha solver
  8. local unsafe = false --Uses possibly unsafe collection method (Lets you still play the game while farming!) (Other note, if you use unsafe other users wont know who's stealing all the diamonds)
  9. local limit = 50000 --Kicks you from the game at X gems (Idk what a good limit is, I don't play this game, it may be way higher / lower than the one provided, no fucking idea)
  10.  
  11. --Script
  12. if _G.farm == nil then
  13.     _G.farm = false
  14.     local specials = {}
  15.     local normals = {}
  16.    
  17.     local plr = game:GetService("Players").LocalPlayer
  18.     local UI = game:GetObjects("rbxassetid://8887653583")[1]
  19.     local tws = game:GetService("TweenService");
  20.    
  21.     if syn and syn.protect_gui then
  22.        syn.protect_gui(UI)
  23.        for i,v in pairs(UI:GetDescendants()) do
  24.            syn.protect_gui(v)
  25.        end
  26.     end
  27.    
  28.     UI.Main.FarmLimit.Text = limit
  29.     game:GetService("ReplicatedStorage").ErrorLogNetworkFolder.ReportError:Destroy()
  30.     UI.Main.TotalCash.Text = string.gsub(plr.PlayerGui.HUD.Center.DiamondAmount.Text, ",", "")
  31.    
  32.     for i,v in pairs(UI:GetDescendants()) do
  33.        if v:IsA("UIGradient") then
  34.            v.Offset = Vector2.new(-.5,-.5)
  35.            local twig = TweenInfo.new(4,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,-1,true,.2)
  36.            local tweeng = tws:Create(v,twig,{["Offset"]=Vector2.new(.5,.5)})
  37.            tweeng:Play()
  38.        end
  39.     end
  40.    
  41.     UI.Main.Toggle.MouseButton1Down:Connect(function(v)
  42.        if _G.farm then
  43.            _G.farm = false
  44.            UI.Main.Toggle.Toggle_Roundify_30px.ImageColor3 = Color3.fromRGB(63, 39, 39)
  45.        else
  46.            _G.farm = true
  47.            UI.Main.Toggle.Toggle_Roundify_30px.ImageColor3 = Color3.fromRGB(43, 63, 39)
  48.        end
  49.     end)
  50.    
  51.     --Drag script by Tiffblox
  52.     local a=game:GetService("UserInputService")local b=UI.Main;local c;local d;local e;local f;local function g(h)local i=h.Position-e;b.Position=UDim2.new(f.X.Scale,f.X.Offset+i.X,f.Y.Scale,f.Y.Offset+i.Y)end;b.InputBegan:Connect(function(h)if h.UserInputType==Enum.UserInputType.MouseButton1 or h.UserInputType==Enum.UserInputType.Touch then c=true;e=h.Position;f=b.Position;h.Changed:Connect(function()if h.UserInputState==Enum.UserInputState.End then c=false end end)end end)b.InputChanged:Connect(function(h)if h.UserInputType==Enum.UserInputType.MouseMovement or h.UserInputType==Enum.UserInputType.Touch then d=h end end)a.InputChanged:Connect(function(h)if h==d and c then g(h)end end)
  53.    
  54.     UI.Name = math.random(10000000,99999999)
  55.     UI.Parent = game:GetService("CoreGui")
  56.    
  57.     local startingCash = UI.Main.TotalCash.Text
  58.     local firstMinCash = tonumber(UI.Main.TotalCash.Text)
  59.    
  60.     local function a()
  61.        while wait(60) do
  62.            UI.Main.HourlyCash.Text = tostring((tonumber(UI.Main.TotalCash.Text) - firstMinCash)*60)
  63.            firstMinCash = tonumber(UI.Main.TotalCash.Text)
  64.        end
  65.     end
  66.    
  67.     coroutine.wrap(a)()
  68.    
  69.     game:GetService("ReplicatedStorage").Network.Events.Gui.Currency.Update.OnClientEvent:Connect(function(value)
  70.     UI.Main.TotalCash.Text = value
  71.     UI.Main.FarmedCash.Text = tonumber(value) - tonumber(startingCash)
  72.    
  73.     if tonumber(value) > limit then
  74.         plr:Kick("\n[Kaid's Autofarm]\nYou hit/exceeded the limit specified in your limit variable\nEither spend your gems now or increase your limit variable!\n(This is to prevent supposed trade-bans)")
  75.        end
  76.     end)
  77.    
  78.     --Antiafk https://v3rmillion.net/showthread.php?tid=772135
  79.     local vu = game:GetService("VirtualUser")
  80.     plr.Idled:connect(function()
  81.        vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  82.        wait(1)
  83.        vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  84.     end)
  85.    
  86.     if bypassCaptcha then
  87.        plr.PlayerGui.CaptchaGui:GetPropertyChangedSignal("Enabled"):Connect(function()
  88.            wait(1)
  89.            if plr.PlayerGui.CaptchaGui.Enabled then
  90.                for i,v in pairs(plr.PlayerGui.CaptchaGui.Captcha.FloatArea:GetChildren()) do
  91.                    local absolute = v.AbsoluteSize.X
  92.                    wait(.1)
  93.                    if absolute ~= v.AbsoluteSize.X then
  94.                        for i,v in pairs(getconnections(v.MouseButton1Click)) do
  95.                            v:Fire()
  96.                        end
  97.                        wait(.01)
  98.                        v:Destroy()
  99.                    end
  100.                end
  101.                plr.PlayerGui.CaptchaGui.PopupMessage.Visible = false
  102.                plr.PlayerGui.CaptchaGui.Enabled = false
  103.            end
  104.        end)
  105.     end
  106.    
  107.     for i,v in pairs(game:GetService("Workspace").CollectibleDiamonds:GetChildren()) do
  108.        if v.Name ~= "specialdiamond" then table.insert(specials,v) else table.insert(normals,v) end
  109.     end
  110.    
  111.     while wait(1) do
  112.        while _G.farm and wait() do
  113.            if not unsafe then
  114.                for i,v in pairs(normals) do
  115.                    if not _G.farm then break end
  116.                    for i,v in pairs(specials) do
  117.                        if v.Transparency == 0 then
  118.                            if plr.Character.Humanoid.Sit == true then wait(1);plr.Character.Humanoid.Sit = false end
  119.                            wait(collectDelay + (math.random(1,2)*.1))
  120.                            plr.Character.Humanoid.RootPart.CFrame = CFrame.new(v.CFrame.X,v.CFrame.Y + 2,v.CFrame.Z)
  121.                            for i,v in pairs(v:GetChildren()) do
  122.                                if v:IsA("TouchTransmitter") then
  123.                                    firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,0)
  124.                                    firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,1)
  125.                                end
  126.                            end
  127.                        end
  128.                    end
  129.                    if v.Transparency == 0 then
  130.                        if plr.Character.Humanoid.Sit == true then plr.Character.Humanoid.Sit = false end
  131.                        wait(collectDelay + (math.random(1,2)*.1))
  132.                        plr.Character.Humanoid.RootPart.CFrame = CFrame.new(v.CFrame.X,v.CFrame.Y + 2,v.CFrame.Z)
  133.                        for i,v in pairs(v:GetChildren()) do
  134.                            if v:IsA("TouchTransmitter") then
  135.                                firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,0)
  136.                                firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,1)
  137.                            end
  138.                        end
  139.                    end
  140.                end
  141.            else
  142.                for i,v in pairs(specials) do
  143.                    if not _G.farm then break end
  144.                    if v.Transparency == 1 then continue end
  145.                    wait(collectDelay + (math.random(1,2)*.1))
  146.                    local old = v.CFrame
  147.                    v.CFrame = plr.Character.Humanoid.RootPart.CFrame
  148.                    for i,v in pairs(v:GetChildren()) do
  149.                        if v:IsA("TouchTransmitter") then
  150.                            firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,0)
  151.                            firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,1)
  152.                        end
  153.                    end
  154.                    wait()
  155.                    v.CFrame = old
  156.                end
  157.                for i,v in pairs(normals) do
  158.                    if not _G.farm then break end
  159.                    if v.Transparency == 1 then continue end
  160.                    wait(collectDelay + (math.random(1,2)*.1))
  161.                    local old = v.CFrame
  162.                    v.CFrame = plr.Character.Humanoid.RootPart.CFrame
  163.                    for i,v in pairs(v:GetChildren()) do
  164.                        if v:IsA("TouchTransmitter") then
  165.                            firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,0)
  166.                            firetouchinterest(plr.Character.Humanoid.RootPart,v.Parent,1)
  167.                        end
  168.                    end
  169.                    wait()
  170.                    v.CFrame = old
  171.                end
  172.            end
  173.        end
  174.     end
  175. end