Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.on = false
- _G.maxhp = 500
- _G.wait = .3
- --don't touch below unless ur sure what ur doing
- local lp = game:GetService"Players".LocalPlayer
- local uis = game:GetService"UserInputService"
- local a = 1
- local id = 100
- game:GetService"StarterGui":SetCore("SendNotification", {
- Title = "Farm",
- Text = "By Ryyb"
- })
- wait(1)
- game:GetService"StarterGui":SetCore("SendNotification", {
- Title = "Farm",
- Text = "F5 to toggle"
- })
- uis.InputBegan:Connect(function(input,gP)
- if gP then return end
- if input.KeyCode == Enum.KeyCode.F5 then
- _G.on = not _G.on
- game:GetService"StarterGui":SetCore("SendNotification", {
- Title = "Farm by Ryyb",
- Text = tostring(_G.on)
- })
- end
- end)
- local function farm(v)
- if not v or not v:FindFirstChild"POS" then return end
- lp.Character:FindFirstChild"HumanoidRootPart".CFrame = v.POS.CFrame+Vector3.new(0,-7.5,0)
- workspace.__THINGS.__REMOTES["join coin"]:InvokeServer({{v.Name,"idec87c80ee53c4750a05e7bff55246dce"},{false,false}})
- workspace.__THINGS.__REMOTES["change pet target"]:FireServer({{"idec87c80ee53c4750a05e7bff55246dce","Coin",v.Name},{false,false,false}})
- workspace.__THINGS.__REMOTES["farm coin"]:FireServer({{v.Name,"idec87c80ee53c4750a05e7bff55246dce"},{false,false}})
- workspace.__THINGS.__REMOTES["take drop"]:FireServer({{"id"..id,"id"..a},{false,false}})
- end
- game:GetService"RunService".RenderStepped:Connect(function()
- if not _G.on then return end
- if not lp.Character or not lp.Character:FindFirstChildOfClass"Humanoid" then return end
- lp.Character:FindFirstChildOfClass"Humanoid":ChangeState(11)
- a = a + 1
- id = id + 1
- if a >= 10 then
- a = 1
- end
- if id >= 200 then
- id = 100
- end
- for _,v in pairs(workspace.__THINGS.Coins:GetChildren()) do
- if v:FindFirstChild"POS" and v:FindFirstChild"Settings" and v.Settings.Health.Value > 0 and v.Settings.Health.Value < _G.maxhp then
- repeat wait(_G.wait) farm(v) until not v or not _G.on or not lp.Character
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement