SigmaBoy456

Roblox gear stealer v2

Jul 12th, 2024 (edited)
1,157
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 1 0
  1. local localplayer = game.Players.LocalPlayer
  2. local localbackpack = localplayer:WaitForChild("Backpack")
  3.  
  4. -- Function to clone tools from a given source to the local player's backpack
  5. local function cloneToolsToBackpack(source)
  6.     for _, item in pairs(source:GetDescendants()) do
  7.         if item:IsA("Tool") then
  8.             local clonedTool = item:Clone()
  9.             clonedTool.Parent = localbackpack
  10.         end
  11.     end
  12. end
  13.  
  14. -- Clone tools from other players' backpacks
  15. for _, player in pairs(game.Players:GetPlayers()) do
  16.     if player ~= localplayer then
  17.         local playerBackpack = player:FindFirstChild("Backpack")
  18.         if playerBackpack then
  19.             cloneToolsToBackpack(playerBackpack)
  20.         end
  21.     end
  22. end
  23.  
  24. -- Clone equipped tools from other players
  25. for _, player in pairs(game.Players:GetPlayers()) do
  26.     if player ~= localplayer and player.Character then
  27.         local equippedTool = player.Character:FindFirstChildOfClass("Tool")
  28.         if equippedTool then
  29.             local clonedTool = equippedTool:Clone()
  30.             clonedTool.Parent = localbackpack
  31.         end
  32.     end
  33. end
  34.  
  35. -- Clone tools from ReplicatedStorage
  36. cloneToolsToBackpack(game:GetService("ReplicatedStorage"))
  37.  
Advertisement
Add Comment
Please, Sign In to add comment