Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.farm = true
- local player = game.Players.LocalPlayer
- local VirtualUser=game:service'VirtualUser'
- game:service'Players'.LocalPlayer.Idled:connect(function()
- print("reav")
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end)
- for i,v in pairs(player.PlayerGui.ScreenMain.Uis:GetChildren()) do
- if v.Name == "FullBackpack" then
- v:Destroy()
- end
- end
- while wait() do
- if _G.farm then
- local fill = player.backpack.Max.Value
- game.ReplicatedStorage.Events.Eating:FireServer(fill)
- game.ReplicatedStorage.Functions.UpgradeBackpack:InvokeServer("true")
- for i,v in pairs(workspace.Melons:GetChildren()) do
- if v.Name == "Melon2" or v.Name == "Melon3" or v.Name == "Melon4" then
- v.CFrame=player.Character.HumanoidRootPart.CFrame+Vector3.new(0,0,0)
- end
- end
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == "SellPart" then
- v.CFrame=CFrame.new(player.Character.HumanoidRootPart.Position)
- end
- end
- for i,v in pairs(player.leaderstats:GetChildren()) do
- if string.find(v.Name, "Money") then
- local money = v.Value
- local rebirth = player.rebirth.Need.Value
- if money >= rebirth then
- game.ReplicatedStorage.Functions.Rebirth:InvokeServer()
- wait(3)
- for u,z in pairs(player.PlayerGui.ScreenMain.Uis:GetChildren()) do
- if z.Name == "FullBackpack" then
- z:Destroy()
- end
- end
- end
- end
- end
- if _G.farm then
- wait(3.5)
- player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
- end
- end
- if _G.farm == false then
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement