local CoreGui = game:GetService("CoreGui") local ReplicatedStorage = game:GetService("ReplicatedStorage") local remotes = ReplicatedStorage:WaitForChild("Remotes") local clickRemote = remotes:WaitForChild("Click") local tapRemote = remotes:WaitForChild("Tap") local rebirthRemote = remotes:WaitForChild("Rebirth") -- Cleanup existing GUI if any if CoreGui:FindFirstChild("RichGui") then CoreGui.RichGui:Destroy() end getgenv().AutoFarm = false getgenv().AutoRebirth = false -- GUI Creation local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "RichGui" ScreenGui.Parent = CoreGui local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 220, 0, 160) MainFrame.Position = UDim2.new(0.05, 0, 0.2, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 8) UICorner.Parent = MainFrame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 35) Title.BackgroundTransparency = 1 Title.Text = "Become Rich GUI" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 16 Title.Font = Enum.Font.SourceSansBold Title.Parent = MainFrame -- Auto Farm Button local FarmButton = Instance.new("TextButton") FarmButton.Size = UDim2.new(0.9, 0, 0, 40) FarmButton.Position = UDim2.new(0.05, 0, 0, 45) FarmButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60) FarmButton.Text = "Auto Farm: OFF" FarmButton.TextColor3 = Color3.fromRGB(255, 255, 255) FarmButton.TextSize = 14 FarmButton.Font = Enum.Font.SourceSansSemibold FarmButton.Parent = MainFrame local FarmCorner = Instance.new("UICorner") FarmCorner.CornerRadius = UDim.new(0, 6) FarmCorner.Parent = FarmButton -- Auto Rebirth Button local RebirthButton = Instance.new("TextButton") RebirthButton.Size = UDim2.new(0.9, 0, 0, 40) RebirthButton.Position = UDim2.new(0.05, 0, 0, 95) RebirthButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60) RebirthButton.Text = "Auto Rebirth: OFF" RebirthButton.TextColor3 = Color3.fromRGB(255, 255, 255) RebirthButton.TextSize = 14 RebirthButton.Font = Enum.Font.SourceSansSemibold RebirthButton.Parent = MainFrame local RebirthCorner = Instance.new("UICorner") RebirthCorner.CornerRadius = UDim.new(0, 6) RebirthCorner.Parent = RebirthButton -- Logic loops task.spawn(function() while ScreenGui.Parent do if getgenv().AutoFarm then pcall(function() clickRemote:FireServer() tapRemote:FireServer("tapped", 1, {}) end) end task.wait(0.05) end end) task.spawn(function() while ScreenGui.Parent do if getgenv().AutoRebirth then pcall(function() rebirthRemote:InvokeServer() end) end task.wait(1) end end) -- Button toggles FarmButton.MouseButton1Click:Connect(function() getgenv().AutoFarm = not getgenv().AutoFarm FarmButton.Text = "Auto Farm: " .. (getgenv().AutoFarm and "ON" or "OFF") FarmButton.BackgroundColor3 = getgenv().AutoFarm and Color3.fromRGB(40, 160, 80) or Color3.fromRGB(60, 60, 60) end) RebirthButton.MouseButton1Click:Connect(function() getgenv().AutoRebirth = not getgenv().AutoRebirth RebirthButton.Text = "Auto Rebirth: " .. (getgenv().AutoRebirth and "ON" or "OFF") RebirthButton.BackgroundColor3 = getgenv().AutoRebirth and Color3.fromRGB(40, 160, 80) or Color3.fromRGB(60, 60, 60) end)