Pilfering Pirates Script Upd [new] Online
Did we miss a feature in the latest update? Drop your anchor in the comments below (if your forum allows it).
if lootFolder then for _, chest in pairs(lootFolder:GetChildren()) do if chest:IsA("Model") and chest:FindFirstChild("TouchInterest") then local distance = (chest.PrimaryPart.Position - RootPart.Position).Magnitude if distance < nearestDistance then nearestDistance = distance nearestChest = chest end end end end return nearestChest pilfering pirates script upd