Advertisement
aesnike

TRADE

Nov 10th, 2024 (edited)
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. backpackUI = plr.PlayerGui.hud.safezone.backpack
  3. invUI = backpackUI.inventory.scroll.safezone
  4. fish = "Sparkling Shiny Sea"
  5. target = "Username"
  6.  
  7. for i, v in ipairs(game:GetService("Workspace"):GetDescendants()) do
  8. if v.ClassName == "ProximityPrompt" then
  9. v.HoldDuration = 0 -- Set HoldDuration to 0 to remove the delay
  10. print("Set HoldDuration of ProximityPrompt to 0: " .. v.Name)
  11. end
  12. end
  13.  
  14. local bpObjs = {}
  15. for i,v in pairs(invUI:GetChildren()) do
  16. if string.find(string.lower(v.Name), string.lower(fish)) then
  17. print(v.Name)
  18. invID = v.item.Value
  19. for i,bp in pairs(plr.Backpack:GetChildren()) do
  20. for i,link in pairs(bp:GetChildren()) do
  21. if link.Name == "link" and link:IsA("ObjectValue") then
  22. if link.Value == invID then
  23. table.insert(bpObjs, bp)
  24. break
  25. end
  26. end
  27. end
  28. end
  29.  
  30. end
  31. end
  32. if next(bpObjs) ~= nil then
  33. local char = game:GetService("Workspace")[target]
  34. for i,v in pairs(bpObjs) do
  35. if char and char:FindFirstChild("TradeOffer") then
  36. print("Sending trade offer to: " .. char.Name)
  37. plr.Character.Humanoid:EquipTool(v)
  38. task.wait(.5)
  39. fireproximityprompt(char.TradeOffer) -- Immediately send the trade offer
  40. else
  41. print("Trade offer not found for: " .. target)
  42. end
  43. print(v.link.Value)
  44. end
  45. else
  46. print("Not found")
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement