Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local hrp = character:WaitForChild("HumanoidRootPart")
- local Backpack = player:WaitForChild("Backpack")
- -- Anti-tool: auto destroy if picked up
- Backpack.ChildAdded:Connect(function(tool)
- if tool:IsA("Tool") then tool:Destroy() end
- end)
- character.ChildAdded:Connect(function(child)
- if child:IsA("Tool") then child:Destroy() end
- end)
- -- Unequip all tools
- local function unequipAll()
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then humanoid:UnequipTools() end
- end
- -- Tween movement
- local function tweenTo(pos)
- local goal = { CFrame = CFrame.new(pos + Vector3.new(0, 3, 0)) }
- local tween = TweenService:Create(hrp, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), goal)
- tween:Play()
- tween.Completed:Wait()
- end
- -- Trigger touch for interactivity
- local function primeTouch(drop)
- pcall(function()
- firetouchinterest(hrp, drop, 0)
- task.wait(0.1)
- firetouchinterest(hrp, drop, 1)
- end)
- end
- -- Main farming loop
- while task.wait(1.5) do
- for _, obj in ipairs(workspace:GetDescendants()) do
- if obj:IsA("BasePart") and obj.Name == "MoneyDrop" then
- if not obj:IsDescendantOf(workspace) then continue end
- unequipAll()
- -- Move above first
- hrp.CFrame = CFrame.new(obj.Position + Vector3.new(0, 15, 0))
- task.wait(0.2)
- -- Tween down
- tweenTo(obj.Position)
- -- Prime the touch
- task.wait(0.2)
- primeTouch(obj)
- local t = 0
- while t < 5 do
- if not obj:IsDescendantOf(workspace) then
- end
- task.wait(0.1)
- t += 0.1
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement