Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- backpackUI = plr.PlayerGui.hud.safezone.backpack
- invUI = backpackUI.inventory.scroll.safezone
- fish = "Sparkling Shiny Sea"
- target = "Username"
- for i, v in ipairs(game:GetService("Workspace"):GetDescendants()) do
- if v.ClassName == "ProximityPrompt" then
- v.HoldDuration = 0 -- Set HoldDuration to 0 to remove the delay
- print("Set HoldDuration of ProximityPrompt to 0: " .. v.Name)
- end
- end
- local bpObjs = {}
- for i,v in pairs(invUI:GetChildren()) do
- if string.find(string.lower(v.Name), string.lower(fish)) then
- print(v.Name)
- invID = v.item.Value
- for i,bp in pairs(plr.Backpack:GetChildren()) do
- for i,link in pairs(bp:GetChildren()) do
- if link.Name == "link" and link:IsA("ObjectValue") then
- if link.Value == invID then
- table.insert(bpObjs, bp)
- break
- end
- end
- end
- end
- end
- end
- if next(bpObjs) ~= nil then
- local char = game:GetService("Workspace")[target]
- for i,v in pairs(bpObjs) do
- if char and char:FindFirstChild("TradeOffer") then
- print("Sending trade offer to: " .. char.Name)
- plr.Character.Humanoid:EquipTool(v)
- task.wait(.5)
- fireproximityprompt(char.TradeOffer) -- Immediately send the trade offer
- else
- print("Trade offer not found for: " .. target)
- end
- print(v.link.Value)
- end
- else
- print("Not found")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement