Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.Toggle = true -- Toggle true/false in between getting better vehicles...
- -- // Descendants Variables
- local GetLP = game:GetService("Players").LocalPlayer
- local GetWP = game:GetService("Workspace")
- local GetRS = game:GetService("ReplicatedStorage")
- -- // Check if we're in a vehicle
- function FindVehicle()
- for i,v in pairs(GetLP.Character:GetChildren()) do
- if v:IsA("Accessory") then
- if v:FindFirstChild("__comm__") then
- return v.Parent
- end
- end
- end
- end
- -- // Functioning
- function collectCoins()
- if _G.Toggle then
- if FindVehicle() == nil then
- GetLP.Character.HumanoidRootPart.CFrame = CFrame.new(-193, 25, 168)
- task.wait(1)
- GetRS.Packages._Index:FindFirstChild("sleitnick_knit@1.0.9").knit.Services.VehicleService.__comm__.RE.GiveVehicle:FireServer()
- end
- for i,v in pairs(GetWP:GetChildren()) do
- if v:IsA("MeshPart") and v.Transparency == 0 and v["__comm__"] and v.Position.Y > -118 and _G.Toggle then
- getgenv().Farming = true
- GetLP.Character:WaitForChild("HumanoidRootPart").CFrame = v.CFrame
- task.wait()
- end
- end
- getgenv().Farming = false
- end
- end
- -- // Start Farm
- collectCoins()
- -- // Connecting collectCoins on CharacterAdded
- GetLP.CharacterAdded:Connect(function(char)
- char:WaitForChild("HumanoidRootPart")
- collectCoins()
- end)
- -- // Right after the farming stops, Continue it again.
- game.RunService.RenderStepped:Connect(function()
- if not getgenv().Farming then
- collectCoins()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement