Advertisement
VenoxComeback

farm

Mar 7th, 2025 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. local TweenService, rs, lp = game:GetService("TweenService"), game:GetService("RunService"), game:GetService("Players").LocalPlayer
  2. local noclipE, antifall
  3.  
  4. local function noclip()
  5. for _, v in pairs(lp.Character:GetDescendants()) do
  6. if v:IsA("BasePart") then v.CanCollide = false end
  7. end
  8. lp.Character.HumanoidRootPart.Velocity = Vector3.zero
  9. end
  10.  
  11. local function moveto(obj, speed)
  12. local info = TweenInfo.new((lp.Character.HumanoidRootPart.Position - obj.Position).Magnitude / speed, Enum.EasingStyle.Linear)
  13. local tween = TweenService:Create(lp.Character.HumanoidRootPart, info, {CFrame = obj.CFrame + Vector3.new(0, -5, 0)})
  14. if not lp.Character.HumanoidRootPart:FindFirstChild("BodyVelocity") then
  15. antifall = Instance.new("BodyVelocity", lp.Character.HumanoidRootPart)
  16. antifall.Velocity = Vector3.zero
  17. noclipE = rs.Stepped:Connect(noclip)
  18. tween:Play()
  19. end
  20. tween.Completed:Connect(function() antifall:Destroy() noclipE:Disconnect() end)
  21. end
  22.  
  23. rs.RenderStepped:Connect(function()
  24. local closestBin = nil
  25. local closestDistance = math.huge
  26.  
  27. for _, location in pairs(workspace.BinmanJob.Bins:GetChildren()) do
  28. local prompt = location:FindFirstChild("ProximityPrompt")
  29.  
  30. if prompt and prompt.Enabled then
  31. local distance = (lp.Character.HumanoidRootPart.Position - location.Position).Magnitude
  32.  
  33. if distance < closestDistance then
  34. closestDistance = distance
  35. closestBin = location
  36. end
  37. end
  38. end
  39.  
  40. if closestBin then
  41. local prompt = closestBin:FindFirstChild("ProximityPrompt")
  42. prompt.Exclusivity = "AlwaysShow"
  43. prompt.MaxActivationDistance = 20
  44. prompt.RequiresLineOfSight = false
  45.  
  46. moveto(closestBin, 70)
  47. fireproximityprompt(prompt, 1, true)
  48. else
  49. local destination = Instance.new("Part")
  50. destination.Position = Vector3.new(-258.686, 23.944, 533.438)
  51. moveto(destination, 70)
  52. local args = {
  53. [1] = workspace:WaitForChild("BinmanJob"):WaitForChild("StartJob"):WaitForChild("Start Job"):WaitForChild("ProximityPrompt")
  54. }
  55.  
  56. game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvents"):WaitForChild("Quit"):FireServer(unpack(args))
  57. if workspace.BinmanJob.StartJob:FindFirstChild("Start Job") then
  58. fireproximityprompt(workspace.BinmanJob.StartJob["Start Job"].ProximityPrompt, 1, true)
  59. end
  60. destination:Destroy()
  61. end
  62. end)
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement