How can I remove a tool from everyone and add it back later on?

It just comes to doing a loop over every player to either clone or destroy the tool.

local toolName = "Camera"
for _,player in pairs(game.Players:GetPlayers()) do
    for _,tool in pairs(player.Backpack:GetChildren()) do
        if tool.Name == toolName then
            tool:Destroy()
        end
    end
    if player.Character:FindFirstChild(toolName) then --This is done in case the player has the tool equipped
        player.Character[toolName]:Destroy()
    end
end
2 Likes