Advertisement
VenoxComeback

pickupaf

Apr 15th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local Players = game:GetService("Players")
  3. local player = Players.LocalPlayer
  4. local character = player.Character or player.CharacterAdded:Wait()
  5. local hrp = character:WaitForChild("HumanoidRootPart")
  6. local Backpack = player:WaitForChild("Backpack")
  7.  
  8. -- Anti-tool: auto destroy if picked up
  9. Backpack.ChildAdded:Connect(function(tool)
  10. if tool:IsA("Tool") then tool:Destroy() end
  11. end)
  12.  
  13. character.ChildAdded:Connect(function(child)
  14. if child:IsA("Tool") then child:Destroy() end
  15. end)
  16.  
  17. -- Unequip all tools
  18. local function unequipAll()
  19. local humanoid = character:FindFirstChildOfClass("Humanoid")
  20. if humanoid then humanoid:UnequipTools() end
  21. end
  22.  
  23. -- Tween movement
  24. local function tweenTo(pos)
  25. local goal = { CFrame = CFrame.new(pos + Vector3.new(0, 3, 0)) }
  26. local tween = TweenService:Create(hrp, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), goal)
  27. tween:Play()
  28. tween.Completed:Wait()
  29. end
  30.  
  31. -- Trigger touch for interactivity
  32. local function primeTouch(drop)
  33. pcall(function()
  34. firetouchinterest(hrp, drop, 0)
  35. task.wait(0.1)
  36. firetouchinterest(hrp, drop, 1)
  37. end)
  38. end
  39.  
  40. -- Main farming loop
  41. while task.wait(1.5) do
  42. for _, obj in ipairs(workspace:GetDescendants()) do
  43. if obj:IsA("BasePart") and obj.Name == "MoneyDrop" then
  44. if not obj:IsDescendantOf(workspace) then continue end
  45.  
  46. unequipAll()
  47.  
  48. -- Move above first
  49. hrp.CFrame = CFrame.new(obj.Position + Vector3.new(0, 15, 0))
  50. task.wait(0.2)
  51.  
  52. -- Tween down
  53. tweenTo(obj.Position)
  54.  
  55. -- Prime the touch
  56. task.wait(0.2)
  57. primeTouch(obj)
  58.  
  59.  
  60. local t = 0
  61. while t < 5 do
  62. if not obj:IsDescendantOf(workspace) then
  63.  
  64. end
  65. task.wait(0.1)
  66. t += 0.1
  67. end
  68. end
  69. end
  70. end
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement