I am wanting the player to unequipt the tool and make it go back in to the back pack. There are no errors but nothing happens when I run the script.
(Server Script)
for _, Player in pairs(game.Players:GetPlayers()) do
local Char = Player.Character
local Backpack = Player:FindFirstChild("Backpack")
if Char and Backpack then
for _, Tool in pairs(Backpack:GetChildren()) do
if Tool:IsA("Tool") then
Tool.Parent = Backpack
end
end
end
end