Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --this will sadly only give 1 of every item-- --(islands script)--
- local player = game.Players.LocalPlayer
- local backpack = player and player.Backpack
- if backpack then
- for _, item in ipairs(game:GetDescendants()) do
- if item:IsA("Tool") then
- local itemName = item.Name
- print("Processing item:", itemName)
- -- Clone and add the item with a high stack value
- local clonedItem = item:Clone()
- clonedItem.Parent = backpack
- local stackValue = clonedItem:FindFirstChild("Stack") or Instance.new("IntValue", clonedItem)
- stackValue.Name = "Stack"
- stackValue.Value = 999999
- print("Added new item:", itemName, "with stack value 999,999.")
- end
- end
- print("All items added successfully!")
- else
- print("Player or Backpack not found!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement